Version Description
- New: Fourteen filters have been added to the "Edit Media additional meta boxes". You can customize which meta boxes appear and replace their contents. An example plugin has been added to demonstrate their use. See the Other Notes section section or the Settings/Media Library Assistant Documentation tab for more information.
- New: A new hook,
mla_media_modal_initial_filters
has been added to the "Media Manager Enhancement filters (Hooks)". - New: A new "MLA Media Modal Hooks Example" plugin has been created in
/examples/mla-media-modal-hooks-example.php.txt
. - New: Two new examples have been added to the MLA Gallery Hooks example plugin.
- New: A new "MLA Tax Query Example" plugin has been created in
/examples/mla-tax-query-example.php.txt
. - New: Two new hooks,
mla_begin_mapping
andmla_end_mapping
have been added to the "MLA Custom Field and IPTC/EXIF Mapping Actions and Filters (Hooks)". - New: A new "MLA Meta Box Hooks Example" plugin has been created in
/examples/mla-metabox-hooks-example.php.txt
. - New: A new, simplified MLA Mapping Hooks example plugin has been created. The older, more complex example is provided as a separate example plugin,
/examples/mla-metadata-mapping-hooks-example.php.txt
. - Fix: On the Media/Assistant submenu table, the "Set Parent" links now refresh the entire table row, properly updating all of the affected columns and the Quick Edit data.
- Fix: A defect that affected certain "front end" file uploads, e.g., changing an avatar in BuddyPress, has been corrected.
- Fix: All
like_escape()
calls have been changed to$wpdb->esc_like()
for WordPress 4.0 and later. - Fix: A defect in multi-word or quoted Search Media box content on the Media/Assistant submenu table has been fixed.
- Fix: A defect in WPML support on the Media/Assistant submenu table has been fixed.
- Fix: A defect in using fields in the "posts" database table as "Data sources for custom field mapping" has been fixed.
Download this release
Release Info
Developer | dglingren |
Plugin | Media Library Assistant |
Version | 1.91 |
Comparing to | |
See all releases |
Code changes from version 1.90 to 1.91
- css/mla-media-modal-style.css +4 -0
- examples/mla-child-term-hooks-example.php.txt +309 -0
- examples/mla-hooks-example.php.txt +199 -98
- examples/mla-mapping-hooks-example.php.txt +215 -301
- examples/mla-media-modal-hooks-example.php.txt +126 -0
- examples/mla-metabox-hooks-example.php.txt +454 -0
- examples/mla-metadata-mapping-hooks-example.php.txt +860 -0
- examples/mla-tax-query-example.php.txt +377 -0
- examples/twentytwelve-mla/content-jkeast-dropdown-simple.php +125 -0
- examples/twentytwelve-mla/content-jkeast-dropdown.php +149 -0
- examples/twentytwelve-mla/content-mla-gallery.php +25 -0
- examples/twentytwelve-mla/content-single-image.php +2 -0
- examples/twentytwelve-mla/page-jkeast-dropdown.php +30 -0
- examples/twentytwelve-mla/taxonomy.php +4 -1
- includes/class-mla-data.php +50 -30
- includes/class-mla-edit-media.php +66 -42
- includes/class-mla-list-table.php +44 -7
- includes/class-mla-main.php +28 -13
- includes/class-mla-media-modal.php +116 -26
- includes/class-mla-mime-types.php +6 -0
- includes/class-mla-options.php +62 -13
- includes/class-mla-settings.php +23 -5
- includes/class-mla-shortcodes.php +10 -8
- includes/mla-main-search-box-template.php +2 -2
- index.php +2 -2
- js/mla-inline-edit-scripts.js +3 -6
- js/mla-inline-edit-scripts.min.js +1 -1
- js/mla-media-modal-scripts.js +24 -21
- js/mla-media-modal-scripts.min.js +1 -1
- js/mla-set-parent-scripts.js +1 -15
- js/mla-set-parent-scripts.min.js +1 -1
- languages/media-library-assistant-en_US.pot +827 -820
- phpDocs/classes/MLA.html +1 -1
- phpDocs/classes/MLAData.html +1 -1
- phpDocs/classes/MLAEdit.html +3 -3
- phpDocs/classes/MLAMime.html +1 -1
- phpDocs/classes/MLAModal.html +16 -1
- phpDocs/classes/MLAObjects.html +1 -1
- phpDocs/classes/MLAOptions.html +5 -2
- phpDocs/classes/MLASettings.html +9 -3
- phpDocs/classes/MLAShortcodes.html +1 -1
- phpDocs/classes/MLATest.html +1 -1
- phpDocs/classes/MLATextWidget.html +1 -1
- phpDocs/classes/MLA_Checklist_Walker.html +1 -1
- phpDocs/classes/MLA_List_Table.html +1 -1
- phpDocs/classes/MLA_Upload_List_Table.html +1 -1
- phpDocs/classes/MLA_Upload_Optional_List_Table.html +1 -1
- phpDocs/classes/MLA_View_List_Table.html +1 -1
- phpDocs/deprecated.html +1 -1
- phpDocs/errors.html +5 -1
- phpDocs/graph_class.html +1 -1
- phpDocs/index.html +1 -1
- phpDocs/markers.html +2 -2
- phpDocs/namespaces/global.html +78 -1
- phpDocs/packages/Media Library Assistant.MLA.Child.Theme.html +80 -1
- phpDocs/packages/Media Library Assistant.MLA.Child.html +78 -1
- phpDocs/packages/Media Library Assistant.MLA.html +78 -1
- phpDocs/packages/Media Library Assistant.html +78 -1
- phpDocs/structure.xml +1921 -1704
- readme.txt +59 -61
- tpls/admin-terms-search-form.tpl +2 -2
- tpls/documentation-settings-tab.tpl +107 -4
css/mla-media-modal-style.css
CHANGED
@@ -59,6 +59,10 @@
|
|
59 |
right: 312px;
|
60 |
}
|
61 |
|
|
|
|
|
|
|
|
|
62 |
.media-modal .attachments {
|
63 |
right: 312px;
|
64 |
top: 120px;
|
59 |
right: 312px;
|
60 |
}
|
61 |
|
62 |
+
.attachments-browser .no-media {
|
63 |
+
margin-top: 135px;
|
64 |
+
}
|
65 |
+
|
66 |
.media-modal .attachments {
|
67 |
right: 312px;
|
68 |
top: 120px;
|
examples/mla-child-term-hooks-example.php.txt
ADDED
@@ -0,0 +1,309 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Provides an example of hooking the filters provided by the [mla_gallery] shortcode.
|
4 |
+
*
|
5 |
+
* In this example, a term slug within a hiearchical taxonomy (default "galleries" in
|
6 |
+
* "attachment_category") is given. Each immediate child term is used to select one image
|
7 |
+
* assigned to that term, and the selected images are displayed in a gallery. The links
|
8 |
+
* for each galery item go to a separate page that displays a gallery of all images assigned
|
9 |
+
* to the term.
|
10 |
+
*
|
11 |
+
* This example plugin uses three of the many filters available in the [mla_gallery] shortcode
|
12 |
+
* and illustrates some of the techniques you can use to customize the gallery display.
|
13 |
+
*
|
14 |
+
* @package MLA Child Term Hooks Example
|
15 |
+
* @version 1.00
|
16 |
+
*/
|
17 |
+
|
18 |
+
/*
|
19 |
+
Plugin Name: MLA Child Term Hooks Example
|
20 |
+
Plugin URI: http://fairtradejudaica.org/media-library-assistant-a-wordpress-plugin/
|
21 |
+
Description: Creates a term-specific gallery of images assigned to child terms.
|
22 |
+
Author: David Lingren
|
23 |
+
Version: 1.00
|
24 |
+
Author URI: http://fairtradejudaica.org/our-story/staff/
|
25 |
+
|
26 |
+
Copyright 2014 David Lingren
|
27 |
+
|
28 |
+
This program is free software; you can redistribute it and/or modify
|
29 |
+
it under the terms of the GNU General Public License as published by
|
30 |
+
the Free Software Foundation; either version 2 of the License, or
|
31 |
+
(at your option) any later version.
|
32 |
+
|
33 |
+
This program is distributed in the hope that it will be useful,
|
34 |
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
35 |
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
36 |
+
GNU General Public License for more details.
|
37 |
+
|
38 |
+
You can get a copy of the GNU General Public License by writing to the
|
39 |
+
Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
|
40 |
+
*/
|
41 |
+
|
42 |
+
/**
|
43 |
+
* Class MLA Child Term Hooks Example hooks three of the filters provided by the [mla_gallery] shortcode
|
44 |
+
*
|
45 |
+
* Call it anything you want, but give it an unlikely and hopefully unique name. Hiding enerything
|
46 |
+
* else inside a class means this is the only name you have to worry about.
|
47 |
+
*
|
48 |
+
* @package MLA Child Term Hooks Example
|
49 |
+
* @since 1.00
|
50 |
+
*/
|
51 |
+
class MLAChildTermHooksExample {
|
52 |
+
/**
|
53 |
+
* Initialization function, similar to __construct()
|
54 |
+
*
|
55 |
+
* @since 1.00
|
56 |
+
*
|
57 |
+
* @return void
|
58 |
+
*/
|
59 |
+
public static function initialize() {
|
60 |
+
/*
|
61 |
+
* The filters are only useful for front-end posts/pages; exit if in the admin section
|
62 |
+
*/
|
63 |
+
if ( is_admin() )
|
64 |
+
return;
|
65 |
+
|
66 |
+
/*
|
67 |
+
* add_filter parameters:
|
68 |
+
* $tag - name of the hook you're filtering; defined by [mla_gallery]
|
69 |
+
* $function_to_add - function to be called when [mla_gallery] applies the filter
|
70 |
+
* $priority - default 10; lower runs earlier, higher runs later
|
71 |
+
* $accepted_args - number of arguments your function accepts
|
72 |
+
*/
|
73 |
+
add_filter( 'mla_gallery_attributes', 'MLAChildTermHooksExample::mla_gallery_attributes_filter', 10, 1 );
|
74 |
+
add_filter( 'mla_gallery_query_arguments', 'MLAChildTermHooksExample::mla_gallery_query_arguments_filter', 10, 1 );
|
75 |
+
add_filter( 'mla_gallery_item_values', 'MLAChildTermHooksExample::mla_gallery_item_values_filter', 10, 1 );
|
76 |
+
}
|
77 |
+
|
78 |
+
/**
|
79 |
+
* Save the shortcode attributes
|
80 |
+
*
|
81 |
+
* @since 1.00
|
82 |
+
*
|
83 |
+
* @var array
|
84 |
+
*/
|
85 |
+
private static $shortcode_attributes = array();
|
86 |
+
|
87 |
+
/**
|
88 |
+
* MLA Gallery (Display) Attributes
|
89 |
+
*
|
90 |
+
* This filter gives you an opportunity to record or modify the arguments passed in to the shortcode
|
91 |
+
* before they are merged with the default arguments used for the gallery display.
|
92 |
+
*
|
93 |
+
* The $shortcode_attributes array is where you will find any of your own parameters that are coded in the
|
94 |
+
* shortcode, e.g., [mla_gallery my_parameter="my value"].
|
95 |
+
*
|
96 |
+
* @since 1.00
|
97 |
+
*
|
98 |
+
* @param array the shortcode parameters passed in to the shortcode
|
99 |
+
*
|
100 |
+
* @return array updated shortcode attributes
|
101 |
+
*/
|
102 |
+
public static function mla_gallery_attributes_filter( $shortcode_attributes ) {
|
103 |
+
/*
|
104 |
+
* Save the attributes for use in the later filters
|
105 |
+
*/
|
106 |
+
self::$shortcode_attributes = $shortcode_attributes;
|
107 |
+
return $shortcode_attributes;
|
108 |
+
} // mla_gallery_attributes_filter
|
109 |
+
|
110 |
+
/**
|
111 |
+
* Save the item => term_slug pairs
|
112 |
+
*
|
113 |
+
* @since 1.00
|
114 |
+
*
|
115 |
+
* @var array
|
116 |
+
*/
|
117 |
+
private static $term_slugs = array();
|
118 |
+
|
119 |
+
/**
|
120 |
+
* MLA Gallery Query Arguments
|
121 |
+
*
|
122 |
+
* This filter gives you an opportunity to record or modify the attachment query arguments
|
123 |
+
* after the shortcode attributes are merged with the default arguments.
|
124 |
+
*
|
125 |
+
* @since 1.00
|
126 |
+
*
|
127 |
+
* @param array shortcode arguments merged with attachment selection defaults, so every possible parameter is present
|
128 |
+
*
|
129 |
+
* @return array updated attachment query arguments
|
130 |
+
*/
|
131 |
+
public static function mla_gallery_query_arguments_filter( $all_query_parameters ) {
|
132 |
+
/*
|
133 |
+
* This example executes a custom SQL query that cannot be done with the usual
|
134 |
+
* WordPress WP_Query arguments. The query results are fed back to the [mla_gallery]
|
135 |
+
* shortcode as a list of attachments using the "include" parameter.
|
136 |
+
*
|
137 |
+
* This example's "my_parent_terms" parameter specifies a taxonomy and term slug,
|
138 |
+
* e.g., my_parent_terms="attachment_category=galleries". The parameter allows for
|
139 |
+
* multiple terms per taxonomy and multiple taxonomies, e.g.,
|
140 |
+
* my_parent_terms="attachment_category='galleries,slides' attachment_tag=animals".
|
141 |
+
* You can add "include_children=true" to the my_parent_terms parameter to get all
|
142 |
+
* child terms, not just immediate descendants.
|
143 |
+
*
|
144 |
+
* The taxonomy and term are used to select a list of child terms. The list is then used
|
145 |
+
* to find one image assigned to each child term. The images are passed on in the "include"
|
146 |
+
* parameter.
|
147 |
+
*/
|
148 |
+
if ( isset( self::$shortcode_attributes['my_parent_terms'] ) ) {
|
149 |
+
global $wpdb;
|
150 |
+
|
151 |
+
// Make sure $my_query_vars is an array, even if it's empty
|
152 |
+
$my_query_vars = self::$shortcode_attributes['my_parent_terms'];
|
153 |
+
if ( empty( $my_query_vars ) ) {
|
154 |
+
$my_query_vars = array();
|
155 |
+
} elseif ( is_string( $my_query_vars ) ) {
|
156 |
+
$my_query_vars = shortcode_parse_atts( $my_query_vars );
|
157 |
+
}
|
158 |
+
|
159 |
+
// Start with empty parameter values
|
160 |
+
$ttids = array();
|
161 |
+
|
162 |
+
// Find taxonomy argument(s), if present, and collect terms
|
163 |
+
$taxonomies = get_taxonomies( array( 'object_type' => array( 'attachment' ) ), 'names' );
|
164 |
+
foreach( $taxonomies as $taxonomy ) {
|
165 |
+
if ( empty( $my_query_vars[ $taxonomy ] ) ) {
|
166 |
+
continue;
|
167 |
+
}
|
168 |
+
|
169 |
+
// Found the taxonomy; collect the terms
|
170 |
+
$include_children = isset( $my_query_vars['include_children'] ) && 'true' == strtolower( trim( $my_query_vars['include_children'] ) );
|
171 |
+
|
172 |
+
// Allow for multiple term slug values
|
173 |
+
$terms = array();
|
174 |
+
$slugs = explode( ',', $my_query_vars[ $taxonomy ] );
|
175 |
+
foreach ( $slugs as $slug ) {
|
176 |
+
$args = array( 'slug' => $slug, 'hide_empty' => false );
|
177 |
+
$terms = array_merge( $terms, get_terms( $taxonomy, $args ) );
|
178 |
+
}
|
179 |
+
|
180 |
+
foreach( $terms as $term ) {
|
181 |
+
// Find all descendants or just immediate children
|
182 |
+
if ( $include_children ) {
|
183 |
+
$args = array( 'child_of' => absint( $term->term_id ), 'hide_empty' => false );
|
184 |
+
} else {
|
185 |
+
$args = array( 'parent' => absint( $term->term_id ), 'hide_empty' => false );
|
186 |
+
}
|
187 |
+
|
188 |
+
$children = get_terms( 'attachment_category', $args );
|
189 |
+
foreach( $children as $child ) {
|
190 |
+
// Index by ttid to remove duplicates
|
191 |
+
$ttids[ $child->term_taxonomy_id ] = $child->term_taxonomy_id;
|
192 |
+
}
|
193 |
+
} // $term
|
194 |
+
|
195 |
+
break;
|
196 |
+
}
|
197 |
+
|
198 |
+
// If no terms, return no images
|
199 |
+
if ( empty( $ttids ) ) {
|
200 |
+
$all_query_parameters['include'] = '1';
|
201 |
+
return $all_query_parameters;
|
202 |
+
}
|
203 |
+
|
204 |
+
// Build an array of SQL clauses
|
205 |
+
$query = array();
|
206 |
+
$query_parameters = array();
|
207 |
+
|
208 |
+
$query[] = "SELECT p.ID, t.slug FROM {$wpdb->posts} AS p";
|
209 |
+
$query[] = "LEFT JOIN {$wpdb->term_relationships} as tr";
|
210 |
+
$query[] = "ON (p.ID = tr.object_id)";
|
211 |
+
$query[] = "LEFT JOIN {$wpdb->term_taxonomy} as tt";
|
212 |
+
$query[] = "ON (tt.term_taxonomy_id = tr.term_taxonomy_id)";
|
213 |
+
$query[] = "LEFT JOIN {$wpdb->terms} as t";
|
214 |
+
$query[] = "ON (tt.term_id = t.term_id)";
|
215 |
+
|
216 |
+
// Start with a WHERE clause that doesn't match anything, since OR is the connector
|
217 |
+
$query[] = 'WHERE ( ( 1=0 )';
|
218 |
+
|
219 |
+
if ( ! empty( $ttids ) ) {
|
220 |
+
$placeholders = array();
|
221 |
+
foreach ( $ttids as $ttid ) {
|
222 |
+
$placeholders[] = '%s';
|
223 |
+
$query_parameters[] = $ttid;
|
224 |
+
}
|
225 |
+
|
226 |
+
$query[] = 'OR ( tr.term_taxonomy_id IN (' . join( ',', $placeholders ) . ') )';
|
227 |
+
}
|
228 |
+
|
229 |
+
// Close the WHERE clause
|
230 |
+
$query[] = ')';
|
231 |
+
|
232 |
+
$query[] = "AND (p.post_mime_type LIKE 'image/%%')";
|
233 |
+
$query[] = "AND p.post_type = 'attachment'";
|
234 |
+
$query[] = "AND p.post_status = 'inherit'";
|
235 |
+
$query[] = "GROUP BY p.ID";
|
236 |
+
// ORDER BY clause would go here, if needed
|
237 |
+
|
238 |
+
$query = join(' ', $query);
|
239 |
+
$ids = $wpdb->get_results( $wpdb->prepare( $query, $query_parameters ) );
|
240 |
+
if ( is_array( $ids ) ) {
|
241 |
+
$includes = array();
|
242 |
+
// Index on slug to get one image per term
|
243 |
+
foreach ( $ids as $id ) {
|
244 |
+
$includes[ $id->slug ] = $id->ID;
|
245 |
+
}
|
246 |
+
|
247 |
+
// Save the ID => slug relations for the gallery items filter
|
248 |
+
self::$term_slugs = array_flip( $includes );
|
249 |
+
$all_query_parameters['include'] = implode( ',', $includes );
|
250 |
+
} else {
|
251 |
+
$all_query_parameters['include'] = '1'; // return no images
|
252 |
+
}
|
253 |
+
} // parameter "my_parent_terms" is present
|
254 |
+
|
255 |
+
return $all_query_parameters;
|
256 |
+
} // mla_gallery_query_arguments_filter
|
257 |
+
|
258 |
+
/**
|
259 |
+
* MLA Gallery Item Values
|
260 |
+
*
|
261 |
+
* @since 1.00
|
262 |
+
*
|
263 |
+
* @param array parameter_name => parameter_value pairs
|
264 |
+
*
|
265 |
+
* @return array updated substitution parameter name => value pairs
|
266 |
+
*/
|
267 |
+
public static function mla_gallery_item_values_filter( $item_values ) {
|
268 |
+
/*
|
269 |
+
* We use a shortcode parameter of our own to apply our filters on a gallery-by-gallery basis,
|
270 |
+
* leaving other [mla_gallery] instances untouched. If the "my_parent_terms" parameter is not present,
|
271 |
+
* we have nothing to do.
|
272 |
+
*/
|
273 |
+
if ( ! isset( self::$shortcode_attributes['my_parent_terms'] ) ) {
|
274 |
+
return $item_values; // leave them unchanged
|
275 |
+
}
|
276 |
+
|
277 |
+
// Make sure $my_page is an array, even if it's missing or empty
|
278 |
+
$my_page = array();
|
279 |
+
if ( isset( self::$shortcode_attributes['my_page'] ) ) {
|
280 |
+
$my_page = self::$shortcode_attributes['my_page'];
|
281 |
+
|
282 |
+
if ( is_string( $my_page ) ) {
|
283 |
+
$my_page = shortcode_parse_atts( $my_page );
|
284 |
+
}
|
285 |
+
}
|
286 |
+
|
287 |
+
// Apply defaults
|
288 |
+
if ( isset( $my_page['permalink'] ) ) {
|
289 |
+
$my_page['permalink'] = $item_values['site_url'] . $my_page['permalink'];
|
290 |
+
} else {
|
291 |
+
$my_page['permalink'] = $item_values['page_url'];
|
292 |
+
}
|
293 |
+
|
294 |
+
if ( ! isset( $my_page['queryarg'] ) ) {
|
295 |
+
$my_page['queryarg'] = 'term_slug';
|
296 |
+
}
|
297 |
+
|
298 |
+
// Generate link value
|
299 |
+
$href = $my_page['permalink'] . '?' . $my_page['queryarg'] . '=' . self::$term_slugs[ $item_values['attachment_ID'] ];
|
300 |
+
$item_values['link'] = '<a href="' . $href . '">' . $item_values['thumbnail_content'] . '</a>';
|
301 |
+
return $item_values;
|
302 |
+
} // mla_gallery_item_values_filter
|
303 |
+
} // Class MLAChildTermHooksExample
|
304 |
+
|
305 |
+
/*
|
306 |
+
* Install the filters at an early opportunity
|
307 |
+
*/
|
308 |
+
add_action('init', 'MLAChildTermHooksExample::initialize');
|
309 |
+
?>
|
examples/mla-hooks-example.php.txt
CHANGED
@@ -2,17 +2,21 @@
|
|
2 |
/**
|
3 |
* Provides examples of hooking the filters provided by the [mla_gallery] shortcode:
|
4 |
*
|
5 |
-
* - In the "
|
6 |
-
*
|
7 |
*
|
8 |
-
* - In the "
|
9 |
* attachment-specific data elements used to compose the gallery display.
|
10 |
*
|
|
|
|
|
|
|
|
|
11 |
* The example plugin documents ALL the filters available in the [mla_gallery] shortcode
|
12 |
* and illustrates some of the techniques you can use to customize the gallery display.
|
13 |
*
|
14 |
* @package MLA Gallery Hooks Example
|
15 |
-
* @version 1.
|
16 |
*/
|
17 |
|
18 |
/*
|
@@ -20,7 +24,7 @@ Plugin Name: MLA Gallery Hooks Example
|
|
20 |
Plugin URI: http://fairtradejudaica.org/media-library-assistant-a-wordpress-plugin/
|
21 |
Description: Provides examples of hooking the filters provided by the [mla_gallery] shortcode
|
22 |
Author: David Lingren
|
23 |
-
Version: 1.
|
24 |
Author URI: http://fairtradejudaica.org/our-story/staff/
|
25 |
|
26 |
Copyright 2013, 2014 David Lingren
|
@@ -80,17 +84,17 @@ class MLAGalleryHooksExample {
|
|
80 |
add_filter( 'mla_gallery_query_arguments', 'MLAGalleryHooksExample::mla_gallery_query_arguments_filter', 10, 1 );
|
81 |
add_action( 'mla_gallery_wp_query_object', 'MLAGalleryHooksExample::mla_gallery_wp_query_object_action', 10, 1 );
|
82 |
add_filter( 'mla_gallery_final_content', 'MLAGalleryHooksExample::mla_gallery_final_content_filter', 10, 1 );
|
83 |
-
|
84 |
add_filter( 'use_mla_gallery_style', 'MLAGalleryHooksExample::use_mla_gallery_style_filter', 10, 2 );
|
85 |
-
|
86 |
add_filter( 'mla_gallery_style_values', 'MLAGalleryHooksExample::mla_gallery_style_values_filter', 10, 1 );
|
87 |
add_filter( 'mla_gallery_style_template', 'MLAGalleryHooksExample::mla_gallery_style_template_filter', 10, 1 );
|
88 |
add_filter( 'mla_gallery_style_parse', 'MLAGalleryHooksExample::mla_gallery_style_parse_filter', 10, 3 );
|
89 |
-
|
90 |
add_filter( 'mla_gallery_open_values', 'MLAGalleryHooksExample::mla_gallery_open_values_filter', 10, 1 );
|
91 |
add_filter( 'mla_gallery_open_template', 'MLAGalleryHooksExample::mla_gallery_open_template_filter', 10, 1 );
|
92 |
add_filter( 'mla_gallery_open_parse', 'MLAGalleryHooksExample::mla_gallery_open_parse_filter', 10, 3 );
|
93 |
-
|
94 |
add_filter( 'mla_gallery_style', 'MLAGalleryHooksExample::mla_gallery_style_filter', 10, 5 );
|
95 |
|
96 |
add_filter( 'mla_gallery_row_open_values', 'MLAGalleryHooksExample::mla_gallery_row_open_values_filter', 10, 1 );
|
@@ -118,7 +122,7 @@ class MLAGalleryHooksExample {
|
|
118 |
* @var array
|
119 |
*/
|
120 |
private static $shortcode_attributes = array();
|
121 |
-
|
122 |
/**
|
123 |
* MLA Gallery Raw (Display) Attributes
|
124 |
*
|
@@ -139,7 +143,7 @@ class MLAGalleryHooksExample {
|
|
139 |
* Uncomment the error_log statements in any of the filters to see what's passed in
|
140 |
*/
|
141 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_raw_attributes_filter $shortcode_attributes = ' . var_export( $shortcode_attributes, true ), 0 );
|
142 |
-
|
143 |
/*
|
144 |
* Note that the global $post; object is available here and in all later filters.
|
145 |
* It contains the post/page on which the [mla_gallery] appears.
|
@@ -148,6 +152,29 @@ class MLAGalleryHooksExample {
|
|
148 |
*/
|
149 |
global $post;
|
150 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_raw_attributes_filter $post->ID = ' . var_export( $post->ID, true ), 0 );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
151 |
|
152 |
return $shortcode_attributes;
|
153 |
} // mla_gallery_raw_attributes_filter
|
@@ -172,7 +199,7 @@ class MLAGalleryHooksExample {
|
|
172 |
* Uncomment the error_log statements in any of the filters to see what's passed in
|
173 |
*/
|
174 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_attributes_filter $shortcode_attributes = ' . var_export( $shortcode_attributes, true ), 0 );
|
175 |
-
|
176 |
/*
|
177 |
* Save the attributes for use in the later filters
|
178 |
*/
|
@@ -189,7 +216,7 @@ class MLAGalleryHooksExample {
|
|
189 |
* @var NULL|string
|
190 |
*/
|
191 |
private static $shortcode_content = NULL;
|
192 |
-
|
193 |
/**
|
194 |
* MLA Gallery Enclosed Content, initial filter
|
195 |
*
|
@@ -207,7 +234,7 @@ class MLAGalleryHooksExample {
|
|
207 |
public static function mla_gallery_initial_content_filter( $shortcode_content, $shortcode_attributes ) {
|
208 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_initial_content_filter $shortcode_content = ' . var_export( $shortcode_content, true ), 0 );
|
209 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_initial_content_filter $shortcode_attributes = ' . var_export( $shortcode_attributes, true ), 0 );
|
210 |
-
|
211 |
/*
|
212 |
* Save the attributes for use in the later filters
|
213 |
*/
|
@@ -224,7 +251,7 @@ class MLAGalleryHooksExample {
|
|
224 |
* @var array
|
225 |
*/
|
226 |
private static $all_display_parameters = array();
|
227 |
-
|
228 |
/**
|
229 |
* MLA Gallery (Display) Arguments
|
230 |
*
|
@@ -243,7 +270,7 @@ class MLAGalleryHooksExample {
|
|
243 |
*/
|
244 |
public static function mla_gallery_arguments_filter( $all_display_parameters ) {
|
245 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_arguments_filter $all_display_parameters = ' . var_export( $all_display_parameters, true ), 0 );
|
246 |
-
|
247 |
self::$all_display_parameters = $all_display_parameters;
|
248 |
return $all_display_parameters;
|
249 |
} // mla_gallery_arguments_filter
|
@@ -256,7 +283,7 @@ class MLAGalleryHooksExample {
|
|
256 |
* @var array
|
257 |
*/
|
258 |
private static $query_attributes = array();
|
259 |
-
|
260 |
/**
|
261 |
* MLA Gallery Query Attributes
|
262 |
*
|
@@ -275,7 +302,7 @@ class MLAGalleryHooksExample {
|
|
275 |
*/
|
276 |
public static function mla_gallery_query_attributes_filter( $query_attributes ) {
|
277 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_query_attributes_filter $query_attributes = ' . var_export( $query_attributes, true ), 0 );
|
278 |
-
|
279 |
self::$query_attributes = $query_attributes;
|
280 |
return $query_attributes;
|
281 |
} // mla_gallery_query_attributes_filter
|
@@ -288,7 +315,7 @@ class MLAGalleryHooksExample {
|
|
288 |
* @var array
|
289 |
*/
|
290 |
private static $all_query_parameters = array();
|
291 |
-
|
292 |
/**
|
293 |
* MLA Gallery Query Arguments
|
294 |
*
|
@@ -303,18 +330,28 @@ class MLAGalleryHooksExample {
|
|
303 |
*/
|
304 |
public static function mla_gallery_query_arguments_filter( $all_query_parameters ) {
|
305 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_query_arguments_filter $all_query_parameters = ' . var_export( $all_query_parameters, true ), 0 );
|
306 |
-
|
307 |
self::$all_query_parameters = $all_query_parameters;
|
308 |
-
|
309 |
/*
|
310 |
-
* This example executes a custom SQL query that cannot be done with the usual
|
311 |
-
* arguments. The query results are fed back to the [mla_gallery]
|
312 |
-
* using the "include" parameter.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
313 |
*
|
314 |
-
* We use a shortcode parameter of our own to apply this filter on a gallery-by-gallery
|
315 |
-
* leaving other [mla_gallery] instances untouched. If the "my_custom_sql" parameter
|
316 |
-
* we have nothing to do. If the parameter IS present, extract taxonomy,
|
317 |
-
* then build a custom query that connects them with "OR"
|
|
|
318 |
*/
|
319 |
if ( isset( self::$shortcode_attributes['my_custom_sql'] ) ) {
|
320 |
global $wpdb;
|
@@ -331,14 +368,14 @@ class MLAGalleryHooksExample {
|
|
331 |
$ttids = array();
|
332 |
$post_parents = array();
|
333 |
$parent_types = array();
|
334 |
-
|
335 |
// Find taxonomy argument, if present, and collect terms
|
336 |
$taxonomies = get_taxonomies( array( 'object_type' => array( 'attachment' ) ), 'names' );
|
337 |
foreach( $taxonomies as $taxonomy ) {
|
338 |
if ( empty( $my_query_vars[ $taxonomy ] ) ) {
|
339 |
continue;
|
340 |
}
|
341 |
-
|
342 |
// Found the taxonomy; collect the terms
|
343 |
$include_children = isset( $my_query_vars['include_children'] ) && 'true' == strtolower( trim( $my_query_vars['include_children'] ) );
|
344 |
|
@@ -362,31 +399,31 @@ class MLAGalleryHooksExample {
|
|
362 |
}
|
363 |
} // include_children
|
364 |
} // $term
|
365 |
-
|
366 |
break;
|
367 |
}
|
368 |
-
|
369 |
if ( isset( $my_query_vars['post_parent'] ) ) {
|
370 |
// Allow for multiple parent values
|
371 |
$post_parents = explode( ',', $my_query_vars['post_parent'] );
|
372 |
}
|
373 |
-
|
374 |
if ( isset( $my_query_vars['parent_type'] ) ) {
|
375 |
// Allow for multiple parent values
|
376 |
$parent_types = explode( ',', $my_query_vars['parent_type'] );
|
377 |
}
|
378 |
-
|
379 |
// Build an array of SQL clauses
|
380 |
$query = array();
|
381 |
$query_parameters = array();
|
382 |
|
383 |
$query[] = "SELECT p.ID FROM {$wpdb->posts} AS p";
|
384 |
-
|
385 |
if ( ! empty( $parent_types ) ) {
|
386 |
$query[] = "LEFT JOIN {$wpdb->posts} as p2";
|
387 |
$query[] = "ON (p.post_parent = p2.ID)";
|
388 |
}
|
389 |
-
|
390 |
if ( ! empty( $ttids ) ) {
|
391 |
$query[] = "LEFT JOIN {$wpdb->term_relationships} as tr";
|
392 |
$query[] = "ON (p.ID = tr.object_id)";
|
@@ -394,40 +431,40 @@ class MLAGalleryHooksExample {
|
|
394 |
|
395 |
// Start with a WHERE clause that doesn't match anything, since OR is the connector
|
396 |
$query[] = 'WHERE ( ( 1=0 )';
|
397 |
-
|
398 |
if ( ! empty( $post_parents ) ) {
|
399 |
$placeholders = array();
|
400 |
foreach ( $post_parents as $post_parent ) {
|
401 |
$placeholders[] = '%s';
|
402 |
$query_parameters[] = $post_parent;
|
403 |
}
|
404 |
-
|
405 |
$query[] = 'OR ( p.post_parent IN (' . join( ',', $placeholders ) . ') )';
|
406 |
}
|
407 |
-
|
408 |
if ( ! empty( $parent_types ) ) {
|
409 |
$placeholders = array();
|
410 |
foreach ( $parent_types as $parent_type ) {
|
411 |
$placeholders[] = '%s';
|
412 |
$query_parameters[] = $parent_type;
|
413 |
}
|
414 |
-
|
415 |
$query[] = 'OR ( p2.post_type IN (' . join( ',', $placeholders ) . ') )';
|
416 |
}
|
417 |
-
|
418 |
if ( ! empty( $ttids ) ) {
|
419 |
$placeholders = array();
|
420 |
foreach ( $ttids as $ttid ) {
|
421 |
$placeholders[] = '%s';
|
422 |
$query_parameters[] = $ttid;
|
423 |
}
|
424 |
-
|
425 |
$query[] = 'OR ( tr.term_taxonomy_id IN (' . join( ',', $placeholders ) . ') )';
|
426 |
}
|
427 |
-
|
428 |
// Close the WHERE clause
|
429 |
$query[] = ')';
|
430 |
-
|
431 |
$query[] = "AND (p.post_mime_type LIKE 'image/%%')";
|
432 |
$query[] = "AND p.post_type = 'attachment'";
|
433 |
$query[] = "AND p.post_status = 'inherit'";
|
@@ -471,11 +508,11 @@ class MLAGalleryHooksExample {
|
|
471 |
$query_parameters[] = $offset;
|
472 |
$query_parameters[] = 0x7FFFFFFF; // big number!
|
473 |
}
|
474 |
-
|
475 |
$all_query_parameters['paged'] = NULL;
|
476 |
$all_query_parameters['posts_per_page'] = 0;
|
477 |
$all_query_parameters['numberposts'] = 0;
|
478 |
-
|
479 |
$query = join(' ', $query);
|
480 |
$ids = $wpdb->get_results( $wpdb->prepare( $query, $query_parameters ) );
|
481 |
if ( is_array( $ids ) ) {
|
@@ -500,7 +537,7 @@ class MLAGalleryHooksExample {
|
|
500 |
* @var array
|
501 |
*/
|
502 |
private static $wp_query_properties = array();
|
503 |
-
|
504 |
/**
|
505 |
* MLA Gallery WP Query Object
|
506 |
*
|
@@ -516,14 +553,14 @@ class MLAGalleryHooksExample {
|
|
516 |
*/
|
517 |
public static function mla_gallery_wp_query_object_action( $query_arguments ) {
|
518 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_wp_query_object_action $query_arguments = ' . var_export( $query_arguments, true ), 0 );
|
519 |
-
|
520 |
self::$wp_query_properties = array();
|
521 |
self::$wp_query_properties ['request'] = MLAShortcodes::$mla_gallery_wp_query_object->request;
|
522 |
self::$wp_query_properties ['query_vars'] = MLAShortcodes::$mla_gallery_wp_query_object->query_vars;
|
523 |
self::$wp_query_properties ['post_count'] = MLAShortcodes::$mla_gallery_wp_query_object->post_count;
|
524 |
|
525 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_wp_query_object_action self::$wp_query_properties = ' . var_export( self::$wp_query_properties, true ), 0 );
|
526 |
-
|
527 |
/*
|
528 |
* Unlike Filters, Actions never return anything
|
529 |
*/
|
@@ -567,7 +604,7 @@ class MLAGalleryHooksExample {
|
|
567 |
public static function use_mla_gallery_style_filter( $use_style_template, $style_template_name ) {
|
568 |
//error_log( 'MLAGalleryHooksExample::use_mla_gallery_style_filter $use_style_template = ' . var_export( $use_style_template, true ), 0 );
|
569 |
//error_log( 'MLAGalleryHooksExample::use_mla_gallery_style_filter $style_template_name = ' . var_export( $style_template_name, true ), 0 );
|
570 |
-
|
571 |
/*
|
572 |
* Filters must return the first argument passed in, unchanged or updated
|
573 |
*/
|
@@ -590,20 +627,20 @@ class MLAGalleryHooksExample {
|
|
590 |
*/
|
591 |
public static function mla_gallery_style_values_filter( $style_values ) {
|
592 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_style_values_filter $style_values = ' . var_export( $style_values, true ), 0 );
|
593 |
-
|
594 |
/*
|
595 |
* You also have access to the PHP Super Globals, e.g., $_REQUEST, $_SERVER
|
596 |
*/
|
597 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_style_values_filter $_REQUEST = ' . var_export( $_REQUEST, true ), 0 );
|
598 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_style_values_filter $_SERVER[ REQUEST_URI ] = ' . var_export( $_SERVER['REQUEST_URI'], true ), 0 );
|
599 |
-
|
600 |
/*
|
601 |
* You can use the WordPress globals like $wp_query, $wpdb and $table_prefix as well.
|
602 |
* Note that $wp_query contains values for the post/page query, NOT the [mla_gallery] query.
|
603 |
*/
|
604 |
global $wp_query;
|
605 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_style_values_filter $wp_query->query = ' . var_export( $wp_query->query, true ), 0 );
|
606 |
-
|
607 |
return $style_values;
|
608 |
} // mla_gallery_style_values_filter
|
609 |
|
@@ -623,7 +660,7 @@ class MLAGalleryHooksExample {
|
|
623 |
*/
|
624 |
public static function mla_gallery_style_template_filter( $style_template ) {
|
625 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_style_template_filter $style_template = ' . var_export( $style_template, true ), 0 );
|
626 |
-
|
627 |
return $style_template;
|
628 |
} // mla_gallery_style_template_filter
|
629 |
|
@@ -648,10 +685,10 @@ class MLAGalleryHooksExample {
|
|
648 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_style_parse_filter $html_markup = ' . var_export( $html_markup, true ), 0 );
|
649 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_style_parse_filter $style_template = ' . var_export( $style_template, true ), 0 );
|
650 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_style_parse_filter $style_values = ' . var_export( $style_values, true ), 0 );
|
651 |
-
|
652 |
return $html_markup;
|
653 |
} // mla_gallery_style_parse_filter
|
654 |
-
|
655 |
/**
|
656 |
* MLA Gallery Open Values
|
657 |
*
|
@@ -666,7 +703,7 @@ class MLAGalleryHooksExample {
|
|
666 |
*/
|
667 |
public static function mla_gallery_open_values_filter( $markup_values ) {
|
668 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_open_values_filter $markup_values = ' . var_export( $markup_values, true ), 0 );
|
669 |
-
|
670 |
return $markup_values;
|
671 |
} // mla_gallery_open_values_filter
|
672 |
|
@@ -681,7 +718,14 @@ class MLAGalleryHooksExample {
|
|
681 |
*/
|
682 |
public static function mla_gallery_open_template_filter( $open_template ) {
|
683 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_open_template_filter $open_template = ' . var_export( $open_template, true ), 0 );
|
684 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
685 |
return $open_template;
|
686 |
} // mla_gallery_open_template_filter
|
687 |
|
@@ -700,10 +744,10 @@ class MLAGalleryHooksExample {
|
|
700 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_open_parse_filter $html_markup = ' . var_export( $html_markup, true ), 0 );
|
701 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_open_parse_filter $open_template = ' . var_export( $open_template, true ), 0 );
|
702 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_open_parse_filter $markup_values = ' . var_export( $markup_values, true ), 0 );
|
703 |
-
|
704 |
return $html_markup;
|
705 |
} // mla_gallery_open_parse_filter
|
706 |
-
|
707 |
/**
|
708 |
* MLA Gallery Style
|
709 |
*
|
@@ -726,10 +770,10 @@ class MLAGalleryHooksExample {
|
|
726 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_style_filter $open_values = ' . var_export( $open_values, true ), 0 );
|
727 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_style_filter $style_template = ' . var_export( $style_template, true ), 0 );
|
728 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_style_filter $open_template = ' . var_export( $open_template, true ), 0 );
|
729 |
-
|
730 |
return $html_markup;
|
731 |
} // mla_gallery_style_filter
|
732 |
-
|
733 |
/**
|
734 |
* MLA Gallery Row Open Values
|
735 |
*
|
@@ -741,7 +785,7 @@ class MLAGalleryHooksExample {
|
|
741 |
*/
|
742 |
public static function mla_gallery_row_open_values_filter( $markup_values ) {
|
743 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_row_open_values_filter $markup_values = ' . var_export( $markup_values, true ), 0 );
|
744 |
-
|
745 |
return $markup_values;
|
746 |
} // mla_gallery_row_open_values_filter
|
747 |
|
@@ -756,7 +800,7 @@ class MLAGalleryHooksExample {
|
|
756 |
*/
|
757 |
public static function mla_gallery_row_open_template_filter( $row_open_template ) {
|
758 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_row_open_template_filter $row_open_template = ' . var_export( $row_open_template, true ), 0 );
|
759 |
-
|
760 |
return $row_open_template;
|
761 |
} // mla_gallery_row_open_template_filter
|
762 |
|
@@ -775,10 +819,10 @@ class MLAGalleryHooksExample {
|
|
775 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_row_open_parse_filter $html_markup = ' . var_export( $html_markup, true ), 0 );
|
776 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_row_open_parse_filter $row_open_template = ' . var_export( $row_open_template, true ), 0 );
|
777 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_row_open_parse_filter $markup_values = ' . var_export( $markup_values, true ), 0 );
|
778 |
-
|
779 |
return $html_markup;
|
780 |
} // mla_gallery_row_open_parse_filter
|
781 |
-
|
782 |
/**
|
783 |
* MLA Gallery Item Values
|
784 |
*
|
@@ -799,7 +843,7 @@ class MLAGalleryHooksExample {
|
|
799 |
if ( ! isset( self::$shortcode_attributes['my_filter'] ) ) {
|
800 |
return $item_values; // leave them unchanged
|
801 |
}
|
802 |
-
|
803 |
/*
|
804 |
* For this first example, we will reformat the 'date' value as d/m/Y.
|
805 |
*/
|
@@ -811,13 +855,13 @@ class MLAGalleryHooksExample {
|
|
811 |
*/
|
812 |
$old_date = $item_values['date'];
|
813 |
$timestamp = mktime( substr( $old_date, 11, 2 ), substr( $old_date, 14, 2 ), substr( $old_date, 17, 2 ), substr( $old_date, 5, 2 ), substr( $old_date, 8, 2 ), substr( $old_date, 0, 4 ) );
|
814 |
-
|
815 |
/*
|
816 |
* Update the $item_values and pass them back from the filter.
|
817 |
* We must also update the caption because it was composed before this filter is called.
|
818 |
*/
|
819 |
$item_values['date'] = date( 'd/m/Y', $timestamp );
|
820 |
-
$item_values['caption'] = $item_values['description'] . $item_values['date'];
|
821 |
|
822 |
/*
|
823 |
* This alternative generates a "clickable" caption value
|
@@ -827,7 +871,7 @@ class MLAGalleryHooksExample {
|
|
827 |
|
828 |
return $item_values;
|
829 |
}
|
830 |
-
|
831 |
/*
|
832 |
* The second example adds a formatted file size element to the existing caption.
|
833 |
*/
|
@@ -843,7 +887,7 @@ class MLAGalleryHooksExample {
|
|
843 |
'option' => 'raw'
|
844 |
);
|
845 |
$file_size = (float) MLAOptions::mla_get_data_source( $item_values['attachment_ID'], 'single_attachment_mapping', $my_setting, NULL );
|
846 |
-
|
847 |
if ( 1048576 < $file_size ) {
|
848 |
$file_size = number_format( ($file_size/1048576), 3 ).' MB';
|
849 |
} elseif ( 10240 < $file_size ) {
|
@@ -851,15 +895,15 @@ class MLAGalleryHooksExample {
|
|
851 |
} else {
|
852 |
$file_size = number_format( $file_size );
|
853 |
}
|
854 |
-
|
855 |
/*
|
856 |
* Compose a new caption, adding the file size.
|
857 |
*/
|
858 |
$item_values['caption'] = sprintf( '%1$s<br>Size: %2$s', $item_values['caption'], $file_size );
|
859 |
-
|
860 |
return $item_values;
|
861 |
}
|
862 |
-
|
863 |
/*
|
864 |
* Our third example changes taxonomy terms into links to term-specific archive pages.
|
865 |
*/
|
@@ -873,7 +917,7 @@ class MLAGalleryHooksExample {
|
|
873 |
} else {
|
874 |
$my_href = '';
|
875 |
}
|
876 |
-
|
877 |
/*
|
878 |
* Collect non-empty term lists, convert to slugs,
|
879 |
* make into links, replace $item_values
|
@@ -886,22 +930,79 @@ class MLAGalleryHooksExample {
|
|
886 |
$terms = array_map( 'trim', explode( ',', $value ) );
|
887 |
$term_links = array();
|
888 |
foreach( $terms as $term_name ) {
|
889 |
-
|
890 |
-
|
|
|
891 |
if ( empty( $my_href ) ) {
|
892 |
$term_links[] = sprintf( '<a href=%1$s/%2$s/%3$s>%4$s,</a>', get_site_url(), $taxonomy, $term_object->slug, esc_html( $term_name ) );
|
893 |
} else {
|
894 |
$term_links[] = sprintf( '<a href=%1$s/%2$s?my_taxonomy=%3$s&my_term=%4$s>%5$s</a>', get_site_url(),$my_href, $taxonomy, $term_object->slug, esc_html( $term_name ) );
|
895 |
}
|
896 |
}
|
897 |
-
|
898 |
$item_values[ $key ] = implode( ' ', $term_links );
|
899 |
}
|
900 |
}
|
901 |
-
|
902 |
return $item_values;
|
903 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
904 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
905 |
/*
|
906 |
* For our final example, we will add to the $item_values['caption'] value an unordered list
|
907 |
* of the custom fields populated for each gallery item. We use a shortcode parameter of our
|
@@ -909,14 +1010,14 @@ class MLAGalleryHooksExample {
|
|
909 |
*/
|
910 |
if ( 'all custom' != self::$shortcode_attributes['my_filter'] )
|
911 |
return $item_values; // leave them unchanged
|
912 |
-
|
913 |
/*
|
914 |
* Preserve the existing caption, if present
|
915 |
*/
|
916 |
$my_caption = '';
|
917 |
if ( ! empty( $item_values['caption'] ) )
|
918 |
$my_caption .= $item_values['caption'] . "<br />\r\n";
|
919 |
-
|
920 |
/*
|
921 |
* Retrieve the custom fields for this item, if any,
|
922 |
* and extract the values we are interested in.
|
@@ -924,12 +1025,12 @@ class MLAGalleryHooksExample {
|
|
924 |
$custom_fields = array();
|
925 |
$post_meta = get_metadata( 'post', $item_values['attachment_ID'] );
|
926 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_item_values_filter $post_meta = ' . var_export( $post_meta, true ), 0 );
|
927 |
-
|
928 |
if ( is_array( $post_meta ) ) {
|
929 |
foreach ( $post_meta as $post_meta_key => $post_meta_value ) {
|
930 |
if ( empty( $post_meta_key ) )
|
931 |
continue;
|
932 |
-
|
933 |
/*
|
934 |
* WordPress stores several of its own values as custom fields, which we will skip.
|
935 |
* Some of the values you might find useful are:
|
@@ -937,7 +1038,7 @@ class MLAGalleryHooksExample {
|
|
937 |
*/
|
938 |
if ( '_' == $post_meta_key{0} )
|
939 |
continue;
|
940 |
-
|
941 |
/*
|
942 |
* At this point, every value is an array; one element per instance of the key.
|
943 |
* We'll test anyway, just to be sure, then convert single-instance values to a scalar.
|
@@ -956,13 +1057,13 @@ class MLAGalleryHooksExample {
|
|
956 |
} // foreach $post_meta
|
957 |
}
|
958 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_item_values_filter $custom_fields = ' . var_export( $custom_fields, true ), 0 );
|
959 |
-
|
960 |
/*
|
961 |
* Don't alter the caption if there are no custom fields to display
|
962 |
*/
|
963 |
if ( empty( $custom_fields ) )
|
964 |
return $item_values;
|
965 |
-
|
966 |
/*
|
967 |
* Add the definition list to the caption
|
968 |
*/
|
@@ -972,7 +1073,7 @@ class MLAGalleryHooksExample {
|
|
972 |
$my_caption .= "<dd class=\"value\">{$value}</dd>\r\n";
|
973 |
} // foreach custom field
|
974 |
$my_caption .= "</dl>";
|
975 |
-
|
976 |
/*
|
977 |
* Update the $item_values and pass them back from the filter.
|
978 |
*/
|
@@ -991,7 +1092,7 @@ class MLAGalleryHooksExample {
|
|
991 |
*/
|
992 |
public static function mla_gallery_item_template_filter( $item_template ) {
|
993 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_item_template_filter $item_template = ' . var_export( $item_template, true ), 0 );
|
994 |
-
|
995 |
return $item_template;
|
996 |
} // mla_gallery_item_template_filter
|
997 |
|
@@ -1010,10 +1111,10 @@ class MLAGalleryHooksExample {
|
|
1010 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_item_parse_filter $html_markup = ' . var_export( $html_markup, true ), 0 );
|
1011 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_item_parse_filter $item_template = ' . var_export( $item_template, true ), 0 );
|
1012 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_item_parse_filter $item_values = ' . var_export( $item_values, true ), 0 );
|
1013 |
-
|
1014 |
return $html_markup;
|
1015 |
} // mla_gallery_item_parse_filter
|
1016 |
-
|
1017 |
/**
|
1018 |
* MLA Gallery Row Close Values
|
1019 |
*
|
@@ -1025,7 +1126,7 @@ class MLAGalleryHooksExample {
|
|
1025 |
*/
|
1026 |
public static function mla_gallery_row_close_values_filter( $markup_values ) {
|
1027 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_row_close_values_filter $markup_values = ' . var_export( $markup_values, true ), 0 );
|
1028 |
-
|
1029 |
return $markup_values;
|
1030 |
} // mla_gallery_row_close_values_filter
|
1031 |
|
@@ -1040,7 +1141,7 @@ class MLAGalleryHooksExample {
|
|
1040 |
*/
|
1041 |
public static function mla_gallery_row_close_template_filter( $row_close_template ) {
|
1042 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_row_close_template_filter $row_close_template = ' . var_export( $row_close_template, true ), 0 );
|
1043 |
-
|
1044 |
return $row_close_template;
|
1045 |
} // mla_gallery_row_close_template_filter
|
1046 |
|
@@ -1059,10 +1160,10 @@ class MLAGalleryHooksExample {
|
|
1059 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_row_close_parse_filter $html_markup = ' . var_export( $html_markup, true ), 0 );
|
1060 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_row_close_parse_filter $row_close_template = ' . var_export( $row_close_template, true ), 0 );
|
1061 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_row_close_parse_filter $markup_values = ' . var_export( $markup_values, true ), 0 );
|
1062 |
-
|
1063 |
return $html_markup;
|
1064 |
} // mla_gallery_row_close_parse_filter
|
1065 |
-
|
1066 |
/**
|
1067 |
* MLA Gallery Close Values
|
1068 |
*
|
@@ -1074,7 +1175,7 @@ class MLAGalleryHooksExample {
|
|
1074 |
*/
|
1075 |
public static function mla_gallery_close_values_filter( $markup_values ) {
|
1076 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_close_values_filter $markup_values = ' . var_export( $markup_values, true ), 0 );
|
1077 |
-
|
1078 |
return $markup_values;
|
1079 |
} // mla_gallery_close_values_filter
|
1080 |
|
@@ -1089,7 +1190,7 @@ class MLAGalleryHooksExample {
|
|
1089 |
*/
|
1090 |
public static function mla_gallery_close_template_filter( $close_template ) {
|
1091 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_close_template_filter $close_template = ' . var_export( $close_template, true ), 0 );
|
1092 |
-
|
1093 |
return $close_template;
|
1094 |
} // mla_gallery_close_template_filter
|
1095 |
|
@@ -1108,10 +1209,10 @@ class MLAGalleryHooksExample {
|
|
1108 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_close_parse_filter $html_markup = ' . var_export( $html_markup, true ), 0 );
|
1109 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_close_parse_filter $close_template = ' . var_export( $close_template, true ), 0 );
|
1110 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_close_parse_filter $markup_values = ' . var_export( $markup_values, true ), 0 );
|
1111 |
-
|
1112 |
return $html_markup;
|
1113 |
} // mla_gallery_close_parse_filter
|
1114 |
-
|
1115 |
} // Class MLAGalleryHooksExample
|
1116 |
|
1117 |
/*
|
2 |
/**
|
3 |
* Provides examples of hooking the filters provided by the [mla_gallery] shortcode:
|
4 |
*
|
5 |
+
* - In the "mla_gallery_query_arguments" filter is an example of custom SQL queries
|
6 |
+
* that replace the usual get_posts/WP_Query results.
|
7 |
*
|
8 |
+
* - In the "mla_gallery_item_values" filter are six examples that modify the
|
9 |
* attachment-specific data elements used to compose the gallery display.
|
10 |
*
|
11 |
+
* - The "mla_gallery_raw_attributes", "mla_gallery_open_template" and
|
12 |
+
* "mla_gallery_item_values" filters contain an example that adds a "file delete"
|
13 |
+
* link to the gallery items.
|
14 |
+
*
|
15 |
* The example plugin documents ALL the filters available in the [mla_gallery] shortcode
|
16 |
* and illustrates some of the techniques you can use to customize the gallery display.
|
17 |
*
|
18 |
* @package MLA Gallery Hooks Example
|
19 |
+
* @version 1.06
|
20 |
*/
|
21 |
|
22 |
/*
|
24 |
Plugin URI: http://fairtradejudaica.org/media-library-assistant-a-wordpress-plugin/
|
25 |
Description: Provides examples of hooking the filters provided by the [mla_gallery] shortcode
|
26 |
Author: David Lingren
|
27 |
+
Version: 1.06
|
28 |
Author URI: http://fairtradejudaica.org/our-story/staff/
|
29 |
|
30 |
Copyright 2013, 2014 David Lingren
|
84 |
add_filter( 'mla_gallery_query_arguments', 'MLAGalleryHooksExample::mla_gallery_query_arguments_filter', 10, 1 );
|
85 |
add_action( 'mla_gallery_wp_query_object', 'MLAGalleryHooksExample::mla_gallery_wp_query_object_action', 10, 1 );
|
86 |
add_filter( 'mla_gallery_final_content', 'MLAGalleryHooksExample::mla_gallery_final_content_filter', 10, 1 );
|
87 |
+
|
88 |
add_filter( 'use_mla_gallery_style', 'MLAGalleryHooksExample::use_mla_gallery_style_filter', 10, 2 );
|
89 |
+
|
90 |
add_filter( 'mla_gallery_style_values', 'MLAGalleryHooksExample::mla_gallery_style_values_filter', 10, 1 );
|
91 |
add_filter( 'mla_gallery_style_template', 'MLAGalleryHooksExample::mla_gallery_style_template_filter', 10, 1 );
|
92 |
add_filter( 'mla_gallery_style_parse', 'MLAGalleryHooksExample::mla_gallery_style_parse_filter', 10, 3 );
|
93 |
+
|
94 |
add_filter( 'mla_gallery_open_values', 'MLAGalleryHooksExample::mla_gallery_open_values_filter', 10, 1 );
|
95 |
add_filter( 'mla_gallery_open_template', 'MLAGalleryHooksExample::mla_gallery_open_template_filter', 10, 1 );
|
96 |
add_filter( 'mla_gallery_open_parse', 'MLAGalleryHooksExample::mla_gallery_open_parse_filter', 10, 3 );
|
97 |
+
|
98 |
add_filter( 'mla_gallery_style', 'MLAGalleryHooksExample::mla_gallery_style_filter', 10, 5 );
|
99 |
|
100 |
add_filter( 'mla_gallery_row_open_values', 'MLAGalleryHooksExample::mla_gallery_row_open_values_filter', 10, 1 );
|
122 |
* @var array
|
123 |
*/
|
124 |
private static $shortcode_attributes = array();
|
125 |
+
|
126 |
/**
|
127 |
* MLA Gallery Raw (Display) Attributes
|
128 |
*
|
143 |
* Uncomment the error_log statements in any of the filters to see what's passed in
|
144 |
*/
|
145 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_raw_attributes_filter $shortcode_attributes = ' . var_export( $shortcode_attributes, true ), 0 );
|
146 |
+
|
147 |
/*
|
148 |
* Note that the global $post; object is available here and in all later filters.
|
149 |
* It contains the post/page on which the [mla_gallery] appears.
|
152 |
*/
|
153 |
global $post;
|
154 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_raw_attributes_filter $post->ID = ' . var_export( $post->ID, true ), 0 );
|
155 |
+
|
156 |
+
/*
|
157 |
+
* For this example, we delete the selected file.
|
158 |
+
*/
|
159 |
+
if ( isset( $shortcode_attributes['my_filter'] ) && 'allow file deletion' == $shortcode_attributes['my_filter'] ) {
|
160 |
+
if ( isset( $_REQUEST['attachment_ID'] ) ) {
|
161 |
+
$id = (integer) $_REQUEST['attachment_ID'];
|
162 |
+
if ( current_user_can( 'delete_post', $id ) ) {
|
163 |
+
$result = wp_delete_attachment( $id );
|
164 |
+
} else {
|
165 |
+
$result = false;
|
166 |
+
}
|
167 |
+
|
168 |
+
if ( ( false === $result ) || ( NULL === $result ) ) {
|
169 |
+
$shortcode_attributes['gallery_open_message'] = "Could not delete attachment_ID '{$id}'.";
|
170 |
+
} else {
|
171 |
+
$result = (array) $result; // Some wp_delete_attachment calls return an object
|
172 |
+
$shortcode_attributes['gallery_open_message'] = "Attachment '{$result['post_title']}' (ID {$id}) has been deleted.";
|
173 |
+
}
|
174 |
+
|
175 |
+
unset( $_REQUEST['attachment_ID'] );
|
176 |
+
}
|
177 |
+
}
|
178 |
|
179 |
return $shortcode_attributes;
|
180 |
} // mla_gallery_raw_attributes_filter
|
199 |
* Uncomment the error_log statements in any of the filters to see what's passed in
|
200 |
*/
|
201 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_attributes_filter $shortcode_attributes = ' . var_export( $shortcode_attributes, true ), 0 );
|
202 |
+
|
203 |
/*
|
204 |
* Save the attributes for use in the later filters
|
205 |
*/
|
216 |
* @var NULL|string
|
217 |
*/
|
218 |
private static $shortcode_content = NULL;
|
219 |
+
|
220 |
/**
|
221 |
* MLA Gallery Enclosed Content, initial filter
|
222 |
*
|
234 |
public static function mla_gallery_initial_content_filter( $shortcode_content, $shortcode_attributes ) {
|
235 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_initial_content_filter $shortcode_content = ' . var_export( $shortcode_content, true ), 0 );
|
236 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_initial_content_filter $shortcode_attributes = ' . var_export( $shortcode_attributes, true ), 0 );
|
237 |
+
|
238 |
/*
|
239 |
* Save the attributes for use in the later filters
|
240 |
*/
|
251 |
* @var array
|
252 |
*/
|
253 |
private static $all_display_parameters = array();
|
254 |
+
|
255 |
/**
|
256 |
* MLA Gallery (Display) Arguments
|
257 |
*
|
270 |
*/
|
271 |
public static function mla_gallery_arguments_filter( $all_display_parameters ) {
|
272 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_arguments_filter $all_display_parameters = ' . var_export( $all_display_parameters, true ), 0 );
|
273 |
+
|
274 |
self::$all_display_parameters = $all_display_parameters;
|
275 |
return $all_display_parameters;
|
276 |
} // mla_gallery_arguments_filter
|
283 |
* @var array
|
284 |
*/
|
285 |
private static $query_attributes = array();
|
286 |
+
|
287 |
/**
|
288 |
* MLA Gallery Query Attributes
|
289 |
*
|
302 |
*/
|
303 |
public static function mla_gallery_query_attributes_filter( $query_attributes ) {
|
304 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_query_attributes_filter $query_attributes = ' . var_export( $query_attributes, true ), 0 );
|
305 |
+
|
306 |
self::$query_attributes = $query_attributes;
|
307 |
return $query_attributes;
|
308 |
} // mla_gallery_query_attributes_filter
|
315 |
* @var array
|
316 |
*/
|
317 |
private static $all_query_parameters = array();
|
318 |
+
|
319 |
/**
|
320 |
* MLA Gallery Query Arguments
|
321 |
*
|
330 |
*/
|
331 |
public static function mla_gallery_query_arguments_filter( $all_query_parameters ) {
|
332 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_query_arguments_filter $all_query_parameters = ' . var_export( $all_query_parameters, true ), 0 );
|
333 |
+
|
334 |
self::$all_query_parameters = $all_query_parameters;
|
335 |
+
|
336 |
/*
|
337 |
+
* This example executes a custom SQL query that cannot be done with the usual
|
338 |
+
* WordPress WP_Query arguments. The query results are fed back to the [mla_gallery]
|
339 |
+
* shortcode as a list of attachments using the "include" parameter.
|
340 |
+
*
|
341 |
+
* The queries supported in this example's "my_custom_sql" parameter include:
|
342 |
+
*
|
343 |
+
* - one or more taxonomy term lists, with include_children
|
344 |
+
* - one or more post_parent values
|
345 |
+
* - one or more post_type values
|
346 |
+
*
|
347 |
+
* The three query parameters are joined with "OR", so items matching any of the three
|
348 |
+
* parameters will be included. Any combination of the three parameters is accepted.
|
349 |
*
|
350 |
+
* We use a shortcode parameter of our own to apply this filter on a gallery-by-gallery
|
351 |
+
* basis, leaving other [mla_gallery] instances untouched. If the "my_custom_sql" parameter
|
352 |
+
* is not present, we have nothing to do. If the parameter IS present, extract taxonomy,
|
353 |
+
* post_parent and parent_type values, then build a custom query that connects them with "OR"
|
354 |
+
* (WordPress would use "AND").
|
355 |
*/
|
356 |
if ( isset( self::$shortcode_attributes['my_custom_sql'] ) ) {
|
357 |
global $wpdb;
|
368 |
$ttids = array();
|
369 |
$post_parents = array();
|
370 |
$parent_types = array();
|
371 |
+
|
372 |
// Find taxonomy argument, if present, and collect terms
|
373 |
$taxonomies = get_taxonomies( array( 'object_type' => array( 'attachment' ) ), 'names' );
|
374 |
foreach( $taxonomies as $taxonomy ) {
|
375 |
if ( empty( $my_query_vars[ $taxonomy ] ) ) {
|
376 |
continue;
|
377 |
}
|
378 |
+
|
379 |
// Found the taxonomy; collect the terms
|
380 |
$include_children = isset( $my_query_vars['include_children'] ) && 'true' == strtolower( trim( $my_query_vars['include_children'] ) );
|
381 |
|
399 |
}
|
400 |
} // include_children
|
401 |
} // $term
|
402 |
+
|
403 |
break;
|
404 |
}
|
405 |
+
|
406 |
if ( isset( $my_query_vars['post_parent'] ) ) {
|
407 |
// Allow for multiple parent values
|
408 |
$post_parents = explode( ',', $my_query_vars['post_parent'] );
|
409 |
}
|
410 |
+
|
411 |
if ( isset( $my_query_vars['parent_type'] ) ) {
|
412 |
// Allow for multiple parent values
|
413 |
$parent_types = explode( ',', $my_query_vars['parent_type'] );
|
414 |
}
|
415 |
+
|
416 |
// Build an array of SQL clauses
|
417 |
$query = array();
|
418 |
$query_parameters = array();
|
419 |
|
420 |
$query[] = "SELECT p.ID FROM {$wpdb->posts} AS p";
|
421 |
+
|
422 |
if ( ! empty( $parent_types ) ) {
|
423 |
$query[] = "LEFT JOIN {$wpdb->posts} as p2";
|
424 |
$query[] = "ON (p.post_parent = p2.ID)";
|
425 |
}
|
426 |
+
|
427 |
if ( ! empty( $ttids ) ) {
|
428 |
$query[] = "LEFT JOIN {$wpdb->term_relationships} as tr";
|
429 |
$query[] = "ON (p.ID = tr.object_id)";
|
431 |
|
432 |
// Start with a WHERE clause that doesn't match anything, since OR is the connector
|
433 |
$query[] = 'WHERE ( ( 1=0 )';
|
434 |
+
|
435 |
if ( ! empty( $post_parents ) ) {
|
436 |
$placeholders = array();
|
437 |
foreach ( $post_parents as $post_parent ) {
|
438 |
$placeholders[] = '%s';
|
439 |
$query_parameters[] = $post_parent;
|
440 |
}
|
441 |
+
|
442 |
$query[] = 'OR ( p.post_parent IN (' . join( ',', $placeholders ) . ') )';
|
443 |
}
|
444 |
+
|
445 |
if ( ! empty( $parent_types ) ) {
|
446 |
$placeholders = array();
|
447 |
foreach ( $parent_types as $parent_type ) {
|
448 |
$placeholders[] = '%s';
|
449 |
$query_parameters[] = $parent_type;
|
450 |
}
|
451 |
+
|
452 |
$query[] = 'OR ( p2.post_type IN (' . join( ',', $placeholders ) . ') )';
|
453 |
}
|
454 |
+
|
455 |
if ( ! empty( $ttids ) ) {
|
456 |
$placeholders = array();
|
457 |
foreach ( $ttids as $ttid ) {
|
458 |
$placeholders[] = '%s';
|
459 |
$query_parameters[] = $ttid;
|
460 |
}
|
461 |
+
|
462 |
$query[] = 'OR ( tr.term_taxonomy_id IN (' . join( ',', $placeholders ) . ') )';
|
463 |
}
|
464 |
+
|
465 |
// Close the WHERE clause
|
466 |
$query[] = ')';
|
467 |
+
|
468 |
$query[] = "AND (p.post_mime_type LIKE 'image/%%')";
|
469 |
$query[] = "AND p.post_type = 'attachment'";
|
470 |
$query[] = "AND p.post_status = 'inherit'";
|
508 |
$query_parameters[] = $offset;
|
509 |
$query_parameters[] = 0x7FFFFFFF; // big number!
|
510 |
}
|
511 |
+
|
512 |
$all_query_parameters['paged'] = NULL;
|
513 |
$all_query_parameters['posts_per_page'] = 0;
|
514 |
$all_query_parameters['numberposts'] = 0;
|
515 |
+
|
516 |
$query = join(' ', $query);
|
517 |
$ids = $wpdb->get_results( $wpdb->prepare( $query, $query_parameters ) );
|
518 |
if ( is_array( $ids ) ) {
|
537 |
* @var array
|
538 |
*/
|
539 |
private static $wp_query_properties = array();
|
540 |
+
|
541 |
/**
|
542 |
* MLA Gallery WP Query Object
|
543 |
*
|
553 |
*/
|
554 |
public static function mla_gallery_wp_query_object_action( $query_arguments ) {
|
555 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_wp_query_object_action $query_arguments = ' . var_export( $query_arguments, true ), 0 );
|
556 |
+
|
557 |
self::$wp_query_properties = array();
|
558 |
self::$wp_query_properties ['request'] = MLAShortcodes::$mla_gallery_wp_query_object->request;
|
559 |
self::$wp_query_properties ['query_vars'] = MLAShortcodes::$mla_gallery_wp_query_object->query_vars;
|
560 |
self::$wp_query_properties ['post_count'] = MLAShortcodes::$mla_gallery_wp_query_object->post_count;
|
561 |
|
562 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_wp_query_object_action self::$wp_query_properties = ' . var_export( self::$wp_query_properties, true ), 0 );
|
563 |
+
|
564 |
/*
|
565 |
* Unlike Filters, Actions never return anything
|
566 |
*/
|
604 |
public static function use_mla_gallery_style_filter( $use_style_template, $style_template_name ) {
|
605 |
//error_log( 'MLAGalleryHooksExample::use_mla_gallery_style_filter $use_style_template = ' . var_export( $use_style_template, true ), 0 );
|
606 |
//error_log( 'MLAGalleryHooksExample::use_mla_gallery_style_filter $style_template_name = ' . var_export( $style_template_name, true ), 0 );
|
607 |
+
|
608 |
/*
|
609 |
* Filters must return the first argument passed in, unchanged or updated
|
610 |
*/
|
627 |
*/
|
628 |
public static function mla_gallery_style_values_filter( $style_values ) {
|
629 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_style_values_filter $style_values = ' . var_export( $style_values, true ), 0 );
|
630 |
+
|
631 |
/*
|
632 |
* You also have access to the PHP Super Globals, e.g., $_REQUEST, $_SERVER
|
633 |
*/
|
634 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_style_values_filter $_REQUEST = ' . var_export( $_REQUEST, true ), 0 );
|
635 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_style_values_filter $_SERVER[ REQUEST_URI ] = ' . var_export( $_SERVER['REQUEST_URI'], true ), 0 );
|
636 |
+
|
637 |
/*
|
638 |
* You can use the WordPress globals like $wp_query, $wpdb and $table_prefix as well.
|
639 |
* Note that $wp_query contains values for the post/page query, NOT the [mla_gallery] query.
|
640 |
*/
|
641 |
global $wp_query;
|
642 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_style_values_filter $wp_query->query = ' . var_export( $wp_query->query, true ), 0 );
|
643 |
+
|
644 |
return $style_values;
|
645 |
} // mla_gallery_style_values_filter
|
646 |
|
660 |
*/
|
661 |
public static function mla_gallery_style_template_filter( $style_template ) {
|
662 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_style_template_filter $style_template = ' . var_export( $style_template, true ), 0 );
|
663 |
+
|
664 |
return $style_template;
|
665 |
} // mla_gallery_style_template_filter
|
666 |
|
685 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_style_parse_filter $html_markup = ' . var_export( $html_markup, true ), 0 );
|
686 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_style_parse_filter $style_template = ' . var_export( $style_template, true ), 0 );
|
687 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_style_parse_filter $style_values = ' . var_export( $style_values, true ), 0 );
|
688 |
+
|
689 |
return $html_markup;
|
690 |
} // mla_gallery_style_parse_filter
|
691 |
+
|
692 |
/**
|
693 |
* MLA Gallery Open Values
|
694 |
*
|
703 |
*/
|
704 |
public static function mla_gallery_open_values_filter( $markup_values ) {
|
705 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_open_values_filter $markup_values = ' . var_export( $markup_values, true ), 0 );
|
706 |
+
|
707 |
return $markup_values;
|
708 |
} // mla_gallery_open_values_filter
|
709 |
|
718 |
*/
|
719 |
public static function mla_gallery_open_template_filter( $open_template ) {
|
720 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_open_template_filter $open_template = ' . var_export( $open_template, true ), 0 );
|
721 |
+
|
722 |
+
/*
|
723 |
+
* Check for a display message
|
724 |
+
*/
|
725 |
+
if ( isset( self::$shortcode_attributes['gallery_open_message'] ) ) {
|
726 |
+
$open_template = '<p><strong>' . self::$shortcode_attributes['gallery_open_message'] . '</strong></p>' . $open_template;
|
727 |
+
}
|
728 |
+
|
729 |
return $open_template;
|
730 |
} // mla_gallery_open_template_filter
|
731 |
|
744 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_open_parse_filter $html_markup = ' . var_export( $html_markup, true ), 0 );
|
745 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_open_parse_filter $open_template = ' . var_export( $open_template, true ), 0 );
|
746 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_open_parse_filter $markup_values = ' . var_export( $markup_values, true ), 0 );
|
747 |
+
|
748 |
return $html_markup;
|
749 |
} // mla_gallery_open_parse_filter
|
750 |
+
|
751 |
/**
|
752 |
* MLA Gallery Style
|
753 |
*
|
770 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_style_filter $open_values = ' . var_export( $open_values, true ), 0 );
|
771 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_style_filter $style_template = ' . var_export( $style_template, true ), 0 );
|
772 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_style_filter $open_template = ' . var_export( $open_template, true ), 0 );
|
773 |
+
|
774 |
return $html_markup;
|
775 |
} // mla_gallery_style_filter
|
776 |
+
|
777 |
/**
|
778 |
* MLA Gallery Row Open Values
|
779 |
*
|
785 |
*/
|
786 |
public static function mla_gallery_row_open_values_filter( $markup_values ) {
|
787 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_row_open_values_filter $markup_values = ' . var_export( $markup_values, true ), 0 );
|
788 |
+
|
789 |
return $markup_values;
|
790 |
} // mla_gallery_row_open_values_filter
|
791 |
|
800 |
*/
|
801 |
public static function mla_gallery_row_open_template_filter( $row_open_template ) {
|
802 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_row_open_template_filter $row_open_template = ' . var_export( $row_open_template, true ), 0 );
|
803 |
+
|
804 |
return $row_open_template;
|
805 |
} // mla_gallery_row_open_template_filter
|
806 |
|
819 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_row_open_parse_filter $html_markup = ' . var_export( $html_markup, true ), 0 );
|
820 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_row_open_parse_filter $row_open_template = ' . var_export( $row_open_template, true ), 0 );
|
821 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_row_open_parse_filter $markup_values = ' . var_export( $markup_values, true ), 0 );
|
822 |
+
|
823 |
return $html_markup;
|
824 |
} // mla_gallery_row_open_parse_filter
|
825 |
+
|
826 |
/**
|
827 |
* MLA Gallery Item Values
|
828 |
*
|
843 |
if ( ! isset( self::$shortcode_attributes['my_filter'] ) ) {
|
844 |
return $item_values; // leave them unchanged
|
845 |
}
|
846 |
+
|
847 |
/*
|
848 |
* For this first example, we will reformat the 'date' value as d/m/Y.
|
849 |
*/
|
855 |
*/
|
856 |
$old_date = $item_values['date'];
|
857 |
$timestamp = mktime( substr( $old_date, 11, 2 ), substr( $old_date, 14, 2 ), substr( $old_date, 17, 2 ), substr( $old_date, 5, 2 ), substr( $old_date, 8, 2 ), substr( $old_date, 0, 4 ) );
|
858 |
+
|
859 |
/*
|
860 |
* Update the $item_values and pass them back from the filter.
|
861 |
* We must also update the caption because it was composed before this filter is called.
|
862 |
*/
|
863 |
$item_values['date'] = date( 'd/m/Y', $timestamp );
|
864 |
+
$item_values['caption'] = $item_values['description'] . ', ' . $item_values['date'];
|
865 |
|
866 |
/*
|
867 |
* This alternative generates a "clickable" caption value
|
871 |
|
872 |
return $item_values;
|
873 |
}
|
874 |
+
|
875 |
/*
|
876 |
* The second example adds a formatted file size element to the existing caption.
|
877 |
*/
|
887 |
'option' => 'raw'
|
888 |
);
|
889 |
$file_size = (float) MLAOptions::mla_get_data_source( $item_values['attachment_ID'], 'single_attachment_mapping', $my_setting, NULL );
|
890 |
+
|
891 |
if ( 1048576 < $file_size ) {
|
892 |
$file_size = number_format( ($file_size/1048576), 3 ).' MB';
|
893 |
} elseif ( 10240 < $file_size ) {
|
895 |
} else {
|
896 |
$file_size = number_format( $file_size );
|
897 |
}
|
898 |
+
|
899 |
/*
|
900 |
* Compose a new caption, adding the file size.
|
901 |
*/
|
902 |
$item_values['caption'] = sprintf( '%1$s<br>Size: %2$s', $item_values['caption'], $file_size );
|
903 |
+
|
904 |
return $item_values;
|
905 |
}
|
906 |
+
|
907 |
/*
|
908 |
* Our third example changes taxonomy terms into links to term-specific archive pages.
|
909 |
*/
|
917 |
} else {
|
918 |
$my_href = '';
|
919 |
}
|
920 |
+
|
921 |
/*
|
922 |
* Collect non-empty term lists, convert to slugs,
|
923 |
* make into links, replace $item_values
|
930 |
$terms = array_map( 'trim', explode( ',', $value ) );
|
931 |
$term_links = array();
|
932 |
foreach( $terms as $term_name ) {
|
933 |
+
//$term_object = get_term_by( 'name', $term_name, $taxonomy );
|
934 |
+
$term_object = get_term_by( 'name', html_entity_decode( $term_name ), $taxonomy );
|
935 |
+
|
936 |
if ( empty( $my_href ) ) {
|
937 |
$term_links[] = sprintf( '<a href=%1$s/%2$s/%3$s>%4$s,</a>', get_site_url(), $taxonomy, $term_object->slug, esc_html( $term_name ) );
|
938 |
} else {
|
939 |
$term_links[] = sprintf( '<a href=%1$s/%2$s?my_taxonomy=%3$s&my_term=%4$s>%5$s</a>', get_site_url(),$my_href, $taxonomy, $term_object->slug, esc_html( $term_name ) );
|
940 |
}
|
941 |
}
|
942 |
+
|
943 |
$item_values[ $key ] = implode( ' ', $term_links );
|
944 |
}
|
945 |
}
|
946 |
+
|
947 |
return $item_values;
|
948 |
}
|
949 |
+
|
950 |
+
/*
|
951 |
+
* For the fourth example, we compose a URL to allow file deletion and add it to the caption.
|
952 |
+
*/
|
953 |
+
if ( 'allow file deletion' == self::$shortcode_attributes['my_filter'] ) {
|
954 |
+
$id = (integer) $item_values['attachment_ID'];
|
955 |
+
if ( current_user_can( 'delete_post', $id ) ) {
|
956 |
+
// Compose a new caption, adding the deletion link.
|
957 |
+
$mla_link_href = "{$item_values['page_url']}?attachment_ID={$id}";
|
958 |
+
$item_values['caption'] = sprintf( '%1$s<br><a href="%2$s" title="Click to delete">Delete this file</a>', $item_values['base_file'], $mla_link_href );
|
959 |
+
} else {
|
960 |
+
$item_values['caption'] = sprintf( '%1$s', $item_values['base_file'] );
|
961 |
+
}
|
962 |
+
}
|
963 |
+
|
964 |
+
/*
|
965 |
+
* For the fifth example, we compose a caption with "Inserted in" links.
|
966 |
+
*/
|
967 |
+
if ( 'show post inserts' == self::$shortcode_attributes['my_filter'] ) {
|
968 |
+
// You can use MLAOptions::mla_get_data_source() to get anything available.
|
969 |
+
$my_setting = array(
|
970 |
+
'data_source' => 'inserted_in',
|
971 |
+
'option' => 'raw'
|
972 |
+
);
|
973 |
+
$inserted_in = MLAOptions::mla_get_data_source( $item_values['attachment_ID'], 'single_attachment_mapping', $my_setting, NULL );
|
974 |
|
975 |
+
if ( ' ' != $inserted_in ) {
|
976 |
+
/*
|
977 |
+
* Break the information down:
|
978 |
+
* matches[1] => post/page Title
|
979 |
+
* matches[2] => post/page post_type
|
980 |
+
* matches[3] => post/page ID
|
981 |
+
*/
|
982 |
+
$my_posts = array();
|
983 |
+
foreach ( (array) $inserted_in as $insert ) {
|
984 |
+
if ( preg_match( '/(.*) \(([^ ]*) (\d+)\)/', $insert, $matches ) ) {
|
985 |
+
// index on post ID to remove duplicates
|
986 |
+
$my_posts[ $matches[3] ] = $matches[1];
|
987 |
+
} // match
|
988 |
+
} // each insert
|
989 |
+
|
990 |
+
// Build the replacement caption
|
991 |
+
$my_caption = NULL;
|
992 |
+
foreach ( (array) $my_posts as $ID => $title ) {
|
993 |
+
if ( empty( $my_caption ) ) {
|
994 |
+
$my_caption = sprintf( 'Posted in: <a href="%1$s/?p=%2$d">%3$s</a>', $item_values['site_url'], $ID, $title );
|
995 |
+
} else {
|
996 |
+
$my_caption .= sprintf( ', <a href="%1$s/?p=%2$d">%3$s</a>', $item_values['site_url'], $ID, $title );
|
997 |
+
}
|
998 |
+
} // each post
|
999 |
+
|
1000 |
+
if ( ! empty( $my_caption ) ) {
|
1001 |
+
$item_values['caption'] = $my_caption;
|
1002 |
+
}
|
1003 |
+
} // has inserts
|
1004 |
+
}
|
1005 |
+
|
1006 |
/*
|
1007 |
* For our final example, we will add to the $item_values['caption'] value an unordered list
|
1008 |
* of the custom fields populated for each gallery item. We use a shortcode parameter of our
|
1010 |
*/
|
1011 |
if ( 'all custom' != self::$shortcode_attributes['my_filter'] )
|
1012 |
return $item_values; // leave them unchanged
|
1013 |
+
|
1014 |
/*
|
1015 |
* Preserve the existing caption, if present
|
1016 |
*/
|
1017 |
$my_caption = '';
|
1018 |
if ( ! empty( $item_values['caption'] ) )
|
1019 |
$my_caption .= $item_values['caption'] . "<br />\r\n";
|
1020 |
+
|
1021 |
/*
|
1022 |
* Retrieve the custom fields for this item, if any,
|
1023 |
* and extract the values we are interested in.
|
1025 |
$custom_fields = array();
|
1026 |
$post_meta = get_metadata( 'post', $item_values['attachment_ID'] );
|
1027 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_item_values_filter $post_meta = ' . var_export( $post_meta, true ), 0 );
|
1028 |
+
|
1029 |
if ( is_array( $post_meta ) ) {
|
1030 |
foreach ( $post_meta as $post_meta_key => $post_meta_value ) {
|
1031 |
if ( empty( $post_meta_key ) )
|
1032 |
continue;
|
1033 |
+
|
1034 |
/*
|
1035 |
* WordPress stores several of its own values as custom fields, which we will skip.
|
1036 |
* Some of the values you might find useful are:
|
1038 |
*/
|
1039 |
if ( '_' == $post_meta_key{0} )
|
1040 |
continue;
|
1041 |
+
|
1042 |
/*
|
1043 |
* At this point, every value is an array; one element per instance of the key.
|
1044 |
* We'll test anyway, just to be sure, then convert single-instance values to a scalar.
|
1057 |
} // foreach $post_meta
|
1058 |
}
|
1059 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_item_values_filter $custom_fields = ' . var_export( $custom_fields, true ), 0 );
|
1060 |
+
|
1061 |
/*
|
1062 |
* Don't alter the caption if there are no custom fields to display
|
1063 |
*/
|
1064 |
if ( empty( $custom_fields ) )
|
1065 |
return $item_values;
|
1066 |
+
|
1067 |
/*
|
1068 |
* Add the definition list to the caption
|
1069 |
*/
|
1073 |
$my_caption .= "<dd class=\"value\">{$value}</dd>\r\n";
|
1074 |
} // foreach custom field
|
1075 |
$my_caption .= "</dl>";
|
1076 |
+
|
1077 |
/*
|
1078 |
* Update the $item_values and pass them back from the filter.
|
1079 |
*/
|
1092 |
*/
|
1093 |
public static function mla_gallery_item_template_filter( $item_template ) {
|
1094 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_item_template_filter $item_template = ' . var_export( $item_template, true ), 0 );
|
1095 |
+
|
1096 |
return $item_template;
|
1097 |
} // mla_gallery_item_template_filter
|
1098 |
|
1111 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_item_parse_filter $html_markup = ' . var_export( $html_markup, true ), 0 );
|
1112 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_item_parse_filter $item_template = ' . var_export( $item_template, true ), 0 );
|
1113 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_item_parse_filter $item_values = ' . var_export( $item_values, true ), 0 );
|
1114 |
+
|
1115 |
return $html_markup;
|
1116 |
} // mla_gallery_item_parse_filter
|
1117 |
+
|
1118 |
/**
|
1119 |
* MLA Gallery Row Close Values
|
1120 |
*
|
1126 |
*/
|
1127 |
public static function mla_gallery_row_close_values_filter( $markup_values ) {
|
1128 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_row_close_values_filter $markup_values = ' . var_export( $markup_values, true ), 0 );
|
1129 |
+
|
1130 |
return $markup_values;
|
1131 |
} // mla_gallery_row_close_values_filter
|
1132 |
|
1141 |
*/
|
1142 |
public static function mla_gallery_row_close_template_filter( $row_close_template ) {
|
1143 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_row_close_template_filter $row_close_template = ' . var_export( $row_close_template, true ), 0 );
|
1144 |
+
|
1145 |
return $row_close_template;
|
1146 |
} // mla_gallery_row_close_template_filter
|
1147 |
|
1160 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_row_close_parse_filter $html_markup = ' . var_export( $html_markup, true ), 0 );
|
1161 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_row_close_parse_filter $row_close_template = ' . var_export( $row_close_template, true ), 0 );
|
1162 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_row_close_parse_filter $markup_values = ' . var_export( $markup_values, true ), 0 );
|
1163 |
+
|
1164 |
return $html_markup;
|
1165 |
} // mla_gallery_row_close_parse_filter
|
1166 |
+
|
1167 |
/**
|
1168 |
* MLA Gallery Close Values
|
1169 |
*
|
1175 |
*/
|
1176 |
public static function mla_gallery_close_values_filter( $markup_values ) {
|
1177 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_close_values_filter $markup_values = ' . var_export( $markup_values, true ), 0 );
|
1178 |
+
|
1179 |
return $markup_values;
|
1180 |
} // mla_gallery_close_values_filter
|
1181 |
|
1190 |
*/
|
1191 |
public static function mla_gallery_close_template_filter( $close_template ) {
|
1192 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_close_template_filter $close_template = ' . var_export( $close_template, true ), 0 );
|
1193 |
+
|
1194 |
return $close_template;
|
1195 |
} // mla_gallery_close_template_filter
|
1196 |
|
1209 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_close_parse_filter $html_markup = ' . var_export( $html_markup, true ), 0 );
|
1210 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_close_parse_filter $close_template = ' . var_export( $close_template, true ), 0 );
|
1211 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_close_parse_filter $markup_values = ' . var_export( $markup_values, true ), 0 );
|
1212 |
+
|
1213 |
return $html_markup;
|
1214 |
} // mla_gallery_close_parse_filter
|
1215 |
+
|
1216 |
} // Class MLAGalleryHooksExample
|
1217 |
|
1218 |
/*
|
examples/mla-mapping-hooks-example.php.txt
CHANGED
@@ -1,19 +1,23 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
* Provides
|
4 |
*
|
5 |
-
*
|
|
|
|
|
|
|
|
|
6 |
*
|
7 |
* @package MLA Mapping Hooks Example
|
8 |
-
* @version 1.
|
9 |
*/
|
10 |
|
11 |
/*
|
12 |
Plugin Name: MLA Mapping Hooks Example
|
13 |
Plugin URI: http://fairtradejudaica.org/media-library-assistant-a-wordpress-plugin/
|
14 |
-
Description: Provides an example of the filters provided by the IPTC/EXIF and Custom Field mapping features
|
15 |
Author: David Lingren
|
16 |
-
Version: 1.
|
17 |
Author URI: http://fairtradejudaica.org/our-story/staff/
|
18 |
|
19 |
Copyright 2014 David Lingren
|
@@ -76,12 +80,14 @@ class MLAMappingHooksExample {
|
|
76 |
add_filter( 'mla_update_attachment_metadata_prefilter', 'MLAMappingHooksExample::mla_update_attachment_metadata_prefilter_filter', 10, 3 );
|
77 |
add_filter( 'mla_update_attachment_metadata_postfilter', 'MLAMappingHooksExample::mla_update_attachment_metadata_postfilter_filter', 10, 3 );
|
78 |
|
|
|
79 |
add_filter( 'mla_mapping_settings', 'MLAMappingHooksExample::mla_mapping_settings_filter', 10, 4 );
|
80 |
add_filter( 'mla_mapping_rule', 'MLAMappingHooksExample::mla_mapping_rule_filter', 10, 4 );
|
81 |
add_filter( 'mla_mapping_custom_value', 'MLAMappingHooksExample::mla_mapping_custom_value_filter', 10, 5 );
|
82 |
add_filter( 'mla_mapping_iptc_value', 'MLAMappingHooksExample::mla_mapping_iptc_value_filter', 10, 5 );
|
83 |
add_filter( 'mla_mapping_exif_value', 'MLAMappingHooksExample::mla_mapping_exif_value_filter', 10, 5 );
|
84 |
add_filter( 'mla_mapping_updates', 'MLAMappingHooksExample::mla_mapping_updates_filter', 10, 5 );
|
|
|
85 |
|
86 |
add_filter( 'mla_get_options_tablist', 'MLAMappingHooksExample::mla_get_options_tablist_filter', 10, 3 );
|
87 |
}
|
@@ -100,7 +106,6 @@ class MLAMappingHooksExample {
|
|
100 |
* @var array
|
101 |
*/
|
102 |
private static $image_metadata = array();
|
103 |
-
private static $raw_metadata = array();
|
104 |
|
105 |
/**
|
106 |
* MLA Mapping Upload Prefilter
|
@@ -132,16 +137,6 @@ class MLAMappingHooksExample {
|
|
132 |
self::$image_metadata = $image_metadata;
|
133 |
self::$image_metadata['preload_file'] = $file;
|
134 |
|
135 |
-
/*
|
136 |
-
* Save the EXIF, XMP, IPTC and COM data from JPEG files
|
137 |
-
*/
|
138 |
-
if ( 'image/jpeg' == $file['type'] ) {
|
139 |
-
self::$raw_metadata = self::_extract_jpeg_metadata( $file['tmp_name'] );
|
140 |
-
//error_log( 'MLAMappingHooksExample::mla_upload_prefilter_filter $raw_metadata = ' . var_export( self::$raw_metadata, true ), 0 );
|
141 |
-
} else {
|
142 |
-
self::$raw_metadata = array();
|
143 |
-
}
|
144 |
-
|
145 |
return $file;
|
146 |
} // mla_upload_prefilter_filter
|
147 |
|
@@ -189,13 +184,13 @@ class MLAMappingHooksExample {
|
|
189 |
*
|
190 |
* @return void
|
191 |
*/
|
192 |
-
public static function mla_add_attachment_action( $
|
193 |
-
//error_log( 'MLAMappingHooksExample::mla_add_attachment_action $
|
194 |
|
195 |
/*
|
196 |
* Save the information for use in the later filters
|
197 |
*/
|
198 |
-
self::$image_metadata['post_id'] = $
|
199 |
} // mla_add_attachment_action
|
200 |
|
201 |
/**
|
@@ -219,10 +214,10 @@ class MLAMappingHooksExample {
|
|
219 |
*
|
220 |
* @return array updated processing options
|
221 |
*/
|
222 |
-
public static function mla_update_attachment_metadata_options_filter( $options, $data, $
|
223 |
//error_log( 'MLAMappingHooksExample::mla_update_attachment_metadata_options_filter $options = ' . var_export( $options, true ), 0 );
|
224 |
//error_log( 'MLAMappingHooksExample::mla_update_attachment_metadata_options_filter $data = ' . var_export( $data, true ), 0 );
|
225 |
-
//error_log( 'MLAMappingHooksExample::mla_update_attachment_metadata_options_filter $
|
226 |
|
227 |
return $options;
|
228 |
} // mla_update_attachment_metadata_prefilter_filter
|
@@ -246,23 +241,11 @@ class MLAMappingHooksExample {
|
|
246 |
*
|
247 |
* @return array updated attachment metadata
|
248 |
*/
|
249 |
-
public static function mla_update_attachment_metadata_prefilter_filter( $data, $
|
250 |
//error_log( 'MLAMappingHooksExample::mla_update_attachment_metadata_prefilter_filter $data = ' . var_export( $data, true ), 0 );
|
251 |
-
//error_log( 'MLAMappingHooksExample::mla_update_attachment_metadata_prefilter_filter $
|
252 |
//error_log( 'MLAMappingHooksExample::mla_update_attachment_metadata_prefilter_filter $options = ' . var_export( $options, true ), 0 );
|
253 |
|
254 |
-
/*
|
255 |
-
* If the metadata has been stripped, try to replace it
|
256 |
-
* NOTE: Uncomment/comment the "self::" and "$data = " lines to activate/deactivate
|
257 |
-
*/
|
258 |
-
if ( isset( $data['image_meta']['created_timestamp'] )
|
259 |
-
&& empty( $data['image_meta']['created_timestamp'] ) ) {
|
260 |
-
//self::_replace_jpeg_metadata( self::$image_metadata['postload_file']['file'], self::$raw_metadata );
|
261 |
-
//$data = wp_generate_attachment_metadata( $post_ID, self::$image_metadata['postload_file']['file'] );
|
262 |
-
//error_log( 'regenerated data = ' . var_export( $data, true ), 0 );
|
263 |
-
|
264 |
-
}
|
265 |
-
|
266 |
return $data;
|
267 |
} // mla_update_attachment_metadata_prefilter_filter
|
268 |
|
@@ -281,14 +264,35 @@ class MLAMappingHooksExample {
|
|
281 |
*
|
282 |
* @return array updated attachment metadata
|
283 |
*/
|
284 |
-
public static function mla_update_attachment_metadata_postfilter_filter( $data, $
|
285 |
//error_log( 'MLAMappingHooksExample::mla_update_attachment_metadata_postfilter_filter $data = ' . var_export( $data, true ), 0 );
|
286 |
-
//error_log( 'MLAMappingHooksExample::mla_update_attachment_metadata_postfilter_filter $
|
287 |
//error_log( 'MLAMappingHooksExample::mla_update_attachment_metadata_postfilter_filter $options = ' . var_export( $options, true ), 0 );
|
288 |
|
289 |
return $data;
|
290 |
} // mla_update_attachment_metadata_postfilter_filter
|
291 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
292 |
/**
|
293 |
* MLA Mapping Settings Filter
|
294 |
*
|
@@ -304,9 +308,9 @@ class MLAMappingHooksExample {
|
|
304 |
*
|
305 |
* @return array updated mapping rules
|
306 |
*/
|
307 |
-
public static function mla_mapping_settings_filter( $settings, $
|
308 |
//error_log( 'MLAMappingHooksExample::mla_mapping_settings_filter $settings = ' . var_export( $settings, true ), 0 );
|
309 |
-
//error_log( 'MLAMappingHooksExample::mla_mapping_settings_filter $
|
310 |
//error_log( 'MLAMappingHooksExample::mla_mapping_settings_filter $category = ' . var_export( $category, true ), 0 );
|
311 |
//error_log( 'MLAMappingHooksExample::mla_mapping_settings_filter $attachment_metadata = ' . var_export( $attachment_metadata, true ), 0 );
|
312 |
|
@@ -386,9 +390,9 @@ class MLAMappingHooksExample {
|
|
386 |
*
|
387 |
* @return array updated custom_field_mapping rule
|
388 |
*/
|
389 |
-
public static function mla_mapping_rule_filter( $setting_value, $
|
390 |
//error_log( 'MLAMappingHooksExample::mla_mapping_rule_filter $setting_value = ' . var_export( $setting_value, true ), 0 );
|
391 |
-
//error_log( 'MLAMappingHooksExample::mla_mapping_rule_filter $
|
392 |
//error_log( 'MLAMappingHooksExample::mla_mapping_rule_filter $category = ' . var_export( $category, true ), 0 );
|
393 |
//error_log( 'MLAMappingHooksExample::mla_mapping_rule_filter $attachment_metadata = ' . var_export( $attachment_metadata, true ), 0 );
|
394 |
|
@@ -418,7 +422,7 @@ class MLAMappingHooksExample {
|
|
418 |
public static function mla_mapping_custom_value_filter( $new_text, $setting_value, $post_id, $category, $attachment_metadata ) {
|
419 |
//error_log( 'MLAMappingHooksExample::mla_mapping_custom_value_filter $new_text = ' . var_export( $new_text, true ), 0 );
|
420 |
//error_log( 'MLAMappingHooksExample::mla_mapping_custom_value_filter $setting_value = ' . var_export( $setting_value, true ), 0 );
|
421 |
-
//error_log( 'MLAMappingHooksExample::mla_mapping_custom_value_filter $
|
422 |
//error_log( 'MLAMappingHooksExample::mla_mapping_custom_value_filter $category = ' . var_export( $category, true ), 0 );
|
423 |
//error_log( 'MLAMappingHooksExample::mla_mapping_custom_value_filter $attachment_metadata = ' . var_export( $attachment_metadata, true ), 0 );
|
424 |
|
@@ -459,7 +463,7 @@ class MLAMappingHooksExample {
|
|
459 |
public static function mla_mapping_iptc_value_filter( $iptc_value, $setting_value, $post_id, $category, $attachment_metadata ) {
|
460 |
//error_log( 'MLAMappingHooksExample::mla_mapping_iptc_value_filter $iptc_value = ' . var_export( $iptc_value, true ), 0 );
|
461 |
//error_log( 'MLAMappingHooksExample::mla_mapping_iptc_value_filter $setting_value = ' . var_export( $setting_value, true ), 0 );
|
462 |
-
//error_log( 'MLAMappingHooksExample::mla_mapping_iptc_value_filter $
|
463 |
//error_log( 'MLAMappingHooksExample::mla_mapping_iptc_value_filter $category = ' . var_export( $category, true ), 0 );
|
464 |
//error_log( 'MLAMappingHooksExample::mla_mapping_iptc_value_filter $attachment_metadata = ' . var_export( $attachment_metadata, true ), 0 );
|
465 |
|
@@ -501,7 +505,7 @@ class MLAMappingHooksExample {
|
|
501 |
public static function mla_mapping_exif_value_filter( $exif_value, $setting_value, $post_id, $category, $attachment_metadata ) {
|
502 |
//error_log( 'MLAMappingHooksExample::mla_mapping_exif_value_filter $exif_value = ' . var_export( $exif_value, true ), 0 );
|
503 |
//error_log( 'MLAMappingHooksExample::mla_mapping_exif_value_filter $setting_value = ' . var_export( $setting_value, true ), 0 );
|
504 |
-
//error_log( 'MLAMappingHooksExample::mla_mapping_exif_value_filter $
|
505 |
//error_log( 'MLAMappingHooksExample::mla_mapping_exif_value_filter $category = ' . var_export( $category, true ), 0 );
|
506 |
//error_log( 'MLAMappingHooksExample::mla_mapping_exif_value_filter $attachment_metadata = ' . var_export( $attachment_metadata, true ), 0 );
|
507 |
|
@@ -541,313 +545,223 @@ class MLAMappingHooksExample {
|
|
541 |
*
|
542 |
* @return array updated attachment's updates
|
543 |
*/
|
544 |
-
public static function mla_mapping_updates_filter( $updates, $
|
545 |
//error_log( 'MLAMappingHooksExample::mla_mapping_updates_filter $updates = ' . var_export( $updates, true ), 0 );
|
546 |
-
//error_log( 'MLAMappingHooksExample::mla_mapping_updates_filter $
|
547 |
//error_log( 'MLAMappingHooksExample::mla_mapping_updates_filter $category = ' . var_export( $category, true ), 0 );
|
548 |
//error_log( 'MLAMappingHooksExample::mla_mapping_updates_filter $settings = ' . var_export( $settings, true ), 0 );
|
549 |
//error_log( 'MLAMappingHooksExample::mla_mapping_updates_filter $attachment_metadata = ' . var_export( $attachment_metadata, true ), 0 );
|
550 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
551 |
/*
|
552 |
* To stop this rule's updates, return an empty array, i.e., return array();
|
553 |
*/
|
554 |
return $updates;
|
555 |
-
} // mla_mapping_updates_filter
|
556 |
-
|
557 |
-
/**
|
558 |
-
* MLA Mapping Updates Filter
|
559 |
-
*
|
560 |
-
* This filter is called AFTER all mapping rules are applied.
|
561 |
-
* You can add, change or remove updates for the attachment's
|
562 |
-
* standard fields, taxonomies and/or custom fields.
|
563 |
-
*
|
564 |
-
* @since 1.02
|
565 |
-
*
|
566 |
-
* @param array|false The entire tablist ( $tab = NULL ), a single tab entry or false if not found/not allowed.
|
567 |
-
* @param array The entire tablist
|
568 |
-
* @param string|NULL tab slug for single-element return or NULL to return entire tablist
|
569 |
-
*
|
570 |
-
* @return array updated attachment's updates
|
571 |
-
*/
|
572 |
-
public static function mla_get_options_tablist_filter( $results, $mla_tablist, $tab ) {
|
573 |
-
//error_log( 'MLAMappingHooksExample::mla_get_options_tablist_filter $results = ' . var_export( $results, true ), 0 );
|
574 |
-
//error_log( 'MLAMappingHooksExample::mla_get_options_tablist_filter $mla_tablist = ' . var_export( $mla_tablist, true ), 0 );
|
575 |
-
//error_log( 'MLAMappingHooksExample::mla_get_options_tablist_filter $tab = ' . var_export( $tab, true ), 0 );
|
576 |
|
577 |
/*
|
578 |
-
*
|
|
|
579 |
*/
|
580 |
-
return $results;
|
581 |
|
582 |
/*
|
583 |
-
*
|
584 |
-
*
|
|
|
585 |
*/
|
586 |
-
if (
|
587 |
-
|
588 |
-
}
|
589 |
-
$
|
|
|
590 |
}
|
591 |
|
592 |
-
|
593 |
-
|
594 |
-
|
595 |
-
|
596 |
-
|
597 |
-
|
598 |
-
|
599 |
-
|
600 |
-
const EOI = 0xD9; // End of image
|
601 |
-
const SOS = 0xDA; // Start of scan (image data)
|
602 |
-
const APP0 = 0xE0; // Application segment 0 JFIF Header
|
603 |
-
const APP1 = 0xE1; // Application segment 1 EXIF/XMP
|
604 |
-
const APP2 = 0xE2; // Application segment 2 EXIF Flashpix extensions
|
605 |
-
const APP13 = 0xED; // Application segment 13 IPTC
|
606 |
-
const COM = 0xFE; // Comment
|
607 |
|
608 |
-
|
609 |
-
|
610 |
-
|
611 |
-
|
612 |
-
|
613 |
-
|
614 |
-
|
615 |
-
|
616 |
-
* length => number of bytes in the section, including the "0xFF", marker byte and length field (if applicable)
|
617 |
-
*
|
618 |
-
* @since 1.01
|
619 |
-
*
|
620 |
-
* @param string File Contents
|
621 |
-
*
|
622 |
-
* @return array section list ( index => array( 'marker', 'offset', 'length' )
|
623 |
-
*/
|
624 |
-
private static function _enumerate_jpeg_sections( &$file_contents ) {
|
625 |
-
$file_length = strlen( $file_contents );
|
626 |
-
$file_offset = 0;
|
627 |
-
$section_array = array();
|
628 |
-
|
629 |
-
while ( $file_offset < $file_length ) {
|
630 |
-
$section_value = array();
|
631 |
-
|
632 |
-
// Find a marker
|
633 |
-
for ( $i = 0; $i < 7; $i++ ) {
|
634 |
-
if ( 0xFF != ord( $file_contents[ $file_offset + $i ] ) ) {
|
635 |
-
break;
|
636 |
-
}
|
637 |
}
|
638 |
|
639 |
-
|
640 |
-
|
641 |
-
|
642 |
-
$section_value['offset'] = $file_offset + ( $i - 1);
|
643 |
-
|
644 |
-
if ( ( self::SOI == $marker ) || ( self::EOI == $marker ) ) {
|
645 |
-
$file_offset = $file_offset + ( $i + 1 );
|
646 |
-
} elseif ( self::SOS == $marker ) {
|
647 |
-
// Start of Scan precedes image data; skip to end of file/image
|
648 |
-
$file_offset = $file_length - 2;
|
649 |
-
|
650 |
-
// Scan backwards for End of Image marker
|
651 |
-
while ( ( 0xFF != ord( $file_contents[ $file_offset ] ) ) || ( self::EOI != ord( $file_contents[ $file_offset + 1 ] ) ) ) {
|
652 |
-
$file_offset--;
|
653 |
-
if ( $file_offset == $start_of_image ) {
|
654 |
-
// Give up - no End of Image marker
|
655 |
-
$file_offset = $file_length;
|
656 |
-
break;
|
657 |
-
}
|
658 |
-
}
|
659 |
-
} else {
|
660 |
-
// Big Endian length
|
661 |
-
$length = 256 * ord( $file_contents[ $file_offset + ++$i ] );
|
662 |
-
$length += ord( $file_contents[ $file_offset + ++$i ] );
|
663 |
-
$file_offset = $section_value['offset'] + 2 + $length;
|
664 |
-
}
|
665 |
}
|
666 |
-
|
667 |
-
|
668 |
-
|
669 |
-
|
670 |
-
|
671 |
-
|
672 |
-
|
673 |
-
$file_offset = $file_offset + ( $i + 1 );
|
674 |
-
|
675 |
-
while ( $file_offset < $file_length ) {
|
676 |
-
if ( 0xFF == ord( $file_contents[ $file_offset ] ) ) {
|
677 |
-
break;
|
678 |
-
} else {
|
679 |
-
$file_offset++;
|
680 |
-
}
|
681 |
-
}
|
682 |
-
} // invalid marker
|
683 |
-
|
684 |
-
$section_value['length'] = $file_offset - $section_value['offset'];
|
685 |
-
$section_array[] = $section_value;
|
686 |
-
//error_log( 'MLAMappingHooksExample::_enumerate_jpeg_sections $section_value = ' . var_export( $section_value, true ), 0 );
|
687 |
-
} // while offset < length
|
688 |
-
|
689 |
-
return $section_array;
|
690 |
-
} // _enumerate_jpeg_sections
|
691 |
|
692 |
/**
|
693 |
-
*
|
694 |
-
*
|
695 |
-
* Returns an array of section content, indexed by the section order
|
696 |
-
*
|
697 |
-
* Each array element is an array, containing:
|
698 |
-
* marker => section marker, e.g., 0xD8, 0xE0, 0xED
|
699 |
-
* content => data bytes in the section
|
700 |
*
|
701 |
* @since 1.01
|
702 |
*
|
703 |
-
* @
|
704 |
-
*
|
705 |
-
* @return array section list ( index => array( 'marker', 'content' )
|
706 |
*/
|
707 |
-
private static
|
708 |
-
$metadata = array();
|
709 |
-
$file_contents = file_get_contents( $path, true );
|
710 |
-
if ( $file_contents ) {
|
711 |
-
$sections = self::_enumerate_jpeg_sections( $file_contents );
|
712 |
-
foreach( $sections as $section ) {
|
713 |
-
if ( in_array( $section['marker'], array( self::APP1, self::APP2, self::APP13, self::COM ) ) ) {
|
714 |
-
$metadata[] = array( 'marker' => $section['marker'],
|
715 |
-
'content' => substr( $file_contents, $section['offset'], $section['length'] )
|
716 |
-
);
|
717 |
-
} // found metadata
|
718 |
-
} // foreach section
|
719 |
-
}
|
720 |
-
|
721 |
-
return $metadata;
|
722 |
-
} // _extract_jpeg_metadata
|
723 |
|
724 |
/**
|
725 |
-
*
|
726 |
-
|
|
|
|
|
|
|
|
|
727 |
* @since 1.01
|
728 |
*
|
729 |
-
* @param
|
730 |
-
* @param
|
731 |
*
|
732 |
* @return void
|
733 |
*/
|
734 |
-
private static function
|
735 |
-
|
736 |
-
|
737 |
-
|
738 |
-
|
739 |
-
|
740 |
-
|
741 |
-
|
742 |
-
|
743 |
-
|
744 |
-
|
745 |
-
|
746 |
-
foreach ( $metadata as $section ) {
|
747 |
-
if ( self::COM == $section['marker'] ) {
|
748 |
-
$COM_section = $section['content'];
|
749 |
}
|
750 |
-
}
|
751 |
|
752 |
-
|
753 |
-
|
754 |
-
|
755 |
-
*/
|
756 |
-
$SOI_section = NULL;
|
757 |
-
$APP0_section = NULL;
|
758 |
-
$destination_sections = array ();
|
759 |
-
$file_contents = file_get_contents( $path, true );
|
760 |
-
if ( $file_contents ) {
|
761 |
-
$destination_sections = self::_enumerate_jpeg_sections( $file_contents );
|
762 |
-
foreach ( $destination_sections as $index => $value ) {
|
763 |
-
if ( self::SOI == $value['marker'] ) {
|
764 |
-
$SOI_section = substr( $file_contents, $value['offset'], $value['length'] );
|
765 |
-
unset( $destination_sections[ $index ] );
|
766 |
-
} elseif ( self::APP0 == $value['marker'] ) {
|
767 |
-
$APP0_section = substr( $file_contents, $value['offset'], $value['length'] );
|
768 |
-
unset( $destination_sections[ $index ] );
|
769 |
-
} elseif ( self::COM == $value['marker'] ) {
|
770 |
-
$COM_section = substr( $file_contents, $value['offset'], $value['length'] );
|
771 |
-
unset( $destination_sections[ $index ] );
|
772 |
-
} elseif ( ( self::APP1 == $value['marker'] ) || ( self::APP2 == $value['marker'] ) || ( self::APP13 == $value['marker'] ) ) {
|
773 |
-
unset( $destination_sections[ $index ] );
|
774 |
-
}
|
775 |
}
|
776 |
-
//error_log( 'MLAMappingHooksExample::_replace_jpeg_metadata $SOI_section = ' . var_export( $SOI_section, true ), 0 );
|
777 |
-
//error_log( 'MLAMappingHooksExample::_replace_jpeg_metadata $APP0_section = ' . var_export( $APP0_section, true ), 0 );
|
778 |
-
//error_log( 'MLAMappingHooksExample::_replace_jpeg_metadata $COM_section = ' . var_export( $COM_section, true ), 0 );
|
779 |
-
//error_log( 'MLAMappingHooksExample::_replace_jpeg_metadata $destination_sections = ' . var_export( $destination_sections, true ), 0 );
|
780 |
|
781 |
-
|
782 |
-
|
|
|
|
|
|
|
783 |
}
|
784 |
|
785 |
-
|
786 |
-
|
787 |
-
|
788 |
-
|
789 |
return;
|
790 |
}
|
|
|
791 |
|
792 |
-
|
793 |
-
|
794 |
-
|
795 |
-
@unlink( $temp_path );
|
796 |
-
return;
|
797 |
-
}
|
798 |
|
799 |
-
|
800 |
-
|
801 |
-
|
802 |
-
|
803 |
-
|
804 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
805 |
|
806 |
-
|
807 |
-
if ( false === @fwrite( $temp_handle, $COM_section ) ) {
|
808 |
-
//error_log( 'MLAMappingHooksExample::_replace_jpeg_metadata fwrite COM error = ' . var_export( error_get_last(), true ), 0 );
|
809 |
-
@fclose( $temp_handle );
|
810 |
-
@unlink( $temp_path );
|
811 |
-
return;
|
812 |
-
}
|
813 |
-
}
|
814 |
|
815 |
-
|
816 |
-
|
817 |
-
|
818 |
-
|
819 |
-
|
820 |
-
|
821 |
-
|
822 |
-
|
823 |
-
}
|
824 |
|
825 |
-
|
826 |
-
|
827 |
-
|
828 |
-
|
829 |
-
|
830 |
-
|
831 |
-
|
832 |
-
|
833 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
834 |
|
835 |
-
|
836 |
-
|
837 |
-
|
838 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
839 |
|
840 |
-
|
841 |
-
|
842 |
-
|
843 |
-
|
844 |
|
845 |
-
|
846 |
-
|
847 |
-
|
848 |
-
|
849 |
-
|
850 |
-
|
|
|
|
|
|
|
851 |
} //MLAMappingHooksExample
|
852 |
|
853 |
/*
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Provides two examples of the filters provided by the IPTC/EXIF and Custom Field mapping features
|
4 |
*
|
5 |
+
* - A custom field mapping rule is used to trigger export to an XML file.
|
6 |
+
* - The Title and ALT Text values are cleaned up, replacing dashes, underscores and periods with spaces.
|
7 |
+
*
|
8 |
+
* All of the action takes place in the "mla_mapping_updates" filter,
|
9 |
+
* a supporting function "_export_this_item" and the "mla_end_mapping" action.
|
10 |
*
|
11 |
* @package MLA Mapping Hooks Example
|
12 |
+
* @version 1.01
|
13 |
*/
|
14 |
|
15 |
/*
|
16 |
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
|
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_updates', 'MLAMappingHooksExample::mla_mapping_updates_filter', 10, 5 );
|
90 |
+
add_action( 'mla_end_mapping', 'MLAMappingHooksExample::mla_end_mapping_action', 10, 0 );
|
91 |
|
92 |
add_filter( 'mla_get_options_tablist', 'MLAMappingHooksExample::mla_get_options_tablist_filter', 10, 3 );
|
93 |
}
|
106 |
* @var array
|
107 |
*/
|
108 |
private static $image_metadata = array();
|
|
|
109 |
|
110 |
/**
|
111 |
* MLA Mapping Upload Prefilter
|
137 |
self::$image_metadata = $image_metadata;
|
138 |
self::$image_metadata['preload_file'] = $file;
|
139 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
140 |
return $file;
|
141 |
} // mla_upload_prefilter_filter
|
142 |
|
184 |
*
|
185 |
* @return void
|
186 |
*/
|
187 |
+
public static function mla_add_attachment_action( $post_id ) {
|
188 |
+
//error_log( 'MLAMappingHooksExample::mla_add_attachment_action $post_id = ' . var_export( $post_id, true ), 0 );
|
189 |
|
190 |
/*
|
191 |
* Save the information for use in the later filters
|
192 |
*/
|
193 |
+
self::$image_metadata['post_id'] = $post_id;
|
194 |
} // mla_add_attachment_action
|
195 |
|
196 |
/**
|
214 |
*
|
215 |
* @return array updated processing options
|
216 |
*/
|
217 |
+
public static function mla_update_attachment_metadata_options_filter( $options, $data, $post_id ) {
|
218 |
//error_log( 'MLAMappingHooksExample::mla_update_attachment_metadata_options_filter $options = ' . var_export( $options, true ), 0 );
|
219 |
//error_log( 'MLAMappingHooksExample::mla_update_attachment_metadata_options_filter $data = ' . var_export( $data, true ), 0 );
|
220 |
+
//error_log( 'MLAMappingHooksExample::mla_update_attachment_metadata_options_filter $post_id = ' . var_export( $post_id, true ), 0 );
|
221 |
|
222 |
return $options;
|
223 |
} // mla_update_attachment_metadata_prefilter_filter
|
241 |
*
|
242 |
* @return array updated attachment metadata
|
243 |
*/
|
244 |
+
public static function mla_update_attachment_metadata_prefilter_filter( $data, $post_id, $options ) {
|
245 |
//error_log( 'MLAMappingHooksExample::mla_update_attachment_metadata_prefilter_filter $data = ' . var_export( $data, true ), 0 );
|
246 |
+
//error_log( 'MLAMappingHooksExample::mla_update_attachment_metadata_prefilter_filter $post_id = ' . var_export( $post_id, true ), 0 );
|
247 |
//error_log( 'MLAMappingHooksExample::mla_update_attachment_metadata_prefilter_filter $options = ' . var_export( $options, true ), 0 );
|
248 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
249 |
return $data;
|
250 |
} // mla_update_attachment_metadata_prefilter_filter
|
251 |
|
264 |
*
|
265 |
* @return array updated attachment metadata
|
266 |
*/
|
267 |
+
public static function mla_update_attachment_metadata_postfilter_filter( $data, $post_id, $options ) {
|
268 |
//error_log( 'MLAMappingHooksExample::mla_update_attachment_metadata_postfilter_filter $data = ' . var_export( $data, true ), 0 );
|
269 |
+
//error_log( 'MLAMappingHooksExample::mla_update_attachment_metadata_postfilter_filter $post_id = ' . var_export( $post_id, true ), 0 );
|
270 |
//error_log( 'MLAMappingHooksExample::mla_update_attachment_metadata_postfilter_filter $options = ' . var_export( $options, true ), 0 );
|
271 |
|
272 |
return $data;
|
273 |
} // mla_update_attachment_metadata_postfilter_filter
|
274 |
|
275 |
+
/**
|
276 |
+
* MLA Begin Mapping Action
|
277 |
+
*
|
278 |
+
* This action is called once, before any mapping rules are executed for any item(s).
|
279 |
+
*
|
280 |
+
* @since 1.01
|
281 |
+
*
|
282 |
+
* @param string what kind of mapping action is starting:
|
283 |
+
* single_custom, single_iptc_exif, bulk_custom, bulk_iptc_exif,
|
284 |
+
* create_metadata, update_metadata, custom_fields, custom_rule,
|
285 |
+
* iptc_exif_standard, iptc_exif_taxonomy, iptc_exif_custom,
|
286 |
+
* iptc_exif_custom_rule
|
287 |
+
* @param mixed Attachment ID or NULL, depending on scope
|
288 |
+
*
|
289 |
+
* @return void updated mapping rules
|
290 |
+
*/
|
291 |
+
public static function mla_begin_mapping_action( $source, $post_id = NULL ) {
|
292 |
+
//error_log( 'MLAMappingHooksExample::mla_begin_mapping_action $source = ' . var_export( $source, true ), 0 );
|
293 |
+
//error_log( 'MLAMappingHooksExample::mla_begin_mapping_action $post_id = ' . var_export( $post_id, true ), 0 );
|
294 |
+
} // mla_begin_mapping_action
|
295 |
+
|
296 |
/**
|
297 |
* MLA Mapping Settings Filter
|
298 |
*
|
308 |
*
|
309 |
* @return array updated mapping rules
|
310 |
*/
|
311 |
+
public static function mla_mapping_settings_filter( $settings, $post_id, $category, $attachment_metadata ) {
|
312 |
//error_log( 'MLAMappingHooksExample::mla_mapping_settings_filter $settings = ' . var_export( $settings, true ), 0 );
|
313 |
+
//error_log( 'MLAMappingHooksExample::mla_mapping_settings_filter $post_id = ' . var_export( $post_id, true ), 0 );
|
314 |
//error_log( 'MLAMappingHooksExample::mla_mapping_settings_filter $category = ' . var_export( $category, true ), 0 );
|
315 |
//error_log( 'MLAMappingHooksExample::mla_mapping_settings_filter $attachment_metadata = ' . var_export( $attachment_metadata, true ), 0 );
|
316 |
|
390 |
*
|
391 |
* @return array updated custom_field_mapping rule
|
392 |
*/
|
393 |
+
public static function mla_mapping_rule_filter( $setting_value, $post_id, $category, $attachment_metadata ) {
|
394 |
//error_log( 'MLAMappingHooksExample::mla_mapping_rule_filter $setting_value = ' . var_export( $setting_value, true ), 0 );
|
395 |
+
//error_log( 'MLAMappingHooksExample::mla_mapping_rule_filter $post_id = ' . var_export( $post_id, true ), 0 );
|
396 |
//error_log( 'MLAMappingHooksExample::mla_mapping_rule_filter $category = ' . var_export( $category, true ), 0 );
|
397 |
//error_log( 'MLAMappingHooksExample::mla_mapping_rule_filter $attachment_metadata = ' . var_export( $attachment_metadata, true ), 0 );
|
398 |
|
422 |
public static function mla_mapping_custom_value_filter( $new_text, $setting_value, $post_id, $category, $attachment_metadata ) {
|
423 |
//error_log( 'MLAMappingHooksExample::mla_mapping_custom_value_filter $new_text = ' . var_export( $new_text, true ), 0 );
|
424 |
//error_log( 'MLAMappingHooksExample::mla_mapping_custom_value_filter $setting_value = ' . var_export( $setting_value, true ), 0 );
|
425 |
+
//error_log( 'MLAMappingHooksExample::mla_mapping_custom_value_filter $post_id = ' . var_export( $post_id, true ), 0 );
|
426 |
//error_log( 'MLAMappingHooksExample::mla_mapping_custom_value_filter $category = ' . var_export( $category, true ), 0 );
|
427 |
//error_log( 'MLAMappingHooksExample::mla_mapping_custom_value_filter $attachment_metadata = ' . var_export( $attachment_metadata, true ), 0 );
|
428 |
|
463 |
public static function mla_mapping_iptc_value_filter( $iptc_value, $setting_value, $post_id, $category, $attachment_metadata ) {
|
464 |
//error_log( 'MLAMappingHooksExample::mla_mapping_iptc_value_filter $iptc_value = ' . var_export( $iptc_value, true ), 0 );
|
465 |
//error_log( 'MLAMappingHooksExample::mla_mapping_iptc_value_filter $setting_value = ' . var_export( $setting_value, true ), 0 );
|
466 |
+
//error_log( 'MLAMappingHooksExample::mla_mapping_iptc_value_filter $post_id = ' . var_export( $post_id, true ), 0 );
|
467 |
//error_log( 'MLAMappingHooksExample::mla_mapping_iptc_value_filter $category = ' . var_export( $category, true ), 0 );
|
468 |
//error_log( 'MLAMappingHooksExample::mla_mapping_iptc_value_filter $attachment_metadata = ' . var_export( $attachment_metadata, true ), 0 );
|
469 |
|
505 |
public static function mla_mapping_exif_value_filter( $exif_value, $setting_value, $post_id, $category, $attachment_metadata ) {
|
506 |
//error_log( 'MLAMappingHooksExample::mla_mapping_exif_value_filter $exif_value = ' . var_export( $exif_value, true ), 0 );
|
507 |
//error_log( 'MLAMappingHooksExample::mla_mapping_exif_value_filter $setting_value = ' . var_export( $setting_value, true ), 0 );
|
508 |
+
//error_log( 'MLAMappingHooksExample::mla_mapping_exif_value_filter $post_id = ' . var_export( $post_id, true ), 0 );
|
509 |
//error_log( 'MLAMappingHooksExample::mla_mapping_exif_value_filter $category = ' . var_export( $category, true ), 0 );
|
510 |
//error_log( 'MLAMappingHooksExample::mla_mapping_exif_value_filter $attachment_metadata = ' . var_export( $attachment_metadata, true ), 0 );
|
511 |
|
545 |
*
|
546 |
* @return array updated attachment's updates
|
547 |
*/
|
548 |
+
public static function mla_mapping_updates_filter( $updates, $post_id, $category, $settings, $attachment_metadata ) {
|
549 |
//error_log( 'MLAMappingHooksExample::mla_mapping_updates_filter $updates = ' . var_export( $updates, true ), 0 );
|
550 |
+
//error_log( 'MLAMappingHooksExample::mla_mapping_updates_filter $post_id = ' . var_export( $post_id, true ), 0 );
|
551 |
//error_log( 'MLAMappingHooksExample::mla_mapping_updates_filter $category = ' . var_export( $category, true ), 0 );
|
552 |
//error_log( 'MLAMappingHooksExample::mla_mapping_updates_filter $settings = ' . var_export( $settings, true ), 0 );
|
553 |
//error_log( 'MLAMappingHooksExample::mla_mapping_updates_filter $attachment_metadata = ' . var_export( $attachment_metadata, true ), 0 );
|
554 |
|
555 |
+
/*
|
556 |
+
* Look for the "file export" rule; call the export function if there's a match.
|
557 |
+
* Remove the space between "*" and "/" in the next line to activate this code.
|
558 |
+
*/
|
559 |
+
foreach ($settings as $key => $setting ) {
|
560 |
+
if ( 'export' == sanitize_title( $key ) && 'none' == $setting['data_source'] && false !== strpos( $setting['meta_name'], '.xml' ) ) {
|
561 |
+
self::_export_this_item( $post_id, $setting['meta_name'] );
|
562 |
+
}
|
563 |
+
} // */
|
564 |
+
|
565 |
/*
|
566 |
* To stop this rule's updates, return an empty array, i.e., return array();
|
567 |
*/
|
568 |
return $updates;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
569 |
|
570 |
/*
|
571 |
+
* Comment out the above return statement to fall through to this example,
|
572 |
+
* which spruces up the post Title and copies the Title to the ALT Text.
|
573 |
*/
|
|
|
574 |
|
575 |
/*
|
576 |
+
* If $updates[ 'post_title' ] is set, some mapping rule
|
577 |
+
* has been set up, so we respect the result. If not,
|
578 |
+
* use whatever the current Title value is.
|
579 |
*/
|
580 |
+
if ( isset( $updates[ 'post_title' ] ) ) {
|
581 |
+
$old_value = $updates[ 'post_title' ];
|
582 |
+
} else {
|
583 |
+
$post = get_post( $post_id );
|
584 |
+
$old_value = $post->post_title;
|
585 |
}
|
586 |
|
587 |
+
/*
|
588 |
+
* Clean up the Title value. If the cleanup has changed the value,
|
589 |
+
* put the new value in the $updates array.
|
590 |
+
*/
|
591 |
+
$new_title = str_replace( array( '-', '_', '.' ), ' ', $old_value );
|
592 |
+
if ( $old_value != $new_title ) {
|
593 |
+
$updates[ 'post_title' ] = $new_title;
|
594 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
595 |
|
596 |
+
// Only replace ALT Text if Image Metadata is present
|
597 |
+
$old_value = get_metadata( 'post', $post_id, '_wp_attachment_metadata', true );
|
598 |
+
if ( ! empty( $old_value ) ) {
|
599 |
+
// Find the current ALT Text value
|
600 |
+
if ( isset( $updates[ 'image_alt' ] ) ) {
|
601 |
+
$old_value = $updates[ 'image_alt' ];
|
602 |
+
} else {
|
603 |
+
$old_value = get_metadata( 'post', $post_id, '_wp_attachment_image_alt', true );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
604 |
}
|
605 |
|
606 |
+
// Replace the ALT Text value with the clean Title
|
607 |
+
if ( $old_value != $new_title ) {
|
608 |
+
$updates[ 'image_alt' ] = $new_title;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
609 |
}
|
610 |
+
}
|
611 |
+
|
612 |
+
/*
|
613 |
+
* To stop this rule's updates, return an empty array, i.e., return array();
|
614 |
+
*/
|
615 |
+
return $updates;
|
616 |
+
} // mla_mapping_updates_filter
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
617 |
|
618 |
/**
|
619 |
+
* Share the file handle between _export_this_item and mla_end_mapping_action
|
|
|
|
|
|
|
|
|
|
|
|
|
620 |
*
|
621 |
* @since 1.01
|
622 |
*
|
623 |
+
* @var integer Export file handle
|
|
|
|
|
624 |
*/
|
625 |
+
private static $file_handle = NULL;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
626 |
|
627 |
/**
|
628 |
+
* Export data for one or more items to an XML file
|
629 |
+
*
|
630 |
+
* This function is called from the mla_mapping_updates_filter(),
|
631 |
+
* just above, when the "export" rule is defined. It writes information
|
632 |
+
* about the item and its tags to an XML file.
|
633 |
+
*
|
634 |
* @since 1.01
|
635 |
*
|
636 |
+
* @param integer The ID value of the current item/attachment
|
637 |
+
* @param string The name of the output file, e.g., "data.xml"
|
638 |
*
|
639 |
* @return void
|
640 |
*/
|
641 |
+
private static function _export_this_item( $post_id, $file ) {
|
642 |
+
static $filename = NULL;
|
643 |
+
|
644 |
+
// create/open the file on first call
|
645 |
+
if ( NULL == $filename ) {
|
646 |
+
$filename = MLA_BACKUP_DIR . $file;
|
647 |
+
|
648 |
+
// Make sure the directory exists and is writable
|
649 |
+
if ( ! file_exists( MLA_BACKUP_DIR ) && ! @mkdir( MLA_BACKUP_DIR ) ) {
|
650 |
+
return; // Does not exist and cannot create it
|
651 |
+
} elseif ( ! is_writable( MLA_BACKUP_DIR ) && ! @chmod( MLA_BACKUP_DIR , '0777') ) {
|
652 |
+
return; // Is not writable and cannot make it so
|
|
|
|
|
|
|
653 |
}
|
|
|
654 |
|
655 |
+
// Every directory should have an empty index.php file for security
|
656 |
+
if ( ! file_exists( MLA_BACKUP_DIR . 'index.php') ) {
|
657 |
+
@touch( MLA_BACKUP_DIR . 'index.php');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
658 |
}
|
|
|
|
|
|
|
|
|
659 |
|
660 |
+
// Open the file for write access
|
661 |
+
self::$file_handle = @fopen( $filename, 'w' );
|
662 |
+
if ( ! self::$file_handle ) {
|
663 |
+
self::$file_handle = NULL;
|
664 |
+
return; // Cannot open a writable file
|
665 |
}
|
666 |
|
667 |
+
// Write the file header
|
668 |
+
if ( false === @fwrite( self::$file_handle, "<items>\n" ) ) {
|
669 |
+
@fclose( self::$file_handle );
|
670 |
+
self::$file_handle = NULL;
|
671 |
return;
|
672 |
}
|
673 |
+
} // First call
|
674 |
|
675 |
+
if ( NULL == self::$file_handle ) {
|
676 |
+
return; // Don't have a writable file
|
677 |
+
}
|
|
|
|
|
|
|
678 |
|
679 |
+
/*
|
680 |
+
* Get the post information and assigned terms. You can use any taxonomy (slug) you want:
|
681 |
+
* Categories -> category Tags -> post_tag
|
682 |
+
* Att. Categories -> attachment_category Att. Tags -> attachment_tag
|
683 |
+
*/
|
684 |
+
$post = get_post( $post_id );
|
685 |
+
$terms = wp_get_post_terms( $post_id, 'post_tag' );
|
686 |
+
|
687 |
+
// Compose the item, line by line
|
688 |
+
$item = array();
|
689 |
+
$item[] = "\t<item>";
|
690 |
+
$item[] = "\t\t<id>" . absint( $post_id ) . '</id>';
|
691 |
+
$item[] = "\t\t<title>" . $post->post_title . '</title>';
|
692 |
+
$item[] = "\t\t<url>" . get_attachment_link( $post_id ) . '</url>';
|
693 |
+
//$item[] = "\t\t<file>" . wp_get_attachment_url( $post_id ) . '</file>';
|
694 |
+
$item[] = "\t\t<post_date>" . $post->post_date . '</post_date>';
|
695 |
+
|
696 |
+
foreach( $terms as $term ) {
|
697 |
+
$item[] = "\t\t<tag>" . $term->name . '</tag>';
|
698 |
+
}
|
699 |
|
700 |
+
$item[] = "\t</item>";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
701 |
|
702 |
+
// Write the item to the file
|
703 |
+
$item = implode( "\n", $item );
|
704 |
+
if ( false === @fwrite( self::$file_handle, $item ) ) {
|
705 |
+
@fclose( self::$file_handle );
|
706 |
+
self::$file_handle = NULL;
|
707 |
+
return;
|
708 |
+
}
|
709 |
+
} // _export_this_item
|
|
|
710 |
|
711 |
+
/**
|
712 |
+
* MLA End Mapping Action
|
713 |
+
*
|
714 |
+
* This action is called once, after all mapping rules are executed for all item(s).
|
715 |
+
*
|
716 |
+
* @since 1.01
|
717 |
+
*
|
718 |
+
* @return void
|
719 |
+
*/
|
720 |
+
public static function mla_end_mapping_action() {
|
721 |
+
//error_log( 'MLAMappingHooksExample::mla_end_mapping_action', 0 );
|
722 |
+
|
723 |
+
// If the Export file is open, write the trailer and close it
|
724 |
+
if ( NULL !== self::$file_handle ) {
|
725 |
+
@fwrite( self::$file_handle, "</items>\n" );
|
726 |
+
@fclose( self::$file_handle );
|
727 |
+
self::$file_handle = NULL;
|
728 |
+
//error_log( 'MLAMappingHooksExample::mla_end_mapping_action Export file closed', 0 );
|
729 |
+
}
|
730 |
+
} // mla_end_mapping_action
|
731 |
|
732 |
+
/**
|
733 |
+
* MLA Settings Tab List Filter
|
734 |
+
*
|
735 |
+
* This filter is before the Settings/Media Library Assistant screen is displayed.
|
736 |
+
* You can remove one or more tabs from the default list to prevent their display and use.
|
737 |
+
*
|
738 |
+
* @since 1.00
|
739 |
+
*
|
740 |
+
* @param array|false The entire tablist ( $tab = NULL ), a single tab entry or false if not found/not allowed.
|
741 |
+
* @param array The entire tablist
|
742 |
+
* @param string|NULL tab slug for single-element return or NULL to return entire tablist
|
743 |
+
*
|
744 |
+
* @return array updated tablist
|
745 |
+
*/
|
746 |
+
public static function mla_get_options_tablist_filter( $results, $mla_tablist, $tab ) {
|
747 |
+
//error_log( 'MLAMappingHooksExample::mla_get_options_tablist_filter $results = ' . var_export( $results, true ), 0 );
|
748 |
+
//error_log( 'MLAMappingHooksExample::mla_get_options_tablist_filter $mla_tablist = ' . var_export( $mla_tablist, true ), 0 );
|
749 |
+
//error_log( 'MLAMappingHooksExample::mla_get_options_tablist_filter $tab = ' . var_export( $tab, true ), 0 );
|
750 |
|
751 |
+
/*
|
752 |
+
* Return an updated $mla_tablist ( $tab = NULL ), an updated single element or false
|
753 |
+
*/
|
754 |
+
return $results;
|
755 |
|
756 |
+
/*
|
757 |
+
* Comment out the above return statement to fall through to the example, which removes the "Uploads" tab.
|
758 |
+
*/
|
759 |
+
if ( NULL == $tab ) {
|
760 |
+
unset( $results['upload'] );
|
761 |
+
}
|
762 |
+
|
763 |
+
return $results;
|
764 |
+
} // mla_get_options_tablist_filter
|
765 |
} //MLAMappingHooksExample
|
766 |
|
767 |
/*
|
examples/mla-media-modal-hooks-example.php.txt
ADDED
@@ -0,0 +1,126 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Provides an example of the filters provided by the "Media Manager Enhancements" feature
|
4 |
+
*
|
5 |
+
* In this example the initial value for the MIME Type dropdown control is changed.
|
6 |
+
*
|
7 |
+
* @package MLA Media Modal Hooks Example
|
8 |
+
* @version 1.00
|
9 |
+
*/
|
10 |
+
|
11 |
+
/*
|
12 |
+
Plugin Name: MLA Media Modal Hooks Example
|
13 |
+
Plugin URI: http://fairtradejudaica.org/media-library-assistant-a-wordpress-plugin/
|
14 |
+
Description: Provides an example of the filters provided by the "Media Manager Enhancements" feature
|
15 |
+
Author: David Lingren
|
16 |
+
Version: 1.00
|
17 |
+
Author URI: http://fairtradejudaica.org/our-story/staff/
|
18 |
+
|
19 |
+
Copyright 2014 David Lingren
|
20 |
+
|
21 |
+
This program is free software; you can redistribute it and/or modify
|
22 |
+
it under the terms of the GNU General Public License as published by
|
23 |
+
the Free Software Foundation; either version 2 of the License, or
|
24 |
+
(at your option) any later version.
|
25 |
+
|
26 |
+
This program is distributed in the hope that it will be useful,
|
27 |
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
28 |
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
29 |
+
GNU General Public License for more details.
|
30 |
+
|
31 |
+
You can get a copy of the GNU General Public License by writing to the
|
32 |
+
Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
|
33 |
+
*/
|
34 |
+
|
35 |
+
/**
|
36 |
+
* Class MLA Media Modal Hooks Example hooks all of the filters provided by the "Media Manager Enhancements" feature
|
37 |
+
*
|
38 |
+
* Call it anything you want, but give it an unlikely and hopefully unique name. Hiding enerything
|
39 |
+
* else inside a class means this is the only name you have to worry about.
|
40 |
+
*
|
41 |
+
* @package MLA Media Modal Hooks Example
|
42 |
+
* @since 1.00
|
43 |
+
*/
|
44 |
+
class MLAMediaModalExample {
|
45 |
+
/**
|
46 |
+
* Initialization function, similar to __construct()
|
47 |
+
*
|
48 |
+
* Installs filters and actions that handle the MLA hooks for uploading and mapping.
|
49 |
+
*
|
50 |
+
* @since 1.00
|
51 |
+
*
|
52 |
+
* @return void
|
53 |
+
*/
|
54 |
+
public static function initialize() {
|
55 |
+
/*
|
56 |
+
* The filters are only useful in the admin section; exit if in the "front-end" posts/pages.
|
57 |
+
*/
|
58 |
+
if ( ! is_admin() )
|
59 |
+
return;
|
60 |
+
|
61 |
+
/*
|
62 |
+
* add_filter parameters:
|
63 |
+
* $tag - name of the hook you're filtering; defined by [mla_gallery]
|
64 |
+
* $function_to_add - function to be called when [mla_gallery] applies the filter
|
65 |
+
* $priority - default 10; lower runs earlier, higher runs later
|
66 |
+
* $accepted_args - number of arguments your function accepts
|
67 |
+
*
|
68 |
+
* Comment out the filters you don't need; save them for future use
|
69 |
+
*/
|
70 |
+
add_filter( 'mla_media_modal_initial_filters', 'MLAMediaModalExample::mla_media_modal_initial_filters_filter', 10, 1 );
|
71 |
+
}
|
72 |
+
|
73 |
+
/**
|
74 |
+
* MLA Edit Media Initial Filters Filter
|
75 |
+
*
|
76 |
+
* This filter gives you an opportunity to change the initial values of the
|
77 |
+
* Media Manager Modal Window toolbar controls.
|
78 |
+
*
|
79 |
+
* @since 1.00
|
80 |
+
*
|
81 |
+
* @param array toolbar control initial values
|
82 |
+
*
|
83 |
+
* @return array updated toolbar control initial values
|
84 |
+
*/
|
85 |
+
public static function mla_media_modal_initial_filters_filter( $initial_values ) {
|
86 |
+
/*
|
87 |
+
* Uncomment the error_log statements in any of the filters to see what's passed in
|
88 |
+
*/
|
89 |
+
//error_log( 'MLAMediaModalExample::mla_media_modal_initial_filters_filter $initial_values = ' . var_export( $initial_values, true ), 0 );
|
90 |
+
|
91 |
+
/*
|
92 |
+
* The default initial values are:
|
93 |
+
*
|
94 |
+
* $initial_values = array(
|
95 |
+
* 'filterMime' => 'all',
|
96 |
+
* 'filterMonth' => 0,
|
97 |
+
* 'filterTerm' => 0,
|
98 |
+
* 'searchConnector' => 'AND',
|
99 |
+
* 'searchFields' => array( 'title', 'content' ),
|
100 |
+
* 'searchValue' => '',
|
101 |
+
* );
|
102 |
+
*
|
103 |
+
* Other values include:
|
104 |
+
* filterMime: uploaded, image, audio, video, text, application, detached
|
105 |
+
* filterMonth: year and month, e.g., '201407'
|
106 |
+
* filterTerm: term ID in the selected taxonomy (NOT term-taxonomy ID)
|
107 |
+
* searchConnector: 'OR'
|
108 |
+
* searchFields: name (slug), alt-text, excerpt (caption), terms
|
109 |
+
*/
|
110 |
+
|
111 |
+
// uncomment next lines to set initial values
|
112 |
+
//$initial_values['filterMime'] = 'image';
|
113 |
+
//$initial_values['filterMonth'] = '201404';
|
114 |
+
//$initial_values['filterTerm'] = 175; // term ID in attachment_tags
|
115 |
+
//$initial_values['searchConnector'] = 'OR';
|
116 |
+
//$initial_values['searchValue'] = 'de la';
|
117 |
+
|
118 |
+
return $initial_values;
|
119 |
+
} // mla_media_modal_initial_filters_filter
|
120 |
+
} //MLAMediaModalExample
|
121 |
+
|
122 |
+
/*
|
123 |
+
* Install the filters at an early opportunity
|
124 |
+
*/
|
125 |
+
add_action('init', 'MLAMediaModalExample::initialize');
|
126 |
+
?>
|
examples/mla-metabox-hooks-example.php.txt
ADDED
@@ -0,0 +1,454 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Provides an example of the filters provided by the "Edit Media additional meta boxes" feature
|
4 |
+
*
|
5 |
+
* In this example the format of the "Inserted in" meta box is simplified.
|
6 |
+
* All of the action takes place in the "mla_inserted_in_meta_box" filter.
|
7 |
+
*
|
8 |
+
* @package MLA Meta Box Hooks Example
|
9 |
+
* @version 1.00
|
10 |
+
*/
|
11 |
+
|
12 |
+
/*
|
13 |
+
Plugin Name: MLA Meta Box Hooks Example
|
14 |
+
Plugin URI: http://fairtradejudaica.org/media-library-assistant-a-wordpress-plugin/
|
15 |
+
Description: Provides an example of the filters provided by the "Edit Media additional meta boxes" feature
|
16 |
+
Author: David Lingren
|
17 |
+
Version: 1.00
|
18 |
+
Author URI: http://fairtradejudaica.org/our-story/staff/
|
19 |
+
|
20 |
+
Copyright 2014 David Lingren
|
21 |
+
|
22 |
+
This program is free software; you can redistribute it and/or modify
|
23 |
+
it under the terms of the GNU General Public License as published by
|
24 |
+
the Free Software Foundation; either version 2 of the License, or
|
25 |
+
(at your option) any later version.
|
26 |
+
|
27 |
+
This program is distributed in the hope that it will be useful,
|
28 |
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
29 |
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
30 |
+
GNU General Public License for more details.
|
31 |
+
|
32 |
+
You can get a copy of the GNU General Public License by writing to the
|
33 |
+
Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
|
34 |
+
*/
|
35 |
+
|
36 |
+
/**
|
37 |
+
* Class MLA Meta Box Hooks Example hooks all of the filters provided by the "Edit Media additional meta boxes" feature
|
38 |
+
*
|
39 |
+
* Call it anything you want, but give it an unlikely and hopefully unique name. Hiding enerything
|
40 |
+
* else inside a class means this is the only name you have to worry about.
|
41 |
+
*
|
42 |
+
* @package MLA Meta Box Hooks Example
|
43 |
+
* @since 1.00
|
44 |
+
*/
|
45 |
+
class MLAMetaboxHooksExample {
|
46 |
+
/**
|
47 |
+
* Initialization function, similar to __construct()
|
48 |
+
*
|
49 |
+
* Installs filters and actions that handle the MLA hooks for uploading and mapping.
|
50 |
+
*
|
51 |
+
* @since 1.00
|
52 |
+
*
|
53 |
+
* @return void
|
54 |
+
*/
|
55 |
+
public static function initialize() {
|
56 |
+
/*
|
57 |
+
* The filters are only useful in the admin section; exit if in the "front-end" posts/pages.
|
58 |
+
*/
|
59 |
+
if ( ! is_admin() )
|
60 |
+
return;
|
61 |
+
|
62 |
+
/*
|
63 |
+
* add_filter parameters:
|
64 |
+
* $tag - name of the hook you're filtering; defined by [mla_gallery]
|
65 |
+
* $function_to_add - function to be called when [mla_gallery] applies the filter
|
66 |
+
* $priority - default 10; lower runs earlier, higher runs later
|
67 |
+
* $accepted_args - number of arguments your function accepts
|
68 |
+
*
|
69 |
+
* Comment out the filters you don't need; save them for future use
|
70 |
+
*/
|
71 |
+
add_filter( 'mla_edit_media_support', 'MLAMetaboxHooksExample::mla_edit_media_support_filter', 10, 1 );
|
72 |
+
add_filter( 'mla_edit_media_meta_boxes', 'MLAMetaboxHooksExample::mla_edit_media_meta_boxes_filter', 10, 1 );
|
73 |
+
|
74 |
+
add_filter( 'mla_parent_info_meta_box', 'MLAMetaboxHooksExample::mla_parent_info_meta_box_filter', 10, 3 );
|
75 |
+
add_filter( 'mla_menu_order_meta_box', 'MLAMetaboxHooksExample::mla_menu_order_meta_box_filter', 10, 2 );
|
76 |
+
|
77 |
+
add_filter( 'mla_image_metadata_meta_box', 'MLAMetaboxHooksExample::mla_image_metadata_meta_box_filter', 10, 3 );
|
78 |
+
add_filter( 'mla_image_metadata_meta_box_html', 'MLAMetaboxHooksExample::mla_image_metadata_meta_box_html_filter', 10, 4 );
|
79 |
+
|
80 |
+
add_filter( 'mla_featured_in_meta_box', 'MLAMetaboxHooksExample::mla_featured_in_meta_box_filter', 10, 3 );
|
81 |
+
add_filter( 'mla_featured_in_meta_box_html', 'MLAMetaboxHooksExample::mla_featured_in_meta_box_html_filter', 10, 4 );
|
82 |
+
|
83 |
+
add_filter( 'mla_inserted_in_meta_box', 'MLAMetaboxHooksExample::mla_inserted_in_meta_box_filter', 10, 3 );
|
84 |
+
add_filter( 'mla_inserted_in_meta_box_html', 'MLAMetaboxHooksExample::mla_inserted_in_meta_box_html_filter', 10, 4 );
|
85 |
+
|
86 |
+
add_filter( 'mla_gallery_in_meta_box', 'MLAMetaboxHooksExample::mla_gallery_in_meta_box_filter', 10, 3 );
|
87 |
+
add_filter( 'mla_gallery_in_meta_box_html', 'MLAMetaboxHooksExample::mla_gallery_in_meta_box_html_filter', 10, 4 );
|
88 |
+
|
89 |
+
add_filter( 'mla_mla_gallery_in_meta_box', 'MLAMetaboxHooksExample::mla_mla_gallery_in_meta_box_filter', 10, 3 );
|
90 |
+
add_filter( 'mla_mla_gallery_in_meta_box_html', 'MLAMetaboxHooksExample::mla_mla_gallery_in_meta_box_html_filter', 10, 4 );
|
91 |
+
}
|
92 |
+
|
93 |
+
/**
|
94 |
+
* Save the active meta boxes
|
95 |
+
*
|
96 |
+
* Default array elements (index and value) are:
|
97 |
+
* 'mla-parent-info', 'mla-menu-order', 'mla-image-metadata',
|
98 |
+
* 'mla-featured-in', 'mla-inserted-in',
|
99 |
+
* 'mla-gallery-in', 'mla-mla-gallery-in'
|
100 |
+
*
|
101 |
+
* @since 1.00
|
102 |
+
*
|
103 |
+
* @var array
|
104 |
+
*/
|
105 |
+
private static $default_meta_boxes = array();
|
106 |
+
private static $active_meta_boxes = array();
|
107 |
+
|
108 |
+
/**
|
109 |
+
* MLA Edit Media Add Support Filter
|
110 |
+
*
|
111 |
+
* This filter gives you an opportunity to suppress the addition of Custom Fields to the Edit Media screen.
|
112 |
+
*
|
113 |
+
* @since 1.00
|
114 |
+
*
|
115 |
+
* @param array ( [0] => 'custom-fields' )
|
116 |
+
*
|
117 |
+
* @return array updated add_post_type_support() array
|
118 |
+
*/
|
119 |
+
public static function mla_edit_media_support_filter( $add_support ) {
|
120 |
+
/*
|
121 |
+
* Uncomment the error_log statements in any of the filters to see what's passed in
|
122 |
+
*/
|
123 |
+
//error_log( 'MLAMetaboxHooksExample::mla_edit_media_support_filter $add_support = ' . var_export( $add_support, true ), 0 );
|
124 |
+
|
125 |
+
// to suppress Custom Fields, return an empty array, i.e., return array();
|
126 |
+
return $add_support;
|
127 |
+
} // mla_edit_media_support_filter
|
128 |
+
|
129 |
+
/**
|
130 |
+
* MLA Edit Media Meta Boxes Filter
|
131 |
+
*
|
132 |
+
* This filter gives you an opportunity to record the original list of meta box slugs.
|
133 |
+
* You can also remove elements from the array to suppress one or more meta boxes.
|
134 |
+
*
|
135 |
+
* @since 1.00
|
136 |
+
*
|
137 |
+
* @param array the file name, type and location
|
138 |
+
* @param array the IPTC, EXIF and WordPress image_metadata
|
139 |
+
*
|
140 |
+
* @return array updated file name and other information
|
141 |
+
*/
|
142 |
+
public static function mla_edit_media_meta_boxes_filter( $active_boxes ) {
|
143 |
+
/*
|
144 |
+
* Uncomment the error_log statements in any of the filters to see what's passed in
|
145 |
+
*/
|
146 |
+
//error_log( 'MLAMetaboxHooksExample::mla_edit_media_meta_boxes_filter $active_boxes = ' . var_export( $active_boxes, true ), 0 );
|
147 |
+
|
148 |
+
/*
|
149 |
+
* Save the information for use in the later filters
|
150 |
+
*/
|
151 |
+
self::$default_meta_boxes = $active_boxes;
|
152 |
+
// to suppress a box, remove it from the array, e.g., unset( $active_boxes['mla-menu-order'] );
|
153 |
+
self::$active_meta_boxes = $active_boxes;
|
154 |
+
|
155 |
+
return $active_boxes;
|
156 |
+
} // mla_edit_media_meta_boxes_filter
|
157 |
+
|
158 |
+
/**
|
159 |
+
* MLA Parent Info Meta Box Filter
|
160 |
+
*
|
161 |
+
* This filter gives you an opportunity to modify the text portion of the "Parent Info" meta box.
|
162 |
+
*
|
163 |
+
* @since 1.00
|
164 |
+
*
|
165 |
+
* @param string the default parent information
|
166 |
+
* @param array the attachment references information for this post
|
167 |
+
* @param object the current post
|
168 |
+
*
|
169 |
+
* @return array updated parent information
|
170 |
+
*/
|
171 |
+
public static function mla_parent_info_meta_box_filter( $parent_info, $references, $post ) {
|
172 |
+
//error_log( 'MLAMetaboxHooksExample::mla_parent_info_meta_box_filter $parent_info = ' . var_export( $parent_info, true ), 0 );
|
173 |
+
//error_log( 'MLAMetaboxHooksExample::mla_parent_info_meta_box_filter $references = ' . var_export( $references, true ), 0 );
|
174 |
+
//error_log( 'MLAMetaboxHooksExample::mla_parent_info_meta_box_filter $post = ' . var_export( $post, true ), 0 );
|
175 |
+
|
176 |
+
return $parent_info;
|
177 |
+
} // mla_parent_info_meta_box_filter
|
178 |
+
|
179 |
+
/**
|
180 |
+
* MLA Menu Order Meta Box Filter
|
181 |
+
*
|
182 |
+
* This filter gives you an opportunity to modify the "Menu Order" meta box.
|
183 |
+
*
|
184 |
+
* @since 1.00
|
185 |
+
*
|
186 |
+
* @param string the default menu order
|
187 |
+
* @param object the current post
|
188 |
+
*
|
189 |
+
* @return array updated menu order
|
190 |
+
*/
|
191 |
+
public static function mla_menu_order_meta_box_filter( $menu_order, $post ) {
|
192 |
+
//error_log( 'MLAMetaboxHooksExample::mla_menu_order_meta_box_filter $menu_order = ' . var_export( $menu_order, true ), 0 );
|
193 |
+
//error_log( 'MLAMetaboxHooksExample::mla_menu_order_meta_box_filter $post = ' . var_export( $post, true ), 0 );
|
194 |
+
|
195 |
+
return $menu_order;
|
196 |
+
} // mla_menu_order_meta_box_filter
|
197 |
+
|
198 |
+
/**
|
199 |
+
* MLA Attachment Metadata Meta Box Filter
|
200 |
+
*
|
201 |
+
* This filter gives you an opportunity to modify the "Attachment Metadata" meta box.
|
202 |
+
*
|
203 |
+
* @since 1.00
|
204 |
+
*
|
205 |
+
* @param array ( [value] => default text, [rows] => textbox rows, [cols] => textbox columns )
|
206 |
+
* @param array the attachment metadata for this post (all of it); image metadata, if any, is in
|
207 |
+
* $metadata['mla_wp_attachment_metadata']
|
208 |
+
* @param object the current post
|
209 |
+
*
|
210 |
+
* @return array updated parent information
|
211 |
+
*/
|
212 |
+
public static function mla_image_metadata_meta_box_filter( $value, $metadata, $post ) {
|
213 |
+
//error_log( 'MLAMetaboxHooksExample::mla_image_metadata_meta_box_filter $value = ' . var_export( $value, true ), 0 );
|
214 |
+
//error_log( 'MLAMetaboxHooksExample::mla_image_metadata_meta_box_filter $metadata = ' . var_export( $metadata, true ), 0 );
|
215 |
+
//error_log( 'MLAMetaboxHooksExample::mla_image_metadata_meta_box_filter $post = ' . var_export( $post, true ), 0 );
|
216 |
+
|
217 |
+
return $value;
|
218 |
+
} // mla_image_metadata_meta_box_filter
|
219 |
+
|
220 |
+
/**
|
221 |
+
* MLA Attachment Metadata Meta Box HTML Filter
|
222 |
+
*
|
223 |
+
* This filter gives you an opportunity to modify the "Attachment Metadata" meta box HTML content.
|
224 |
+
*
|
225 |
+
* @since 1.00
|
226 |
+
*
|
227 |
+
* @param string Meta box contents markup
|
228 |
+
* @param array ( [value] => default text, [rows] => textbox rows, [cols] => textbox columns )
|
229 |
+
* @param array the attachment metadata for this post (all of it); image metadata, if any, is in
|
230 |
+
* $metadata['mla_wp_attachment_metadata']
|
231 |
+
* @param object the current post
|
232 |
+
*
|
233 |
+
* @return array updated meta box contents markup
|
234 |
+
*/
|
235 |
+
public static function mla_image_metadata_meta_box_html_filter( $html, $value, $metadata, $post ) {
|
236 |
+
//error_log( 'MLAMetaboxHooksExample::mla_image_metadata_meta_box_html_filter $html = ' . var_export( $html, true ), 0 );
|
237 |
+
//error_log( 'MLAMetaboxHooksExample::mla_image_metadata_meta_box_html_filter $value = ' . var_export( $value, true ), 0 );
|
238 |
+
//error_log( 'MLAMetaboxHooksExample::mla_image_metadata_meta_box_html_filter $metadata = ' . var_export( $metadata, true ), 0 );
|
239 |
+
//error_log( 'MLAMetaboxHooksExample::mla_image_metadata_meta_box_html_filter $post = ' . var_export( $post, true ), 0 );
|
240 |
+
|
241 |
+
return $html;
|
242 |
+
} // mla_image_metadata_meta_box_html_filter
|
243 |
+
|
244 |
+
/**
|
245 |
+
* MLA Featured in Meta Box Filter
|
246 |
+
*
|
247 |
+
* This filter gives you an opportunity to modify the "Featured in" meta box.
|
248 |
+
*
|
249 |
+
* @since 1.00
|
250 |
+
*
|
251 |
+
* @param array ( [features] => default text, [rows] => textbox rows, [cols] => textbox columns )
|
252 |
+
* @param array the attachment references information for this post
|
253 |
+
* @param object the current post
|
254 |
+
*
|
255 |
+
* @return array updated text, rows, columns
|
256 |
+
*/
|
257 |
+
public static function mla_featured_in_meta_box_filter( $features, $references, $post ) {
|
258 |
+
//error_log( 'MLAMetaboxHooksExample::mla_featured_in_meta_box_filter $features = ' . var_export( $features, true ), 0 );
|
259 |
+
//error_log( 'MLAMetaboxHooksExample::mla_featured_in_meta_box_filter $references = ' . var_export( $references, true ), 0 );
|
260 |
+
//error_log( 'MLAMetaboxHooksExample::mla_featured_in_meta_box_filter $post = ' . var_export( $post, true ), 0 );
|
261 |
+
|
262 |
+
return $features;
|
263 |
+
} // mla_featured_in_meta_box_filter
|
264 |
+
|
265 |
+
/**
|
266 |
+
* MLA Featured in Meta Box HTML Filter
|
267 |
+
*
|
268 |
+
* This filter gives you an opportunity to modify the "Featured in" meta box HTML content.
|
269 |
+
*
|
270 |
+
* @since 1.00
|
271 |
+
*
|
272 |
+
* @param string Meta box contents markup
|
273 |
+
* @param array ( [features] => default text, [rows] => textbox rows, [cols] => textbox columns )
|
274 |
+
* @param array the attachment references information for this post
|
275 |
+
* @param object the current post
|
276 |
+
*
|
277 |
+
* @return array updated meta box contents markup
|
278 |
+
*/
|
279 |
+
public static function mla_featured_in_meta_box_html_filter( $html, $features, $references, $post ) {
|
280 |
+
//error_log( 'MLAMetaboxHooksExample::mla_featured_in_meta_box_html_filter $html = ' . var_export( $html, true ), 0 );
|
281 |
+
//error_log( 'MLAMetaboxHooksExample::mla_featured_in_meta_box_html_filter $features = ' . var_export( $features, true ), 0 );
|
282 |
+
//error_log( 'MLAMetaboxHooksExample::mla_featured_in_meta_box_html_filter $references = ' . var_export( $references, true ), 0 );
|
283 |
+
//error_log( 'MLAMetaboxHooksExample::mla_featured_in_meta_box_html_filter $post = ' . var_export( $post, true ), 0 );
|
284 |
+
|
285 |
+
return $html;
|
286 |
+
} // mla_featured_in_meta_box_html_filter
|
287 |
+
|
288 |
+
/**
|
289 |
+
* MLA Inserted in Meta Box Filter
|
290 |
+
*
|
291 |
+
* This filter gives you an opportunity to modify the "Inserted in" meta box.
|
292 |
+
*
|
293 |
+
* @since 1.00
|
294 |
+
*
|
295 |
+
* @param array ( [inserts] => default text, [rows] => textbox rows, [cols] => textbox columns )
|
296 |
+
* @param array the attachment references information for this post
|
297 |
+
* @param object the current post
|
298 |
+
*
|
299 |
+
* @return array updated text, rows, columns
|
300 |
+
*/
|
301 |
+
public static function mla_inserted_in_meta_box_filter( $inserts, $references, $post ) {
|
302 |
+
//error_log( 'MLAMetaboxHooksExample::mla_inserted_in_meta_box_filter $inserts = ' . var_export( $inserts, true ), 0 );
|
303 |
+
//error_log( 'MLAMetaboxHooksExample::mla_inserted_in_meta_box_filter $references = ' . var_export( $references, true ), 0 );
|
304 |
+
//error_log( 'MLAMetaboxHooksExample::mla_inserted_in_meta_box_filter $post = ' . var_export( $post, true ), 0 );
|
305 |
+
|
306 |
+
// Comment out this return statement to fall through to the example code that simplifies the display
|
307 |
+
return $inserts;
|
308 |
+
|
309 |
+
$new_inserts = array();
|
310 |
+
$upload_dir = wp_upload_dir();
|
311 |
+
$file_url = $upload_dir['baseurl'] . '/' . $references['base_file'];
|
312 |
+
$new_inserts[] = $references['file'];
|
313 |
+
$new_inserts[] = '(' . $file_url . ')';
|
314 |
+
|
315 |
+
// Index on post ID to eliminate duplicates
|
316 |
+
$base_references = array();
|
317 |
+
foreach( $references['inserts'] as $key => $file_references ) {
|
318 |
+
foreach ( $file_references as $reference ) {
|
319 |
+
$base_references[ $reference->ID ] = $reference;
|
320 |
+
}
|
321 |
+
}
|
322 |
+
|
323 |
+
foreach ( $base_references as $reference ) {
|
324 |
+
$new_inserts[] = $reference->post_title;
|
325 |
+
$new_inserts[] = '(' . get_permalink( $reference->ID, false ) . ')';
|
326 |
+
}
|
327 |
+
|
328 |
+
// Uncomment these lines to display the arguments in the meta box
|
329 |
+
//$new_inserts[] = '----- debug information -----';
|
330 |
+
//$new_inserts[] = '$inserts = ' . var_export( $inserts, true );
|
331 |
+
//$new_inserts[] = '$references = ' . var_export( $references, true );
|
332 |
+
//$new_inserts[] = '$post = ' . var_export( $post, true );
|
333 |
+
|
334 |
+
$inserts['inserts'] = implode( "\n", $new_inserts );
|
335 |
+
return $inserts;
|
336 |
+
} // mla_inserted_in_meta_box_filter
|
337 |
+
|
338 |
+
/**
|
339 |
+
* MLA Inserted in Meta Box HTML Filter
|
340 |
+
*
|
341 |
+
* This filter gives you an opportunity to modify the "Inserted in" meta box HTML content.
|
342 |
+
*
|
343 |
+
* @since 1.00
|
344 |
+
*
|
345 |
+
* @param string Meta box contents markup
|
346 |
+
* @param array ( [inserts] => default text, [rows] => textbox rows, [cols] => textbox columns )
|
347 |
+
* @param array the attachment references information for this post
|
348 |
+
* @param object the current post
|
349 |
+
*
|
350 |
+
* @return array updated meta box contents markup
|
351 |
+
*/
|
352 |
+
public static function mla_inserted_in_meta_box_html_filter( $html, $inserts, $references, $post ) {
|
353 |
+
//error_log( 'MLAMetaboxHooksExample::mla_inserted_in_meta_box_html_filter $html = ' . var_export( $html, true ), 0 );
|
354 |
+
//error_log( 'MLAMetaboxHooksExample::mla_inserted_in_meta_box_html_filter $inserts = ' . var_export( $inserts, true ), 0 );
|
355 |
+
//error_log( 'MLAMetaboxHooksExample::mla_inserted_in_meta_box_html_filter $references = ' . var_export( $references, true ), 0 );
|
356 |
+
//error_log( 'MLAMetaboxHooksExample::mla_inserted_in_meta_box_html_filter $post = ' . var_export( $post, true ), 0 );
|
357 |
+
|
358 |
+
return $html;
|
359 |
+
} // mla_inserted_in_meta_box_html_filter
|
360 |
+
|
361 |
+
/**
|
362 |
+
* MLA Gallery in Meta Box Filter
|
363 |
+
*
|
364 |
+
* This filter gives you an opportunity to modify the "Gallery in" meta box.
|
365 |
+
*
|
366 |
+
* @since 1.00
|
367 |
+
*
|
368 |
+
* @param array ( [galleries] => default text, [rows] => textbox rows, [cols] => textbox columns )
|
369 |
+
* @param array the attachment references information for this post
|
370 |
+
* @param object the current post
|
371 |
+
*
|
372 |
+
* @return array updated text, rows, columns
|
373 |
+
*/
|
374 |
+
public static function mla_gallery_in_meta_box_filter( $galleries, $references, $post ) {
|
375 |
+
//error_log( 'MLAMetaboxHooksExample::mla_gallery_in_meta_box_filter $galleries = ' . var_export( $galleries, true ), 0 );
|
376 |
+
//error_log( 'MLAMetaboxHooksExample::mla_gallery_in_meta_box_filter $references = ' . var_export( $references, true ), 0 );
|
377 |
+
//error_log( 'MLAMetaboxHooksExample::mla_gallery_in_meta_box_filter $post = ' . var_export( $post, true ), 0 );
|
378 |
+
|
379 |
+
return $galleries;
|
380 |
+
} // mla_gallery_in_meta_box_filter
|
381 |
+
|
382 |
+
/**
|
383 |
+
* MLA Gallery in Meta Box HTML Filter
|
384 |
+
*
|
385 |
+
* This filter gives you an opportunity to modify the "Gallery in" meta box HTML content.
|
386 |
+
*
|
387 |
+
* @since 1.00
|
388 |
+
*
|
389 |
+
* @param string Meta box contents markup
|
390 |
+
* @param array ( [galleries] => default text, [rows] => textbox rows, [cols] => textbox columns )
|
391 |
+
* @param array the attachment references information for this post
|
392 |
+
* @param object the current post
|
393 |
+
*
|
394 |
+
* @return array updated meta box contents markup
|
395 |
+
*/
|
396 |
+
public static function mla_gallery_in_meta_box_html_filter( $html, $galleries, $references, $post ) {
|
397 |
+
//error_log( 'MLAMetaboxHooksExample::mla_gallery_in_meta_box_html_filter $html = ' . var_export( $html, true ), 0 );
|
398 |
+
//error_log( 'MLAMetaboxHooksExample::mla_gallery_in_meta_box_html_filter $galleries = ' . var_export( $galleries, true ), 0 );
|
399 |
+
//error_log( 'MLAMetaboxHooksExample::mla_gallery_in_meta_box_html_filter $references = ' . var_export( $references, true ), 0 );
|
400 |
+
//error_log( 'MLAMetaboxHooksExample::mla_gallery_in_meta_box_html_filter $post = ' . var_export( $post, true ), 0 );
|
401 |
+
|
402 |
+
return $html;
|
403 |
+
} // mla_gallery_in_meta_box_html_filter
|
404 |
+
|
405 |
+
/**
|
406 |
+
* MLA MLA Gallery in Meta Box Filter
|
407 |
+
*
|
408 |
+
* This filter gives you an opportunity to modify the "MLA Gallery in" meta box.
|
409 |
+
*
|
410 |
+
* @since 1.00
|
411 |
+
*
|
412 |
+
* @param array ( [galleries] => default text, [rows] => textbox rows, [cols] => textbox columns )
|
413 |
+
* @param array the attachment references information for this post
|
414 |
+
* @param object the current post
|
415 |
+
*
|
416 |
+
* @return array updated text, rows, columns
|
417 |
+
*/
|
418 |
+
public static function mla_mla_gallery_in_meta_box_filter( $galleries, $references, $post ) {
|
419 |
+
//error_log( 'MLAMetaboxHooksExample::mla_mla_gallery_in_meta_box_filter $galleries = ' . var_export( $galleries, true ), 0 );
|
420 |
+
//error_log( 'MLAMetaboxHooksExample::mla_mla_gallery_in_meta_box_filter $references = ' . var_export( $references, true ), 0 );
|
421 |
+
//error_log( 'MLAMetaboxHooksExample::mla_mla_gallery_in_meta_box_filter $post = ' . var_export( $post, true ), 0 );
|
422 |
+
|
423 |
+
return $galleries;
|
424 |
+
} // mla_mla_gallery_in_meta_box_filter
|
425 |
+
|
426 |
+
/**
|
427 |
+
* MLA MLA Gallery in Meta Box HTML Filter
|
428 |
+
*
|
429 |
+
* This filter gives you an opportunity to modify the "MLA Gallery in" meta box HTML content.
|
430 |
+
*
|
431 |
+
* @since 1.00
|
432 |
+
*
|
433 |
+
* @param string Meta box contents markup
|
434 |
+
* @param array ( [galleries] => default text, [rows] => textbox rows, [cols] => textbox columns )
|
435 |
+
* @param array the attachment references information for this post
|
436 |
+
* @param object the current post
|
437 |
+
*
|
438 |
+
* @return array updated meta box contents markup
|
439 |
+
*/
|
440 |
+
public static function mla_mla_gallery_in_meta_box_html_filter( $html, $galleries, $references, $post ) {
|
441 |
+
//error_log( 'MLAMetaboxHooksExample::mla_mla_gallery_in_meta_box_html_filter $html = ' . var_export( $html, true ), 0 );
|
442 |
+
//error_log( 'MLAMetaboxHooksExample::mla_mla_gallery_in_meta_box_html_filter $galleries = ' . var_export( $galleries, true ), 0 );
|
443 |
+
//error_log( 'MLAMetaboxHooksExample::mla_mla_gallery_in_meta_box_html_filter $references = ' . var_export( $references, true ), 0 );
|
444 |
+
//error_log( 'MLAMetaboxHooksExample::mla_mla_gallery_in_meta_box_html_filter $post = ' . var_export( $post, true ), 0 );
|
445 |
+
|
446 |
+
return $html;
|
447 |
+
} // mla_mla_gallery_in_meta_box_html_filter
|
448 |
+
} //MLAMetaboxHooksExample
|
449 |
+
|
450 |
+
/*
|
451 |
+
* Install the filters at an early opportunity
|
452 |
+
*/
|
453 |
+
add_action('init', 'MLAMetaboxHooksExample::initialize');
|
454 |
+
?>
|
examples/mla-metadata-mapping-hooks-example.php.txt
ADDED
@@ -0,0 +1,860 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Provides an advanced example of the filters provided by the IPTC/EXIF and Custom Field mapping features
|
4 |
+
*
|
5 |
+
* In this example image metadata for new uploads is regenerated when other plugins such as "Image Rotation Fixer"
|
6 |
+
* delete it in the process of altering the image. The metadata is extracted and saved in the "mla_upload_prefilter" filter,
|
7 |
+
* then regenerated in the "mla_update_attachment_metadata_prefilter" filter. Three support functions at the bottom of the
|
8 |
+
* file do the actual work.
|
9 |
+
*
|
10 |
+
* @package MLA Metadata Mapping Hooks Example
|
11 |
+
* @version 1.02
|
12 |
+
*/
|
13 |
+
|
14 |
+
/*
|
15 |
+
Plugin Name: MLA Metadata Mapping Hooks Example
|
16 |
+
Plugin URI: http://fairtradejudaica.org/media-library-assistant-a-wordpress-plugin/
|
17 |
+
Description: Provides an advanced example of the filters provided by the IPTC/EXIF and Custom Field mapping features
|
18 |
+
Author: David Lingren
|
19 |
+
Version: 1.02
|
20 |
+
Author URI: http://fairtradejudaica.org/our-story/staff/
|
21 |
+
|
22 |
+
Copyright 2014 David Lingren
|
23 |
+
|
24 |
+
This program is free software; you can redistribute it and/or modify
|
25 |
+
it under the terms of the GNU General Public License as published by
|
26 |
+
the Free Software Foundation; either version 2 of the License, or
|
27 |
+
(at your option) any later version.
|
28 |
+
|
29 |
+
This program is distributed in the hope that it will be useful,
|
30 |
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
31 |
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
32 |
+
GNU General Public License for more details.
|
33 |
+
|
34 |
+
You can get a copy of the GNU General Public License by writing to the
|
35 |
+
Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
|
36 |
+
*/
|
37 |
+
|
38 |
+
/**
|
39 |
+
* Class MLA Metadata Hooks Example hooks all of the filters provided by the IPTC/EXIF and Custom Field mapping features
|
40 |
+
*
|
41 |
+
* Call it anything you want, but give it an unlikely and hopefully unique name. Hiding enerything
|
42 |
+
* else inside a class means this is the only name you have to worry about.
|
43 |
+
*
|
44 |
+
* @package MLA Metadata Mapping Hooks Example
|
45 |
+
* @since 1.00
|
46 |
+
*/
|
47 |
+
class MLAMetadataHooksExample {
|
48 |
+
/**
|
49 |
+
* Initialization function, similar to __construct()
|
50 |
+
*
|
51 |
+
* Installs filters and actions that handle the MLA hooks for uploading and mapping.
|
52 |
+
*
|
53 |
+
* @since 1.00
|
54 |
+
*
|
55 |
+
* @return void
|
56 |
+
*/
|
57 |
+
public static function initialize() {
|
58 |
+
/*
|
59 |
+
* The filters are only useful in the admin section; exit if in the "front-end" posts/pages.
|
60 |
+
*/
|
61 |
+
if ( ! is_admin() )
|
62 |
+
return;
|
63 |
+
|
64 |
+
/*
|
65 |
+
* add_filter parameters:
|
66 |
+
* $tag - name of the hook you're filtering; defined by [mla_gallery]
|
67 |
+
* $function_to_add - function to be called when [mla_gallery] applies the filter
|
68 |
+
* $priority - default 10; lower runs earlier, higher runs later
|
69 |
+
* $accepted_args - number of arguments your function accepts
|
70 |
+
*
|
71 |
+
* Comment out the filters you don't need; save them for future use
|
72 |
+
*/
|
73 |
+
add_filter( 'mla_upload_prefilter', 'MLAMetadataHooksExample::mla_upload_prefilter_filter', 10, 2 );
|
74 |
+
add_filter( 'mla_upload_filter', 'MLAMetadataHooksExample::mla_upload_filter_filter', 10, 2 );
|
75 |
+
|
76 |
+
add_action( 'mla_add_attachment', 'MLAMetadataHooksExample::mla_add_attachment_action', 10, 1 );
|
77 |
+
|
78 |
+
add_filter( 'mla_update_attachment_metadata_options', 'MLAMetadataHooksExample::mla_update_attachment_metadata_options_filter', 10, 3 );
|
79 |
+
add_filter( 'mla_update_attachment_metadata_prefilter', 'MLAMetadataHooksExample::mla_update_attachment_metadata_prefilter_filter', 10, 3 );
|
80 |
+
add_filter( 'mla_update_attachment_metadata_postfilter', 'MLAMetadataHooksExample::mla_update_attachment_metadata_postfilter_filter', 10, 3 );
|
81 |
+
|
82 |
+
add_filter( 'mla_mapping_settings', 'MLAMetadataHooksExample::mla_mapping_settings_filter', 10, 4 );
|
83 |
+
add_filter( 'mla_mapping_rule', 'MLAMetadataHooksExample::mla_mapping_rule_filter', 10, 4 );
|
84 |
+
add_filter( 'mla_mapping_custom_value', 'MLAMetadataHooksExample::mla_mapping_custom_value_filter', 10, 5 );
|
85 |
+
add_filter( 'mla_mapping_iptc_value', 'MLAMetadataHooksExample::mla_mapping_iptc_value_filter', 10, 5 );
|
86 |
+
add_filter( 'mla_mapping_exif_value', 'MLAMetadataHooksExample::mla_mapping_exif_value_filter', 10, 5 );
|
87 |
+
add_filter( 'mla_mapping_updates', 'MLAMetadataHooksExample::mla_mapping_updates_filter', 10, 5 );
|
88 |
+
|
89 |
+
add_filter( 'mla_get_options_tablist', 'MLAMetadataHooksExample::mla_get_options_tablist_filter', 10, 3 );
|
90 |
+
}
|
91 |
+
|
92 |
+
/**
|
93 |
+
* Save the original image metadata when a file is first uploaded
|
94 |
+
*
|
95 |
+
* Array elements are:
|
96 |
+
* 'post_id' => 0,
|
97 |
+
* 'mla_iptc_metadata' => array(),
|
98 |
+
* 'mla_exif_metadata' => array(),
|
99 |
+
* 'wp_image_metadata' => array(),
|
100 |
+
*
|
101 |
+
* @since 1.00
|
102 |
+
*
|
103 |
+
* @var array
|
104 |
+
*/
|
105 |
+
private static $image_metadata = array();
|
106 |
+
private static $raw_metadata = array();
|
107 |
+
|
108 |
+
/**
|
109 |
+
* MLA Mapping Upload Prefilter
|
110 |
+
*
|
111 |
+
* This filter gives you an opportunity to record the original IPTC, EXIF and
|
112 |
+
* WordPress image_metadata before the file is stored in the Media Library.
|
113 |
+
* You can also modify the file name that will be used in the Media Library.
|
114 |
+
*
|
115 |
+
* Many plugins and image editing functions alter or destroy this information,
|
116 |
+
* so this may be your last change to preserve it.
|
117 |
+
*
|
118 |
+
* @since 1.00
|
119 |
+
*
|
120 |
+
* @param array the file name, type and location
|
121 |
+
* @param array the IPTC, EXIF and WordPress image_metadata
|
122 |
+
*
|
123 |
+
* @return array updated file name and other information
|
124 |
+
*/
|
125 |
+
public static function mla_upload_prefilter_filter( $file, $image_metadata ) {
|
126 |
+
/*
|
127 |
+
* Uncomment the error_log statements in any of the filters to see what's passed in
|
128 |
+
*/
|
129 |
+
//error_log( 'MLAMetadataHooksExample::mla_upload_prefilter_filter $file = ' . var_export( $file, true ), 0 );
|
130 |
+
//error_log( 'MLAMetadataHooksExample::mla_upload_prefilter_filter $image_metadata = ' . var_export( $image_metadata, true ), 0 );
|
131 |
+
|
132 |
+
/*
|
133 |
+
* Save the information for use in the later filters
|
134 |
+
*/
|
135 |
+
self::$image_metadata = $image_metadata;
|
136 |
+
self::$image_metadata['preload_file'] = $file;
|
137 |
+
|
138 |
+
/*
|
139 |
+
* Save the EXIF, XMP, IPTC and COM data from JPEG files
|
140 |
+
*/
|
141 |
+
if ( 'image/jpeg' == $file['type'] ) {
|
142 |
+
self::$raw_metadata = self::_extract_jpeg_metadata( $file['tmp_name'] );
|
143 |
+
error_log( 'MLAMetadataHooksExample::mla_upload_prefilter_filter $raw_metadata = ' . var_export( self::$raw_metadata, true ), 0 );
|
144 |
+
} else {
|
145 |
+
self::$raw_metadata = array();
|
146 |
+
}
|
147 |
+
|
148 |
+
return $file;
|
149 |
+
} // mla_upload_prefilter_filter
|
150 |
+
|
151 |
+
/**
|
152 |
+
* MLA Mapping Upload Filter
|
153 |
+
*
|
154 |
+
* This filter gives you an opportunity to record some additional metadata
|
155 |
+
* for audio and video media after the file is stored in the Media Library.
|
156 |
+
*
|
157 |
+
* Many plugins and other functions alter or destroy this information,
|
158 |
+
* so this may be your last change to preserve it.
|
159 |
+
*
|
160 |
+
* @since 1.00
|
161 |
+
*
|
162 |
+
* @param array the file name, type and location
|
163 |
+
* @param array the ID3 metadata for audio and video files
|
164 |
+
*
|
165 |
+
* @return array updated file name, type and location
|
166 |
+
*/
|
167 |
+
public static function mla_upload_filter_filter( $file, $id3_data ) {
|
168 |
+
//error_log( 'MLAMetadataHooksExample::mla_upload_filter_filter $file = ' . var_export( $file, true ), 0 );
|
169 |
+
//error_log( 'MLAMetadataHooksExample::mla_upload_filter_filter $id3_data = ' . var_export( $id3_data, true ), 0 );
|
170 |
+
|
171 |
+
/*
|
172 |
+
* Save the information for use in the later filters
|
173 |
+
*/
|
174 |
+
self::$image_metadata['postload_file'] = $file;
|
175 |
+
self::$image_metadata['id3_metadata'] = $id3_data;
|
176 |
+
|
177 |
+
return $file;
|
178 |
+
} // mla_upload_filter_filter
|
179 |
+
|
180 |
+
/**
|
181 |
+
* MLA Add Attachment Action
|
182 |
+
*
|
183 |
+
* This filter is called at the end of the wp_insert_attachment() function,
|
184 |
+
* after the file is in place and the post object has been created in the database.
|
185 |
+
*
|
186 |
+
* By this time, other plugins have probably run their own 'add_attachment' filters
|
187 |
+
* and done their work/damage to metadata, etc.
|
188 |
+
*
|
189 |
+
* @since 1.00
|
190 |
+
*
|
191 |
+
* @param integer The Post ID of the new attachment
|
192 |
+
*
|
193 |
+
* @return void
|
194 |
+
*/
|
195 |
+
public static function mla_add_attachment_action( $post_id ) {
|
196 |
+
//error_log( 'MLAMetadataHooksExample::mla_add_attachment_action $post_id = ' . var_export( $post_id, true ), 0 );
|
197 |
+
|
198 |
+
/*
|
199 |
+
* Save the information for use in the later filters
|
200 |
+
*/
|
201 |
+
self::$image_metadata['post_id'] = $post_id;
|
202 |
+
} // mla_add_attachment_action
|
203 |
+
|
204 |
+
/**
|
205 |
+
* MLA Update Attachment Metadata Options
|
206 |
+
*
|
207 |
+
* This filter lets you inspect or change the processing options that will
|
208 |
+
* control the MLA mapping rules in the update_attachment_metadata filter.
|
209 |
+
*
|
210 |
+
* The options are:
|
211 |
+
* is_upload - true if this is part of the original file upload process
|
212 |
+
* enable_iptc_exif_mapping - true to apply IPTC/EXIF mapping to file uploads
|
213 |
+
* enable_custom_field_mapping - true to apply custom field mapping to file uploads
|
214 |
+
* enable_iptc_exif_update - true to apply IPTC/EXIF mapping to updates
|
215 |
+
* enable_custom_field_update - true to apply custom field mapping to updates
|
216 |
+
*
|
217 |
+
* @since 1.00
|
218 |
+
*
|
219 |
+
* @param array Processing options, e.g., 'is_upload'
|
220 |
+
* @param array attachment metadata
|
221 |
+
* @param integer The Post ID of the new/updated attachment
|
222 |
+
*
|
223 |
+
* @return array updated processing options
|
224 |
+
*/
|
225 |
+
public static function mla_update_attachment_metadata_options_filter( $options, $data, $post_id ) {
|
226 |
+
//error_log( 'MLAMetadataHooksExample::mla_update_attachment_metadata_options_filter $options = ' . var_export( $options, true ), 0 );
|
227 |
+
//error_log( 'MLAMetadataHooksExample::mla_update_attachment_metadata_options_filter $data = ' . var_export( $data, true ), 0 );
|
228 |
+
//error_log( 'MLAMetadataHooksExample::mla_update_attachment_metadata_options_filter $post_id = ' . var_export( $post_id, true ), 0 );
|
229 |
+
|
230 |
+
return $options;
|
231 |
+
} // mla_update_attachment_metadata_prefilter_filter
|
232 |
+
|
233 |
+
/**
|
234 |
+
* MLA Update Attachment Metadata Prefilter
|
235 |
+
*
|
236 |
+
* This filter is called at the end of the wp_update_attachment_metadata() function,
|
237 |
+
* BEFORE any MLA mapping rules are applied. The prefilter gives you an
|
238 |
+
* opportunity to record or update the metadata before the mapping.
|
239 |
+
*
|
240 |
+
* The wp_update_attachment_metadata() function is called at the end of the file upload process and at
|
241 |
+
* several later points, such as when an image attachment is edited or by
|
242 |
+
* plugins that alter the attachment file.
|
243 |
+
*
|
244 |
+
* @since 1.00
|
245 |
+
*
|
246 |
+
* @param array attachment metadata
|
247 |
+
* @param integer The Post ID of the new/updated attachment
|
248 |
+
* @param array Processing options, e.g., 'is_upload'
|
249 |
+
*
|
250 |
+
* @return array updated attachment metadata
|
251 |
+
*/
|
252 |
+
public static function mla_update_attachment_metadata_prefilter_filter( $data, $post_id, $options ) {
|
253 |
+
//error_log( 'MLAMetadataHooksExample::mla_update_attachment_metadata_prefilter_filter $data = ' . var_export( $data, true ), 0 );
|
254 |
+
//error_log( 'MLAMetadataHooksExample::mla_update_attachment_metadata_prefilter_filter $post_id = ' . var_export( $post_id, true ), 0 );
|
255 |
+
//error_log( 'MLAMetadataHooksExample::mla_update_attachment_metadata_prefilter_filter $options = ' . var_export( $options, true ), 0 );
|
256 |
+
|
257 |
+
/*
|
258 |
+
* If the metadata has been stripped, try to replace it
|
259 |
+
* NOTE: Uncomment/comment the "self::" and "$data = " lines to activate/deactivate
|
260 |
+
*/
|
261 |
+
if ( isset( $data['image_meta']['created_timestamp'] )
|
262 |
+
&& empty( $data['image_meta']['created_timestamp'] ) ) {
|
263 |
+
//self::_replace_jpeg_metadata( self::$image_metadata['postload_file']['file'], self::$raw_metadata );
|
264 |
+
//$data = wp_generate_attachment_metadata( $post_id, self::$image_metadata['postload_file']['file'] );
|
265 |
+
error_log( 'regenerated data = ' . var_export( $data, true ), 0 );
|
266 |
+
|
267 |
+
}
|
268 |
+
|
269 |
+
return $data;
|
270 |
+
} // mla_update_attachment_metadata_prefilter_filter
|
271 |
+
|
272 |
+
/**
|
273 |
+
* MLA Update Attachment Metadata Postfilter
|
274 |
+
*
|
275 |
+
* This filter is called AFTER MLA mapping rules are applied during
|
276 |
+
* wp_update_attachment_metadata() processing. The postfilter gives you
|
277 |
+
* an opportunity to record or update the metadata after the mapping.
|
278 |
+
*
|
279 |
+
* @since 1.00
|
280 |
+
*
|
281 |
+
* @param array attachment metadata
|
282 |
+
* @param integer The Post ID of the new/updated attachment
|
283 |
+
* @param array Processing options, e.g., 'is_upload'
|
284 |
+
*
|
285 |
+
* @return array updated attachment metadata
|
286 |
+
*/
|
287 |
+
public static function mla_update_attachment_metadata_postfilter_filter( $data, $post_id, $options ) {
|
288 |
+
//error_log( 'MLAMetadataHooksExample::mla_update_attachment_metadata_postfilter_filter $data = ' . var_export( $data, true ), 0 );
|
289 |
+
//error_log( 'MLAMetadataHooksExample::mla_update_attachment_metadata_postfilter_filter $post_id = ' . var_export( $post_id, true ), 0 );
|
290 |
+
//error_log( 'MLAMetadataHooksExample::mla_update_attachment_metadata_postfilter_filter $options = ' . var_export( $options, true ), 0 );
|
291 |
+
|
292 |
+
return $data;
|
293 |
+
} // mla_update_attachment_metadata_postfilter_filter
|
294 |
+
|
295 |
+
/**
|
296 |
+
* MLA Mapping Settings Filter
|
297 |
+
*
|
298 |
+
* This filter is called before any mapping rules are executed.
|
299 |
+
* You can add, change or delete rules from the array.
|
300 |
+
*
|
301 |
+
* @since 1.00
|
302 |
+
*
|
303 |
+
* @param array mapping rules
|
304 |
+
* @param integer post ID to be evaluated
|
305 |
+
* @param string category/scope to evaluate against, e.g., custom_field_mapping or single_attachment_mapping
|
306 |
+
* @param array attachment_metadata, default NULL
|
307 |
+
*
|
308 |
+
* @return array updated mapping rules
|
309 |
+
*/
|
310 |
+
public static function mla_mapping_settings_filter( $settings, $post_id, $category, $attachment_metadata ) {
|
311 |
+
//error_log( 'MLAMetadataHooksExample::mla_mapping_settings_filter $settings = ' . var_export( $settings, true ), 0 );
|
312 |
+
//error_log( 'MLAMetadataHooksExample::mla_mapping_settings_filter $post_id = ' . var_export( $post_id, true ), 0 );
|
313 |
+
//error_log( 'MLAMetadataHooksExample::mla_mapping_settings_filter $category = ' . var_export( $category, true ), 0 );
|
314 |
+
//error_log( 'MLAMetadataHooksExample::mla_mapping_settings_filter $attachment_metadata = ' . var_export( $attachment_metadata, true ), 0 );
|
315 |
+
|
316 |
+
/*
|
317 |
+
* $category gives the context in which the rule is applied:
|
318 |
+
* 'custom_field_mapping' - mapping custom fields for ALL attachments
|
319 |
+
* 'single_attachment_mapping' - mapping custom fields for ONE attachments
|
320 |
+
*
|
321 |
+
* 'iptc_exif_mapping' - mapping ALL IPTC/EXIF rules
|
322 |
+
* 'iptc_exif_standard_mapping' - mapping standard field rules
|
323 |
+
* 'iptc_exif_taxonomy_mapping' - mapping taxonomy term rules
|
324 |
+
* 'iptc_exif_custom_mapping' - mapping IPTC/EXIF custom field rules
|
325 |
+
*
|
326 |
+
* NOTE: 'iptc_exif_mapping' will never be passed to the 'mla_mapping_rule' filter.
|
327 |
+
* There, one of the three more specific values will be passed.
|
328 |
+
*/
|
329 |
+
|
330 |
+
/*
|
331 |
+
* For Custom Field Mapping, $settings is an array indexed by
|
332 |
+
* the custom field name.
|
333 |
+
* Each array element is a mapping rule; an array containing:
|
334 |
+
* 'name' => custom field name
|
335 |
+
* 'data_source' => 'none', 'meta', 'template' or data source name
|
336 |
+
* 'keep_existing' => boolean; true to preserve existing content
|
337 |
+
* 'format' => 'native', 'commas'
|
338 |
+
* 'mla_column' => boolean; not used
|
339 |
+
* 'quick_edit' => boolean; not used
|
340 |
+
* 'bulk_edit' => boolean; not used
|
341 |
+
* 'meta_name' => attachment metadata element name or content template
|
342 |
+
* 'option' => 'text', 'single', 'export', 'array', 'multi'
|
343 |
+
* 'no_null' => boolean; true to delete empty custom field values
|
344 |
+
*
|
345 |
+
* For IPTC/EXIF Mapping, $settings is an array indexed by
|
346 |
+
* the mapping category; 'standard', 'taxonomy' and 'custom'.
|
347 |
+
* Each category is an array of rules, with slightly different formats.
|
348 |
+
*
|
349 |
+
* Each 'standard' category array element is a rule (array) containing:
|
350 |
+
* 'name' => field slug; 'post_title', 'post_name', 'image_alt', 'post_excerpt', 'post_content'
|
351 |
+
* 'iptc_value' => IPTC Identifier or friendly name
|
352 |
+
* 'exif_value' => EXIF element name
|
353 |
+
* 'iptc_first' => boolean; true to prefer IPTC value over EXIF value
|
354 |
+
* 'keep_existing' => boolean; true to preserve existing content
|
355 |
+
*
|
356 |
+
* Each 'taxonomy' category array element is a rule (array) containing:
|
357 |
+
* 'name' => taxonomy slug, e.g., 'post_tag', 'attachment_category'
|
358 |
+
* 'hierarchical' => boolean; true for hierarchical taxonomies
|
359 |
+
* 'iptc_value' => IPTC Identifier or friendly name
|
360 |
+
* 'exif_value' => EXIF element name
|
361 |
+
* 'iptc_first' => boolean; true to prefer IPTC value over EXIF value
|
362 |
+
* 'keep_existing' => boolean; true to preserve existing content
|
363 |
+
* 'parent' => zero for none or the term_id of the parent
|
364 |
+
* 'delimiters' => term separator(s), e.g., ',;'
|
365 |
+
*
|
366 |
+
* Each 'custom' category array element is a rule (array) containing:
|
367 |
+
* 'name' => custom field name
|
368 |
+
* 'iptc_value' => IPTC Identifier or friendly name
|
369 |
+
* 'exif_value' => EXIF element name
|
370 |
+
* 'iptc_first' => boolean; true to prefer IPTC value over EXIF value
|
371 |
+
* 'keep_existing' => boolean; true to preserve existing content
|
372 |
+
*/
|
373 |
+
return $settings;
|
374 |
+
} // mla_mapping_settings_filter
|
375 |
+
|
376 |
+
/**
|
377 |
+
* MLA Mapping Rule Filter
|
378 |
+
*
|
379 |
+
* This filter is called once for each mapping rule, before the rule
|
380 |
+
* is evaluated. You can change the rule parameters, or prevent rule
|
381 |
+
* evaluation by returning $setting_value['data_source'] = 'none';
|
382 |
+
*
|
383 |
+
* @since 1.00
|
384 |
+
*
|
385 |
+
* @param array custom_field_mapping rule
|
386 |
+
* @param integer post ID to be evaluated
|
387 |
+
* @param string category/scope to evaluate against: custom_field_mapping or single_attachment_mapping
|
388 |
+
* @param array attachment_metadata, default NULL
|
389 |
+
*
|
390 |
+
* @return array updated custom_field_mapping rule
|
391 |
+
*/
|
392 |
+
public static function mla_mapping_rule_filter( $setting_value, $post_id, $category, $attachment_metadata ) {
|
393 |
+
//error_log( 'MLAMetadataHooksExample::mla_mapping_rule_filter $setting_value = ' . var_export( $setting_value, true ), 0 );
|
394 |
+
//error_log( 'MLAMetadataHooksExample::mla_mapping_rule_filter $post_id = ' . var_export( $post_id, true ), 0 );
|
395 |
+
//error_log( 'MLAMetadataHooksExample::mla_mapping_rule_filter $category = ' . var_export( $category, true ), 0 );
|
396 |
+
//error_log( 'MLAMetadataHooksExample::mla_mapping_rule_filter $attachment_metadata = ' . var_export( $attachment_metadata, true ), 0 );
|
397 |
+
|
398 |
+
/*
|
399 |
+
* $setting_value is an array containing a mapping rule; see above
|
400 |
+
* To stop this rule's evaluation and mapping, return NULL
|
401 |
+
*/
|
402 |
+
return $setting_value;
|
403 |
+
} // mla_mapping_rule_filter
|
404 |
+
|
405 |
+
/**
|
406 |
+
* MLA Mapping Custom Field Value Filter
|
407 |
+
*
|
408 |
+
* This filter is called once for each custom field mapping rule, after the rule
|
409 |
+
* is evaluated. You can change the new value produced by the rule.
|
410 |
+
*
|
411 |
+
* @since 1.00
|
412 |
+
*
|
413 |
+
* @param mixed value returned by the rule
|
414 |
+
* @param array custom_field_mapping rule
|
415 |
+
* @param integer post ID to be evaluated
|
416 |
+
* @param string category/scope to evaluate against: custom_field_mapping or single_attachment_mapping
|
417 |
+
* @param array attachment_metadata, default NULL
|
418 |
+
*
|
419 |
+
* @return array updated rule value
|
420 |
+
*/
|
421 |
+
public static function mla_mapping_custom_value_filter( $new_text, $setting_value, $post_id, $category, $attachment_metadata ) {
|
422 |
+
//error_log( 'MLAMetadataHooksExample::mla_mapping_custom_value_filter $new_text = ' . var_export( $new_text, true ), 0 );
|
423 |
+
//error_log( 'MLAMetadataHooksExample::mla_mapping_custom_value_filter $setting_value = ' . var_export( $setting_value, true ), 0 );
|
424 |
+
//error_log( 'MLAMetadataHooksExample::mla_mapping_custom_value_filter $post_id = ' . var_export( $post_id, true ), 0 );
|
425 |
+
//error_log( 'MLAMetadataHooksExample::mla_mapping_custom_value_filter $category = ' . var_export( $category, true ), 0 );
|
426 |
+
//error_log( 'MLAMetadataHooksExample::mla_mapping_custom_value_filter $attachment_metadata = ' . var_export( $attachment_metadata, true ), 0 );
|
427 |
+
|
428 |
+
/*
|
429 |
+
* You can use MLAOptions::mla_get_data_source() to get anything available;
|
430 |
+
* for example:
|
431 |
+
*/
|
432 |
+
$my_setting = array(
|
433 |
+
'data_source' => 'size_names',
|
434 |
+
'option' => 'array'
|
435 |
+
);
|
436 |
+
//$size_names = MLAOptions::mla_get_data_source($post_id, $category, $my_setting, $attachment_metadata);
|
437 |
+
//error_log( 'MLAMetadataHooksExample::mla_mapping_custom_value_filter $size_names = ' . var_export( $size_names, true ), 0 );
|
438 |
+
|
439 |
+
/*
|
440 |
+
* For "empty" values, return ' '.
|
441 |
+
*/
|
442 |
+
return $new_text;
|
443 |
+
} // mla_mapping_custom_value_filter
|
444 |
+
|
445 |
+
/**
|
446 |
+
* MLA Mapping IPTC Value Filter
|
447 |
+
*
|
448 |
+
* This filter is called once for each IPTC/EXIF mapping rule, after the IPTC
|
449 |
+
* portion of the rule is evaluated. You can change the new value produced by
|
450 |
+
* the rule.
|
451 |
+
*
|
452 |
+
* @since 1.00
|
453 |
+
*
|
454 |
+
* @param mixed IPTC value returned by the rule
|
455 |
+
* @param array custom_field_mapping rule
|
456 |
+
* @param integer post ID to be evaluated
|
457 |
+
* @param string category/scope to evaluate against: custom_field_mapping or single_attachment_mapping
|
458 |
+
* @param array attachment_metadata, default NULL
|
459 |
+
*
|
460 |
+
* @return array updated rule IPTC value
|
461 |
+
*/
|
462 |
+
public static function mla_mapping_iptc_value_filter( $iptc_value, $setting_value, $post_id, $category, $attachment_metadata ) {
|
463 |
+
//error_log( 'MLAMetadataHooksExample::mla_mapping_iptc_value_filter $iptc_value = ' . var_export( $iptc_value, true ), 0 );
|
464 |
+
//error_log( 'MLAMetadataHooksExample::mla_mapping_iptc_value_filter $setting_value = ' . var_export( $setting_value, true ), 0 );
|
465 |
+
//error_log( 'MLAMetadataHooksExample::mla_mapping_iptc_value_filter $post_id = ' . var_export( $post_id, true ), 0 );
|
466 |
+
//error_log( 'MLAMetadataHooksExample::mla_mapping_iptc_value_filter $category = ' . var_export( $category, true ), 0 );
|
467 |
+
//error_log( 'MLAMetadataHooksExample::mla_mapping_iptc_value_filter $attachment_metadata = ' . var_export( $attachment_metadata, true ), 0 );
|
468 |
+
|
469 |
+
/*
|
470 |
+
* You can use MLAOptions::mla_get_data_source() to get anything available;
|
471 |
+
* for example:
|
472 |
+
*/
|
473 |
+
$my_setting = array(
|
474 |
+
'data_source' => 'template',
|
475 |
+
'meta_name' => '([+iptc:keywords+])',
|
476 |
+
'option' => 'array'
|
477 |
+
);
|
478 |
+
//$keywords = MLAOptions::mla_get_data_source($post_id, $category, $my_setting, $attachment_metadata);
|
479 |
+
//error_log( 'MLAMetadataHooksExample::mla_mapping_iptc_value_filter $keywords = ' . var_export( $keywords, true ), 0 );
|
480 |
+
|
481 |
+
/*
|
482 |
+
* For "empty" values, return ''.
|
483 |
+
*/
|
484 |
+
return $iptc_value;
|
485 |
+
} // mla_mapping_iptc_value_filter
|
486 |
+
|
487 |
+
/**
|
488 |
+
* MLA Mapping EXIF Value Filter
|
489 |
+
*
|
490 |
+
* This filter is called once for each IPTC/EXIF mapping rule, after the EXIF
|
491 |
+
* portion of the rule is evaluated. You can change the new value produced by
|
492 |
+
* the rule.
|
493 |
+
*
|
494 |
+
* @since 1.00
|
495 |
+
*
|
496 |
+
* @param mixed EXIF/Template value returned by the rule
|
497 |
+
* @param array custom_field_mapping rule
|
498 |
+
* @param integer post ID to be evaluated
|
499 |
+
* @param string category/scope to evaluate against: custom_field_mapping or single_attachment_mapping
|
500 |
+
* @param array attachment_metadata, default NULL
|
501 |
+
*
|
502 |
+
* @return array updated rule EXIF/Template value
|
503 |
+
*/
|
504 |
+
public static function mla_mapping_exif_value_filter( $exif_value, $setting_value, $post_id, $category, $attachment_metadata ) {
|
505 |
+
//error_log( 'MLAMetadataHooksExample::mla_mapping_exif_value_filter $exif_value = ' . var_export( $exif_value, true ), 0 );
|
506 |
+
//error_log( 'MLAMetadataHooksExample::mla_mapping_exif_value_filter $setting_value = ' . var_export( $setting_value, true ), 0 );
|
507 |
+
//error_log( 'MLAMetadataHooksExample::mla_mapping_exif_value_filter $post_id = ' . var_export( $post_id, true ), 0 );
|
508 |
+
//error_log( 'MLAMetadataHooksExample::mla_mapping_exif_value_filter $category = ' . var_export( $category, true ), 0 );
|
509 |
+
//error_log( 'MLAMetadataHooksExample::mla_mapping_exif_value_filter $attachment_metadata = ' . var_export( $attachment_metadata, true ), 0 );
|
510 |
+
|
511 |
+
/*
|
512 |
+
* You can use MLAOptions::mla_get_data_source() to get anything available;
|
513 |
+
* for example:
|
514 |
+
*/
|
515 |
+
$my_setting = array(
|
516 |
+
'data_source' => 'template',
|
517 |
+
'meta_name' => '([+exif:Copyright+])',
|
518 |
+
'option' => 'array'
|
519 |
+
);
|
520 |
+
//$copyright = MLAOptions::mla_get_data_source($post_id, $category, $my_setting, $attachment_metadata);
|
521 |
+
//error_log( 'MLAMetadataHooksExample::mla_mapping_exif_value_filter $copyright = ' . var_export( $copyright, true ), 0 );
|
522 |
+
|
523 |
+
/*
|
524 |
+
* For "empty" 'text' values, return ''.
|
525 |
+
* For "empty" 'array' values, return NULL.
|
526 |
+
*/
|
527 |
+
return $exif_value;
|
528 |
+
} // mla_mapping_exif_value_filter
|
529 |
+
|
530 |
+
/**
|
531 |
+
* MLA Mapping Updates Filter
|
532 |
+
*
|
533 |
+
* This filter is called AFTER all mapping rules are applied.
|
534 |
+
* You can add, change or remove updates for the attachment's
|
535 |
+
* standard fields, taxonomies and/or custom fields.
|
536 |
+
*
|
537 |
+
* @since 1.00
|
538 |
+
*
|
539 |
+
* @param array updates for the attachment's standard fields, taxonomies and/or custom fields
|
540 |
+
* @param integer post ID to be evaluated
|
541 |
+
* @param string category/scope to evaluate against: custom_field_mapping or single_attachment_mapping
|
542 |
+
* @param array mapping rules
|
543 |
+
* @param array attachment_metadata, default NULL
|
544 |
+
*
|
545 |
+
* @return array updated attachment's updates
|
546 |
+
*/
|
547 |
+
public static function mla_mapping_updates_filter( $updates, $post_id, $category, $settings, $attachment_metadata ) {
|
548 |
+
//error_log( 'MLAMetadataHooksExample::mla_mapping_updates_filter $updates = ' . var_export( $updates, true ), 0 );
|
549 |
+
//error_log( 'MLAMetadataHooksExample::mla_mapping_updates_filter $post_id = ' . var_export( $post_id, true ), 0 );
|
550 |
+
//error_log( 'MLAMetadataHooksExample::mla_mapping_updates_filter $category = ' . var_export( $category, true ), 0 );
|
551 |
+
//error_log( 'MLAMetadataHooksExample::mla_mapping_updates_filter $settings = ' . var_export( $settings, true ), 0 );
|
552 |
+
//error_log( 'MLAMetadataHooksExample::mla_mapping_updates_filter $attachment_metadata = ' . var_export( $attachment_metadata, true ), 0 );
|
553 |
+
|
554 |
+
/*
|
555 |
+
* To stop this rule's updates, return an empty array, i.e., return array();
|
556 |
+
*/
|
557 |
+
return $updates;
|
558 |
+
} // mla_mapping_updates_filter
|
559 |
+
|
560 |
+
/**
|
561 |
+
* MLA Mapping Updates Filter
|
562 |
+
*
|
563 |
+
* This filter is called AFTER all mapping rules are applied.
|
564 |
+
* You can add, change or remove updates for the attachment's
|
565 |
+
* standard fields, taxonomies and/or custom fields.
|
566 |
+
*
|
567 |
+
* @since 1.02
|
568 |
+
*
|
569 |
+
* @param array|false The entire tablist ( $tab = NULL ), a single tab entry or false if not found/not allowed.
|
570 |
+
* @param array The entire tablist
|
571 |
+
* @param string|NULL tab slug for single-element return or NULL to return entire tablist
|
572 |
+
*
|
573 |
+
* @return array updated attachment's updates
|
574 |
+
*/
|
575 |
+
public static function mla_get_options_tablist_filter( $results, $mla_tablist, $tab ) {
|
576 |
+
//error_log( 'MLAMetadataHooksExample::mla_get_options_tablist_filter $results = ' . var_export( $results, true ), 0 );
|
577 |
+
//error_log( 'MLAMetadataHooksExample::mla_get_options_tablist_filter $mla_tablist = ' . var_export( $mla_tablist, true ), 0 );
|
578 |
+
//error_log( 'MLAMetadataHooksExample::mla_get_options_tablist_filter $tab = ' . var_export( $tab, true ), 0 );
|
579 |
+
|
580 |
+
/*
|
581 |
+
* Return an updated $mla_tablist ( $tab = NULL ), an updated single element or false
|
582 |
+
*/
|
583 |
+
return $results;
|
584 |
+
|
585 |
+
/*
|
586 |
+
* Comment out the above return statement to fall through to this example,
|
587 |
+
* which removes the "Uploads" tab from the Settings/Media Library Assistant submenu
|
588 |
+
*/
|
589 |
+
if ( NULL == $tab ) {
|
590 |
+
unset( $results['upload'] );
|
591 |
+
} elseif ( 'upload' == $tab ) {
|
592 |
+
$results = false;
|
593 |
+
}
|
594 |
+
|
595 |
+
return $results;
|
596 |
+
} // mla_get_options_tablist_filter
|
597 |
+
|
598 |
+
/*
|
599 |
+
* Selected JPEG Section Markers
|
600 |
+
*/
|
601 |
+
const SOF0 = 0xC0; // Baseline Encoding
|
602 |
+
const SOI = 0xD8; // Start of image
|
603 |
+
const EOI = 0xD9; // End of image
|
604 |
+
const SOS = 0xDA; // Start of scan (image data)
|
605 |
+
const APP0 = 0xE0; // Application segment 0 JFIF Header
|
606 |
+
const APP1 = 0xE1; // Application segment 1 EXIF/XMP
|
607 |
+
const APP2 = 0xE2; // Application segment 2 EXIF Flashpix extensions
|
608 |
+
const APP13 = 0xED; // Application segment 13 IPTC
|
609 |
+
const COM = 0xFE; // Comment
|
610 |
+
|
611 |
+
/**
|
612 |
+
* Enumerate the sections of a JPEG file
|
613 |
+
*
|
614 |
+
* Returns an array of section descriptors, indexed by the section order, i.e., 0, 1, 2 ...
|
615 |
+
*
|
616 |
+
* Each array element is an array, containing:
|
617 |
+
* marker => section marker, e.g., 0xD8, 0xE0, 0xED
|
618 |
+
* offset => offset in the file of the "0xFF" marker introducing the section
|
619 |
+
* length => number of bytes in the section, including the "0xFF", marker byte and length field (if applicable)
|
620 |
+
*
|
621 |
+
* @since 1.01
|
622 |
+
*
|
623 |
+
* @param string File Contents
|
624 |
+
*
|
625 |
+
* @return array section list ( index => array( 'marker', 'offset', 'length' )
|
626 |
+
*/
|
627 |
+
private static function _enumerate_jpeg_sections( &$file_contents ) {
|
628 |
+
$file_length = strlen( $file_contents );
|
629 |
+
$file_offset = 0;
|
630 |
+
$section_array = array();
|
631 |
+
|
632 |
+
while ( $file_offset < $file_length ) {
|
633 |
+
$section_value = array();
|
634 |
+
|
635 |
+
// Find a marker
|
636 |
+
for ( $i = 0; $i < 7; $i++ ) {
|
637 |
+
if ( 0xFF != ord( $file_contents[ $file_offset + $i ] ) ) {
|
638 |
+
break;
|
639 |
+
}
|
640 |
+
}
|
641 |
+
|
642 |
+
$section_value['marker'] = $marker = ord( $file_contents[ $file_offset + $i ] );
|
643 |
+
|
644 |
+
if ( $marker >= self::SOF0 && $marker <= self::COM ) {
|
645 |
+
$section_value['offset'] = $file_offset + ( $i - 1);
|
646 |
+
|
647 |
+
if ( ( self::SOI == $marker ) || ( self::EOI == $marker ) ) {
|
648 |
+
$file_offset = $file_offset + ( $i + 1 );
|
649 |
+
} elseif ( self::SOS == $marker ) {
|
650 |
+
// Start of Scan precedes image data; skip to end of file/image
|
651 |
+
$file_offset = $file_length - 2;
|
652 |
+
|
653 |
+
// Scan backwards for End of Image marker
|
654 |
+
while ( ( 0xFF != ord( $file_contents[ $file_offset ] ) ) || ( self::EOI != ord( $file_contents[ $file_offset + 1 ] ) ) ) {
|
655 |
+
$file_offset--;
|
656 |
+
if ( $file_offset == $start_of_image ) {
|
657 |
+
// Give up - no End of Image marker
|
658 |
+
$file_offset = $file_length;
|
659 |
+
break;
|
660 |
+
}
|
661 |
+
}
|
662 |
+
} else {
|
663 |
+
// Big Endian length
|
664 |
+
$length = 256 * ord( $file_contents[ $file_offset + ++$i ] );
|
665 |
+
$length += ord( $file_contents[ $file_offset + ++$i ] );
|
666 |
+
$file_offset = $section_value['offset'] + 2 + $length;
|
667 |
+
}
|
668 |
+
}
|
669 |
+
else {
|
670 |
+
// No marker or invalid marker
|
671 |
+
if ( 0 < $i ) {
|
672 |
+
$section_value['offset'] = $file_offset + ( $i - 1 );
|
673 |
+
} else {
|
674 |
+
$section_value['offset'] = $file_offset + $i;
|
675 |
+
}
|
676 |
+
$file_offset = $file_offset + ( $i + 1 );
|
677 |
+
|
678 |
+
while ( $file_offset < $file_length ) {
|
679 |
+
if ( 0xFF == ord( $file_contents[ $file_offset ] ) ) {
|
680 |
+
break;
|
681 |
+
} else {
|
682 |
+
$file_offset++;
|
683 |
+
}
|
684 |
+
}
|
685 |
+
} // invalid marker
|
686 |
+
|
687 |
+
$section_value['length'] = $file_offset - $section_value['offset'];
|
688 |
+
$section_array[] = $section_value;
|
689 |
+
error_log( 'MLAMetadataHooksExample::_enumerate_jpeg_sections $section_value = ' . var_export( $section_value, true ), 0 );
|
690 |
+
} // while offset < length
|
691 |
+
|
692 |
+
return $section_array;
|
693 |
+
} // _enumerate_jpeg_sections
|
694 |
+
|
695 |
+
/**
|
696 |
+
* Extract IPTC, EXIF/XMP and Comment data from a JPEG file
|
697 |
+
*
|
698 |
+
* Returns an array of section content, indexed by the section order
|
699 |
+
*
|
700 |
+
* Each array element is an array, containing:
|
701 |
+
* marker => section marker, e.g., 0xD8, 0xE0, 0xED
|
702 |
+
* content => data bytes in the section
|
703 |
+
*
|
704 |
+
* @since 1.01
|
705 |
+
*
|
706 |
+
* @param string Absolute path to the file
|
707 |
+
*
|
708 |
+
* @return array section list ( index => array( 'marker', 'content' )
|
709 |
+
*/
|
710 |
+
private static function _extract_jpeg_metadata( $path ) {
|
711 |
+
$metadata = array();
|
712 |
+
$file_contents = file_get_contents( $path, true );
|
713 |
+
if ( $file_contents ) {
|
714 |
+
$sections = self::_enumerate_jpeg_sections( $file_contents );
|
715 |
+
foreach( $sections as $section ) {
|
716 |
+
if ( in_array( $section['marker'], array( self::APP1, self::APP2, self::APP13, self::COM ) ) ) {
|
717 |
+
$metadata[] = array( 'marker' => $section['marker'],
|
718 |
+
'content' => substr( $file_contents, $section['offset'], $section['length'] )
|
719 |
+
);
|
720 |
+
} // found metadata
|
721 |
+
} // foreach section
|
722 |
+
}
|
723 |
+
|
724 |
+
return $metadata;
|
725 |
+
} // _extract_jpeg_metadata
|
726 |
+
|
727 |
+
/**
|
728 |
+
* Add/replace IPTC, EXIF/XMP and Comment data in a JPEG file
|
729 |
+
*
|
730 |
+
* @since 1.01
|
731 |
+
*
|
732 |
+
* @param string Absolute path to the destination file
|
733 |
+
* @param array Metadata sections from _extract_jpeg_metadata
|
734 |
+
*
|
735 |
+
* @return void
|
736 |
+
*/
|
737 |
+
private static function _replace_jpeg_metadata( $path, $metadata ) {
|
738 |
+
error_log( 'MLAMetadataHooksExample::_replace_jpeg_metadata $path = ' . var_export( $path, true ), 0 );
|
739 |
+
error_log( 'MLAMetadataHooksExample::_replace_jpeg_metadata $marker = ' . var_export( $metadata[0]['marker'], true ), 0 );
|
740 |
+
|
741 |
+
$pathinfo = pathinfo( $path );
|
742 |
+
$temp_path = $pathinfo['dirname'] . '/' . $pathinfo['filename'] . '-MLA' . $pathinfo['extension'];
|
743 |
+
error_log( 'MLAMetadataHooksExample::_replace_jpeg_metadata $temp_path = ' . var_export( $temp_path, true ), 0 );
|
744 |
+
|
745 |
+
/*
|
746 |
+
* Default to the old COM section if the destination file lacks one
|
747 |
+
*/
|
748 |
+
$COM_section = NULL;
|
749 |
+
foreach ( $metadata as $section ) {
|
750 |
+
if ( self::COM == $section['marker'] ) {
|
751 |
+
$COM_section = $section['content'];
|
752 |
+
}
|
753 |
+
}
|
754 |
+
|
755 |
+
/*
|
756 |
+
* Strip the destination "APP1, APP2, APP13" sections.
|
757 |
+
* Separate out the SOI, APP0 and COM sections.
|
758 |
+
*/
|
759 |
+
$SOI_section = NULL;
|
760 |
+
$APP0_section = NULL;
|
761 |
+
$destination_sections = array ();
|
762 |
+
$file_contents = file_get_contents( $path, true );
|
763 |
+
if ( $file_contents ) {
|
764 |
+
$destination_sections = self::_enumerate_jpeg_sections( $file_contents );
|
765 |
+
foreach ( $destination_sections as $index => $value ) {
|
766 |
+
if ( self::SOI == $value['marker'] ) {
|
767 |
+
$SOI_section = substr( $file_contents, $value['offset'], $value['length'] );
|
768 |
+
unset( $destination_sections[ $index ] );
|
769 |
+
} elseif ( self::APP0 == $value['marker'] ) {
|
770 |
+
$APP0_section = substr( $file_contents, $value['offset'], $value['length'] );
|
771 |
+
unset( $destination_sections[ $index ] );
|
772 |
+
} elseif ( self::COM == $value['marker'] ) {
|
773 |
+
$COM_section = substr( $file_contents, $value['offset'], $value['length'] );
|
774 |
+
unset( $destination_sections[ $index ] );
|
775 |
+
} elseif ( ( self::APP1 == $value['marker'] ) || ( self::APP2 == $value['marker'] ) || ( self::APP13 == $value['marker'] ) ) {
|
776 |
+
unset( $destination_sections[ $index ] );
|
777 |
+
}
|
778 |
+
}
|
779 |
+
error_log( 'MLAMetadataHooksExample::_replace_jpeg_metadata $SOI_section = ' . var_export( $SOI_section, true ), 0 );
|
780 |
+
error_log( 'MLAMetadataHooksExample::_replace_jpeg_metadata $APP0_section = ' . var_export( $APP0_section, true ), 0 );
|
781 |
+
error_log( 'MLAMetadataHooksExample::_replace_jpeg_metadata $COM_section = ' . var_export( $COM_section, true ), 0 );
|
782 |
+
error_log( 'MLAMetadataHooksExample::_replace_jpeg_metadata $destination_sections = ' . var_export( $destination_sections, true ), 0 );
|
783 |
+
|
784 |
+
if ( ( NULL == $SOI_section ) || ( NULL == $APP0_section ) ) {
|
785 |
+
return;
|
786 |
+
}
|
787 |
+
|
788 |
+
@unlink( $temp_path );
|
789 |
+
$temp_handle = @fopen( $temp_path, 'wb' );
|
790 |
+
if ( false === $temp_handle ) {
|
791 |
+
error_log( 'MLAMetadataHooksExample::_replace_jpeg_metadata fopen error = ' . var_export( error_get_last(), true ), 0 );
|
792 |
+
return;
|
793 |
+
}
|
794 |
+
|
795 |
+
if ( false === @fwrite( $temp_handle, $SOI_section ) ) {
|
796 |
+
error_log( 'MLAMetadataHooksExample::_replace_jpeg_metadata fwrite SOI error = ' . var_export( error_get_last(), true ), 0 );
|
797 |
+
@fclose( $temp_handle );
|
798 |
+
@unlink( $temp_path );
|
799 |
+
return;
|
800 |
+
}
|
801 |
+
|
802 |
+
if ( false === @fwrite( $temp_handle, $APP0_section ) ) {
|
803 |
+
error_log( 'MLAMetadataHooksExample::_replace_jpeg_metadata fwrite APP0 error = ' . var_export( error_get_last(), true ), 0 );
|
804 |
+
@fclose( $temp_handle );
|
805 |
+
@unlink( $temp_path );
|
806 |
+
return;
|
807 |
+
}
|
808 |
+
|
809 |
+
if ( ! empty( $COM_section ) ) {
|
810 |
+
if ( false === @fwrite( $temp_handle, $COM_section ) ) {
|
811 |
+
error_log( 'MLAMetadataHooksExample::_replace_jpeg_metadata fwrite COM error = ' . var_export( error_get_last(), true ), 0 );
|
812 |
+
@fclose( $temp_handle );
|
813 |
+
@unlink( $temp_path );
|
814 |
+
return;
|
815 |
+
}
|
816 |
+
}
|
817 |
+
|
818 |
+
foreach ( $metadata as $section ) {
|
819 |
+
if ( false === @fwrite( $temp_handle, $section['content'] ) ) {
|
820 |
+
error_log( 'MLAMetadataHooksExample::_replace_jpeg_metadata fwrite metadata marker = ' . var_export( $section['marker'], true ), 0 );
|
821 |
+
error_log( 'MLAMetadataHooksExample::_replace_jpeg_metadata fwrite metadata error = ' . var_export( error_get_last(), true ), 0 );
|
822 |
+
@fclose( $temp_handle );
|
823 |
+
@unlink( $temp_path );
|
824 |
+
return;
|
825 |
+
}
|
826 |
+
}
|
827 |
+
|
828 |
+
foreach ( $destination_sections as $section ) {
|
829 |
+
if ( false === @fwrite( $temp_handle, substr( $file_contents, $section['offset'], $section['length'] ) ) ) {
|
830 |
+
error_log( 'MLAMetadataHooksExample::_replace_jpeg_metadata fwrite destination_sections marker = ' . var_export( $section['marker'], true ), 0 );
|
831 |
+
error_log( 'MLAMetadataHooksExample::_replace_jpeg_metadata fwrite destination_sections error = ' . var_export( error_get_last(), true ), 0 );
|
832 |
+
@fclose( $temp_handle );
|
833 |
+
@unlink( $temp_path );
|
834 |
+
return;
|
835 |
+
}
|
836 |
+
}
|
837 |
+
|
838 |
+
if ( false === @fclose( $temp_handle ) ) {
|
839 |
+
error_log( 'ERROR: MLAMetadataHooksExample::_replace_jpeg_metadata fclose = ' . var_export( error_get_last(), true ), 0 );
|
840 |
+
return;
|
841 |
+
}
|
842 |
+
|
843 |
+
if ( false === @unlink( $path ) ) {
|
844 |
+
error_log( 'ERROR: MLAMetadataHooksExample::_replace_jpeg_metadata unlink = ' . var_export( error_get_last(), true ), 0 );
|
845 |
+
return;
|
846 |
+
}
|
847 |
+
|
848 |
+
if ( false === @rename( $temp_path, $path ) ) {
|
849 |
+
error_log( 'ERROR: MLAMetadataHooksExample::_replace_jpeg_metadata rename = ' . var_export( error_get_last(), true ), 0 );
|
850 |
+
return;
|
851 |
+
}
|
852 |
+
} // if $file_contents
|
853 |
+
} // _replace_jpeg_metadata
|
854 |
+
} //MLAMetadataHooksExample
|
855 |
+
|
856 |
+
/*
|
857 |
+
* Install the filters at an early opportunity
|
858 |
+
*/
|
859 |
+
add_action('init', 'MLAMetadataHooksExample::initialize');
|
860 |
+
?>
|
examples/mla-tax-query-example.php.txt
ADDED
@@ -0,0 +1,377 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Provides a custom example of hooking the filters provided by the [mla_gallery] shortcode:
|
4 |
+
*
|
5 |
+
* - In the "mla_gallery_arguments" filter is an example of detecting MLA pagination, e.g.,
|
6 |
+
* mla_output="paginate_links,prev_next and supplying the count required to accomodate it.
|
7 |
+
*
|
8 |
+
* - In the "mla_gallery_query_arguments" filter is an example of a custom SQL query
|
9 |
+
* that replaces the usual "simple taxonomy" get_posts/WP_Query results.
|
10 |
+
*
|
11 |
+
* All of the real action happens in the "_query()" function at the bottom of the source.
|
12 |
+
* The simplification relies on the assumption that the taxonomy and term(s) given as input are
|
13 |
+
* ONLY used for Media Library image items, so we can omit tests on post_mime_type, post_type
|
14 |
+
* and post_status.
|
15 |
+
*
|
16 |
+
* @package MLA tax query Example
|
17 |
+
* @version 1.00
|
18 |
+
*/
|
19 |
+
|
20 |
+
/*
|
21 |
+
Plugin Name: MLA tax query Example
|
22 |
+
Plugin URI: http://fairtradejudaica.org/media-library-assistant-a-wordpress-plugin/
|
23 |
+
Description: Provides an example of hooking the filters provided by the [mla_gallery] shortcode
|
24 |
+
Author: David Lingren
|
25 |
+
Version: 1.00
|
26 |
+
Author URI: http://fairtradejudaica.org/our-story/staff/
|
27 |
+
|
28 |
+
Copyright 2013, 2014 David Lingren
|
29 |
+
|
30 |
+
This program is free software; you can redistribute it and/or modify
|
31 |
+
it under the terms of the GNU General Public License as published by
|
32 |
+
the Free Software Foundation; either version 2 of the License, or
|
33 |
+
(at your option) any later version.
|
34 |
+
|
35 |
+
This program is distributed in the hope that it will be useful,
|
36 |
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
37 |
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
38 |
+
GNU General Public License for more details.
|
39 |
+
|
40 |
+
You can get a copy of the GNU General Public License by writing to the
|
41 |
+
Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
|
42 |
+
*/
|
43 |
+
|
44 |
+
/**
|
45 |
+
* Class MLA tax query Example hooks three of the filters provided by the [mla_gallery] shortcode
|
46 |
+
*
|
47 |
+
* Call it anything you want, but give it an unlikely and hopefully unique name. Hiding enerything
|
48 |
+
* else inside a class means this is the only name you have to worry about.
|
49 |
+
*
|
50 |
+
* @package MLA tax query Example
|
51 |
+
* @since 1.00
|
52 |
+
*/
|
53 |
+
class MLATaxQueryExample {
|
54 |
+
/**
|
55 |
+
* Initialization function, similar to __construct()
|
56 |
+
*
|
57 |
+
* @since 1.00
|
58 |
+
*
|
59 |
+
* @return void
|
60 |
+
*/
|
61 |
+
public static function initialize() {
|
62 |
+
/*
|
63 |
+
* The filters are only useful for front-end posts/pages; exit if in the admin section
|
64 |
+
*/
|
65 |
+
if ( is_admin() )
|
66 |
+
return;
|
67 |
+
|
68 |
+
/*
|
69 |
+
* add_filter parameters:
|
70 |
+
* $tag - name of the hook you're filtering; defined by [mla_gallery]
|
71 |
+
* $function_to_add - function to be called when [mla_gallery] applies the filter
|
72 |
+
* $priority - default 10; lower runs earlier, higher runs later
|
73 |
+
* $accepted_args - number of arguments your function accepts
|
74 |
+
*/
|
75 |
+
add_filter( 'mla_gallery_attributes', 'MLATaxQueryExample::mla_gallery_attributes_filter', 10, 1 );
|
76 |
+
add_filter( 'mla_gallery_arguments', 'MLATaxQueryExample::mla_gallery_arguments_filter', 10, 1 );
|
77 |
+
add_filter( 'mla_gallery_query_arguments', 'MLATaxQueryExample::mla_gallery_query_arguments_filter', 10, 1 );
|
78 |
+
}
|
79 |
+
|
80 |
+
/**
|
81 |
+
* Save the shortcode attributes
|
82 |
+
*
|
83 |
+
* @since 1.00
|
84 |
+
*
|
85 |
+
* @var array
|
86 |
+
*/
|
87 |
+
private static $shortcode_attributes = array();
|
88 |
+
|
89 |
+
/**
|
90 |
+
* MLA Gallery (Display) Attributes
|
91 |
+
*
|
92 |
+
* This filter gives you an opportunity to record or modify the arguments passed in to the shortcode
|
93 |
+
* before they are merged with the default arguments used for the gallery display.
|
94 |
+
*
|
95 |
+
* The $shortcode_attributes array is where you will find any of your own parameters that are coded in the
|
96 |
+
* shortcode, e.g., [mla_gallery my_custom_sql="attachment_tag=fireplaces"].
|
97 |
+
*
|
98 |
+
* @since 1.00
|
99 |
+
*
|
100 |
+
* @param array the shortcode parameters passed in to the shortcode
|
101 |
+
*
|
102 |
+
* @return array updated shortcode attributes
|
103 |
+
*/
|
104 |
+
public static function mla_gallery_attributes_filter( $shortcode_attributes ) {
|
105 |
+
/*
|
106 |
+
* Uncomment the error_log statements in any of the filters to see what's passed in
|
107 |
+
*/
|
108 |
+
//error_log( 'MLATaxQueryExample::mla_gallery_attributes_filter $shortcode_attributes = ' . var_export( $shortcode_attributes, true ), 0 );
|
109 |
+
|
110 |
+
/*
|
111 |
+
* Save the attributes for use in the later filters
|
112 |
+
*/
|
113 |
+
self::$shortcode_attributes = $shortcode_attributes;
|
114 |
+
|
115 |
+
return $shortcode_attributes;
|
116 |
+
} // mla_gallery_attributes_filter
|
117 |
+
|
118 |
+
/**
|
119 |
+
* Save the shortcode arguments
|
120 |
+
*
|
121 |
+
* @since 1.00
|
122 |
+
*
|
123 |
+
* @var array
|
124 |
+
*/
|
125 |
+
private static $all_display_parameters = array();
|
126 |
+
|
127 |
+
/**
|
128 |
+
* MLA Gallery (Display) Arguments
|
129 |
+
*
|
130 |
+
* This filter gives you an opportunity to record or modify the gallery display arguments
|
131 |
+
* after the shortcode attributes are merged with the default arguments.
|
132 |
+
*
|
133 |
+
* Note that the values in this array are input or default values, not the final computed values
|
134 |
+
* used for the gallery display.
|
135 |
+
*
|
136 |
+
* @since 1.00
|
137 |
+
*
|
138 |
+
* @param array shortcode arguments merged with gallery display defaults, so every possible parameter is present
|
139 |
+
*
|
140 |
+
* @return array updated gallery display arguments
|
141 |
+
*/
|
142 |
+
public static function mla_gallery_arguments_filter( $all_display_parameters ) {
|
143 |
+
if ( isset( self::$shortcode_attributes['my_custom_sql'] ) ) {
|
144 |
+
/*
|
145 |
+
* Determine output type; if it's pagination, count the rows and add the result to the parameters.
|
146 |
+
* See the _query() function for details.
|
147 |
+
*/
|
148 |
+
$output_parameters = array_map( 'strtolower', array_map( 'trim', explode( ',', $all_display_parameters['mla_output'] ) ) );
|
149 |
+
$is_pagination = in_array( $output_parameters[0], array( 'previous_page', 'next_page', 'paginate_links' ) );
|
150 |
+
|
151 |
+
if ( $is_pagination ) {
|
152 |
+
$all_display_parameters['mla_paginate_rows'] = self::_query( NULL, true );
|
153 |
+
}
|
154 |
+
} // my_custom_sql present
|
155 |
+
|
156 |
+
//error_log( 'MLATaxQueryExample::mla_gallery_arguments_filter $all_display_parameters = ' . var_export( $all_display_parameters, true ), 0 );
|
157 |
+
|
158 |
+
self::$all_display_parameters = $all_display_parameters;
|
159 |
+
return $all_display_parameters;
|
160 |
+
} // mla_gallery_arguments_filter
|
161 |
+
|
162 |
+
/**
|
163 |
+
* MLA Gallery Query Arguments
|
164 |
+
*
|
165 |
+
* This filter gives you an opportunity to record or modify the attachment query arguments
|
166 |
+
* after the shortcode attributes are merged with the default arguments.
|
167 |
+
*
|
168 |
+
* @since 1.00
|
169 |
+
*
|
170 |
+
* @param array shortcode arguments merged with attachment selection defaults, so every possible parameter is present
|
171 |
+
*
|
172 |
+
* @return array updated attachment query arguments
|
173 |
+
*/
|
174 |
+
public static function mla_gallery_query_arguments_filter( $all_query_parameters ) {
|
175 |
+
/*
|
176 |
+
* This example executes a custom SQL query that is much simpler than the usual
|
177 |
+
* WordPress WP_Query arguments. See the _query() function for details.
|
178 |
+
*
|
179 |
+
* We use a shortcode parameter of our own to apply this filter on a gallery-by-gallery
|
180 |
+
* basis, leaving other [mla_gallery] instances untouched. If the "my_custom_sql" parameter
|
181 |
+
* is not present, we have nothing to do. If the parameter IS present, _query() extracts
|
182 |
+
* taxonomy values, then builds a custom query that does a simple, high-performance search.
|
183 |
+
*/
|
184 |
+
if ( isset( self::$shortcode_attributes['my_custom_sql'] ) ) {
|
185 |
+
$all_query_parameters = self::_query( $all_query_parameters );
|
186 |
+
}
|
187 |
+
|
188 |
+
//error_log( 'MLATaxQueryExample::mla_gallery_query_arguments_filter $all_query_parameters = ' . var_export( $all_query_parameters, true ), 0 );
|
189 |
+
return $all_query_parameters;
|
190 |
+
} // mla_gallery_query_arguments_filter
|
191 |
+
|
192 |
+
/**
|
193 |
+
* Custom query support function
|
194 |
+
*
|
195 |
+
* Calculates found_rows for pagination or included attachments for gallery.
|
196 |
+
*
|
197 |
+
* @since 1.00
|
198 |
+
*
|
199 |
+
* @param array shortcode arguments merged with attachment selection defaults, so every possible parameter is present
|
200 |
+
* @param boolean true for pagination result, false for gallery result
|
201 |
+
*
|
202 |
+
* @return integer|array found_rows or updated query parameters
|
203 |
+
*/
|
204 |
+
private static function _query( $all_query_parameters, $is_pagination = false ) {
|
205 |
+
global $wpdb;
|
206 |
+
//error_log( 'MLATaxQueryExample::_query $all_query_parameters = ' . var_export( $all_query_parameters, true ), 0 );
|
207 |
+
//error_log( 'MLATaxQueryExample::_query $is_pagination = ' . var_export( $is_pagination, true ), 0 );
|
208 |
+
|
209 |
+
/*
|
210 |
+
* This example executes a custom SQL query that is much simpler than the usual
|
211 |
+
* WordPress WP_Query arguments.
|
212 |
+
*
|
213 |
+
* For pagination controls, the number of terms satisfying the query parameters is returned.
|
214 |
+
* For gallery display, the query results are fed back to the [mla_gallery] shortcode as a
|
215 |
+
* list of attachments using the "include" parameter.
|
216 |
+
*
|
217 |
+
* The simplification relies on the assumption that the taxonomy and term(s) given as input are
|
218 |
+
* ONLY used for Media Library image items, so we can omit tests on post_mime_type, post_type
|
219 |
+
* and post_status.
|
220 |
+
*/
|
221 |
+
|
222 |
+
// Make sure $my_query_vars is an array, even if it's empty
|
223 |
+
$my_query_vars = self::$shortcode_attributes['my_custom_sql'];
|
224 |
+
if ( empty( $my_query_vars ) ) {
|
225 |
+
$my_query_vars = array();
|
226 |
+
} elseif ( is_string( $my_query_vars ) ) {
|
227 |
+
$my_query_vars = shortcode_parse_atts( $my_query_vars );
|
228 |
+
}
|
229 |
+
|
230 |
+
// Start with empty parameter values
|
231 |
+
$ttids = array();
|
232 |
+
|
233 |
+
// Find taxonomy argument, if present, and collect terms
|
234 |
+
$taxonomies = get_taxonomies( array( 'object_type' => array( 'attachment' ) ), 'names' );
|
235 |
+
foreach( $taxonomies as $taxonomy ) {
|
236 |
+
if ( empty( $my_query_vars[ $taxonomy ] ) ) {
|
237 |
+
continue;
|
238 |
+
}
|
239 |
+
|
240 |
+
// Found the taxonomy; collect the terms
|
241 |
+
$include_children = isset( $my_query_vars['include_children'] ) && 'true' == strtolower( trim( $my_query_vars['include_children'] ) );
|
242 |
+
|
243 |
+
// Allow for multiple term slug values
|
244 |
+
$terms = array();
|
245 |
+
$slugs = explode( ',', $my_query_vars[ $taxonomy ] );
|
246 |
+
foreach ( $slugs as $slug ) {
|
247 |
+
$args = array( 'slug' => $slug, 'hide_empty' => false );
|
248 |
+
$terms = array_merge( $terms, get_terms( $taxonomy, $args ) );
|
249 |
+
}
|
250 |
+
|
251 |
+
foreach( $terms as $term ) {
|
252 |
+
// Index by ttid to remove duplicates
|
253 |
+
$ttids[ $term->term_taxonomy_id ] = $term->term_taxonomy_id;
|
254 |
+
|
255 |
+
if ( $include_children ) {
|
256 |
+
$args = array( 'child_of' => $term->term_id, 'hide_empty' => false );
|
257 |
+
$children = get_terms( 'attachment_category', $args );
|
258 |
+
foreach( $children as $child ) {
|
259 |
+
$ttids[] = $child->term_taxonomy_id;
|
260 |
+
}
|
261 |
+
} // include_children
|
262 |
+
} // $term
|
263 |
+
|
264 |
+
break;
|
265 |
+
}
|
266 |
+
|
267 |
+
// Build an array of SQL clauses
|
268 |
+
$query = array();
|
269 |
+
$query_parameters = array();
|
270 |
+
|
271 |
+
if ( $is_pagination ) {
|
272 |
+
$query[] = "SELECT COUNT( DISTINCT object_id ) FROM {$wpdb->term_relationships} as tr";
|
273 |
+
} else {
|
274 |
+
$query[] = "SELECT DISTINCT tr.object_id FROM {$wpdb->term_relationships} as tr";
|
275 |
+
}
|
276 |
+
|
277 |
+
$placeholders = array();
|
278 |
+
if ( ! empty( $ttids ) ) {
|
279 |
+
foreach ( $ttids as $ttid ) {
|
280 |
+
$placeholders[] = '%s';
|
281 |
+
$query_parameters[] = $ttid;
|
282 |
+
}
|
283 |
+
} else {
|
284 |
+
$placeholders[] = '%s';
|
285 |
+
$query_parameters[] = '0';
|
286 |
+
}
|
287 |
+
|
288 |
+
$query[] = 'WHERE ( tr.term_taxonomy_id IN (' . join( ',', $placeholders ) . ') )';
|
289 |
+
|
290 |
+
// ORDER BY clause would go here, if needed
|
291 |
+
|
292 |
+
if ( ! $is_pagination ) {
|
293 |
+
/*
|
294 |
+
* Add pagination to our query, then remove it from the query
|
295 |
+
* that WordPress will process after we're done.
|
296 |
+
* MLA pagination will override WordPress pagination
|
297 |
+
*/
|
298 |
+
if ( ! empty( $all_query_parameters['mla_paginate_current'] ) ) {
|
299 |
+
if ( isset( $all_query_parameters['mla_paginate_total'] ) && ( $all_query_parameters['mla_paginate_current'] > $all_query_parameters['mla_paginate_total'] ) ) {
|
300 |
+
$paged = 0xFFFF; // suppress further output
|
301 |
+
} else {
|
302 |
+
$paged = $all_query_parameters['mla_paginate_current'];
|
303 |
+
}
|
304 |
+
} else {
|
305 |
+
$paged = $all_query_parameters['paged'];
|
306 |
+
}
|
307 |
+
|
308 |
+
if ( empty( $paged ) ) {
|
309 |
+
$paged = 1;
|
310 |
+
} elseif ( 'current' == strtolower( $paged ) ) {
|
311 |
+
/*
|
312 |
+
* Note: The query variable 'page' holds the pagenumber for a single paginated
|
313 |
+
* Post or Page that includes the <!--nextpage--> Quicktag in the post content.
|
314 |
+
*/
|
315 |
+
if ( get_query_var( 'page' ) ) {
|
316 |
+
$paged = get_query_var( 'page' );
|
317 |
+
} else {
|
318 |
+
$paged = ( get_query_var('paged') ) ? get_query_var('paged') : 1;
|
319 |
+
}
|
320 |
+
} elseif ( is_numeric( $paged ) ) {
|
321 |
+
$paged = absint( $paged );
|
322 |
+
} elseif ( '' === $paged ) {
|
323 |
+
$paged = 1;
|
324 |
+
}
|
325 |
+
|
326 |
+
$limit = absint( ! empty( $all_query_parameters['posts_per_page'] ) ? $all_query_parameters['posts_per_page'] : $all_query_parameters['numberposts'] );
|
327 |
+
$offset = $limit * ( $paged - 1);
|
328 |
+
if ( 0 < $offset && 0 < $limit ) {
|
329 |
+
$query[] = 'LIMIT %d, %d';
|
330 |
+
$query_parameters[] = $offset;
|
331 |
+
$query_parameters[] = $limit;
|
332 |
+
} elseif ( 0 < $limit ) {
|
333 |
+
$query[] = 'LIMIT %d';
|
334 |
+
$query_parameters[] = $limit;
|
335 |
+
} elseif ( 0 < $offset ) {
|
336 |
+
$query[] = 'LIMIT %d, %d';
|
337 |
+
$query_parameters[] = $offset;
|
338 |
+
$query_parameters[] = 0x7FFFFFFF; // big number!
|
339 |
+
}
|
340 |
+
|
341 |
+
$all_query_parameters['nopaging'] = true;
|
342 |
+
$all_query_parameters['numberposts'] = 0;
|
343 |
+
$all_query_parameters['posts_per_page'] = 0;
|
344 |
+
$all_query_parameters['paged'] = NULL;
|
345 |
+
$all_query_parameters['offset'] = NULL;
|
346 |
+
$all_query_parameters['mla_paginate_current'] = NULL;
|
347 |
+
$all_query_parameters['mla_paginate_total'] = NULL ;
|
348 |
+
} // ! is_pagination
|
349 |
+
|
350 |
+
$query = join(' ', $query);
|
351 |
+
if ( $is_pagination ) {
|
352 |
+
$count = $wpdb->get_var( $wpdb->prepare( $query, $query_parameters ) );
|
353 |
+
//error_log( 'MLATaxQueryExample::_query $count = ' . var_export( $count, true ), 0 );
|
354 |
+
return $count;
|
355 |
+
}
|
356 |
+
|
357 |
+
$ids = $wpdb->get_results( $wpdb->prepare( $query, $query_parameters ) );
|
358 |
+
if ( is_array( $ids ) ) {
|
359 |
+
$includes = array();
|
360 |
+
foreach ( $ids as $id ) {
|
361 |
+
$includes[] = $id->object_id;
|
362 |
+
}
|
363 |
+
$all_query_parameters['include'] = implode( ',', $includes );
|
364 |
+
} else {
|
365 |
+
$all_query_parameters['include'] = '1'; // return no images
|
366 |
+
}
|
367 |
+
|
368 |
+
//error_log( 'MLATaxQueryExample::_query $all_query_parameters = ' . var_export( $all_query_parameters, true ), 0 );
|
369 |
+
return $all_query_parameters;
|
370 |
+
} // _query
|
371 |
+
} // Class MLATaxQueryExample
|
372 |
+
|
373 |
+
/*
|
374 |
+
* Install the filters at an early opportunity
|
375 |
+
*/
|
376 |
+
add_action('init', 'MLATaxQueryExample::initialize');
|
377 |
+
?>
|
examples/twentytwelve-mla/content-jkeast-dropdown-simple.php
ADDED
@@ -0,0 +1,125 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* The template used for displaying "JKEast Dropdown" content in page-jkeast-dropdown.php
|
4 |
+
*
|
5 |
+
* The default taxonomy slug is "attachment_tag". You can select the taxonomy you want by adding
|
6 |
+
* a query parameter to the URL, e.g., "?my_taxonomy=attachment_category".
|
7 |
+
*
|
8 |
+
* The default taxonomy term is empty. You must select the term you want by adding
|
9 |
+
* a query parameter to the URL, e.g., "?my_term=yellow".
|
10 |
+
*
|
11 |
+
* @package Media Library Assistant
|
12 |
+
* @subpackage MLA_Child_Theme
|
13 |
+
* @version 1.00
|
14 |
+
* @since MLA 1.80
|
15 |
+
*/
|
16 |
+
|
17 |
+
/**
|
18 |
+
* Harmless declaration to suppress phpDocumentor "No page-level DocBlock" error
|
19 |
+
*
|
20 |
+
* @global $post
|
21 |
+
*/
|
22 |
+
global $post;
|
23 |
+
?>
|
24 |
+
|
25 |
+
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
26 |
+
<header class="entry-header">
|
27 |
+
<?php the_post_thumbnail(); ?>
|
28 |
+
<h1 class="entry-title">
|
29 |
+
<?php the_title(); ?>
|
30 |
+
</h1>
|
31 |
+
</header>
|
32 |
+
<div class="entry-content">
|
33 |
+
<?php the_content(); ?>
|
34 |
+
<script>
|
35 |
+
( function( $ ) {
|
36 |
+
$(document).ready(function () {
|
37 |
+
$('div.group').hide();
|
38 |
+
$('#option0').show();
|
39 |
+
$('#gallery').change(function () {
|
40 |
+
var $select = $( this ),
|
41 |
+
selected = $select.val();
|
42 |
+
if ( selected === "option0"){
|
43 |
+
$('div.group').hide();
|
44 |
+
$('.pgn-btns').show();
|
45 |
+
$('#option0').show();
|
46 |
+
} else {
|
47 |
+
$('div.group').hide();
|
48 |
+
$('.pgn-btns').hide();
|
49 |
+
$('#'+ selected).show();
|
50 |
+
}
|
51 |
+
})
|
52 |
+
});
|
53 |
+
})( jQuery );
|
54 |
+
</script>
|
55 |
+
<?php
|
56 |
+
/**
|
57 |
+
* Custom Taxonomy Dropdown Control
|
58 |
+
*
|
59 |
+
* @since 1.00
|
60 |
+
*
|
61 |
+
* @param string Taxonomy slug
|
62 |
+
* @param string Order by field
|
63 |
+
* @param string Sort order
|
64 |
+
* @param string Not used
|
65 |
+
* @param string HTML name= value
|
66 |
+
* @param mixed NULL/"Select All" label
|
67 |
+
* @param mixed NULL/"Select None" label
|
68 |
+
*
|
69 |
+
* @return void Echoes HTML for the dropdown control
|
70 |
+
*/
|
71 |
+
function custom_taxonomy_dropdown( $taxonomy, $orderby = 'date', $order = 'DESC', $limit = '-1', $name, $show_option_all = null, $show_option_none = null ) {
|
72 |
+
$args = array(
|
73 |
+
'orderby' => $orderby,
|
74 |
+
'order' => $order,
|
75 |
+
'exclude' => '120'
|
76 |
+
);
|
77 |
+
$terms = get_terms( $taxonomy, $args );
|
78 |
+
$name = ( $name ) ? $name : $taxonomy;
|
79 |
+
$y=0;
|
80 |
+
if ( $terms ) {
|
81 |
+
printf( '<select name="%s" id="gallery">', esc_attr( $name ) );
|
82 |
+
if ( $show_option_all ) {
|
83 |
+
printf( '<option class="group" value="option0">%s</option>', esc_html( $show_option_all ) );
|
84 |
+
}
|
85 |
+
if ( $show_option_none ) {
|
86 |
+
printf( '<option value="-1">%s</option>', esc_html( $show_option_none ) );
|
87 |
+
}
|
88 |
+
foreach ( $terms as $term ) {
|
89 |
+
$y++;
|
90 |
+
printf( '<option name="%s" class="group" value="option'.$y.'" >%s</option>', esc_attr( $term->slug ), esc_html( $term->name ) );
|
91 |
+
}
|
92 |
+
print( '</select>' );
|
93 |
+
}
|
94 |
+
}
|
95 |
+
|
96 |
+
custom_taxonomy_dropdown( 'attachment_category', 'date', 'ASC', '5', 'attachment_category', 'Select All');
|
97 |
+
?>
|
98 |
+
<?php
|
99 |
+
$terms = get_terms("attachment_category", "exclude=120");
|
100 |
+
|
101 |
+
if ( !empty( $terms ) && !is_wp_error( $terms ) ){
|
102 |
+
$xyz=0;
|
103 |
+
foreach ( $terms as $term ) {
|
104 |
+
$n = $term->slug;
|
105 |
+
$xyz++;
|
106 |
+
?>
|
107 |
+
<div id="option<?php echo $xyz; ?>" class="group" style="display: none"> <?php echo do_shortcode('[mla_gallery mla_alt_shortcode=gallery orderby="title" link="file" order="DESC" attachment_category="'.$n.'" mla_paginate_current=1]'); ?> </div>
|
108 |
+
<?php
|
109 |
+
}
|
110 |
+
}
|
111 |
+
?>
|
112 |
+
<div id="option0" class="group"><?php echo do_shortcode('[mla_gallery mla_alt_shortcode=gallery orderby="title" order="DESC" link="file" post_parent=all posts_per_page=6]'); ?></div>
|
113 |
+
<div class="pgn-btns">
|
114 |
+
<div style="clear: both; float: left"> <?php echo do_shortcode('[mla_gallery mla_output="previous_page,first" orderby="title" order="DESC" post_parent=all posts_per_page=6]')?></div>
|
115 |
+
<div style="float: right"> <?php echo do_shortcode('[mla_gallery mla_output="next_page,last" orderby="title" order="DESC" post_parent=all posts_per_page=6]')?></div>
|
116 |
+
</div>
|
117 |
+
<div style="clear: both;"> </div>
|
118 |
+
</div>
|
119 |
+
</div><!-- .entry-content -->
|
120 |
+
<footer class="entry-meta">
|
121 |
+
<?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?>
|
122 |
+
</footer>
|
123 |
+
<!-- .entry-meta -->
|
124 |
+
</article>
|
125 |
+
<!-- #post -->
|
examples/twentytwelve-mla/content-jkeast-dropdown.php
ADDED
@@ -0,0 +1,149 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* The template used for displaying "JKEast Dropdown" content in page-jkeast-dropdown.php
|
4 |
+
*
|
5 |
+
* The default taxonomy slug is "attachment_tag". You can select the taxonomy you want by adding
|
6 |
+
* a query parameter to the URL, e.g., "?my_taxonomy=attachment_category".
|
7 |
+
*
|
8 |
+
* The default taxonomy term is empty. You must select the term you want by adding
|
9 |
+
* a query parameter to the URL, e.g., "?my_term=yellow".
|
10 |
+
*
|
11 |
+
* @package Media Library Assistant
|
12 |
+
* @subpackage MLA_Child_Theme
|
13 |
+
* @version 1.00
|
14 |
+
* @since MLA 1.80
|
15 |
+
*/
|
16 |
+
|
17 |
+
/**
|
18 |
+
* Harmless declaration to suppress phpDocumentor "No page-level DocBlock" error
|
19 |
+
*
|
20 |
+
* @global $post
|
21 |
+
*/
|
22 |
+
global $post;
|
23 |
+
?>
|
24 |
+
|
25 |
+
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
26 |
+
<header class="entry-header">
|
27 |
+
<?php the_post_thumbnail(); ?>
|
28 |
+
<h1 class="entry-title">
|
29 |
+
<?php the_title(); ?>
|
30 |
+
</h1>
|
31 |
+
</header>
|
32 |
+
<div class="entry-content">
|
33 |
+
<?php the_content(); ?>
|
34 |
+
<script>
|
35 |
+
( function( $ ) {
|
36 |
+
$(document).ready(function () {
|
37 |
+
var selected = $('#gallery').val();
|
38 |
+
$('#'+ selected).show();
|
39 |
+
$('#gallery').change(function () {
|
40 |
+
var $select = $( this ),
|
41 |
+
selected = $select.val();
|
42 |
+
if ( selected === "option0"){
|
43 |
+
$('div.group').hide();
|
44 |
+
$('#option0').show();
|
45 |
+
} else {
|
46 |
+
$('div.group').hide();
|
47 |
+
$('#'+ selected).show();
|
48 |
+
}
|
49 |
+
})
|
50 |
+
});
|
51 |
+
})( jQuery );
|
52 |
+
</script>
|
53 |
+
<?php
|
54 |
+
/**
|
55 |
+
* Custom Taxonomy Dropdown Control
|
56 |
+
*
|
57 |
+
* @since 1.00
|
58 |
+
*
|
59 |
+
* @param string Taxonomy slug
|
60 |
+
* @param string Order by field
|
61 |
+
* @param string Sort order
|
62 |
+
* @param string Not used
|
63 |
+
* @param string HTML name= value
|
64 |
+
* @param mixed NULL/"Select All" label
|
65 |
+
* @param mixed NULL/"Select None" label
|
66 |
+
* @param integer Index of the inital selection
|
67 |
+
*
|
68 |
+
* @return void Echoes HTML for the dropdown control
|
69 |
+
*/
|
70 |
+
function custom_taxonomy_dropdown( $taxonomy, $orderby = 'date', $order = 'DESC', $limit = '-1', $name, $show_option_all = null, $show_option_none = null, $selected=0 ) {
|
71 |
+
$args = array(
|
72 |
+
'orderby' => $orderby,
|
73 |
+
'order' => $order,
|
74 |
+
'exclude' => '120'
|
75 |
+
);
|
76 |
+
$terms = get_terms( $taxonomy, $args );
|
77 |
+
$name = ( $name ) ? $name : $taxonomy;
|
78 |
+
$y=0;
|
79 |
+
if ( $terms ) {
|
80 |
+
printf( '<select name="%s" id="gallery">', esc_attr( $name ) );
|
81 |
+
if ( $show_option_all ) {
|
82 |
+
printf( '<option class="group" value="option0">%s</option>', esc_html( $show_option_all ) );
|
83 |
+
}
|
84 |
+
if ( $show_option_none ) {
|
85 |
+
printf( '<option value="-1">%s</option>', esc_html( $show_option_none ) );
|
86 |
+
}
|
87 |
+
foreach ( $terms as $term ) {
|
88 |
+
$y++;
|
89 |
+
if ( $selected == $y ) {
|
90 |
+
printf( '<option name="%s" class="group" value="option'.$y.'" selected>%s</option>', esc_attr( $term->slug ), esc_html( $term->name ) );
|
91 |
+
} else {
|
92 |
+
printf( '<option name="%s" class="group" value="option'.$y.'" >%s</option>', esc_attr( $term->slug ), esc_html( $term->name ) );
|
93 |
+
}
|
94 |
+
}
|
95 |
+
print( '</select>' );
|
96 |
+
}
|
97 |
+
}
|
98 |
+
|
99 |
+
// Find the most recent gallery pagination parameter,
|
100 |
+
// which determines the current dropdown selection.
|
101 |
+
$page_tag = 'mla_current_';
|
102 |
+
$current_uri = $_SERVER['REQUEST_URI'];
|
103 |
+
$pos = strrpos( $current_uri, $page_tag );
|
104 |
+
if ( $pos ) {
|
105 |
+
$base_uri = substr( $current_uri, 0, strpos( $current_uri, '?' ) );
|
106 |
+
$selected = substr( $current_uri, $pos + strlen( $page_tag ) );
|
107 |
+
// Keep only the most recent pagination value
|
108 |
+
$_SERVER['REQUEST_URI'] = $base_uri . '?' . $page_tag . $selected;
|
109 |
+
$selected = absint( substr( $current_uri, $pos + strlen( $page_tag ) ) );
|
110 |
+
} else {
|
111 |
+
$selected = 0;
|
112 |
+
}
|
113 |
+
|
114 |
+
custom_taxonomy_dropdown( 'attachment_category', 'date', 'ASC', '5', 'attachment_category', 'Select All', NULL, $selected );
|
115 |
+
?>
|
116 |
+
<?php
|
117 |
+
$terms = get_terms("attachment_category", "exclude=120");
|
118 |
+
|
119 |
+
if ( !empty( $terms ) && !is_wp_error( $terms ) ){
|
120 |
+
$xyz=0;
|
121 |
+
foreach ( $terms as $term ) {
|
122 |
+
$n = $term->slug;
|
123 |
+
$page_parameter = $page_tag . ++$xyz;
|
124 |
+
?>
|
125 |
+
<div id="option<?php echo $xyz; ?>" class="group" style="display: none"> <?php echo do_shortcode('[mla_gallery mla_alt_shortcode=gallery orderby="title" link="file" order="DESC" post_parent=all posts_per_page=3 attachment_category="'.$n.'" mla_page_parameter=' . $page_parameter . ']'); ?>
|
126 |
+
<div class="pgn-btns<?php echo $xyz; ?>">
|
127 |
+
<div style="clear: both; float: left"> <?php echo do_shortcode('[mla_gallery mla_output="previous_page,first" orderby="title" order="DESC" post_parent=all posts_per_page=3 attachment_category="'.$n.'" mla_page_parameter=' . $page_parameter . ']')?></div>
|
128 |
+
<div style="float: right"> <?php echo do_shortcode('[mla_gallery mla_output="next_page,last" orderby="title" order="DESC" post_parent=all posts_per_page=3 attachment_category="'.$n.'" mla_page_parameter=' . $page_parameter . ']')?></div>
|
129 |
+
</div>
|
130 |
+
</div>
|
131 |
+
<?php
|
132 |
+
}
|
133 |
+
}
|
134 |
+
?>
|
135 |
+
<div id="option0" class="group" style="display: none"><?php echo do_shortcode('[mla_gallery mla_alt_shortcode=gallery orderby="title" order="DESC" link="file" post_parent=all posts_per_page=6 mla_page_parameter=' . $page_tag . '0]'); ?>
|
136 |
+
<div class="pgn-btns">
|
137 |
+
<div style="clear: both; float: left"> <?php echo do_shortcode('[mla_gallery mla_output="previous_page,first" orderby="title" order="DESC" post_parent=all posts_per_page=6 mla_page_parameter=' . $page_tag . '0]')?></div>
|
138 |
+
<div style="float: right"> <?php echo do_shortcode('[mla_gallery mla_output="next_page,last" orderby="title" order="DESC" post_parent=all posts_per_page=6 mla_page_parameter=' . $page_tag . '0]')?></div>
|
139 |
+
</div>
|
140 |
+
</div>
|
141 |
+
<div style="clear: both;"> </div>
|
142 |
+
</div>
|
143 |
+
</div><!-- .entry-content -->
|
144 |
+
<footer class="entry-meta">
|
145 |
+
<?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?>
|
146 |
+
</footer>
|
147 |
+
<!-- .entry-meta -->
|
148 |
+
</article>
|
149 |
+
<!-- #post -->
|
examples/twentytwelve-mla/content-mla-gallery.php
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* The template for displaying posts in the Image post format,
|
4 |
+
* called from the taxonomy.php template.
|
5 |
+
*
|
6 |
+
* @package Media Library Assistant
|
7 |
+
* @subpackage MLA_Child_Theme
|
8 |
+
* @version 1.00
|
9 |
+
* @since MLA 1.91
|
10 |
+
*/
|
11 |
+
|
12 |
+
/**
|
13 |
+
* Harmless declaration to suppress phpDocumentor "No page-level DocBlock" error
|
14 |
+
*
|
15 |
+
* @global $wp_query
|
16 |
+
*/
|
17 |
+
global $wp_query;
|
18 |
+
?>
|
19 |
+
|
20 |
+
<header class="archive-header">
|
21 |
+
<h1 class="archive-title">
|
22 |
+
MLA Gallery for <?php echo $wp_query->query_vars['term']; ?> in <?php echo $wp_query->query_vars['taxonomy']; ?>
|
23 |
+
<?php echo do_shortcode( sprintf( '[mla_gallery %1$s="%2$s" mla_caption="{+title+}" mla_debug=false]', $wp_query->query_vars['taxonomy'], $wp_query->query_vars['term'] ) ); ?>
|
24 |
+
</h1>
|
25 |
+
</header>
|
examples/twentytwelve-mla/content-single-image.php
CHANGED
@@ -38,6 +38,7 @@ if ( $post_id ) {
|
|
38 |
$query = new WP_Query( array( 'p' => $post_id, 'post_type' => 'attachment', 'post_status' => 'inherit', 'orderby' => 'none', 'update_post_term_cache' => false ) );
|
39 |
} else {
|
40 |
echo '<h1>ERROR: No Post ID</h1>';
|
|
|
41 |
return;
|
42 |
}
|
43 |
|
@@ -46,6 +47,7 @@ if ( $query->have_posts() ) {
|
|
46 |
$query->the_post(); // simulate "the loop"
|
47 |
} else {
|
48 |
echo '<h1>ERROR: No Attachment Object</h1>';
|
|
|
49 |
return;
|
50 |
}
|
51 |
?>
|
38 |
$query = new WP_Query( array( 'p' => $post_id, 'post_type' => 'attachment', 'post_status' => 'inherit', 'orderby' => 'none', 'update_post_term_cache' => false ) );
|
39 |
} else {
|
40 |
echo '<h1>ERROR: No Post ID</h1>';
|
41 |
+
the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentytwelve' ) );
|
42 |
return;
|
43 |
}
|
44 |
|
47 |
$query->the_post(); // simulate "the loop"
|
48 |
} else {
|
49 |
echo '<h1>ERROR: No Attachment Object</h1>';
|
50 |
+
the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentytwelve' ) );
|
51 |
return;
|
52 |
}
|
53 |
?>
|
examples/twentytwelve-mla/page-jkeast-dropdown.php
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* The template for displaying the "JKEast Dropdown" page, which
|
4 |
+
* must be defined as a static WordPress "Page" post type.
|
5 |
+
*
|
6 |
+
* Please note that this is the WordPress construct of pages
|
7 |
+
* and that other 'pages' on your WordPress site will use a
|
8 |
+
* different template.
|
9 |
+
*
|
10 |
+
* @package Media Library Assistant
|
11 |
+
* @subpackage MLA_Child_Theme
|
12 |
+
* @version 1.00
|
13 |
+
* @since MLA 1.80
|
14 |
+
*/
|
15 |
+
|
16 |
+
get_header(); ?>
|
17 |
+
|
18 |
+
<div id="primary" class="site-content">
|
19 |
+
<div id="content" role="main">
|
20 |
+
|
21 |
+
<?php while ( have_posts() ) : the_post(); ?>
|
22 |
+
<?php get_template_part( 'content', 'jkeast-dropdown' ); ?>
|
23 |
+
<?php comments_template( '', true ); ?>
|
24 |
+
<?php endwhile; // end of the loop. ?>
|
25 |
+
|
26 |
+
</div><!-- #content -->
|
27 |
+
</div><!-- #primary -->
|
28 |
+
|
29 |
+
<?php //get_sidebar(); ?>
|
30 |
+
<?php get_footer(); ?>
|
examples/twentytwelve-mla/taxonomy.php
CHANGED
@@ -21,6 +21,7 @@ if ( $is_media_archive ) {
|
|
21 |
if ( isset( $_REQUEST['use_mla_gallery'] ) ) {
|
22 |
$use_mla_gallery = true;
|
23 |
} else {
|
|
|
24 |
$args = array_merge( $wp_query->query_vars, array( 'post_type' => 'attachment', 'post_status' => 'inherit' ) );
|
25 |
query_posts( $args );
|
26 |
}
|
@@ -30,7 +31,9 @@ if ( $is_media_archive ) {
|
|
30 |
<section id="primary" class="site-content">
|
31 |
<div id="content" role="main">
|
32 |
|
33 |
-
<?php if (
|
|
|
|
|
34 |
<header class="archive-header">
|
35 |
<h1 class="archive-title"><?php
|
36 |
if ( is_day() ) :
|
21 |
if ( isset( $_REQUEST['use_mla_gallery'] ) ) {
|
22 |
$use_mla_gallery = true;
|
23 |
} else {
|
24 |
+
$use_mla_gallery = false;
|
25 |
$args = array_merge( $wp_query->query_vars, array( 'post_type' => 'attachment', 'post_status' => 'inherit' ) );
|
26 |
query_posts( $args );
|
27 |
}
|
31 |
<section id="primary" class="site-content">
|
32 |
<div id="content" role="main">
|
33 |
|
34 |
+
<?php if ( $use_mla_gallery ) : ?>
|
35 |
+
<?php get_template_part( 'content', 'mla-gallery' ); ?>
|
36 |
+
<?php elseif ( have_posts() ) : ?>
|
37 |
<header class="archive-header">
|
38 |
<h1 class="archive-title"><?php
|
39 |
if ( is_day() ) :
|
includes/class-mla-data.php
CHANGED
@@ -1854,34 +1854,42 @@ class MLAData {
|
|
1854 |
} else {
|
1855 |
$tax_terms = array();
|
1856 |
$tax_counts = array();
|
|
|
|
|
1857 |
foreach ( $terms_search as $term ) {
|
1858 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
1859 |
$inner_connector = '';
|
1860 |
$inner_clause = '';
|
1861 |
|
1862 |
if ( in_array( 'content', $fields ) ) {
|
1863 |
-
$inner_clause .= "{$inner_connector}({$wpdb->posts}.post_content LIKE
|
1864 |
$inner_connector = ' OR ';
|
1865 |
}
|
1866 |
|
1867 |
if ( in_array( 'title', $fields ) ) {
|
1868 |
-
$inner_clause .= "{$inner_connector}({$wpdb->posts}.post_title LIKE
|
1869 |
$inner_connector = ' OR ';
|
1870 |
}
|
1871 |
|
1872 |
if ( in_array( 'excerpt', $fields ) ) {
|
1873 |
-
$inner_clause .= "{$inner_connector}({$wpdb->posts}.post_excerpt LIKE
|
1874 |
$inner_connector = ' OR ';
|
1875 |
}
|
1876 |
|
1877 |
if ( in_array( 'alt-text', $fields ) ) {
|
1878 |
$view_name = self::$mla_alt_text_view;
|
1879 |
-
$inner_clause .= "{$inner_connector}({$view_name}.meta_value LIKE
|
1880 |
$inner_connector = ' OR ';
|
1881 |
}
|
1882 |
|
1883 |
if ( in_array( 'name', $fields ) ) {
|
1884 |
-
$inner_clause .= "{$inner_connector}({$wpdb->posts}.post_name LIKE
|
1885 |
}
|
1886 |
|
1887 |
if ( ! empty($inner_clause) ) {
|
@@ -2643,7 +2651,7 @@ class MLAData {
|
|
2643 |
$references['base_file'] = get_post_meta( $ID, '_wp_attached_file', true );
|
2644 |
$pathinfo = pathinfo($references['base_file']);
|
2645 |
$references['file'] = $pathinfo['basename'];
|
2646 |
-
if ( '.' == $pathinfo['dirname'] ) {
|
2647 |
$references['path'] = '/';
|
2648 |
} else {
|
2649 |
$references['path'] = $pathinfo['dirname'] . '/';
|
@@ -2719,32 +2727,27 @@ class MLAData {
|
|
2719 |
$inserted_in_option = MLAOptions::mla_get_option( MLAOptions::MLA_INSERTED_IN_TUNING );
|
2720 |
}
|
2721 |
|
|
|
|
|
2722 |
if ( 'base' == $inserted_in_option ) {
|
2723 |
-
$like1 = like_escape( $references['path'] . $pathinfo['filename'] ) . '.' . like_escape( $pathinfo['extension'] );
|
2724 |
-
$like2 = like_escape( $references['path'] . $pathinfo['filename'] ) . '-%.' . like_escape( $pathinfo['extension'] );
|
2725 |
-
/* $inserts = $wpdb->get_results(
|
2726 |
-
$wpdb->prepare(
|
2727 |
-
"SELECT ID, post_type, post_title FROM {$wpdb->posts}
|
2728 |
-
WHERE {$exclude_revisions} ((CONVERT(`post_content` USING utf8 ) LIKE %s) OR
|
2729 |
-
(CONVERT(`post_content` USING utf8 ) LIKE %s))", "%{$like1}%", "%{$like2}%"
|
2730 |
-
)
|
2731 |
-
); */
|
2732 |
-
|
2733 |
-
/* $inserts = $wpdb->get_results(
|
2734 |
-
$wpdb->prepare(
|
2735 |
-
"SELECT ID, post_type, post_title, CONVERT(`post_content` USING utf8 ) AS POST_CONTENT FROM {$wpdb->posts}
|
2736 |
-
WHERE {$exclude_revisions} ( ( POST_CONTENT LIKE %s) OR
|
2737 |
-
( POST_CONTENT LIKE %s) )", "%{$like1}%", "%{$like2}%"
|
2738 |
-
)
|
2739 |
-
); */
|
2740 |
-
|
2741 |
$query_parameters = array();
|
2742 |
$query = array();
|
2743 |
-
$query[] = "SELECT ID, post_type, post_title, CONVERT(`post_content` USING utf8 ) AS POST_CONTENT FROM {$wpdb->posts} WHERE {$exclude_revisions} (
|
|
|
|
|
2744 |
|
2745 |
foreach ( $references['files'] as $file => $file_data ) {
|
|
|
|
|
|
|
|
|
2746 |
$query[] = 'OR ( POST_CONTENT LIKE %s)';
|
2747 |
-
|
|
|
|
|
|
|
|
|
|
|
2748 |
}
|
2749 |
|
2750 |
$query[] = ')';
|
@@ -2758,7 +2761,8 @@ class MLAData {
|
|
2758 |
$references['found_reference'] = true;
|
2759 |
$references['inserts'][ $pathinfo['filename'] ] = $inserts;
|
2760 |
|
2761 |
-
foreach ( $inserts as $insert ) {
|
|
|
2762 |
if ( $insert->ID == $parent ) {
|
2763 |
$references['found_parent'] = true;
|
2764 |
}
|
@@ -2766,7 +2770,16 @@ class MLAData {
|
|
2766 |
} // ! empty
|
2767 |
} else { // process base names
|
2768 |
foreach ( $references['files'] as $file => $file_data ) {
|
2769 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2770 |
$inserts = $wpdb->get_results(
|
2771 |
$wpdb->prepare(
|
2772 |
"SELECT ID, post_type, post_title FROM {$wpdb->posts}
|
@@ -2986,7 +2999,14 @@ class MLAData {
|
|
2986 |
$exclude_revisions = '';
|
2987 |
}
|
2988 |
|
2989 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2990 |
$results = $wpdb->get_results(
|
2991 |
$wpdb->prepare(
|
2992 |
"
|
1854 |
} else {
|
1855 |
$tax_terms = array();
|
1856 |
$tax_counts = array();
|
1857 |
+
$wp_4dot0_plus = version_compare( get_bloginfo('version'), '3.10', '>=' ); // during beta
|
1858 |
+
// $wp_4dot0_plus = version_compare( get_bloginfo('version'), '4.0', '>=' ); // after release
|
1859 |
foreach ( $terms_search as $term ) {
|
1860 |
+
if ( $wp_4dot0_plus ) {
|
1861 |
+
$term = $percent . $wpdb->esc_like( $term ) . $percent;
|
1862 |
+
$term = $wpdb->prepare( '%s', $term );
|
1863 |
+
} else {
|
1864 |
+
$term = "'" . $percent . esc_sql( like_escape( $term ) ) . $percent . "'";
|
1865 |
+
}
|
1866 |
+
|
1867 |
$inner_connector = '';
|
1868 |
$inner_clause = '';
|
1869 |
|
1870 |
if ( in_array( 'content', $fields ) ) {
|
1871 |
+
$inner_clause .= "{$inner_connector}({$wpdb->posts}.post_content LIKE {$term})";
|
1872 |
$inner_connector = ' OR ';
|
1873 |
}
|
1874 |
|
1875 |
if ( in_array( 'title', $fields ) ) {
|
1876 |
+
$inner_clause .= "{$inner_connector}({$wpdb->posts}.post_title LIKE {$term})";
|
1877 |
$inner_connector = ' OR ';
|
1878 |
}
|
1879 |
|
1880 |
if ( in_array( 'excerpt', $fields ) ) {
|
1881 |
+
$inner_clause .= "{$inner_connector}({$wpdb->posts}.post_excerpt LIKE {$term})";
|
1882 |
$inner_connector = ' OR ';
|
1883 |
}
|
1884 |
|
1885 |
if ( in_array( 'alt-text', $fields ) ) {
|
1886 |
$view_name = self::$mla_alt_text_view;
|
1887 |
+
$inner_clause .= "{$inner_connector}({$view_name}.meta_value LIKE {$term})";
|
1888 |
$inner_connector = ' OR ';
|
1889 |
}
|
1890 |
|
1891 |
if ( in_array( 'name', $fields ) ) {
|
1892 |
+
$inner_clause .= "{$inner_connector}({$wpdb->posts}.post_name LIKE {$term})";
|
1893 |
}
|
1894 |
|
1895 |
if ( ! empty($inner_clause) ) {
|
2651 |
$references['base_file'] = get_post_meta( $ID, '_wp_attached_file', true );
|
2652 |
$pathinfo = pathinfo($references['base_file']);
|
2653 |
$references['file'] = $pathinfo['basename'];
|
2654 |
+
if ( ( ! isset( $pathinfo['dirname'] ) ) || '.' == $pathinfo['dirname'] ) {
|
2655 |
$references['path'] = '/';
|
2656 |
} else {
|
2657 |
$references['path'] = $pathinfo['dirname'] . '/';
|
2727 |
$inserted_in_option = MLAOptions::mla_get_option( MLAOptions::MLA_INSERTED_IN_TUNING );
|
2728 |
}
|
2729 |
|
2730 |
+
$wp_4dot0_plus = version_compare( get_bloginfo('version'), '3.10', '>=' ); // during beta
|
2731 |
+
// $wp_4dot0_plus = version_compare( get_bloginfo('version'), '4.0', '>=' ); // after release
|
2732 |
if ( 'base' == $inserted_in_option ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2733 |
$query_parameters = array();
|
2734 |
$query = array();
|
2735 |
+
$query[] = "SELECT ID, post_type, post_title, CONVERT(`post_content` USING utf8 ) AS POST_CONTENT FROM {$wpdb->posts} WHERE {$exclude_revisions} ( %s=%s";
|
2736 |
+
$query_parameters[] = '1'; // for empty file name array
|
2737 |
+
$query_parameters[] = '0'; // for empty file name array
|
2738 |
|
2739 |
foreach ( $references['files'] as $file => $file_data ) {
|
2740 |
+
if ( empty( $file ) ) {
|
2741 |
+
continue;
|
2742 |
+
}
|
2743 |
+
|
2744 |
$query[] = 'OR ( POST_CONTENT LIKE %s)';
|
2745 |
+
|
2746 |
+
if ( $wp_4dot0_plus ) {
|
2747 |
+
$query_parameters[] = '%' . $wpdb->esc_like( $file ) . '%';
|
2748 |
+
} else {
|
2749 |
+
$query_parameters[] = '%' . like_escape( $file ) . '%';
|
2750 |
+
}
|
2751 |
}
|
2752 |
|
2753 |
$query[] = ')';
|
2761 |
$references['found_reference'] = true;
|
2762 |
$references['inserts'][ $pathinfo['filename'] ] = $inserts;
|
2763 |
|
2764 |
+
foreach ( $inserts as $index => $insert ) {
|
2765 |
+
unset( $references['inserts'][ $pathinfo['filename'] ][ $index ]->POST_CONTENT );
|
2766 |
if ( $insert->ID == $parent ) {
|
2767 |
$references['found_parent'] = true;
|
2768 |
}
|
2770 |
} // ! empty
|
2771 |
} else { // process base names
|
2772 |
foreach ( $references['files'] as $file => $file_data ) {
|
2773 |
+
if ( empty( $file ) ) {
|
2774 |
+
continue;
|
2775 |
+
}
|
2776 |
+
|
2777 |
+
if ( $wp_4dot0_plus ) {
|
2778 |
+
$like = $wpdb->esc_like( $file );
|
2779 |
+
} else {
|
2780 |
+
$like = like_escape( $file );
|
2781 |
+
}
|
2782 |
+
|
2783 |
$inserts = $wpdb->get_results(
|
2784 |
$wpdb->prepare(
|
2785 |
"SELECT ID, post_type, post_title FROM {$wpdb->posts}
|
2999 |
$exclude_revisions = '';
|
3000 |
}
|
3001 |
|
3002 |
+
$wp_4dot0_plus = version_compare( get_bloginfo('version'), '3.10', '>=' ); // during beta
|
3003 |
+
// $wp_4dot0_plus = version_compare( get_bloginfo('version'), '4.0', '>=' ); // after release
|
3004 |
+
if ( $wp_4dot0_plus ) {
|
3005 |
+
$like = $wpdb->esc_like( $shortcode );
|
3006 |
+
} else {
|
3007 |
+
$like = like_escape( $shortcode );
|
3008 |
+
}
|
3009 |
+
|
3010 |
$results = $wpdb->get_results(
|
3011 |
$wpdb->prepare(
|
3012 |
"
|
includes/class-mla-edit-media.php
CHANGED
@@ -84,7 +84,7 @@ class MLAEdit {
|
|
84 |
public static function mla_admin_init_action( ) {
|
85 |
//error_log( 'DEBUG: MLAEdit::mla_admin_init_action() $_REQUEST = ' . var_export( $_REQUEST, true ), 0 );
|
86 |
|
87 |
-
add_post_type_support( 'attachment', 'custom-fields' );
|
88 |
|
89 |
/*
|
90 |
* If there's no action variable, we have nothing more to do
|
@@ -173,13 +173,6 @@ class MLAEdit {
|
|
173 |
'ajaxDoneError' => __( 'An ajax.done error has occurred. Please reload the page and try again.', 'media-library-assistant' ),
|
174 |
);
|
175 |
|
176 |
-
if ( version_compare( get_bloginfo( 'version' ), '3.9', '>=' ) ) {
|
177 |
-
$script_variables['setParentDataType'] = 'json';
|
178 |
-
} else {
|
179 |
-
// $script_variables['setParentDataType'] = 'xml';
|
180 |
-
$script_variables['setParentDataType'] = 'json';
|
181 |
-
}
|
182 |
-
|
183 |
if ( version_compare( get_bloginfo( 'version' ), '3.8', '>=' ) ) {
|
184 |
$script_variables['useDashicons'] = true;
|
185 |
} else {
|
@@ -221,10 +214,10 @@ class MLAEdit {
|
|
221 |
|
222 |
/* translators: date_i18n format for last modified date and time */
|
223 |
$date = date_i18n( __( 'M j, Y @ G:i', 'media-library-assistant' ), strtotime( $post->post_modified ) );
|
224 |
-
echo '<div class="misc-pub-section curtime">' . "\
|
225 |
-
echo '<span id="timestamp">' . sprintf(__( 'Last modified', 'media-library-assistant' ) . ": <b>%1\$s</b></span>\
|
226 |
-
echo "</div><!-- .misc-pub-section -->\
|
227 |
-
echo '<div class="misc-pub-section mla-links">' . "\
|
228 |
|
229 |
$view_args = array( 'page' => MLA::ADMIN_PAGE_SLUG, 'mla_item_ID' => $post->ID );
|
230 |
if ( isset( $_REQUEST['mla_source'] ) ) {
|
@@ -237,8 +230,8 @@ class MLAEdit {
|
|
237 |
|
238 |
echo '<a href="' . add_query_arg( $view_args, wp_nonce_url( 'upload.php?mla_admin_action=' . MLA::MLA_ADMIN_SINGLE_MAP, MLA::MLA_ADMIN_NONCE ) ) . '" title="' . __( 'Map IPTC/EXIF metadata for this item', 'media-library-assistant' ) . '">' . __( 'Map IPTC/EXIF Metadata', 'media-library-assistant' ) . '</a>';
|
239 |
|
240 |
-
echo "</span>\
|
241 |
-
echo "</div><!-- .misc-pub-section -->\
|
242 |
} // mla_attachment_submitbox_action
|
243 |
|
244 |
/**
|
@@ -303,27 +296,37 @@ class MLAEdit {
|
|
303 |
} // MLA_EDIT_MEDIA_SEARCH_TAXONOMY
|
304 |
|
305 |
if ( 'checked' == MLAOptions::mla_get_option( MLAOptions::MLA_EDIT_MEDIA_META_BOXES ) ) {
|
306 |
-
|
307 |
-
|
308 |
|
309 |
-
|
310 |
-
|
311 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
312 |
}
|
313 |
|
314 |
-
if ( MLAOptions::$process_featured_in ) {
|
315 |
add_meta_box( 'mla-featured-in', __( 'Featured in', 'media-library-assistant' ), 'MLAEdit::mla_featured_in_handler', 'attachment', 'normal', 'core' );
|
316 |
}
|
317 |
|
318 |
-
if ( MLAOptions::$process_inserted_in ) {
|
319 |
add_meta_box( 'mla-inserted-in', __( 'Inserted in', 'media-library-assistant' ), 'MLAEdit::mla_inserted_in_handler', 'attachment', 'normal', 'core' );
|
320 |
}
|
321 |
|
322 |
-
if ( MLAOptions::$process_gallery_in ) {
|
323 |
add_meta_box( 'mla-gallery-in', __( 'Gallery in', 'media-library-assistant' ), 'MLAEdit::mla_gallery_in_handler', 'attachment', 'normal', 'core' );
|
324 |
}
|
325 |
|
326 |
-
if ( MLAOptions::$process_mla_gallery_in ) {
|
327 |
add_meta_box( 'mla-mla-gallery-in', __( 'MLA Gallery in', 'media-library-assistant' ), 'MLAEdit::mla_mla_gallery_in_handler', 'attachment', 'normal', 'core' );
|
328 |
}
|
329 |
}
|
@@ -412,7 +415,11 @@ class MLAEdit {
|
|
412 |
} else {
|
413 |
$parent_info = sprintf( '(%1$s) %2$s %3$s', self::$mla_references['parent_type'], self::$mla_references['parent_title'], self::$mla_references['parent_errors'] );
|
414 |
}
|
415 |
-
}
|
|
|
|
|
|
|
|
|
416 |
|
417 |
echo '<table><tr>';
|
418 |
echo '<td><label class="screen-reader-text" for="mla_post_parent">' . __( 'Post Parent', 'media-library-assistant' ) . '</label><input name="mla_post_parent" type="text" size="4" id="mla_post_parent" value="' . $post->post_parent . "\" /></td>\n";
|
@@ -435,7 +442,9 @@ class MLAEdit {
|
|
435 |
*/
|
436 |
public static function mla_menu_order_handler( $post ) {
|
437 |
|
438 |
-
|
|
|
|
|
439 |
}
|
440 |
|
441 |
/**
|
@@ -457,7 +466,10 @@ class MLAEdit {
|
|
457 |
$value = '';
|
458 |
}
|
459 |
|
460 |
-
|
|
|
|
|
|
|
461 |
}
|
462 |
|
463 |
/**
|
@@ -475,9 +487,8 @@ class MLAEdit {
|
|
475 |
self::$mla_references = MLAData::mla_fetch_attachment_references( $post->ID, $post->post_parent );
|
476 |
}
|
477 |
|
|
|
478 |
if ( is_array( self::$mla_references ) ) {
|
479 |
-
$features = '';
|
480 |
-
|
481 |
foreach ( self::$mla_references['features'] as $feature_id => $feature ) {
|
482 |
if ( $feature_id == $post->post_parent ) {
|
483 |
$parent = __( 'PARENT', 'media-library-assistant' ) . ' ';
|
@@ -485,11 +496,15 @@ class MLAEdit {
|
|
485 |
$parent = '';
|
486 |
}
|
487 |
|
488 |
-
$features .= sprintf( '%1$s (%2$s %3$s), %4$s', /*$1%s*/ $parent, /*$2%s*/ $feature->post_type, /*$3%s*/ $feature_id, /*$4%s*/ $feature->post_title ) . "\
|
489 |
} // foreach $feature
|
490 |
}
|
491 |
|
492 |
-
|
|
|
|
|
|
|
|
|
493 |
}
|
494 |
|
495 |
/**
|
@@ -507,11 +522,10 @@ class MLAEdit {
|
|
507 |
self::$mla_references = MLAData::mla_fetch_attachment_references( $post->ID, $post->post_parent );
|
508 |
}
|
509 |
|
|
|
510 |
if ( is_array( self::$mla_references ) ) {
|
511 |
-
$inserts = '';
|
512 |
-
|
513 |
foreach ( self::$mla_references['inserts'] as $file => $insert_array ) {
|
514 |
-
$inserts .= $file . "\
|
515 |
|
516 |
foreach ( $insert_array as $insert ) {
|
517 |
if ( $insert->ID == $post->post_parent ) {
|
@@ -520,12 +534,16 @@ class MLAEdit {
|
|
520 |
$parent = ' ';
|
521 |
}
|
522 |
|
523 |
-
$inserts .= sprintf( '%1$s (%2$s %3$s), %4$s', /*$1%s*/ $parent, /*$2%s*/ $insert->post_type, /*$3%s*/ $insert->ID, /*$4%s*/ $insert->post_title ) . "\
|
524 |
} // foreach $insert
|
525 |
} // foreach $file
|
526 |
} // is_array
|
527 |
|
528 |
-
|
|
|
|
|
|
|
|
|
529 |
}
|
530 |
|
531 |
/**
|
@@ -544,7 +562,6 @@ class MLAEdit {
|
|
544 |
}
|
545 |
|
546 |
$galleries = '';
|
547 |
-
|
548 |
if ( is_array( self::$mla_references ) ) {
|
549 |
foreach ( self::$mla_references['galleries'] as $gallery_id => $gallery ) {
|
550 |
if ( $gallery_id == $post->post_parent ) {
|
@@ -553,15 +570,19 @@ class MLAEdit {
|
|
553 |
$parent = '';
|
554 |
}
|
555 |
|
556 |
-
$galleries .= sprintf( '%1$s (%2$s %3$s), %4$s', /*$1%s*/ $parent, /*$2%s*/ $gallery['post_type'], /*$3%s*/ $gallery_id, /*$4%s*/ $gallery['post_title'] ) . "\
|
557 |
} // foreach $feature
|
558 |
}
|
559 |
|
560 |
-
|
|
|
|
|
|
|
|
|
561 |
}
|
562 |
|
563 |
/**
|
564 |
-
* Renders the Gallery in meta box on the Edit Media page.
|
565 |
* Declared public because it is a callback function.
|
566 |
*
|
567 |
* @since 0.80
|
@@ -576,7 +597,6 @@ class MLAEdit {
|
|
576 |
}
|
577 |
|
578 |
$galleries = '';
|
579 |
-
|
580 |
if ( is_array( self::$mla_references ) ) {
|
581 |
foreach ( self::$mla_references['mla_galleries'] as $gallery_id => $gallery ) {
|
582 |
if ( $gallery_id == $post->post_parent ) {
|
@@ -585,11 +605,15 @@ class MLAEdit {
|
|
585 |
$parent = '';
|
586 |
}
|
587 |
|
588 |
-
$galleries .= sprintf( '%1$s (%2$s %3$s), %4$s', /*$1%s*/ $parent, /*$2%s*/ $gallery['post_type'], /*$3%s*/ $gallery_id, /*$4%s*/ $gallery['post_title'] ) . "\
|
589 |
} // foreach $feature
|
590 |
}
|
591 |
|
592 |
-
|
|
|
|
|
|
|
|
|
593 |
}
|
594 |
|
595 |
/**
|
84 |
public static function mla_admin_init_action( ) {
|
85 |
//error_log( 'DEBUG: MLAEdit::mla_admin_init_action() $_REQUEST = ' . var_export( $_REQUEST, true ), 0 );
|
86 |
|
87 |
+
add_post_type_support( 'attachment', apply_filters( 'mla_edit_media_support', array( 'custom-fields' ) ) );
|
88 |
|
89 |
/*
|
90 |
* If there's no action variable, we have nothing more to do
|
173 |
'ajaxDoneError' => __( 'An ajax.done error has occurred. Please reload the page and try again.', 'media-library-assistant' ),
|
174 |
);
|
175 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
176 |
if ( version_compare( get_bloginfo( 'version' ), '3.8', '>=' ) ) {
|
177 |
$script_variables['useDashicons'] = true;
|
178 |
} else {
|
214 |
|
215 |
/* translators: date_i18n format for last modified date and time */
|
216 |
$date = date_i18n( __( 'M j, Y @ G:i', 'media-library-assistant' ), strtotime( $post->post_modified ) );
|
217 |
+
echo '<div class="misc-pub-section curtime">' . "\n";
|
218 |
+
echo '<span id="timestamp">' . sprintf(__( 'Last modified', 'media-library-assistant' ) . ": <b>%1\$s</b></span>\n", $date);
|
219 |
+
echo "</div><!-- .misc-pub-section -->\n";
|
220 |
+
echo '<div class="misc-pub-section mla-links">' . "\n";
|
221 |
|
222 |
$view_args = array( 'page' => MLA::ADMIN_PAGE_SLUG, 'mla_item_ID' => $post->ID );
|
223 |
if ( isset( $_REQUEST['mla_source'] ) ) {
|
230 |
|
231 |
echo '<a href="' . add_query_arg( $view_args, wp_nonce_url( 'upload.php?mla_admin_action=' . MLA::MLA_ADMIN_SINGLE_MAP, MLA::MLA_ADMIN_NONCE ) ) . '" title="' . __( 'Map IPTC/EXIF metadata for this item', 'media-library-assistant' ) . '">' . __( 'Map IPTC/EXIF Metadata', 'media-library-assistant' ) . '</a>';
|
232 |
|
233 |
+
echo "</span>\n";
|
234 |
+
echo "</div><!-- .misc-pub-section -->\n";
|
235 |
} // mla_attachment_submitbox_action
|
236 |
|
237 |
/**
|
296 |
} // MLA_EDIT_MEDIA_SEARCH_TAXONOMY
|
297 |
|
298 |
if ( 'checked' == MLAOptions::mla_get_option( MLAOptions::MLA_EDIT_MEDIA_META_BOXES ) ) {
|
299 |
+
$active_boxes = apply_filters( 'mla_edit_media_meta_boxes', array(
|
300 |
+
'mla-parent-info' => 'mla-parent-info', 'mla-menu-order' => 'mla-menu-order', 'mla-image-metadata' => 'mla-image-metadata', 'mla-featured-in' => 'mla-featured-in', 'mla-inserted-in' => 'mla-inserted-in', 'mla-gallery-in' => 'mla-gallery-in', 'mla-mla-gallery-in' => 'mla-mla-gallery-in' ) );
|
301 |
|
302 |
+
if ( isset( $active_boxes['mla-parent-info'] ) ) {
|
303 |
+
add_meta_box( 'mla-parent-info', __( 'Parent Info', 'media-library-assistant' ), 'MLAEdit::mla_parent_info_handler', 'attachment', 'normal', 'core' );
|
304 |
+
}
|
305 |
+
|
306 |
+
if ( isset( $active_boxes['mla-menu-order'] ) ) {
|
307 |
+
add_meta_box( 'mla-menu-order', __( 'Menu Order', 'media-library-assistant' ), 'MLAEdit::mla_menu_order_handler', 'attachment', 'normal', 'core' );
|
308 |
+
}
|
309 |
+
|
310 |
+
if ( isset( $active_boxes['mla-image-metadata'] ) ) {
|
311 |
+
$image_metadata = get_metadata( 'post', $post->ID, '_wp_attachment_metadata', true );
|
312 |
+
if ( !empty( $image_metadata ) ) {
|
313 |
+
add_meta_box( 'mla-image-metadata', __( 'Attachment Metadata', 'media-library-assistant' ), 'MLAEdit::mla_image_metadata_handler', 'attachment', 'normal', 'core' );
|
314 |
+
}
|
315 |
}
|
316 |
|
317 |
+
if ( isset( $active_boxes['mla-featured-in'] ) && MLAOptions::$process_featured_in ) {
|
318 |
add_meta_box( 'mla-featured-in', __( 'Featured in', 'media-library-assistant' ), 'MLAEdit::mla_featured_in_handler', 'attachment', 'normal', 'core' );
|
319 |
}
|
320 |
|
321 |
+
if ( isset( $active_boxes['mla-inserted-in'] ) && MLAOptions::$process_inserted_in ) {
|
322 |
add_meta_box( 'mla-inserted-in', __( 'Inserted in', 'media-library-assistant' ), 'MLAEdit::mla_inserted_in_handler', 'attachment', 'normal', 'core' );
|
323 |
}
|
324 |
|
325 |
+
if ( isset( $active_boxes['mla-gallery-in'] ) && MLAOptions::$process_gallery_in ) {
|
326 |
add_meta_box( 'mla-gallery-in', __( 'Gallery in', 'media-library-assistant' ), 'MLAEdit::mla_gallery_in_handler', 'attachment', 'normal', 'core' );
|
327 |
}
|
328 |
|
329 |
+
if ( isset( $active_boxes['mla-mla-gallery-in'] ) && MLAOptions::$process_mla_gallery_in ) {
|
330 |
add_meta_box( 'mla-mla-gallery-in', __( 'MLA Gallery in', 'media-library-assistant' ), 'MLAEdit::mla_mla_gallery_in_handler', 'attachment', 'normal', 'core' );
|
331 |
}
|
332 |
}
|
415 |
} else {
|
416 |
$parent_info = sprintf( '(%1$s) %2$s %3$s', self::$mla_references['parent_type'], self::$mla_references['parent_title'], self::$mla_references['parent_errors'] );
|
417 |
}
|
418 |
+
} else {
|
419 |
+
$parent_info = '';
|
420 |
+
}
|
421 |
+
|
422 |
+
$parent_info = apply_filters( 'mla_parent_info_meta_box', $parent_info, self::$mla_references, $post );
|
423 |
|
424 |
echo '<table><tr>';
|
425 |
echo '<td><label class="screen-reader-text" for="mla_post_parent">' . __( 'Post Parent', 'media-library-assistant' ) . '</label><input name="mla_post_parent" type="text" size="4" id="mla_post_parent" value="' . $post->post_parent . "\" /></td>\n";
|
442 |
*/
|
443 |
public static function mla_menu_order_handler( $post ) {
|
444 |
|
445 |
+
$menu_order = apply_filters( 'mla_menu_order_meta_box', $post->menu_order, $post );
|
446 |
+
|
447 |
+
echo '<label class="screen-reader-text" for="mla_menu_order">' . __( 'Menu Order', 'media-library-assistant' ) . '</label><input name="mla_menu_order" type="text" size="4" id="mla_menu_order" value="' . esc_attr( $menu_order ) . "\" />\n";
|
448 |
}
|
449 |
|
450 |
/**
|
466 |
$value = '';
|
467 |
}
|
468 |
|
469 |
+
$value = apply_filters( 'mla_image_metadata_meta_box', array( 'value' => $value, 'rows' => 5, 'cols' => 80 ), $metadata, $post );
|
470 |
+
|
471 |
+
$html = '<label class="screen-reader-text" for="mla_image_metadata">' . __( 'Attachment Metadata', 'media-library-assistant' ) . '</label><textarea class="readonly" id="mla_image_metadata" rows="' . absint( $value['rows'] ) . '" cols="' . absint( $value['cols'] ) . '" readonly="readonly" name="mla_image_metadata" >' . esc_textarea( $value['value'] ) . "</textarea>\n";
|
472 |
+
echo apply_filters( 'mla_image_metadata_meta_box_html', $html, $value, $metadata, $post );
|
473 |
}
|
474 |
|
475 |
/**
|
487 |
self::$mla_references = MLAData::mla_fetch_attachment_references( $post->ID, $post->post_parent );
|
488 |
}
|
489 |
|
490 |
+
$features = '';
|
491 |
if ( is_array( self::$mla_references ) ) {
|
|
|
|
|
492 |
foreach ( self::$mla_references['features'] as $feature_id => $feature ) {
|
493 |
if ( $feature_id == $post->post_parent ) {
|
494 |
$parent = __( 'PARENT', 'media-library-assistant' ) . ' ';
|
496 |
$parent = '';
|
497 |
}
|
498 |
|
499 |
+
$features .= sprintf( '%1$s (%2$s %3$s), %4$s', /*$1%s*/ $parent, /*$2%s*/ $feature->post_type, /*$3%s*/ $feature_id, /*$4%s*/ $feature->post_title ) . "\n";
|
500 |
} // foreach $feature
|
501 |
}
|
502 |
|
503 |
+
$features = apply_filters( 'mla_featured_in_meta_box', array( 'features' => $features, 'rows' => 5, 'cols' => 80 ), self::$mla_references, $post );
|
504 |
+
|
505 |
+
$html = '<label class="screen-reader-text" for="mla_featured_in">' . __( 'Featured in', 'media-library-assistant' ) . '</label><textarea class="readonly" id="mla_featured_in" rows="' . absint( $features['rows'] ) . '" cols="' . absint( $features['cols'] ) . '" readonly="readonly" name="mla_featured_in" >' . esc_textarea( $features['features'] ) . "</textarea>\n";
|
506 |
+
|
507 |
+
echo apply_filters( 'mla_featured_in_meta_box_html', $html, $features, self::$mla_references, $post );
|
508 |
}
|
509 |
|
510 |
/**
|
522 |
self::$mla_references = MLAData::mla_fetch_attachment_references( $post->ID, $post->post_parent );
|
523 |
}
|
524 |
|
525 |
+
$inserts = '';
|
526 |
if ( is_array( self::$mla_references ) ) {
|
|
|
|
|
527 |
foreach ( self::$mla_references['inserts'] as $file => $insert_array ) {
|
528 |
+
$inserts .= $file . "\n";
|
529 |
|
530 |
foreach ( $insert_array as $insert ) {
|
531 |
if ( $insert->ID == $post->post_parent ) {
|
534 |
$parent = ' ';
|
535 |
}
|
536 |
|
537 |
+
$inserts .= sprintf( '%1$s (%2$s %3$s), %4$s', /*$1%s*/ $parent, /*$2%s*/ $insert->post_type, /*$3%s*/ $insert->ID, /*$4%s*/ $insert->post_title ) . "\n";
|
538 |
} // foreach $insert
|
539 |
} // foreach $file
|
540 |
} // is_array
|
541 |
|
542 |
+
$inserts = apply_filters( 'mla_inserted_in_meta_box', array( 'inserts' => $inserts, 'rows' => 5, 'cols' => 80 ), self::$mla_references, $post );
|
543 |
+
|
544 |
+
$html = '<label class="screen-reader-text" for="mla_inserted_in">' . __( 'Inserted in', 'media-library-assistant' ) . '</label><textarea class="readonly" id="mla_inserted_in" rows="' . absint( $inserts['rows'] ) . '" cols="' . absint( $inserts['cols'] ) . '" readonly="readonly" name="mla_inserted_in" >' . esc_textarea( $inserts['inserts'] ) . "</textarea>\n";
|
545 |
+
|
546 |
+
echo apply_filters( 'mla_inserted_in_meta_box_html', $html, $inserts, self::$mla_references, $post );
|
547 |
}
|
548 |
|
549 |
/**
|
562 |
}
|
563 |
|
564 |
$galleries = '';
|
|
|
565 |
if ( is_array( self::$mla_references ) ) {
|
566 |
foreach ( self::$mla_references['galleries'] as $gallery_id => $gallery ) {
|
567 |
if ( $gallery_id == $post->post_parent ) {
|
570 |
$parent = '';
|
571 |
}
|
572 |
|
573 |
+
$galleries .= sprintf( '%1$s (%2$s %3$s), %4$s', /*$1%s*/ $parent, /*$2%s*/ $gallery['post_type'], /*$3%s*/ $gallery_id, /*$4%s*/ $gallery['post_title'] ) . "\n";
|
574 |
} // foreach $feature
|
575 |
}
|
576 |
|
577 |
+
$galleries = apply_filters( 'mla_gallery_in_meta_box', array( 'galleries' => $galleries, 'rows' => 5, 'cols' => 80 ), self::$mla_references, $post );
|
578 |
+
|
579 |
+
$html = '<label class="screen-reader-text" for="mla_gallery_in">' . __( 'Gallery in', 'media-library-assistant' ) . '</label><textarea class="readonly" id="mla_gallery_in" rows="' . absint( $galleries['rows'] ) . '" cols="' . absint( $galleries['cols'] ) . '" readonly="readonly" name="mla_gallery_in" >' . esc_textarea( $galleries['galleries'] ) . "</textarea>\n";
|
580 |
+
|
581 |
+
echo apply_filters( 'mla_gallery_in_meta_box_html', $html, $galleries, self::$mla_references, $post );
|
582 |
}
|
583 |
|
584 |
/**
|
585 |
+
* Renders the MLA Gallery in meta box on the Edit Media page.
|
586 |
* Declared public because it is a callback function.
|
587 |
*
|
588 |
* @since 0.80
|
597 |
}
|
598 |
|
599 |
$galleries = '';
|
|
|
600 |
if ( is_array( self::$mla_references ) ) {
|
601 |
foreach ( self::$mla_references['mla_galleries'] as $gallery_id => $gallery ) {
|
602 |
if ( $gallery_id == $post->post_parent ) {
|
605 |
$parent = '';
|
606 |
}
|
607 |
|
608 |
+
$galleries .= sprintf( '%1$s (%2$s %3$s), %4$s', /*$1%s*/ $parent, /*$2%s*/ $gallery['post_type'], /*$3%s*/ $gallery_id, /*$4%s*/ $gallery['post_title'] ) . "\n";
|
609 |
} // foreach $feature
|
610 |
}
|
611 |
|
612 |
+
$galleries = apply_filters( 'mla_mla_gallery_in_meta_box', array( 'galleries' => $galleries, 'rows' => 5, 'cols' => 80 ), self::$mla_references, $post );
|
613 |
+
|
614 |
+
$html = '<label class="screen-reader-text" for="mla_mla_gallery_in">' . __( 'MLA Gallery in', 'media-library-assistant' ) . '</label><textarea class="readonly" id="mla_mla_gallery_in" rows="' . absint( $galleries['rows'] ) . '" cols="' . absint( $galleries['cols'] ) . '" readonly="readonly" name="mla_mla_gallery_in" >' . esc_textarea( $galleries['galleries'] ) . "</textarea>\n";
|
615 |
+
|
616 |
+
echo apply_filters( 'mla_mla_gallery_in_meta_box_html', $html, $galleries, self::$mla_references, $post );
|
617 |
}
|
618 |
|
619 |
/**
|
includes/class-mla-list-table.php
CHANGED
@@ -607,7 +607,27 @@ class MLA_List_Table extends WP_List_Table {
|
|
607 |
return $thumb;
|
608 |
}
|
609 |
|
610 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
611 |
}
|
612 |
|
613 |
/**
|
@@ -630,7 +650,7 @@ class MLA_List_Table extends WP_List_Table {
|
|
630 |
*/
|
631 |
$view_args = array_merge( array( 'page' => MLA::ADMIN_PAGE_SLUG, 'mla_item_ID' => $item->ID ),
|
632 |
self::mla_submenu_arguments() );
|
633 |
-
|
634 |
if ( isset( $_REQUEST['paged'] ) ) {
|
635 |
$view_args['paged'] = $_REQUEST['paged'];
|
636 |
}
|
@@ -643,10 +663,17 @@ class MLA_List_Table extends WP_List_Table {
|
|
643 |
* Use the WordPress Edit Media screen for 3.5 and later
|
644 |
*/
|
645 |
if ( MLATest::$wordpress_3point5_plus ) {
|
646 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
647 |
} else {
|
648 |
$actions['edit'] = '<a href="' . add_query_arg( $view_args, wp_nonce_url( '?mla_admin_action=' . MLA::MLA_ADMIN_SINGLE_EDIT_DISPLAY, MLA::MLA_ADMIN_NONCE ) ) . '" title="' . __( 'Edit this item', 'media-library-assistant' ) . '">' . __( 'Edit', 'media-library-assistant' ) . '</a>';
|
649 |
}
|
|
|
650 |
$actions['inline hide-if-no-js'] = '<a class="editinline" href="#" title="' . __( 'Edit this item inline', 'media-library-assistant' ) . '">' . __( 'Quick Edit', 'media-library-assistant' ) . '</a>';
|
651 |
}
|
652 |
} // edit_post
|
@@ -1242,13 +1269,23 @@ class MLA_List_Table extends WP_List_Table {
|
|
1242 |
* @return array non-empty view, search, filter and sort arguments
|
1243 |
*/
|
1244 |
public static function mla_submenu_arguments( $include_filters = true ) {
|
|
|
1245 |
static $submenu_arguments = NULL, $has_filters = NULL;
|
1246 |
|
1247 |
if ( is_array( $submenu_arguments ) && ( $has_filters == $include_filters ) ) {
|
1248 |
return $submenu_arguments;
|
1249 |
-
}
|
1250 |
-
|
1251 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1252 |
}
|
1253 |
|
1254 |
/*
|
@@ -1274,7 +1311,7 @@ class MLA_List_Table extends WP_List_Table {
|
|
1274 |
* Search box arguments
|
1275 |
*/
|
1276 |
if ( !empty( $_REQUEST['s'] ) ) {
|
1277 |
-
$submenu_arguments['s'] = $_REQUEST['s'];
|
1278 |
|
1279 |
if ( isset( $_REQUEST['mla_search_connector'] ) ) {
|
1280 |
$submenu_arguments['mla_search_connector'] = $_REQUEST['mla_search_connector'];
|
607 |
return $thumb;
|
608 |
}
|
609 |
|
610 |
+
/*
|
611 |
+
* Use the WordPress Edit Media screen for 3.5 and later
|
612 |
+
*/
|
613 |
+
$view_args = self::mla_submenu_arguments();
|
614 |
+
if ( MLATest::$wordpress_3point5_plus ) {
|
615 |
+
if ( isset( $view_args['lang'] ) ) {
|
616 |
+
$edit_url = 'post.php?post=' . $item->ID . '&action=edit&mla_source=edit&lang=' . $view_args['lang'];
|
617 |
+
} else {
|
618 |
+
$edit_url = 'post.php?post=' . $item->ID . '&action=edit&mla_source=edit';
|
619 |
+
}
|
620 |
+
} else {
|
621 |
+
if ( isset( $view_args['lang'] ) ) {
|
622 |
+
$view_args = array( 'lang' => $view_args['lang'] );
|
623 |
+
} else {
|
624 |
+
$view_args = array();
|
625 |
+
}
|
626 |
+
|
627 |
+
$edit_url = '<a href="' . add_query_arg( $view_args, wp_nonce_url( '?mla_admin_action=' . MLA::MLA_ADMIN_SINGLE_EDIT_DISPLAY, MLA::MLA_ADMIN_NONCE ) ) . '" title="' . __( 'Edit this item', 'media-library-assistant' ) . '">' . __( 'Edit', 'media-library-assistant' ) . '</a>';
|
628 |
+
}
|
629 |
+
|
630 |
+
return sprintf( '<a href="%1$s" title="' . __( 'Edit', 'media-library-assistant' ) . ' “%2$s”">%3$s</a>', admin_url( $edit_url ), esc_attr( $item->post_title ), $thumb );
|
631 |
}
|
632 |
|
633 |
/**
|
650 |
*/
|
651 |
$view_args = array_merge( array( 'page' => MLA::ADMIN_PAGE_SLUG, 'mla_item_ID' => $item->ID ),
|
652 |
self::mla_submenu_arguments() );
|
653 |
+
|
654 |
if ( isset( $_REQUEST['paged'] ) ) {
|
655 |
$view_args['paged'] = $_REQUEST['paged'];
|
656 |
}
|
663 |
* Use the WordPress Edit Media screen for 3.5 and later
|
664 |
*/
|
665 |
if ( MLATest::$wordpress_3point5_plus ) {
|
666 |
+
if ( isset( $view_args['lang'] ) ) {
|
667 |
+
$edit_url = 'post.php?post=' . $item->ID . '&action=edit&mla_source=edit&lang=' . $view_args['lang'];
|
668 |
+
} else {
|
669 |
+
$edit_url = 'post.php?post=' . $item->ID . '&action=edit&mla_source=edit';
|
670 |
+
}
|
671 |
+
|
672 |
+
$actions['edit'] = '<a href="' . admin_url( $edit_url ) . '" title="' . __( 'Edit this item', 'media-library-assistant' ) . '">' . __( 'Edit', 'media-library-assistant' ) . '</a>';
|
673 |
} else {
|
674 |
$actions['edit'] = '<a href="' . add_query_arg( $view_args, wp_nonce_url( '?mla_admin_action=' . MLA::MLA_ADMIN_SINGLE_EDIT_DISPLAY, MLA::MLA_ADMIN_NONCE ) ) . '" title="' . __( 'Edit this item', 'media-library-assistant' ) . '">' . __( 'Edit', 'media-library-assistant' ) . '</a>';
|
675 |
}
|
676 |
+
|
677 |
$actions['inline hide-if-no-js'] = '<a class="editinline" href="#" title="' . __( 'Edit this item inline', 'media-library-assistant' ) . '">' . __( 'Quick Edit', 'media-library-assistant' ) . '</a>';
|
678 |
}
|
679 |
} // edit_post
|
1269 |
* @return array non-empty view, search, filter and sort arguments
|
1270 |
*/
|
1271 |
public static function mla_submenu_arguments( $include_filters = true ) {
|
1272 |
+
global $sitepress;
|
1273 |
static $submenu_arguments = NULL, $has_filters = NULL;
|
1274 |
|
1275 |
if ( is_array( $submenu_arguments ) && ( $has_filters == $include_filters ) ) {
|
1276 |
return $submenu_arguments;
|
1277 |
+
}
|
1278 |
+
|
1279 |
+
$submenu_arguments = array();
|
1280 |
+
$has_filters = $include_filters;
|
1281 |
+
|
1282 |
+
/*
|
1283 |
+
* WPML arguments
|
1284 |
+
*/
|
1285 |
+
if ( isset( $_REQUEST['lang'] ) ) {
|
1286 |
+
$submenu_arguments['lang'] = $_REQUEST['lang'];
|
1287 |
+
} elseif ( is_object( $sitepress ) ) {
|
1288 |
+
$submenu_arguments['lang'] = $sitepress->get_current_language();
|
1289 |
}
|
1290 |
|
1291 |
/*
|
1311 |
* Search box arguments
|
1312 |
*/
|
1313 |
if ( !empty( $_REQUEST['s'] ) ) {
|
1314 |
+
$submenu_arguments['s'] = urlencode( stripslashes( $_REQUEST['s'] ) );
|
1315 |
|
1316 |
if ( isset( $_REQUEST['mla_search_connector'] ) ) {
|
1317 |
$submenu_arguments['mla_search_connector'] = $_REQUEST['mla_search_connector'];
|
includes/class-mla-main.php
CHANGED
@@ -29,7 +29,7 @@ class MLA {
|
|
29 |
*
|
30 |
* @var string
|
31 |
*/
|
32 |
-
const CURRENT_MLA_VERSION = '1.
|
33 |
|
34 |
/**
|
35 |
* Slug for registering and enqueueing plugin style sheet
|
@@ -259,7 +259,9 @@ class MLA {
|
|
259 |
|
260 |
switch ( $_REQUEST['mla_admin_action'] ) {
|
261 |
case self::MLA_ADMIN_SINGLE_CUSTOM_FIELD_MAP:
|
|
|
262 |
$updates = MLAOptions::mla_evaluate_custom_field_mapping( $_REQUEST['mla_item_ID'], 'single_attachment_mapping' );
|
|
|
263 |
|
264 |
if ( !empty( $updates ) ) {
|
265 |
$item_content = MLAData::mla_update_single_item( $_REQUEST['mla_item_ID'], $updates );
|
@@ -270,7 +272,9 @@ class MLA {
|
|
270 |
exit;
|
271 |
case self::MLA_ADMIN_SINGLE_MAP:
|
272 |
$item = get_post( $_REQUEST['mla_item_ID'] );
|
|
|
273 |
$updates = MLAOptions::mla_evaluate_iptc_exif_mapping( $item, 'iptc_exif_mapping' );
|
|
|
274 |
$page_content = MLAData::mla_update_single_item( $_REQUEST['mla_item_ID'], $updates );
|
275 |
|
276 |
$view_args = isset( $_REQUEST['mla_source'] ) ? array( 'mla_source' => $_REQUEST['mla_source']) : array();
|
@@ -356,13 +360,6 @@ class MLA {
|
|
356 |
'ajax_nonce' => wp_create_nonce( self::MLA_ADMIN_NONCE )
|
357 |
);
|
358 |
|
359 |
-
if ( version_compare( get_bloginfo( 'version' ), '3.9', '>=' ) ) {
|
360 |
-
$script_variables['setParentDataType'] = 'json';
|
361 |
-
} else {
|
362 |
-
// $script_variables['setParentDataType'] = 'xml';
|
363 |
-
$script_variables['setParentDataType'] = 'json';
|
364 |
-
}
|
365 |
-
|
366 |
wp_localize_script( self::JAVASCRIPT_INLINE_EDIT_SLUG, self::JAVASCRIPT_INLINE_EDIT_OBJECT, $script_variables );
|
367 |
}
|
368 |
}
|
@@ -440,7 +437,6 @@ class MLA {
|
|
440 |
if ( $menu_position && is_array( $submenu['upload.php'] ) ) {
|
441 |
foreach ( $submenu['upload.php'] as $menu_order => $menu_item ) {
|
442 |
if ( self::ADMIN_PAGE_SLUG == $menu_item[2] ) {
|
443 |
-
// Replace "admin.php" with "upload.php"; support topic "Media/Library menu URLs mismatch"
|
444 |
$menu_item[2] = 'upload.php?page=' . self::ADMIN_PAGE_SLUG;
|
445 |
$submenu['upload.php'][$menu_position] = $menu_item;
|
446 |
unset( $submenu['upload.php'][$menu_order] );
|
@@ -843,6 +839,12 @@ class MLA {
|
|
843 |
if ( $bulk_action && ( $bulk_action != 'none' ) ) {
|
844 |
|
845 |
if ( isset( $_REQUEST['cb_attachment'] ) ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
846 |
foreach ( $_REQUEST['cb_attachment'] as $index => $post_id ) {
|
847 |
switch ( $bulk_action ) {
|
848 |
case 'delete':
|
@@ -959,6 +961,10 @@ class MLA {
|
|
959 |
$page_content['message'] .= $item_content['message'] . '<br>';
|
960 |
} // foreach cb_attachment
|
961 |
|
|
|
|
|
|
|
|
|
962 |
unset( $_REQUEST['post_title'] );
|
963 |
unset( $_REQUEST['post_excerpt'] );
|
964 |
unset( $_REQUEST['post_content'] );
|
@@ -1038,7 +1044,9 @@ class MLA {
|
|
1038 |
$page_content = MLAData::mla_update_single_item( $_REQUEST['mla_item_ID'], $_REQUEST['attachments'][ $_REQUEST['mla_item_ID'] ], $_REQUEST['tax_input'] );
|
1039 |
} elseif ( !empty( $_REQUEST['map-iptc-exif'] ) ) {
|
1040 |
$item = get_post( $_REQUEST['mla_item_ID'] );
|
|
|
1041 |
$updates = MLAOptions::mla_evaluate_iptc_exif_mapping( $item, 'iptc_exif_mapping' );
|
|
|
1042 |
$page_content = MLAData::mla_update_single_item( $_REQUEST['mla_item_ID'], $updates );
|
1043 |
} else {
|
1044 |
$page_content = array(
|
@@ -1193,9 +1201,16 @@ class MLA {
|
|
1193 |
// Fetch, prepare, sort, and filter our data...
|
1194 |
$MLAListTable->prepare_items();
|
1195 |
$MLAListTable->views();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1196 |
|
1197 |
// Forms are NOT created automatically, so you need to wrap the table in one to use features like bulk actions
|
1198 |
-
echo '<form action="' . admin_url(
|
1199 |
/*
|
1200 |
* Include the Search Media box
|
1201 |
*/
|
@@ -1206,7 +1221,6 @@ class MLA {
|
|
1206 |
*/
|
1207 |
echo sprintf( '<input type="hidden" name="page" value="%1$s" />', $_REQUEST['page'] ) . "\n";
|
1208 |
|
1209 |
-
$view_arguments = MLA_List_Table::mla_submenu_arguments();
|
1210 |
foreach ( $view_arguments as $key => $value ) {
|
1211 |
if ( 'meta_query' == $key ) {
|
1212 |
$value = stripslashes( $_REQUEST['meta_query'] );
|
@@ -1214,8 +1228,9 @@ class MLA {
|
|
1214 |
|
1215 |
/*
|
1216 |
* Search box elements are already set up in the above "search-box"
|
|
|
1217 |
*/
|
1218 |
-
if ( in_array( $key, array( 's', 'mla_search_connector', 'mla_search_fields' ) ) ) {
|
1219 |
continue;
|
1220 |
}
|
1221 |
|
@@ -1362,7 +1377,7 @@ class MLA {
|
|
1362 |
|
1363 |
// Create an instance of our package class and echo the new HTML
|
1364 |
$MLAListTable = new MLA_List_Table();
|
1365 |
-
|
1366 |
die(); // this is required to return a proper result
|
1367 |
}
|
1368 |
|
29 |
*
|
30 |
* @var string
|
31 |
*/
|
32 |
+
const CURRENT_MLA_VERSION = '1.91';
|
33 |
|
34 |
/**
|
35 |
* Slug for registering and enqueueing plugin style sheet
|
259 |
|
260 |
switch ( $_REQUEST['mla_admin_action'] ) {
|
261 |
case self::MLA_ADMIN_SINGLE_CUSTOM_FIELD_MAP:
|
262 |
+
do_action( 'mla_begin_mapping', 'single_custom', $_REQUEST['mla_item_ID'] );
|
263 |
$updates = MLAOptions::mla_evaluate_custom_field_mapping( $_REQUEST['mla_item_ID'], 'single_attachment_mapping' );
|
264 |
+
do_action( 'mla_end_mapping' );
|
265 |
|
266 |
if ( !empty( $updates ) ) {
|
267 |
$item_content = MLAData::mla_update_single_item( $_REQUEST['mla_item_ID'], $updates );
|
272 |
exit;
|
273 |
case self::MLA_ADMIN_SINGLE_MAP:
|
274 |
$item = get_post( $_REQUEST['mla_item_ID'] );
|
275 |
+
do_action( 'mla_begin_mapping', 'single_iptc_exif', $_REQUEST['mla_item_ID'] );
|
276 |
$updates = MLAOptions::mla_evaluate_iptc_exif_mapping( $item, 'iptc_exif_mapping' );
|
277 |
+
do_action( 'mla_end_mapping' );
|
278 |
$page_content = MLAData::mla_update_single_item( $_REQUEST['mla_item_ID'], $updates );
|
279 |
|
280 |
$view_args = isset( $_REQUEST['mla_source'] ) ? array( 'mla_source' => $_REQUEST['mla_source']) : array();
|
360 |
'ajax_nonce' => wp_create_nonce( self::MLA_ADMIN_NONCE )
|
361 |
);
|
362 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
363 |
wp_localize_script( self::JAVASCRIPT_INLINE_EDIT_SLUG, self::JAVASCRIPT_INLINE_EDIT_OBJECT, $script_variables );
|
364 |
}
|
365 |
}
|
437 |
if ( $menu_position && is_array( $submenu['upload.php'] ) ) {
|
438 |
foreach ( $submenu['upload.php'] as $menu_order => $menu_item ) {
|
439 |
if ( self::ADMIN_PAGE_SLUG == $menu_item[2] ) {
|
|
|
440 |
$menu_item[2] = 'upload.php?page=' . self::ADMIN_PAGE_SLUG;
|
441 |
$submenu['upload.php'][$menu_position] = $menu_item;
|
442 |
unset( $submenu['upload.php'][$menu_order] );
|
839 |
if ( $bulk_action && ( $bulk_action != 'none' ) ) {
|
840 |
|
841 |
if ( isset( $_REQUEST['cb_attachment'] ) ) {
|
842 |
+
if ( !empty( $_REQUEST['bulk_custom_field_map'] ) ) {
|
843 |
+
do_action( 'mla_begin_mapping', 'bulk_custom', NULL );
|
844 |
+
} elseif ( !empty( $_REQUEST['bulk_map'] ) ) {
|
845 |
+
do_action( 'mla_begin_mapping', 'bulk_iptc_exif', NULL );
|
846 |
+
}
|
847 |
+
|
848 |
foreach ( $_REQUEST['cb_attachment'] as $index => $post_id ) {
|
849 |
switch ( $bulk_action ) {
|
850 |
case 'delete':
|
961 |
$page_content['message'] .= $item_content['message'] . '<br>';
|
962 |
} // foreach cb_attachment
|
963 |
|
964 |
+
if ( !empty( $_REQUEST['bulk_custom_field_map'] ) || !empty( $_REQUEST['bulk_map'] ) ) {
|
965 |
+
do_action( 'mla_end_mapping' );
|
966 |
+
}
|
967 |
+
|
968 |
unset( $_REQUEST['post_title'] );
|
969 |
unset( $_REQUEST['post_excerpt'] );
|
970 |
unset( $_REQUEST['post_content'] );
|
1044 |
$page_content = MLAData::mla_update_single_item( $_REQUEST['mla_item_ID'], $_REQUEST['attachments'][ $_REQUEST['mla_item_ID'] ], $_REQUEST['tax_input'] );
|
1045 |
} elseif ( !empty( $_REQUEST['map-iptc-exif'] ) ) {
|
1046 |
$item = get_post( $_REQUEST['mla_item_ID'] );
|
1047 |
+
do_action( 'mla_begin_mapping', 'single_iptc_exif', $_REQUEST['mla_item_ID'] );
|
1048 |
$updates = MLAOptions::mla_evaluate_iptc_exif_mapping( $item, 'iptc_exif_mapping' );
|
1049 |
+
do_action( 'mla_end_mapping' );
|
1050 |
$page_content = MLAData::mla_update_single_item( $_REQUEST['mla_item_ID'], $updates );
|
1051 |
} else {
|
1052 |
$page_content = array(
|
1201 |
// Fetch, prepare, sort, and filter our data...
|
1202 |
$MLAListTable->prepare_items();
|
1203 |
$MLAListTable->views();
|
1204 |
+
|
1205 |
+
$view_arguments = MLA_List_Table::mla_submenu_arguments();
|
1206 |
+
if ( isset( $view_arguments['lang'] ) ) {
|
1207 |
+
$form_url = 'upload.php?page=' . self::ADMIN_PAGE_SLUG . '&lang=' . $view_arguments['lang'];
|
1208 |
+
} else {
|
1209 |
+
$form_url = 'upload.php?page=' . self::ADMIN_PAGE_SLUG;
|
1210 |
+
}
|
1211 |
|
1212 |
// Forms are NOT created automatically, so you need to wrap the table in one to use features like bulk actions
|
1213 |
+
echo '<form action="' . admin_url( $form_url ) . '" method="post" id="mla-filter">' . "\n";
|
1214 |
/*
|
1215 |
* Include the Search Media box
|
1216 |
*/
|
1221 |
*/
|
1222 |
echo sprintf( '<input type="hidden" name="page" value="%1$s" />', $_REQUEST['page'] ) . "\n";
|
1223 |
|
|
|
1224 |
foreach ( $view_arguments as $key => $value ) {
|
1225 |
if ( 'meta_query' == $key ) {
|
1226 |
$value = stripslashes( $_REQUEST['meta_query'] );
|
1228 |
|
1229 |
/*
|
1230 |
* Search box elements are already set up in the above "search-box"
|
1231 |
+
* 'lang' has already been added to the form action attribute
|
1232 |
*/
|
1233 |
+
if ( in_array( $key, array( 's', 'mla_search_connector', 'mla_search_fields', 'lang' ) ) ) {
|
1234 |
continue;
|
1235 |
}
|
1236 |
|
1377 |
|
1378 |
// Create an instance of our package class and echo the new HTML
|
1379 |
$MLAListTable = new MLA_List_Table();
|
1380 |
+
$MLAListTable->single_row( $new_item );
|
1381 |
die(); // this is required to return a proper result
|
1382 |
}
|
1383 |
|
includes/class-mla-media-modal.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @package Media Library Assistant
|
6 |
* @since 1.20
|
7 |
*/
|
8 |
-
|
9 |
/**
|
10 |
* Class MLA (Media Library Assistant) Modal contains enhancements for the WordPress 3.5+ Media Manager
|
11 |
*
|
@@ -97,7 +97,19 @@ class MLAModal {
|
|
97 |
*
|
98 |
* Finally wp_enqueue_media() contains:
|
99 |
* do_action( 'wp_enqueue_media' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
*/
|
|
|
101 |
if ( MLATest::$wordpress_3point5_plus && ( 'checked' == MLAOptions::mla_get_option( MLAOptions::MLA_MEDIA_MODAL_TOOLBAR ) ) ) {
|
102 |
add_filter( 'get_media_item_args', 'MLAModal::mla_get_media_item_args_filter', 10, 1 );
|
103 |
add_filter( 'attachment_fields_to_edit', 'MLAModal::mla_attachment_fields_to_edit_filter', 0x7FFFFFFF, 2 );
|
@@ -158,11 +170,11 @@ class MLAModal {
|
|
158 |
*/
|
159 |
public static function mla_attachment_fields_to_edit_filter( $form_fields, $post ) {
|
160 |
/*
|
161 |
-
* This logic is only required for the Media Manager Modal Window.
|
162 |
* For the non-Modal Media/Edit Media screen, the MLAEdit::mla_add_meta_boxes_action
|
163 |
* function changes the default meta box to the MLA searchable meta box.
|
164 |
*/
|
165 |
-
if (
|
166 |
foreach ( get_taxonomies( array ( 'show_ui' => true ), 'objects' ) as $key => $value ) {
|
167 |
if ( MLAOptions::mla_taxonomy_support( $key ) ) {
|
168 |
if ( isset( $form_fields[ $key ] ) ) {
|
@@ -334,12 +346,10 @@ class MLAModal {
|
|
334 |
* @var array
|
335 |
*/
|
336 |
private static $mla_media_modal_settings = array(
|
337 |
-
'ajaxFillCompatAction' => self::JAVASCRIPT_FILL_COMPAT_ACTION,
|
338 |
'ajaxNonce' => '',
|
|
|
339 |
'ajaxQueryAttachmentsAction' => self::JAVASCRIPT_QUERY_ATTACHMENTS_ACTION,
|
340 |
'ajaxUpdateCompatAction' => self::JAVASCRIPT_UPDATE_COMPAT_ACTION,
|
341 |
-
// 'ajaxFillCompatNonce' => '',
|
342 |
-
// 'ajaxUpdateCompatNonce' => '',
|
343 |
'enableDetailsCategory' => false,
|
344 |
'enableDetailsTag' => false,
|
345 |
'enableMimeTypes' => false,
|
@@ -348,14 +358,17 @@ class MLAModal {
|
|
348 |
'enableSearchBoxControls' => false,
|
349 |
'enableTermsDropdown' => false,
|
350 |
'enableTermsSearch' => false,
|
351 |
-
|
352 |
-
'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
353 |
'mimeTypes' => '',
|
354 |
'months' => '',
|
355 |
-
'searchClicks' => 0,
|
356 |
-
'searchConnector' => 'AND',
|
357 |
-
'searchFields' => array( 'title', 'content' ),
|
358 |
-
'searchValue' => '',
|
359 |
'termsClass' => array(),
|
360 |
'termsIndent' => ' ',
|
361 |
'termsTaxonomy' => '',
|
@@ -375,6 +388,17 @@ class MLAModal {
|
|
375 |
* @return array updated $settings array
|
376 |
*/
|
377 |
public static function mla_media_view_settings_filter( $settings, $post ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
378 |
self::$mla_media_modal_settings['ajaxNonce'] = wp_create_nonce( MLA::MLA_ADMIN_NONCE );
|
379 |
self::$mla_media_modal_settings['mimeTypes'] = MLAMime::mla_pluck_table_views();
|
380 |
self::$mla_media_modal_settings['mimeTypes']['detached'] = MLAOptions::$mla_option_definitions[ MLAOptions::MLA_POST_MIME_TYPES ]['std']['unattached']['plural'];
|
@@ -401,15 +425,33 @@ class MLAModal {
|
|
401 |
self::$mla_media_modal_settings['enableTermsSearch'] = ( 'checked' == MLAOptions::mla_get_option( MLAOptions::MLA_MEDIA_MODAL_TERMS_SEARCH ) );
|
402 |
|
403 |
/*
|
404 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
405 |
*/
|
406 |
-
self::$mla_media_modal_settings['
|
407 |
-
self::$mla_media_modal_settings['
|
|
|
|
|
|
|
|
|
|
|
408 |
self::$mla_media_modal_settings['searchClicks'] = 0; // mla_search_clicks, to force transmission
|
409 |
-
self::$mla_media_modal_settings['searchConnector'] = 'AND'; // mla_search_connector
|
410 |
-
self::$mla_media_modal_settings['searchFields'] = array( 'title', 'content' ); // mla_search_fields
|
411 |
-
self::$mla_media_modal_settings['searchValue'] = ''; // mla_search_value
|
412 |
-
self::$mla_media_modal_settings['termsSearch'] = ''; // mla_terms_search
|
413 |
|
414 |
$settings = array_merge( $settings, array( 'mla_settings' => self::$mla_media_modal_settings ) );
|
415 |
return $settings;
|
@@ -427,6 +469,17 @@ class MLAModal {
|
|
427 |
* @return array updated $strings array
|
428 |
*/
|
429 |
public static function mla_media_view_strings_filter( $strings, $post ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
430 |
$mla_strings = array(
|
431 |
'searchBoxPlaceholder' => __( 'Search Box', 'media-library-assistant' ),
|
432 |
'loadingText' => __( 'Loading...', 'media-library-assistant' ),
|
@@ -446,6 +499,17 @@ class MLAModal {
|
|
446 |
* @return void
|
447 |
*/
|
448 |
public static function mla_wp_enqueue_media_action( ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
449 |
$suffix = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '' : '.min';
|
450 |
|
451 |
wp_register_style( self::JAVASCRIPT_MEDIA_MODAL_STYLES, MLA_PLUGIN_URL . 'css/mla-media-modal-style.css', false, MLA::CURRENT_MLA_VERSION );
|
@@ -467,27 +531,40 @@ class MLAModal {
|
|
467 |
* @return void echoes HTML script tags for the templates
|
468 |
*/
|
469 |
public static function mla_print_media_templates_action( ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
470 |
/*
|
471 |
* Compose the Search Media box
|
472 |
*/
|
473 |
-
$search_defaults = MLAOptions::mla_get_option( MLAOptions::MLA_SEARCH_MEDIA_FILTER_DEFAULTS );
|
474 |
-
|
475 |
if ( isset( $_REQUEST['query']['mla_search_value'] ) ) {
|
476 |
$search_value = esc_attr( stripslashes( trim( $_REQUEST['query']['mla_search_value'] ) ) );
|
477 |
} else {
|
478 |
-
$search_value = '';
|
479 |
}
|
480 |
|
481 |
if ( isset( $_REQUEST['query']['mla_search_fields'] ) ) {
|
482 |
$search_fields = $_REQUEST['query']['mla_search_fields'];
|
483 |
} else {
|
484 |
-
$search_fields =
|
485 |
}
|
486 |
|
487 |
if ( isset( $_REQUEST['query']['mla_search_connector'] ) ) {
|
488 |
$search_connector = $_REQUEST['query']['mla_search_connector'];
|
489 |
} else {
|
490 |
-
$search_connector =
|
491 |
}
|
492 |
|
493 |
// Include mla javascript templates
|
@@ -534,8 +611,6 @@ class MLAModal {
|
|
534 |
} // foreach taxonomy
|
535 |
|
536 |
if ( ( defined('WP_ADMIN') && WP_ADMIN ) && ( defined('DOING_AJAX') && DOING_AJAX ) ) {
|
537 |
-
//error_log( 'DEBUG: mla_admin_init_action Ajax $_REQUEST = ' . var_export( $_REQUEST, true ), 0 );
|
538 |
-
|
539 |
/*
|
540 |
* If there's no action variable, we have nothing to do
|
541 |
*/
|
@@ -880,6 +955,19 @@ class MLAModal {
|
|
880 |
wp_send_json_success( $results );
|
881 |
} // mla_update_compat_fields_action
|
882 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
883 |
/**
|
884 |
* Ajax handler for Media Manager "Query Attachments" queries
|
885 |
*
|
@@ -983,7 +1071,9 @@ class MLAModal {
|
|
983 |
}
|
984 |
|
985 |
$query = MLAData::mla_query_media_modal_items( $query, $offset, $count );
|
|
|
986 |
$posts = array_map( 'wp_prepare_attachment_for_js', $query->posts );
|
|
|
987 |
$posts = array_filter( $posts );
|
988 |
|
989 |
wp_send_json_success( $posts );
|
5 |
* @package Media Library Assistant
|
6 |
* @since 1.20
|
7 |
*/
|
8 |
+
|
9 |
/**
|
10 |
* Class MLA (Media Library Assistant) Modal contains enhancements for the WordPress 3.5+ Media Manager
|
11 |
*
|
97 |
*
|
98 |
* Finally wp_enqueue_media() contains:
|
99 |
* do_action( 'wp_enqueue_media' );
|
100 |
+
*
|
101 |
+
* For each media item found by "query_attachments", these filters are called:
|
102 |
+
*
|
103 |
+
* In /wp-admin/includes/media.php, functions get_media_item() and get_compat_media_markup()
|
104 |
+
* contain "apply_filters( 'get_media_item_args', $args );", documented as:
|
105 |
+
* "Filter the arguments used to retrieve an image for the edit image form."
|
106 |
+
*
|
107 |
+
* In /wp-admin/includes/media.php, functions get_attachment_fields_to_edit()
|
108 |
+
* and get_compat_media_markup() contain
|
109 |
+
* "$form_fields = apply_filters( 'attachment_fields_to_edit', $form_fields, $post );",
|
110 |
+
* documented as: "Filter the attachment fields to edit."
|
111 |
*/
|
112 |
+
|
113 |
if ( MLATest::$wordpress_3point5_plus && ( 'checked' == MLAOptions::mla_get_option( MLAOptions::MLA_MEDIA_MODAL_TOOLBAR ) ) ) {
|
114 |
add_filter( 'get_media_item_args', 'MLAModal::mla_get_media_item_args_filter', 10, 1 );
|
115 |
add_filter( 'attachment_fields_to_edit', 'MLAModal::mla_attachment_fields_to_edit_filter', 0x7FFFFFFF, 2 );
|
170 |
*/
|
171 |
public static function mla_attachment_fields_to_edit_filter( $form_fields, $post ) {
|
172 |
/*
|
173 |
+
* This logic is only required for the MLA-enhanced Media Manager Modal Window.
|
174 |
* For the non-Modal Media/Edit Media screen, the MLAEdit::mla_add_meta_boxes_action
|
175 |
* function changes the default meta box to the MLA searchable meta box.
|
176 |
*/
|
177 |
+
if ( self::$mla_query_attachments ) {
|
178 |
foreach ( get_taxonomies( array ( 'show_ui' => true ), 'objects' ) as $key => $value ) {
|
179 |
if ( MLAOptions::mla_taxonomy_support( $key ) ) {
|
180 |
if ( isset( $form_fields[ $key ] ) ) {
|
346 |
* @var array
|
347 |
*/
|
348 |
private static $mla_media_modal_settings = array(
|
|
|
349 |
'ajaxNonce' => '',
|
350 |
+
'ajaxFillCompatAction' => self::JAVASCRIPT_FILL_COMPAT_ACTION,
|
351 |
'ajaxQueryAttachmentsAction' => self::JAVASCRIPT_QUERY_ATTACHMENTS_ACTION,
|
352 |
'ajaxUpdateCompatAction' => self::JAVASCRIPT_UPDATE_COMPAT_ACTION,
|
|
|
|
|
353 |
'enableDetailsCategory' => false,
|
354 |
'enableDetailsTag' => false,
|
355 |
'enableMimeTypes' => false,
|
358 |
'enableSearchBoxControls' => false,
|
359 |
'enableTermsDropdown' => false,
|
360 |
'enableTermsSearch' => false,
|
361 |
+
// NULL values replaced by filtered initial values in mla_media_view_settings_filter
|
362 |
+
'filterMime' => NULL,
|
363 |
+
'filterMonth' => NULL,
|
364 |
+
'filterTerm' => NULL,
|
365 |
+
'searchConnector' => NULL,
|
366 |
+
'searchFields' => NULL,
|
367 |
+
'searchValue' => NULL,
|
368 |
+
//'termsSearch' => NULL,
|
369 |
+
'searchClicks' => 0,
|
370 |
'mimeTypes' => '',
|
371 |
'months' => '',
|
|
|
|
|
|
|
|
|
372 |
'termsClass' => array(),
|
373 |
'termsIndent' => ' ',
|
374 |
'termsTaxonomy' => '',
|
388 |
* @return array updated $settings array
|
389 |
*/
|
390 |
public static function mla_media_view_settings_filter( $settings, $post ) {
|
391 |
+
$screen = get_current_screen();
|
392 |
+
|
393 |
+
/*
|
394 |
+
* WordPress 4.0 adds the "grid view" to the Media/Library screen, and we don't want
|
395 |
+
* to add our functionality to that screen.
|
396 |
+
*/
|
397 |
+
if ( 'upload' == $screen->base ) {
|
398 |
+
//if ( 'edit' != $screen->parent_base ) {
|
399 |
+
return $settings;
|
400 |
+
}
|
401 |
+
|
402 |
self::$mla_media_modal_settings['ajaxNonce'] = wp_create_nonce( MLA::MLA_ADMIN_NONCE );
|
403 |
self::$mla_media_modal_settings['mimeTypes'] = MLAMime::mla_pluck_table_views();
|
404 |
self::$mla_media_modal_settings['mimeTypes']['detached'] = MLAOptions::$mla_option_definitions[ MLAOptions::MLA_POST_MIME_TYPES ]['std']['unattached']['plural'];
|
425 |
self::$mla_media_modal_settings['enableTermsSearch'] = ( 'checked' == MLAOptions::mla_get_option( MLAOptions::MLA_MEDIA_MODAL_TERMS_SEARCH ) );
|
426 |
|
427 |
/*
|
428 |
+
* Set and filter the initial values for toolbar controls
|
429 |
+
*/
|
430 |
+
$search_defaults = MLAOptions::mla_get_option( MLAOptions::MLA_SEARCH_MEDIA_FILTER_DEFAULTS );
|
431 |
+
$initial_values = array(
|
432 |
+
'filterMime' => 'all',
|
433 |
+
'filterMonth' => 0,
|
434 |
+
'filterTerm' => 0,
|
435 |
+
'searchConnector' => $search_defaults['search_connector'],
|
436 |
+
'searchFields' => $search_defaults['search_fields'],
|
437 |
+
'searchValue' => '',
|
438 |
+
//'termsSearch' => ''
|
439 |
+
);
|
440 |
+
|
441 |
+
$initial_values = apply_filters( 'mla_media_modal_initial_filters', $initial_values );
|
442 |
+
|
443 |
+
/*
|
444 |
+
* Except for filterMime/post_mime_type, these will be passed
|
445 |
+
* back to the server in the query['s'] field.
|
446 |
*/
|
447 |
+
self::$mla_media_modal_settings['filterMime'] = $initial_values['filterMime']; // post_mime_type 'image'; //
|
448 |
+
self::$mla_media_modal_settings['filterMonth'] = $initial_values['filterMonth']; // mla_filter_month '201404'; //
|
449 |
+
self::$mla_media_modal_settings['filterTerm'] = $initial_values['filterTerm']; // mla_filter_term '175'; //
|
450 |
+
self::$mla_media_modal_settings['searchConnector'] = $initial_values['searchConnector']; // mla_search_connector 'OR'; //
|
451 |
+
self::$mla_media_modal_settings['searchFields'] = $initial_values['searchFields']; // mla_search_fields array( 'excerpt', 'title', 'content' ); //
|
452 |
+
self::$mla_media_modal_settings['searchValue'] = $initial_values['searchValue']; // mla_search_value 'col'; //
|
453 |
+
//self::$mla_media_modal_settings['termsSearch'] = $initial_values['termsSearch']; // mla_terms_search
|
454 |
self::$mla_media_modal_settings['searchClicks'] = 0; // mla_search_clicks, to force transmission
|
|
|
|
|
|
|
|
|
455 |
|
456 |
$settings = array_merge( $settings, array( 'mla_settings' => self::$mla_media_modal_settings ) );
|
457 |
return $settings;
|
469 |
* @return array updated $strings array
|
470 |
*/
|
471 |
public static function mla_media_view_strings_filter( $strings, $post ) {
|
472 |
+
$screen = get_current_screen();
|
473 |
+
|
474 |
+
/*
|
475 |
+
* WordPress 4.0 adds the "grid view" to the Media/Library screen, and we don't want
|
476 |
+
* to add our functionality to that screen.
|
477 |
+
*/
|
478 |
+
if ( 'upload' == $screen->base ) {
|
479 |
+
//if ( 'edit' != $screen->parent_base ) {
|
480 |
+
return $strings;
|
481 |
+
}
|
482 |
+
|
483 |
$mla_strings = array(
|
484 |
'searchBoxPlaceholder' => __( 'Search Box', 'media-library-assistant' ),
|
485 |
'loadingText' => __( 'Loading...', 'media-library-assistant' ),
|
499 |
* @return void
|
500 |
*/
|
501 |
public static function mla_wp_enqueue_media_action( ) {
|
502 |
+
$screen = get_current_screen();
|
503 |
+
|
504 |
+
/*
|
505 |
+
* WordPress 4.0 adds the "grid view" to the Media/Library screen, and we don't want
|
506 |
+
* to add our functionality to that screen.
|
507 |
+
*/
|
508 |
+
if ( 'upload' == $screen->base ) {
|
509 |
+
//if ( 'edit' != $screen->parent_base ) {
|
510 |
+
return;
|
511 |
+
}
|
512 |
+
|
513 |
$suffix = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '' : '.min';
|
514 |
|
515 |
wp_register_style( self::JAVASCRIPT_MEDIA_MODAL_STYLES, MLA_PLUGIN_URL . 'css/mla-media-modal-style.css', false, MLA::CURRENT_MLA_VERSION );
|
531 |
* @return void echoes HTML script tags for the templates
|
532 |
*/
|
533 |
public static function mla_print_media_templates_action( ) {
|
534 |
+
$screen = get_current_screen();
|
535 |
+
//cause_an_error();
|
536 |
+
//$cause_notice = $screen->bad_property;
|
537 |
+
//trigger_error( 'mla_print_media_templates_action', E_USER_WARNING );
|
538 |
+
//error_log( 'xdebug_get_function_stack = ' . var_export( xdebug_get_function_stack(), true), 0 );
|
539 |
+
|
540 |
+
/*
|
541 |
+
* WordPress 4.0 adds the "grid view" to the Media/Library screen, and we don't want
|
542 |
+
* to add our functionality to that screen.
|
543 |
+
*/
|
544 |
+
if ( 'upload' == $screen->base ) {
|
545 |
+
//if ( 'edit' != $screen->parent_base ) {
|
546 |
+
return;
|
547 |
+
}
|
548 |
+
|
549 |
/*
|
550 |
* Compose the Search Media box
|
551 |
*/
|
|
|
|
|
552 |
if ( isset( $_REQUEST['query']['mla_search_value'] ) ) {
|
553 |
$search_value = esc_attr( stripslashes( trim( $_REQUEST['query']['mla_search_value'] ) ) );
|
554 |
} else {
|
555 |
+
$search_value = self::$mla_media_modal_settings['searchValue'];
|
556 |
}
|
557 |
|
558 |
if ( isset( $_REQUEST['query']['mla_search_fields'] ) ) {
|
559 |
$search_fields = $_REQUEST['query']['mla_search_fields'];
|
560 |
} else {
|
561 |
+
$search_fields = self::$mla_media_modal_settings['searchFields'];
|
562 |
}
|
563 |
|
564 |
if ( isset( $_REQUEST['query']['mla_search_connector'] ) ) {
|
565 |
$search_connector = $_REQUEST['query']['mla_search_connector'];
|
566 |
} else {
|
567 |
+
$search_connector = self::$mla_media_modal_settings['searchConnector'];
|
568 |
}
|
569 |
|
570 |
// Include mla javascript templates
|
611 |
} // foreach taxonomy
|
612 |
|
613 |
if ( ( defined('WP_ADMIN') && WP_ADMIN ) && ( defined('DOING_AJAX') && DOING_AJAX ) ) {
|
|
|
|
|
614 |
/*
|
615 |
* If there's no action variable, we have nothing to do
|
616 |
*/
|
955 |
wp_send_json_success( $results );
|
956 |
} // mla_update_compat_fields_action
|
957 |
|
958 |
+
/**
|
959 |
+
* Executing mla_query_attachments_action
|
960 |
+
*
|
961 |
+
* Informs mla_attachment_fields_to_edit_filter() that MLA enhancements
|
962 |
+
* be added to the compatible fields. Keeps our enhancements out of the
|
963 |
+
* WP 4.0 Media Grid display.
|
964 |
+
*
|
965 |
+
* @since 1.91
|
966 |
+
*
|
967 |
+
* @var boolean true if performing MLA enhanced query attachments else false.
|
968 |
+
*/
|
969 |
+
private static $mla_query_attachments = false;
|
970 |
+
|
971 |
/**
|
972 |
* Ajax handler for Media Manager "Query Attachments" queries
|
973 |
*
|
1071 |
}
|
1072 |
|
1073 |
$query = MLAData::mla_query_media_modal_items( $query, $offset, $count );
|
1074 |
+
self::$mla_query_attachments = true;
|
1075 |
$posts = array_map( 'wp_prepare_attachment_for_js', $query->posts );
|
1076 |
+
self::$mla_query_attachments = false;
|
1077 |
$posts = array_filter( $posts );
|
1078 |
|
1079 |
wp_send_json_success( $posts );
|
includes/class-mla-mime-types.php
CHANGED
@@ -1786,6 +1786,12 @@ class MLAMime {
|
|
1786 |
$mla_mime_types = preg_split('/[\r\n]+/', $template_array['mla-mime-types'] );
|
1787 |
foreach ( $mla_mime_types as $mla_type ) {
|
1788 |
$array = explode(',', $mla_type );
|
|
|
|
|
|
|
|
|
|
|
|
|
1789 |
$key = strtolower( $array[0] );
|
1790 |
self::$mla_upload_mime_descriptions[ $key ] = $array[4];
|
1791 |
self::$mla_upload_mime_templates[ $key ] = array(
|
1786 |
$mla_mime_types = preg_split('/[\r\n]+/', $template_array['mla-mime-types'] );
|
1787 |
foreach ( $mla_mime_types as $mla_type ) {
|
1788 |
$array = explode(',', $mla_type );
|
1789 |
+
|
1790 |
+
/* Anthony Martin debug * /
|
1791 |
+
if ( 4 > count( $array ) ) {
|
1792 |
+
trigger_error( sprintf( 'mla-default-mime-types.tpl $array = "%1$s".', var_export( $array, true ) ), E_USER_WARNING );
|
1793 |
+
} // */
|
1794 |
+
|
1795 |
$key = strtolower( $array[0] );
|
1796 |
self::$mla_upload_mime_descriptions[ $key ] = $array[4];
|
1797 |
self::$mla_upload_mime_templates[ $key ] = array(
|
includes/class-mla-options.php
CHANGED
@@ -669,7 +669,9 @@ class MLAOptions {
|
|
669 |
'name' => __( 'Enable Edit Media additional meta boxes', 'media-library-assistant' ),
|
670 |
'type' => 'checkbox',
|
671 |
'std' => 'checked',
|
672 |
-
'help' => __( 'Check this option to add "Parent Info", "Menu Order", "Attachment Metadata" and four "where-used" meta boxes to the Edit Media screen.', 'media-library-assistant' )
|
|
|
|
|
673 |
|
674 |
'media_modal_header' =>
|
675 |
array('tab' => 'general',
|
@@ -1806,10 +1808,24 @@ class MLAOptions {
|
|
1806 |
* @return array updated file parameters
|
1807 |
*/
|
1808 |
public static function mla_wp_handle_upload_prefilter_filter( $file ) {
|
1809 |
-
|
1810 |
-
|
1811 |
-
|
1812 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1813 |
return $file;
|
1814 |
} // mla_wp_handle_upload_prefilter_filter
|
1815 |
|
@@ -1823,13 +1839,23 @@ class MLAOptions {
|
|
1823 |
* @return array updated file parameters
|
1824 |
*/
|
1825 |
public static function mla_wp_handle_upload_filter( $file ) {
|
1826 |
-
|
1827 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1828 |
}
|
1829 |
-
|
1830 |
-
$id3 = new getID3();
|
1831 |
-
$id3_data = $id3->analyze( $file['file'] );
|
1832 |
-
$file = apply_filters( 'mla_upload_filter', $file, $id3_data );
|
1833 |
return $file;
|
1834 |
} // mla_wp_handle_upload_filter
|
1835 |
|
@@ -1905,7 +1931,7 @@ class MLAOptions {
|
|
1905 |
* @param array Attachment metadata for just-inserted attachment
|
1906 |
* @param integer ID of just-inserted attachment
|
1907 |
*
|
1908 |
-
* @return
|
1909 |
*/
|
1910 |
public static function mla_update_attachment_metadata_filter( $data, $post_id ) {
|
1911 |
$options = array ();
|
@@ -1921,6 +1947,10 @@ class MLAOptions {
|
|
1921 |
$data = apply_filters( 'mla_update_attachment_metadata_prefilter', $data, $post_id, $options );
|
1922 |
|
1923 |
if ( $options['is_upload'] ) {
|
|
|
|
|
|
|
|
|
1924 |
if ( $options['enable_iptc_exif_mapping'] ) {
|
1925 |
$item = get_post( $post_id );
|
1926 |
$updates = MLAOptions::mla_evaluate_iptc_exif_mapping( $item, 'iptc_exif_mapping', NULL, $data );
|
@@ -1939,7 +1969,15 @@ class MLAOptions {
|
|
1939 |
$item_content = MLAData::mla_update_single_item( $post_id, $updates );
|
1940 |
}
|
1941 |
}
|
|
|
|
|
|
|
|
|
1942 |
} else {
|
|
|
|
|
|
|
|
|
1943 |
if ( $options['enable_iptc_exif_update'] ) {
|
1944 |
$item = get_post( $post_id );
|
1945 |
$updates = MLAOptions::mla_evaluate_iptc_exif_mapping( $item, 'iptc_exif_mapping', NULL, $data );
|
@@ -1958,6 +1996,10 @@ class MLAOptions {
|
|
1958 |
$item_content = MLAData::mla_update_single_item( $post_id, $updates );
|
1959 |
}
|
1960 |
}
|
|
|
|
|
|
|
|
|
1961 |
}
|
1962 |
|
1963 |
$data = apply_filters( 'mla_update_attachment_metadata_postfilter', $data, $post_id, $options );
|
@@ -2134,7 +2176,14 @@ class MLAOptions {
|
|
2134 |
private static function _evaluate_post_information( $post_id, $category, $data_source ) {
|
2135 |
global $wpdb;
|
2136 |
static $post_info = NULL;
|
2137 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2138 |
if ( NULL == $post_info ) {
|
2139 |
if ( 'custom_field_mapping' == $category ) {
|
2140 |
$post_info = $wpdb->get_results( "SELECT * FROM {$wpdb->posts} WHERE post_type = 'attachment'", OBJECT_K );
|
669 |
'name' => __( 'Enable Edit Media additional meta boxes', 'media-library-assistant' ),
|
670 |
'type' => 'checkbox',
|
671 |
'std' => 'checked',
|
672 |
+
'help' => __( 'Check this option to add "Parent Info", "Menu Order", "Attachment Metadata" and four "where-used" meta boxes to the Edit Media screen.', 'media-library-assistant' ) . '<br> ' .
|
673 |
+
__( 'You can also use Filters to customize the meta boxes.', 'media-library-assistant' ) .
|
674 |
+
sprintf( ' %1$s <a href="%2$s">%3$s</a>.', __( 'For complete documentation', 'media-library-assistant' ), admin_url( 'options-general.php?page=' . MLASettings::MLA_SETTINGS_SLUG . '-documentation&mla_tab=documentation#mla_edit_meta_boxes' ), __( 'click here', 'media-library-assistant' ) ) ),
|
675 |
|
676 |
'media_modal_header' =>
|
677 |
array('tab' => 'general',
|
1808 |
* @return array updated file parameters
|
1809 |
*/
|
1810 |
public static function mla_wp_handle_upload_prefilter_filter( $file ) {
|
1811 |
+
/*
|
1812 |
+
* This filter requires file access and processing, so only do the work
|
1813 |
+
* if someone has hooked it.
|
1814 |
+
*/
|
1815 |
+
if ( has_filter( 'mla_upload_prefilter' ) ) {
|
1816 |
+
/*
|
1817 |
+
* The image.php file is not loaded for "front end" uploads
|
1818 |
+
*/
|
1819 |
+
if ( !function_exists( 'wp_read_image_metadata' ) ) {
|
1820 |
+
require_once( ABSPATH . 'wp-admin/includes/image.php' );
|
1821 |
+
}
|
1822 |
+
|
1823 |
+
$image_metadata = MLAData::mla_fetch_attachment_image_metadata( 0, $file['tmp_name'] );
|
1824 |
+
$image_metadata['mla_exif_metadata']['FileName'] = $file['name'];
|
1825 |
+
$image_metadata['wp_image_metadata'] = wp_read_image_metadata( $file['tmp_name'] );
|
1826 |
+
$file = apply_filters( 'mla_upload_prefilter', $file, $image_metadata );
|
1827 |
+
}
|
1828 |
+
|
1829 |
return $file;
|
1830 |
} // mla_wp_handle_upload_prefilter_filter
|
1831 |
|
1839 |
* @return array updated file parameters
|
1840 |
*/
|
1841 |
public static function mla_wp_handle_upload_filter( $file ) {
|
1842 |
+
/*
|
1843 |
+
* This filter requires file access and processing, so only do the work
|
1844 |
+
* if someone has hooked it.
|
1845 |
+
*/
|
1846 |
+
if ( has_filter( 'mla_upload_prefilter' ) ) {
|
1847 |
+
/*
|
1848 |
+
* The getid3.php file is not loaded for "front end" uploads
|
1849 |
+
*/
|
1850 |
+
if ( ! class_exists( 'getID3' ) ) {
|
1851 |
+
require( ABSPATH . WPINC . '/ID3/getid3.php' );
|
1852 |
+
}
|
1853 |
+
|
1854 |
+
$id3 = new getID3();
|
1855 |
+
$id3_data = $id3->analyze( $file['file'] );
|
1856 |
+
$file = apply_filters( 'mla_upload_filter', $file, $id3_data );
|
1857 |
}
|
1858 |
+
|
|
|
|
|
|
|
1859 |
return $file;
|
1860 |
} // mla_wp_handle_upload_filter
|
1861 |
|
1931 |
* @param array Attachment metadata for just-inserted attachment
|
1932 |
* @param integer ID of just-inserted attachment
|
1933 |
*
|
1934 |
+
* @return array Updated attachment metadata
|
1935 |
*/
|
1936 |
public static function mla_update_attachment_metadata_filter( $data, $post_id ) {
|
1937 |
$options = array ();
|
1947 |
$data = apply_filters( 'mla_update_attachment_metadata_prefilter', $data, $post_id, $options );
|
1948 |
|
1949 |
if ( $options['is_upload'] ) {
|
1950 |
+
if ( $options['enable_iptc_exif_mapping'] || $options['enable_custom_field_mapping'] ) {
|
1951 |
+
do_action( 'mla_begin_mapping', 'create_metadata', $post_id );
|
1952 |
+
}
|
1953 |
+
|
1954 |
if ( $options['enable_iptc_exif_mapping'] ) {
|
1955 |
$item = get_post( $post_id );
|
1956 |
$updates = MLAOptions::mla_evaluate_iptc_exif_mapping( $item, 'iptc_exif_mapping', NULL, $data );
|
1969 |
$item_content = MLAData::mla_update_single_item( $post_id, $updates );
|
1970 |
}
|
1971 |
}
|
1972 |
+
|
1973 |
+
if ( $options['enable_iptc_exif_mapping'] || $options['enable_custom_field_mapping'] ) {
|
1974 |
+
do_action( 'mla_end_mapping' );
|
1975 |
+
}
|
1976 |
} else {
|
1977 |
+
if ( $options['enable_iptc_exif_update'] || $options['enable_custom_field_update'] ) {
|
1978 |
+
do_action( 'mla_begin_mapping', 'update_metadata', $post_id );
|
1979 |
+
}
|
1980 |
+
|
1981 |
if ( $options['enable_iptc_exif_update'] ) {
|
1982 |
$item = get_post( $post_id );
|
1983 |
$updates = MLAOptions::mla_evaluate_iptc_exif_mapping( $item, 'iptc_exif_mapping', NULL, $data );
|
1996 |
$item_content = MLAData::mla_update_single_item( $post_id, $updates );
|
1997 |
}
|
1998 |
}
|
1999 |
+
|
2000 |
+
if ( $options['enable_iptc_exif_update'] || $options['enable_custom_field_update'] ) {
|
2001 |
+
do_action( 'mla_end_mapping' );
|
2002 |
+
}
|
2003 |
}
|
2004 |
|
2005 |
$data = apply_filters( 'mla_update_attachment_metadata_postfilter', $data, $post_id, $options );
|
2176 |
private static function _evaluate_post_information( $post_id, $category, $data_source ) {
|
2177 |
global $wpdb;
|
2178 |
static $post_info = NULL;
|
2179 |
+
|
2180 |
+
/*
|
2181 |
+
* Check for $post_id match
|
2182 |
+
*/
|
2183 |
+
if ( 'single_attachment_mapping' == $category && ! isset( $post_info[$post_id] ) ) {
|
2184 |
+
$post_info = NULL;
|
2185 |
+
}
|
2186 |
+
|
2187 |
if ( NULL == $post_info ) {
|
2188 |
if ( 'custom_field_mapping' == $category ) {
|
2189 |
$post_info = $wpdb->get_results( "SELECT * FROM {$wpdb->posts} WHERE post_type = 'attachment'", OBJECT_K );
|
includes/class-mla-settings.php
CHANGED
@@ -51,6 +51,10 @@ class MLASettings {
|
|
51 |
|
52 |
/**
|
53 |
* Provides a unique name for the settings page
|
|
|
|
|
|
|
|
|
54 |
*/
|
55 |
const MLA_SETTINGS_SLUG = 'mla-settings-menu';
|
56 |
|
@@ -2934,6 +2938,7 @@ class MLASettings {
|
|
2934 |
global $wpdb;
|
2935 |
|
2936 |
if ( NULL == $settings ) {
|
|
|
2937 |
$settings = ( isset( $_REQUEST['custom_field_mapping'] ) ) ? $_REQUEST['custom_field_mapping'] : array();
|
2938 |
if ( isset( $settings[ MLAOptions::MLA_NEW_CUSTOM_FIELD ] ) ) {
|
2939 |
unset( $settings[ MLAOptions::MLA_NEW_CUSTOM_FIELD ] );
|
@@ -2941,6 +2946,8 @@ class MLASettings {
|
|
2941 |
if ( isset( $settings[ MLAOptions::MLA_NEW_CUSTOM_RULE ] ) ) {
|
2942 |
unset( $settings[ MLAOptions::MLA_NEW_CUSTOM_RULE ] );
|
2943 |
}
|
|
|
|
|
2944 |
}
|
2945 |
|
2946 |
if ( empty( $settings ) ) {
|
@@ -2954,6 +2961,7 @@ class MLASettings {
|
|
2954 |
$update_count = 0;
|
2955 |
$post_ids = $wpdb->get_col( "SELECT ID FROM {$wpdb->posts} WHERE `post_type` = 'attachment'" );
|
2956 |
|
|
|
2957 |
foreach ( $post_ids as $key => $post_id ) {
|
2958 |
$updates = MLAOptions::mla_evaluate_custom_field_mapping( (integer) $post_id, 'custom_field_mapping', $settings );
|
2959 |
|
@@ -2965,6 +2973,7 @@ class MLASettings {
|
|
2965 |
}
|
2966 |
}
|
2967 |
} // foreach post
|
|
|
2968 |
|
2969 |
if ( $update_count ) {
|
2970 |
/* translators: 1: field type 2: examined count 3: updated count */
|
@@ -3079,6 +3088,7 @@ class MLASettings {
|
|
3079 |
);
|
3080 |
}
|
3081 |
|
|
|
3082 |
foreach ( $posts as $key => $post ) {
|
3083 |
$updates = MLAOptions::mla_evaluate_iptc_exif_mapping( $post, 'iptc_exif_standard_mapping', $_REQUEST['iptc_exif_mapping'] );
|
3084 |
|
@@ -3090,6 +3100,7 @@ class MLASettings {
|
|
3090 |
}
|
3091 |
}
|
3092 |
} // foreach post
|
|
|
3093 |
|
3094 |
if ( $update_count ) {
|
3095 |
/* translators: 1: field type 2: examined count 3: updated count */
|
@@ -3137,6 +3148,7 @@ class MLASettings {
|
|
3137 |
);
|
3138 |
}
|
3139 |
|
|
|
3140 |
foreach ( $posts as $key => $post ) {
|
3141 |
$updates = MLAOptions::mla_evaluate_iptc_exif_mapping( $post, 'iptc_exif_taxonomy_mapping', $_REQUEST['iptc_exif_mapping'] );
|
3142 |
|
@@ -3148,6 +3160,7 @@ class MLASettings {
|
|
3148 |
}
|
3149 |
}
|
3150 |
} // foreach post
|
|
|
3151 |
|
3152 |
if ( $update_count ) {
|
3153 |
/* translators: 1: field type 2: examined count 3: updated count */
|
@@ -3177,6 +3190,7 @@ class MLASettings {
|
|
3177 |
*/
|
3178 |
private static function _process_iptc_exif_custom( $settings = NULL ) {
|
3179 |
if ( NULL == $settings ) {
|
|
|
3180 |
$settings = ( isset( $_REQUEST['iptc_exif_mapping'] ) ) ? $_REQUEST['iptc_exif_mapping'] : array();
|
3181 |
if ( isset( $settings['custom'][ MLAOptions::MLA_NEW_CUSTOM_FIELD ] ) ) {
|
3182 |
unset( $settings['custom'][ MLAOptions::MLA_NEW_CUSTOM_FIELD ] );
|
@@ -3184,8 +3198,10 @@ class MLASettings {
|
|
3184 |
if ( isset( $settings['custom'][ MLAOptions::MLA_NEW_CUSTOM_RULE ] ) ) {
|
3185 |
unset( $settings['custom'][ MLAOptions::MLA_NEW_CUSTOM_RULE ] );
|
3186 |
}
|
|
|
|
|
3187 |
}
|
3188 |
-
|
3189 |
if ( empty( $settings['custom'] ) ) {
|
3190 |
return array(
|
3191 |
/* translators: 1: field type */
|
@@ -3207,6 +3223,7 @@ class MLASettings {
|
|
3207 |
);
|
3208 |
}
|
3209 |
|
|
|
3210 |
foreach ( $posts as $key => $post ) {
|
3211 |
$updates = MLAOptions::mla_evaluate_iptc_exif_mapping( $post, 'iptc_exif_custom_mapping', $settings );
|
3212 |
|
@@ -3218,6 +3235,7 @@ class MLASettings {
|
|
3218 |
}
|
3219 |
}
|
3220 |
} // foreach post
|
|
|
3221 |
|
3222 |
if ( $update_count ) {
|
3223 |
/* translators: 1: field type 2: examined count 3: updated count */
|
@@ -3522,14 +3540,14 @@ class MLASettings {
|
|
3522 |
@ touch( MLA_BACKUP_DIR . 'index.php');
|
3523 |
}
|
3524 |
|
3525 |
-
$
|
3526 |
-
if ( ! $
|
3527 |
/* translators: 1: backup file name */
|
3528 |
$page_content['message'] = sprintf( __( 'ERROR: The settings file ( %1$s ) could not be opened.', 'media-library-assistant' ), $filename );
|
3529 |
return $page_content;
|
3530 |
}
|
3531 |
|
3532 |
-
if (false === @fwrite($
|
3533 |
$error_info = error_get_last();
|
3534 |
/* translators: 1: PHP error information */
|
3535 |
error_log( sprintf( _x( 'ERROR: _export_settings $error_info = "%1$s".', 'error_log', 'media-library-assistant' ), var_export( $error_info, true ) ), 0 );
|
@@ -3544,7 +3562,7 @@ class MLASettings {
|
|
3544 |
$page_content['message'] = sprintf( __( 'ERROR: Writing the settings file ( %1$s ) "%2$s".', 'media-library-assistant' ), $filename, $php_errormsg );
|
3545 |
}
|
3546 |
|
3547 |
-
fclose($
|
3548 |
|
3549 |
/* translators: 1: number of option settings */
|
3550 |
$page_content['message'] = sprintf( __( 'Settings exported; %1$s settings recorded.', 'media-library-assistant' ), $stored_count );
|
51 |
|
52 |
/**
|
53 |
* Provides a unique name for the settings page
|
54 |
+
*
|
55 |
+
* @since 0.1
|
56 |
+
*
|
57 |
+
* @var string
|
58 |
*/
|
59 |
const MLA_SETTINGS_SLUG = 'mla-settings-menu';
|
60 |
|
2938 |
global $wpdb;
|
2939 |
|
2940 |
if ( NULL == $settings ) {
|
2941 |
+
$source = 'custom_fields';
|
2942 |
$settings = ( isset( $_REQUEST['custom_field_mapping'] ) ) ? $_REQUEST['custom_field_mapping'] : array();
|
2943 |
if ( isset( $settings[ MLAOptions::MLA_NEW_CUSTOM_FIELD ] ) ) {
|
2944 |
unset( $settings[ MLAOptions::MLA_NEW_CUSTOM_FIELD ] );
|
2946 |
if ( isset( $settings[ MLAOptions::MLA_NEW_CUSTOM_RULE ] ) ) {
|
2947 |
unset( $settings[ MLAOptions::MLA_NEW_CUSTOM_RULE ] );
|
2948 |
}
|
2949 |
+
} else {
|
2950 |
+
$source = 'custom_rule';
|
2951 |
}
|
2952 |
|
2953 |
if ( empty( $settings ) ) {
|
2961 |
$update_count = 0;
|
2962 |
$post_ids = $wpdb->get_col( "SELECT ID FROM {$wpdb->posts} WHERE `post_type` = 'attachment'" );
|
2963 |
|
2964 |
+
do_action( 'mla_begin_mapping', $source, NULL );
|
2965 |
foreach ( $post_ids as $key => $post_id ) {
|
2966 |
$updates = MLAOptions::mla_evaluate_custom_field_mapping( (integer) $post_id, 'custom_field_mapping', $settings );
|
2967 |
|
2973 |
}
|
2974 |
}
|
2975 |
} // foreach post
|
2976 |
+
do_action( 'mla_end_mapping' );
|
2977 |
|
2978 |
if ( $update_count ) {
|
2979 |
/* translators: 1: field type 2: examined count 3: updated count */
|
3088 |
);
|
3089 |
}
|
3090 |
|
3091 |
+
do_action( 'mla_begin_mapping', 'iptc_exif_standard', NULL );
|
3092 |
foreach ( $posts as $key => $post ) {
|
3093 |
$updates = MLAOptions::mla_evaluate_iptc_exif_mapping( $post, 'iptc_exif_standard_mapping', $_REQUEST['iptc_exif_mapping'] );
|
3094 |
|
3100 |
}
|
3101 |
}
|
3102 |
} // foreach post
|
3103 |
+
do_action( 'mla_end_mapping' );
|
3104 |
|
3105 |
if ( $update_count ) {
|
3106 |
/* translators: 1: field type 2: examined count 3: updated count */
|
3148 |
);
|
3149 |
}
|
3150 |
|
3151 |
+
do_action( 'mla_begin_mapping', 'iptc_exif_taxonomy', NULL );
|
3152 |
foreach ( $posts as $key => $post ) {
|
3153 |
$updates = MLAOptions::mla_evaluate_iptc_exif_mapping( $post, 'iptc_exif_taxonomy_mapping', $_REQUEST['iptc_exif_mapping'] );
|
3154 |
|
3160 |
}
|
3161 |
}
|
3162 |
} // foreach post
|
3163 |
+
do_action( 'mla_end_mapping' );
|
3164 |
|
3165 |
if ( $update_count ) {
|
3166 |
/* translators: 1: field type 2: examined count 3: updated count */
|
3190 |
*/
|
3191 |
private static function _process_iptc_exif_custom( $settings = NULL ) {
|
3192 |
if ( NULL == $settings ) {
|
3193 |
+
$source = 'iptc_exif_custom';
|
3194 |
$settings = ( isset( $_REQUEST['iptc_exif_mapping'] ) ) ? $_REQUEST['iptc_exif_mapping'] : array();
|
3195 |
if ( isset( $settings['custom'][ MLAOptions::MLA_NEW_CUSTOM_FIELD ] ) ) {
|
3196 |
unset( $settings['custom'][ MLAOptions::MLA_NEW_CUSTOM_FIELD ] );
|
3198 |
if ( isset( $settings['custom'][ MLAOptions::MLA_NEW_CUSTOM_RULE ] ) ) {
|
3199 |
unset( $settings['custom'][ MLAOptions::MLA_NEW_CUSTOM_RULE ] );
|
3200 |
}
|
3201 |
+
} else {
|
3202 |
+
$source = 'iptc_exif_custom_rule';
|
3203 |
}
|
3204 |
+
|
3205 |
if ( empty( $settings['custom'] ) ) {
|
3206 |
return array(
|
3207 |
/* translators: 1: field type */
|
3223 |
);
|
3224 |
}
|
3225 |
|
3226 |
+
do_action( 'mla_begin_mapping', $source, NULL );
|
3227 |
foreach ( $posts as $key => $post ) {
|
3228 |
$updates = MLAOptions::mla_evaluate_iptc_exif_mapping( $post, 'iptc_exif_custom_mapping', $settings );
|
3229 |
|
3235 |
}
|
3236 |
}
|
3237 |
} // foreach post
|
3238 |
+
do_action( 'mla_end_mapping' );
|
3239 |
|
3240 |
if ( $update_count ) {
|
3241 |
/* translators: 1: field type 2: examined count 3: updated count */
|
3540 |
@ touch( MLA_BACKUP_DIR . 'index.php');
|
3541 |
}
|
3542 |
|
3543 |
+
$file_handle = @fopen( $filename, 'w' );
|
3544 |
+
if ( ! $file_handle ) {
|
3545 |
/* translators: 1: backup file name */
|
3546 |
$page_content['message'] = sprintf( __( 'ERROR: The settings file ( %1$s ) could not be opened.', 'media-library-assistant' ), $filename );
|
3547 |
return $page_content;
|
3548 |
}
|
3549 |
|
3550 |
+
if (false === @fwrite($file_handle, $settings)) {
|
3551 |
$error_info = error_get_last();
|
3552 |
/* translators: 1: PHP error information */
|
3553 |
error_log( sprintf( _x( 'ERROR: _export_settings $error_info = "%1$s".', 'error_log', 'media-library-assistant' ), var_export( $error_info, true ) ), 0 );
|
3562 |
$page_content['message'] = sprintf( __( 'ERROR: Writing the settings file ( %1$s ) "%2$s".', 'media-library-assistant' ), $filename, $php_errormsg );
|
3563 |
}
|
3564 |
|
3565 |
+
fclose($file_handle);
|
3566 |
|
3567 |
/* translators: 1: number of option settings */
|
3568 |
$page_content['message'] = sprintf( __( 'Settings exported; %1$s settings recorded.', 'media-library-assistant' ), $stored_count );
|
includes/class-mla-shortcodes.php
CHANGED
@@ -2069,14 +2069,14 @@ class MLAShortcodes {
|
|
2069 |
$posts_per_page = absint( get_option('posts_per_page') );
|
2070 |
}
|
2071 |
|
2072 |
-
|
2073 |
-
|
2074 |
-
|
2075 |
-
|
2076 |
-
}
|
2077 |
-
} else {
|
2078 |
-
$max_page = 1;
|
2079 |
}
|
|
|
|
|
|
|
2080 |
|
2081 |
if ( isset( $arguments['mla_paginate_total'] ) && $max_page > absint( $arguments['mla_paginate_total'] ) ) {
|
2082 |
$max_page = absint( $arguments['mla_paginate_total'] );
|
@@ -2872,8 +2872,10 @@ class MLAShortcodes {
|
|
2872 |
$incposts = wp_parse_id_list( $query_arguments['include'] );
|
2873 |
$query_arguments['posts_per_page'] = count($incposts); // only the number of posts included
|
2874 |
$query_arguments['post__in'] = $incposts;
|
|
|
2875 |
} elseif ( ! empty($query_arguments['exclude']) ) {
|
2876 |
$query_arguments['post__not_in'] = wp_parse_id_list( $query_arguments['exclude'] );
|
|
|
2877 |
}
|
2878 |
|
2879 |
$query_arguments['ignore_sticky_posts'] = true;
|
@@ -3464,7 +3466,7 @@ class MLAShortcodes {
|
|
3464 |
self::$mla_debug_messages .= '<p><strong>' . __( 'mla_debug found_rows', 'media-library-assistant' ) . '</strong> = ' . var_export( $found_rows, true ) . '</p>';
|
3465 |
}
|
3466 |
|
3467 |
-
if ( $arguments['pad_counts'] ) {
|
3468 |
self::_pad_term_counts( $tags, reset( $taxonomies ), $post_types, $post_stati );
|
3469 |
}
|
3470 |
|
2069 |
$posts_per_page = absint( get_option('posts_per_page') );
|
2070 |
}
|
2071 |
|
2072 |
+
if ( 0 < $posts_per_page ) {
|
2073 |
+
$max_page = floor( $found_rows / $posts_per_page );
|
2074 |
+
if ( $max_page < ( $found_rows / $posts_per_page ) ) {
|
2075 |
+
$max_page++;
|
|
|
|
|
|
|
2076 |
}
|
2077 |
+
} else {
|
2078 |
+
$max_page = 1;
|
2079 |
+
}
|
2080 |
|
2081 |
if ( isset( $arguments['mla_paginate_total'] ) && $max_page > absint( $arguments['mla_paginate_total'] ) ) {
|
2082 |
$max_page = absint( $arguments['mla_paginate_total'] );
|
2872 |
$incposts = wp_parse_id_list( $query_arguments['include'] );
|
2873 |
$query_arguments['posts_per_page'] = count($incposts); // only the number of posts included
|
2874 |
$query_arguments['post__in'] = $incposts;
|
2875 |
+
unset( $query_arguments['include'] );
|
2876 |
} elseif ( ! empty($query_arguments['exclude']) ) {
|
2877 |
$query_arguments['post__not_in'] = wp_parse_id_list( $query_arguments['exclude'] );
|
2878 |
+
unset( $query_arguments['exclude'] );
|
2879 |
}
|
2880 |
|
2881 |
$query_arguments['ignore_sticky_posts'] = true;
|
3466 |
self::$mla_debug_messages .= '<p><strong>' . __( 'mla_debug found_rows', 'media-library-assistant' ) . '</strong> = ' . var_export( $found_rows, true ) . '</p>';
|
3467 |
}
|
3468 |
|
3469 |
+
if ( 'true' == strtolower( trim( $arguments['pad_counts'] ) ) ) {
|
3470 |
self::_pad_term_counts( $tags, reset( $taxonomies ), $post_types, $post_stati );
|
3471 |
}
|
3472 |
|
includes/mla-main-search-box-template.php
CHANGED
@@ -31,9 +31,9 @@ if ( 'checked' == MLAOptions::mla_get_option( MLAOptions::MLA_SEARCH_MEDIA_FILTE
|
|
31 |
}
|
32 |
?>
|
33 |
<p class="search-box">
|
34 |
-
<label class="screen-reader-text" for="media-search-input"
|
35 |
<input name="s" id="media-search-input" type="text" size="45" value="<?php echo $search_value ?>" />
|
36 |
-
<input name="mla-search-submit" class="button" id="search-submit" type="submit" value="Search Media" /><br />
|
37 |
<span <?php echo $controls_style ?>>
|
38 |
<input name="mla_search_connector" type="radio" <?php echo ( 'OR' === $search_connector ) ? '' : 'checked="checked"'; ?> value="AND" /><?php _e( 'and', 'media-library-assistant' ); ?>
|
39 |
|
31 |
}
|
32 |
?>
|
33 |
<p class="search-box">
|
34 |
+
<label class="screen-reader-text" for="media-search-input"><?php _e( 'Search Media', 'media-library-assistant' ); ?></label>
|
35 |
<input name="s" id="media-search-input" type="text" size="45" value="<?php echo $search_value ?>" />
|
36 |
+
<input name="mla-search-submit" class="button" id="search-submit" type="submit" value="<?php _e( 'Search Media', 'media-library-assistant' ); ?>" /><br />
|
37 |
<span <?php echo $controls_style ?>>
|
38 |
<input name="mla_search_connector" type="radio" <?php echo ( 'OR' === $search_connector ) ? '' : 'checked="checked"'; ?> value="AND" /><?php _e( 'and', 'media-library-assistant' ); ?>
|
39 |
|
index.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* will the rest of the plugin be loaded and run.
|
7 |
*
|
8 |
* @package Media Library Assistant
|
9 |
-
* @version 1.
|
10 |
*/
|
11 |
|
12 |
/*
|
@@ -16,7 +16,7 @@ Description: Enhances the Media Library; powerful[mla_gallery], taxonomy support
|
|
16 |
Author: David Lingren
|
17 |
Text Domain: media-library-assistant
|
18 |
Domain Path: /languages
|
19 |
-
Version: 1.
|
20 |
Author URI: http://fairtradejudaica.org/our-story/staff/
|
21 |
|
22 |
Copyright 2011-2014 David Lingren
|
6 |
* will the rest of the plugin be loaded and run.
|
7 |
*
|
8 |
* @package Media Library Assistant
|
9 |
+
* @version 1.91
|
10 |
*/
|
11 |
|
12 |
/*
|
16 |
Author: David Lingren
|
17 |
Text Domain: media-library-assistant
|
18 |
Domain Path: /languages
|
19 |
+
Version: 1.91
|
20 |
Author URI: http://fairtradejudaica.org/our-story/staff/
|
21 |
|
22 |
Copyright 2011-2014 David Lingren
|
js/mla-inline-edit-scripts.js
CHANGED
@@ -345,19 +345,16 @@ var mla = {
|
|
345 |
|
346 |
$.post( ajaxurl, params,
|
347 |
function( response ) {
|
348 |
-
var tableCell = $( '#attachment-' + postId + " td.attached_to" ).clone( true );
|
349 |
-
|
350 |
if ( response ) {
|
351 |
if ( -1 == response.indexOf( 'tableParentOpen(' ) ) {
|
352 |
response = response.replace( /<.[^<>]*?>/g, '' );
|
353 |
}
|
354 |
-
|
355 |
-
tableCell.html( response );
|
356 |
} else {
|
357 |
-
|
358 |
}
|
359 |
|
360 |
-
$( '#attachment-' + postId
|
|
|
361 |
}
|
362 |
, 'html');
|
363 |
} else {
|
345 |
|
346 |
$.post( ajaxurl, params,
|
347 |
function( response ) {
|
|
|
|
|
348 |
if ( response ) {
|
349 |
if ( -1 == response.indexOf( 'tableParentOpen(' ) ) {
|
350 |
response = response.replace( /<.[^<>]*?>/g, '' );
|
351 |
}
|
|
|
|
|
352 |
} else {
|
353 |
+
response = mla.settings.ajaxFailError;
|
354 |
}
|
355 |
|
356 |
+
$( '#attachment-' + postId ).before( response ).remove();
|
357 |
+
$( '#attachment-' + postId ).hide().fadeIn();
|
358 |
}
|
359 |
, 'html');
|
360 |
} else {
|
js/mla-inline-edit-scripts.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
var mla={settings:{},utility:{},setParent:null,inlineEditAttachment:null};(function(a){mla.settings=typeof mla_inline_edit_vars==="undefined"?{}:mla_inline_edit_vars;mla_inline_edit_vars=void 0;mla.inlineEditAttachment={init:function(){var c=this,d=a("#inline-edit"),b=a("#bulk-edit");c.type="attachment";c.what="#attachment-";d.keyup(function(f){if(f.which==27){return mla.inlineEditAttachment.revert()}});b.keyup(function(f){if(f.which==27){return mla.inlineEditAttachment.revert()}});a("#inline-edit-post-set-parent",d).on("click",function(){return mla.inlineEditAttachment.inlineParentOpen(this)});a("a.cancel",d).click(function(){return mla.inlineEditAttachment.revert()});a("a.save",d).click(function(){return mla.inlineEditAttachment.save(this)});a("td",d).keydown(function(f){if(f.which==13){return mla.inlineEditAttachment.save(this)}});a("#bulk-edit-set-parent",b).on("click",function(){return mla.inlineEditAttachment.bulkParentOpen()});a("a.cancel",b).click(function(){return mla.inlineEditAttachment.revert()});a("#the-list").on("click","a.editinline",function(){mla.inlineEditAttachment.edit(this);return false});a("span.catshow").click(function(){a(this).hide().next().show().parent().next().addClass("cat-hover")});a("span.cathide").click(function(){a(this).hide().prev().show().parent().next().removeClass("cat-hover")});a('select[name="_status"] option[value="future"]',b).remove();a("#doaction, #doaction2").click(function(f){var g=a(this).attr("id").substr(2);if(a('select[name="'+g+'"]').val()=="edit"){f.preventDefault();c.setBulk()}else{if(a("form#posts-filter tr.inline-editor").length>0){c.revert()}}});a("#post-query-submit").mousedown(function(f){c.revert();a('select[name^="action"]').val("-1")})},toggle:function(c){var b=this;a(b.what+b.getId(c)).css("display")=="none"?b.revert():b.edit(c)},setBulk:function(){var b="",d=true;this.revert();a("#bulk-edit td").attr("colspan",a(".widefat:first thead th:visible").length);a("table.widefat tbody").prepend(a("#bulk-edit"));a("#bulk-edit").addClass("inline-editor").show();a('tbody th.check-column input[type="checkbox"]').each(function(e){if(a(this).prop("checked")){d=false;var f=a(this).val(),c;c=a("#inline_"+f+" .post_title").text()||mla.settings.noTitle;b+='<div id="ttle'+f+'"><a id="_'+f+'" class="ntdelbutton" title="'+mla.settings.ntdelTitle+'">X</a>'+c+"</div>"}});if(d){return this.revert()}a("#bulk-titles").html(b);a("#bulk-titles a").click(function(){var c=a(this).attr("id").substr(1);a('table.widefat input[value="'+c+'"]').prop("checked",false);a("#ttle"+c).remove()});a("textarea.mla_tags").each(function(){var c=a(this).attr("name").replace("]","").replace("tax_input[","");a(this).suggest(ajaxurl+"?action=ajax-tag-search&tax="+c,{delay:500,minchars:2,multiple:true,multipleSep:mla.settings.comma+" "})});a("html, body").animate({scrollTop:0},"fast")},edit:function(g){var d=this,b,c,e,f;d.revert();if(typeof(g)=="object"){g=d.getId(g)}b=mla.settings.fields;c=a("#inline-edit").clone(true);a("td",c).attr("colspan",a(".widefat:first thead th:visible").length);if(a(d.what+g).hasClass("alternate")){a(c).addClass("alternate")}a(d.what+g).hide().after(c);e=a("#inline_"+g);if(!a(':input[name="post_author"] option[value="'+a(".post_author",e).text()+'"]',c).val()){a(':input[name="post_author"]',c).prepend('<option value="'+a(".post_author",e).text()+'">'+a("#"+d.type+"-"+g+" .author").text()+"</option>")}if(a(':input[name="post_author"] option',c).length==1){a("label.inline-edit-author",c).hide()}for(f=0;f<b.length;f++){a(':input[name="'+b[f]+'"]',c).val(a("."+b[f],e).text())}if(a(".image_alt",e).length==0){a("label.inline-edit-image-alt",c).hide()}a(".mla_category",e).each(function(){var h=a(this).text();if(h){taxname=a(this).attr("id").replace("_"+g,"");a("ul."+taxname+"-checklist :checkbox",c).val(h.split(","))}});a(".mla_tags",e).each(function(){var j=a(this).text(),k=a(this).attr("id").replace("_"+g,""),i=a("textarea.tax_input_"+k,c),h=mla.settings.comma;if(j){if(","!==h){j=j.replace(/,/g,h)}i.val(j)}i.suggest(ajaxurl+"?action=ajax-tag-search&tax="+k,{delay:500,minchars:2,multiple:true,multipleSep:mla.settings.comma+" "})});a(c).attr("id","edit-"+g).addClass("inline-editor").show();a(".ptitle",c).focus();return false},save:function(e){var d,b,c=a(".post_status_page").val()||"";if(typeof(e)=="object"){e=this.getId(e)}a("table.widefat .inline-edit-save .waiting").show();d={action:mla.settings.ajax_action,nonce:mla.settings.ajax_nonce,post_type:typenow,post_ID:e,edit_date:"true",post_status:c};b=a("#edit-"+e+" :input").serialize();d=b+"&"+a.param(d);a.post(ajaxurl,d,function(f){a("table.widefat .inline-edit-save .waiting").hide();if(f){if(-1!=f.indexOf("<tr")){a(mla.inlineEditAttachment.what+e).remove();a("#edit-"+e).before(f).remove();a(mla.inlineEditAttachment.what+e).hide().fadeIn()}else{f=f.replace(/<.[^<>]*?>/g,"");a("#edit-"+e+" .inline-edit-save .error").html(f).show()}}else{a("#edit-"+e+" .inline-edit-save .error").html(mla.settings.error).show()}},"html");return false},inlineParentOpen:function(e){var d,b,c;if(typeof(e)=="object"){b=this.getId(e);d=a("#edit-"+b+' :input[name="post_parent"]').val()||"";c=a("#edit-"+b+' :input[name="post_title"]').val()||"";mla.setParent.open(d,b,c);a("#mla-set-parent-submit").on("click",function(f){f.preventDefault();mla.inlineEditAttachment.inlineParentSave(b);return false})}},inlineParentSave:function(b){var f=a("#mla-set-parent-response-div input:checked").closest("tr"),h,e,c=a("#edit-"+b),d,g;if(f.length){h=a(":radio",f).val()||"";e=a("label",f).html()||"";d=a(':input[name="post_parent"]',c).clone(true).val(h);g=a(':input[name="post_parent_title"]',c).clone(true).val(e);a(':input[name="post_parent"]',c).replaceWith(d);a(':input[name="post_parent_title"]',c).replaceWith(g)}mla.setParent.close();a("#mla-set-parent-submit").off("click")},bulkParentOpen:function(){var d,b,c;b=-1;c=mla.settings.bulkTitle;d=a('#bulk-edit :input[name="post_parent"]').val()||-1;mla.setParent.open(d,b,c);a("#mla-set-parent-submit").on("click",function(e){e.preventDefault();mla.inlineEditAttachment.bulkParentSave();return false})},bulkParentSave:function(){var c=a("#mla-set-parent-response-div input:checked").closest("tr"),d,b;if(c.length){d=a(":radio",c).val()||"";b=a('#bulk-edit :input[name="post_parent"]').clone(true).val(d);a('#bulk-edit :input[name="post_parent"]').replaceWith(b)}mla.setParent.close();a("#mla-set-parent-submit").off("click")},tableParentOpen:function(d,b,c){mla.setParent.open(d,b,c);a("#mla-set-parent-submit").on("click",function(e){e.preventDefault();mla.inlineEditAttachment.tableParentSave(b);return false})},tableParentSave:function(b){var d=a("#mla-set-parent-response-div input:checked").closest("tr"),f=a(":radio",d).val()||"-1",c,e=a("#attachment-"+b+" td.attached_to").clone(true);if(d.length&&(f>=0)){e=a("#attachment-"+b+" td.attached_to").clone(true);e.html('<span class="spinner"></span>');a("#attachment-"+b+" td.attached_to").replaceWith(e);a("#attachment-"+b+" td.attached_to .spinner").show();c=a.param({action:mla.settings.ajax_action+"-set-parent",nonce:mla.settings.ajax_nonce,post_ID:b,post_parent:f,});a.post(ajaxurl,c,function(g){
|
1 |
+
var mla={settings:{},utility:{},setParent:null,inlineEditAttachment:null};(function(a){mla.settings=typeof mla_inline_edit_vars==="undefined"?{}:mla_inline_edit_vars;mla_inline_edit_vars=void 0;mla.inlineEditAttachment={init:function(){var c=this,d=a("#inline-edit"),b=a("#bulk-edit");c.type="attachment";c.what="#attachment-";d.keyup(function(f){if(f.which==27){return mla.inlineEditAttachment.revert()}});b.keyup(function(f){if(f.which==27){return mla.inlineEditAttachment.revert()}});a("#inline-edit-post-set-parent",d).on("click",function(){return mla.inlineEditAttachment.inlineParentOpen(this)});a("a.cancel",d).click(function(){return mla.inlineEditAttachment.revert()});a("a.save",d).click(function(){return mla.inlineEditAttachment.save(this)});a("td",d).keydown(function(f){if(f.which==13){return mla.inlineEditAttachment.save(this)}});a("#bulk-edit-set-parent",b).on("click",function(){return mla.inlineEditAttachment.bulkParentOpen()});a("a.cancel",b).click(function(){return mla.inlineEditAttachment.revert()});a("#the-list").on("click","a.editinline",function(){mla.inlineEditAttachment.edit(this);return false});a("span.catshow").click(function(){a(this).hide().next().show().parent().next().addClass("cat-hover")});a("span.cathide").click(function(){a(this).hide().prev().show().parent().next().removeClass("cat-hover")});a('select[name="_status"] option[value="future"]',b).remove();a("#doaction, #doaction2").click(function(f){var g=a(this).attr("id").substr(2);if(a('select[name="'+g+'"]').val()=="edit"){f.preventDefault();c.setBulk()}else{if(a("form#posts-filter tr.inline-editor").length>0){c.revert()}}});a("#post-query-submit").mousedown(function(f){c.revert();a('select[name^="action"]').val("-1")})},toggle:function(c){var b=this;a(b.what+b.getId(c)).css("display")=="none"?b.revert():b.edit(c)},setBulk:function(){var b="",d=true;this.revert();a("#bulk-edit td").attr("colspan",a(".widefat:first thead th:visible").length);a("table.widefat tbody").prepend(a("#bulk-edit"));a("#bulk-edit").addClass("inline-editor").show();a('tbody th.check-column input[type="checkbox"]').each(function(e){if(a(this).prop("checked")){d=false;var f=a(this).val(),c;c=a("#inline_"+f+" .post_title").text()||mla.settings.noTitle;b+='<div id="ttle'+f+'"><a id="_'+f+'" class="ntdelbutton" title="'+mla.settings.ntdelTitle+'">X</a>'+c+"</div>"}});if(d){return this.revert()}a("#bulk-titles").html(b);a("#bulk-titles a").click(function(){var c=a(this).attr("id").substr(1);a('table.widefat input[value="'+c+'"]').prop("checked",false);a("#ttle"+c).remove()});a("textarea.mla_tags").each(function(){var c=a(this).attr("name").replace("]","").replace("tax_input[","");a(this).suggest(ajaxurl+"?action=ajax-tag-search&tax="+c,{delay:500,minchars:2,multiple:true,multipleSep:mla.settings.comma+" "})});a("html, body").animate({scrollTop:0},"fast")},edit:function(g){var d=this,b,c,e,f;d.revert();if(typeof(g)=="object"){g=d.getId(g)}b=mla.settings.fields;c=a("#inline-edit").clone(true);a("td",c).attr("colspan",a(".widefat:first thead th:visible").length);if(a(d.what+g).hasClass("alternate")){a(c).addClass("alternate")}a(d.what+g).hide().after(c);e=a("#inline_"+g);if(!a(':input[name="post_author"] option[value="'+a(".post_author",e).text()+'"]',c).val()){a(':input[name="post_author"]',c).prepend('<option value="'+a(".post_author",e).text()+'">'+a("#"+d.type+"-"+g+" .author").text()+"</option>")}if(a(':input[name="post_author"] option',c).length==1){a("label.inline-edit-author",c).hide()}for(f=0;f<b.length;f++){a(':input[name="'+b[f]+'"]',c).val(a("."+b[f],e).text())}if(a(".image_alt",e).length==0){a("label.inline-edit-image-alt",c).hide()}a(".mla_category",e).each(function(){var h=a(this).text();if(h){taxname=a(this).attr("id").replace("_"+g,"");a("ul."+taxname+"-checklist :checkbox",c).val(h.split(","))}});a(".mla_tags",e).each(function(){var j=a(this).text(),k=a(this).attr("id").replace("_"+g,""),i=a("textarea.tax_input_"+k,c),h=mla.settings.comma;if(j){if(","!==h){j=j.replace(/,/g,h)}i.val(j)}i.suggest(ajaxurl+"?action=ajax-tag-search&tax="+k,{delay:500,minchars:2,multiple:true,multipleSep:mla.settings.comma+" "})});a(c).attr("id","edit-"+g).addClass("inline-editor").show();a(".ptitle",c).focus();return false},save:function(e){var d,b,c=a(".post_status_page").val()||"";if(typeof(e)=="object"){e=this.getId(e)}a("table.widefat .inline-edit-save .waiting").show();d={action:mla.settings.ajax_action,nonce:mla.settings.ajax_nonce,post_type:typenow,post_ID:e,edit_date:"true",post_status:c};b=a("#edit-"+e+" :input").serialize();d=b+"&"+a.param(d);a.post(ajaxurl,d,function(f){a("table.widefat .inline-edit-save .waiting").hide();if(f){if(-1!=f.indexOf("<tr")){a(mla.inlineEditAttachment.what+e).remove();a("#edit-"+e).before(f).remove();a(mla.inlineEditAttachment.what+e).hide().fadeIn()}else{f=f.replace(/<.[^<>]*?>/g,"");a("#edit-"+e+" .inline-edit-save .error").html(f).show()}}else{a("#edit-"+e+" .inline-edit-save .error").html(mla.settings.error).show()}},"html");return false},inlineParentOpen:function(e){var d,b,c;if(typeof(e)=="object"){b=this.getId(e);d=a("#edit-"+b+' :input[name="post_parent"]').val()||"";c=a("#edit-"+b+' :input[name="post_title"]').val()||"";mla.setParent.open(d,b,c);a("#mla-set-parent-submit").on("click",function(f){f.preventDefault();mla.inlineEditAttachment.inlineParentSave(b);return false})}},inlineParentSave:function(b){var f=a("#mla-set-parent-response-div input:checked").closest("tr"),h,e,c=a("#edit-"+b),d,g;if(f.length){h=a(":radio",f).val()||"";e=a("label",f).html()||"";d=a(':input[name="post_parent"]',c).clone(true).val(h);g=a(':input[name="post_parent_title"]',c).clone(true).val(e);a(':input[name="post_parent"]',c).replaceWith(d);a(':input[name="post_parent_title"]',c).replaceWith(g)}mla.setParent.close();a("#mla-set-parent-submit").off("click")},bulkParentOpen:function(){var d,b,c;b=-1;c=mla.settings.bulkTitle;d=a('#bulk-edit :input[name="post_parent"]').val()||-1;mla.setParent.open(d,b,c);a("#mla-set-parent-submit").on("click",function(e){e.preventDefault();mla.inlineEditAttachment.bulkParentSave();return false})},bulkParentSave:function(){var c=a("#mla-set-parent-response-div input:checked").closest("tr"),d,b;if(c.length){d=a(":radio",c).val()||"";b=a('#bulk-edit :input[name="post_parent"]').clone(true).val(d);a('#bulk-edit :input[name="post_parent"]').replaceWith(b)}mla.setParent.close();a("#mla-set-parent-submit").off("click")},tableParentOpen:function(d,b,c){mla.setParent.open(d,b,c);a("#mla-set-parent-submit").on("click",function(e){e.preventDefault();mla.inlineEditAttachment.tableParentSave(b);return false})},tableParentSave:function(b){var d=a("#mla-set-parent-response-div input:checked").closest("tr"),f=a(":radio",d).val()||"-1",c,e=a("#attachment-"+b+" td.attached_to").clone(true);if(d.length&&(f>=0)){e=a("#attachment-"+b+" td.attached_to").clone(true);e.html('<span class="spinner"></span>');a("#attachment-"+b+" td.attached_to").replaceWith(e);a("#attachment-"+b+" td.attached_to .spinner").show();c=a.param({action:mla.settings.ajax_action+"-set-parent",nonce:mla.settings.ajax_nonce,post_ID:b,post_parent:f,});a.post(ajaxurl,c,function(g){if(g){if(-1==g.indexOf("tableParentOpen(")){g=g.replace(/<.[^<>]*?>/g,"")}}else{g=mla.settings.ajaxFailError}a("#attachment-"+b).before(g).remove();a("#attachment-"+b).hide().fadeIn()},"html")}else{e.html(mla.settings.error);a("#attachment-"+b+" td.attached_to").replaceWith(e)}a("#mla-set-parent-submit").off("click");mla.setParent.close()},revert:function(){var b=a("table.widefat tr.inline-editor").attr("id");if(b){a("table.widefat .inline-edit-save .waiting").hide();if("bulk-edit"==b){a("table.widefat #bulk-edit").removeClass("inline-editor").hide();a("#bulk-titles").html("");a("#inlineedit").append(a("#bulk-edit"))}else{a("#"+b).remove();b=b.substr(b.lastIndexOf("-")+1);a(this.what+b).show()}}return false},getId:function(c){var d=a(c).closest("tr").attr("id"),b=d.split("-");return b[b.length-1]}};a(document).ready(function(){mla.inlineEditAttachment.init()})})(jQuery);
|
js/mla-media-modal-scripts.js
CHANGED
@@ -89,15 +89,11 @@ var mlaModal = {
|
|
89 |
if ( _.isObject( action ) ) {
|
90 |
options = action;
|
91 |
} else {
|
92 |
-
//console.log('wp.media.ajax action: ', JSON.stringify( action ) );
|
93 |
options = options || {};
|
94 |
options.data = _.extend( options.data || {}, { action: action });
|
95 |
}
|
96 |
|
97 |
-
//console.log('wp.media.ajax original options: ', JSON.stringify( options ) );
|
98 |
-
|
99 |
if ( 'query-attachments' == options.data.action ) {
|
100 |
-
|
101 |
stype = typeof options.data.query.s;
|
102 |
if ( 'object' == stype )
|
103 |
s = options.data.query.s;
|
@@ -106,6 +102,11 @@ var mlaModal = {
|
|
106 |
else
|
107 |
s = {};
|
108 |
|
|
|
|
|
|
|
|
|
|
|
109 |
if ( 'undefined' != typeof s.mla_filter_month )
|
110 |
mlaModal.settings.filterMonth = s.mla_filter_month;
|
111 |
|
@@ -131,7 +132,6 @@ var mlaModal = {
|
|
131 |
options.data.query.s = searchValues;
|
132 |
}
|
133 |
|
134 |
-
//console.log('media.ajax final options: ', JSON.stringify( options ) );
|
135 |
return mlaModal.utility.originalMediaAjax.call(this, options );
|
136 |
}; // wp.media.ajax
|
137 |
|
@@ -187,6 +187,8 @@ var mlaModal = {
|
|
187 |
};
|
188 |
|
189 |
this.filters = filters;
|
|
|
|
|
190 |
},
|
191 |
|
192 |
change: function() {
|
@@ -218,6 +220,9 @@ var mlaModal = {
|
|
218 |
});
|
219 |
|
220 |
this.filters = filters;
|
|
|
|
|
|
|
221 |
},
|
222 |
|
223 |
select: function() {
|
@@ -277,6 +282,10 @@ var mlaModal = {
|
|
277 |
});
|
278 |
|
279 |
this.filters = filters;
|
|
|
|
|
|
|
|
|
280 |
},
|
281 |
|
282 |
select: function() {
|
@@ -349,7 +358,6 @@ var mlaModal = {
|
|
349 |
$( '#mla-terms-search-form' ).submit( function( e ){
|
350 |
var inputs, inputIndex, termsSearch = { phrases: '', taxonomies: [] };
|
351 |
|
352 |
-
//console.log( 'mla-terms-search-form.submit' );
|
353 |
e.preventDefault();
|
354 |
|
355 |
inputs = $( '#mla-terms-search-form' ).serializeArray();
|
@@ -370,10 +378,8 @@ var mlaModal = {
|
|
370 |
};
|
371 |
}
|
372 |
|
373 |
-
//console.log( 'mla-terms-search-submit.click termsSearch = ' + JSON.stringify( termsSearch ) );
|
374 |
mlaModal.settings.termsSearch = termsSearch
|
375 |
$( '#mla-search-submit' ).click();
|
376 |
-
//console.log( 'mla-terms-search-submit.click return false ' );
|
377 |
return false;
|
378 |
});
|
379 |
|
@@ -483,6 +489,11 @@ var mlaModal = {
|
|
483 |
}); // wp.media.view.MlaSearch
|
484 |
}; // mlaModal.settings.enableSearchBox
|
485 |
|
|
|
|
|
|
|
|
|
|
|
486 |
/**
|
487 |
* Add/replace media-toolbar controls with our own
|
488 |
*/
|
@@ -491,6 +502,11 @@ var mlaModal = {
|
|
491 |
createToolbar: function() {
|
492 |
var filters;
|
493 |
|
|
|
|
|
|
|
|
|
|
|
494 |
// Apply the original method to create the toolbar
|
495 |
wp.media.view.AttachmentsBrowser.__super__.createToolbar.apply( this, arguments );
|
496 |
mlaModal.utility.mlaAttachmentsBrowser = this;
|
@@ -543,7 +559,6 @@ var mlaModal = {
|
|
543 |
|
544 |
updateFilters: function( taxonomy, selectMarkup ) {
|
545 |
var newOptions = {};
|
546 |
-
//console.log( 'updateFilters ( ' + taxonomy + ' ) = ' + JSON.stringify( selectMarkup ) );
|
547 |
|
548 |
if ( this.options.search && mlaModal.settings.enableTermsDropdown && mlaModal.settings.termsTaxonomy == taxonomy ) {
|
549 |
newOptions = mlaModal.utility.parseTermsOptions( selectMarkup );
|
@@ -637,9 +652,7 @@ var mlaModal = {
|
|
637 |
|
638 |
// Test the contents and skip the first match, the "no parent" placeholder
|
639 |
results = regEx.exec( selectMarkup );
|
640 |
-
//console.log( 'parseTermsOptions placeholder = ' + JSON.stringify( results ) );
|
641 |
while ( null !== ( results = regEx.exec( selectMarkup ) ) ) {
|
642 |
-
//console.log( 'parseTermsOptions results = ' + JSON.stringify( results ) );
|
643 |
termsOptions['termsClass'][termsCount] = results[3];
|
644 |
termsOptions['termsValue'][termsCount] = ( 'undefined' === typeof results[6] ) ? results[9] : results[7];
|
645 |
termsOptions['termsText'][termsCount++] = results[11].replace( '\ ', mlaModal.settings.termsIndent );
|
@@ -926,7 +939,6 @@ var mlaModal = {
|
|
926 |
|
927 |
// Hook the 'ready' event when the sidebar has been rendered so we can add our enhancements
|
928 |
this.on( 'ready', function( event ) {
|
929 |
-
//console.log( 'view.AttachmentCompat ready Event: ', this.model.get('id') );
|
930 |
mlaModal.utility.hookCompatTaxonomies( this.model.get('id'), this.el );
|
931 |
});
|
932 |
}
|
@@ -945,32 +957,26 @@ var mlaModal = {
|
|
945 |
|
946 |
// Hook the 'selection:reset' event so we can add our enhancements when it's done
|
947 |
this.on( 'selection:reset', function( model ) {
|
948 |
-
//console.log( 'model.Selection selection:reset Event: cid ', model.cid, ', id ', model.get('id') );
|
949 |
mlaModal.cid = null;
|
950 |
});
|
951 |
|
952 |
// Hook the 'selection:unsingle' event so we can add our enhancements when it's done
|
953 |
this.on( 'selection:unsingle', function( model ) {
|
954 |
-
//console.log( 'model.Selection selection:unsingle Event: cid ', model.cid, ', id ', model.get('id') );
|
955 |
mlaModal.cid = null;
|
956 |
});
|
957 |
|
958 |
// Hook the 'selection:single' event so we can add our enhancements when it's done
|
959 |
this.on( 'selection:single', function( model ) {
|
960 |
-
//console.log( 'model.Selection selection:single Event: cid ', model.cid, ', id ', model.get('id') );
|
961 |
mlaModal.cid = model.cid;
|
962 |
});
|
963 |
|
964 |
// Hook the 'change:uploading' event so we can add our enhancements when it's done
|
965 |
this.on( 'change:uploading', function( model ) {
|
966 |
-
//console.log( 'model.Selection change:uploading Event: cid ', model.cid, ', id ', model.get('id') );
|
967 |
mlaModal.uploading = true;
|
968 |
});
|
969 |
|
970 |
// Hook the 'change' event when the sidebar has been rendered so we can add our enhancements
|
971 |
this.on( 'change', function( model ) {
|
972 |
-
//console.log( 'model.Selection change Event: cid ', model.cid, ', id ', model.get('id') );
|
973 |
-
|
974 |
if ( mlaModal.uploading && mlaModal.cid === model.cid ) {
|
975 |
var mediaFrame = wp.media.editor.get('content'),
|
976 |
compat = mediaFrame.content.get('compat');
|
@@ -988,9 +994,6 @@ var mlaModal = {
|
|
988 |
mlaModal.utility.hookCompatTaxonomies = function( attachmentId, context ) {
|
989 |
var taxonomy;
|
990 |
|
991 |
-
// console.log( 'hookCompatTaxonomies attachmentId: ', attachmentId );
|
992 |
-
// console.log( 'hookCompatTaxonomies context: ', JSON.stringify( context ) );
|
993 |
-
|
994 |
if ( mlaModal.settings.enableDetailsCategory ) {
|
995 |
$('.mla-taxonomy-field .categorydiv', context ).each( function(){
|
996 |
taxonomy = mlaModal.utility.parseTaxonomyId( $(this).attr('id') );
|
89 |
if ( _.isObject( action ) ) {
|
90 |
options = action;
|
91 |
} else {
|
|
|
92 |
options = options || {};
|
93 |
options.data = _.extend( options.data || {}, { action: action });
|
94 |
}
|
95 |
|
|
|
|
|
96 |
if ( 'query-attachments' == options.data.action ) {
|
|
|
97 |
stype = typeof options.data.query.s;
|
98 |
if ( 'object' == stype )
|
99 |
s = options.data.query.s;
|
102 |
else
|
103 |
s = {};
|
104 |
|
105 |
+
if ( 'undefined' != typeof options.data.query.post_mime_type )
|
106 |
+
mlaModal.settings.filterMime = options.data.query.post_mime_type;
|
107 |
+
else
|
108 |
+
mlaModal.settings.filterMime = 'all';
|
109 |
+
|
110 |
if ( 'undefined' != typeof s.mla_filter_month )
|
111 |
mlaModal.settings.filterMonth = s.mla_filter_month;
|
112 |
|
132 |
options.data.query.s = searchValues;
|
133 |
}
|
134 |
|
|
|
135 |
return mlaModal.utility.originalMediaAjax.call(this, options );
|
136 |
}; // wp.media.ajax
|
137 |
|
187 |
};
|
188 |
|
189 |
this.filters = filters;
|
190 |
+
if ( ( mlaModal.settings.filterMime != 'all' ) && ( 'undefined' !== typeof filters[ mlaModal.settings.filterMime ] ) )
|
191 |
+
this.model.set( filters[ mlaModal.settings.filterMime ].props, { silent: false } );
|
192 |
},
|
193 |
|
194 |
change: function() {
|
220 |
});
|
221 |
|
222 |
this.filters = filters;
|
223 |
+
if ( ( mlaModal.settings.filterMonth > 0 ) && ( 'undefined' !== typeof filters[ mlaModal.settings.filterMonth ] ) )
|
224 |
+
if ( mlaModal.settings.filterMonth > 0 )
|
225 |
+
this.model.set( filters[ mlaModal.settings.filterMonth ].props, { silent: false } );
|
226 |
},
|
227 |
|
228 |
select: function() {
|
282 |
});
|
283 |
|
284 |
this.filters = filters;
|
285 |
+
// need to translate from termsValue to the index value
|
286 |
+
index = _.indexOf( mlaModal.settings.termsValue, mlaModal.settings.filterTerm );
|
287 |
+
if ( index > 0 )
|
288 |
+
this.model.set( filters[ index ].props, { silent: false } );
|
289 |
},
|
290 |
|
291 |
select: function() {
|
358 |
$( '#mla-terms-search-form' ).submit( function( e ){
|
359 |
var inputs, inputIndex, termsSearch = { phrases: '', taxonomies: [] };
|
360 |
|
|
|
361 |
e.preventDefault();
|
362 |
|
363 |
inputs = $( '#mla-terms-search-form' ).serializeArray();
|
378 |
};
|
379 |
}
|
380 |
|
|
|
381 |
mlaModal.settings.termsSearch = termsSearch
|
382 |
$( '#mla-search-submit' ).click();
|
|
|
383 |
return false;
|
384 |
});
|
385 |
|
489 |
}); // wp.media.view.MlaSearch
|
490 |
}; // mlaModal.settings.enableSearchBox
|
491 |
|
492 |
+
/* for debug : trace every event triggered in the wp.media.frame * /
|
493 |
+
function mediaFrameOn( eventName ) {
|
494 |
+
console.log('wp.media.frame Event: ', eventName);
|
495 |
+
} // */
|
496 |
+
|
497 |
/**
|
498 |
* Add/replace media-toolbar controls with our own
|
499 |
*/
|
502 |
createToolbar: function() {
|
503 |
var filters;
|
504 |
|
505 |
+
/* for debug : trace every event triggered in the wp.media.frame * /
|
506 |
+
wp.media.frame.off( 'all', mediaFrameOn );
|
507 |
+
wp.media.frame.on( 'all', mediaFrameOn );
|
508 |
+
// */
|
509 |
+
|
510 |
// Apply the original method to create the toolbar
|
511 |
wp.media.view.AttachmentsBrowser.__super__.createToolbar.apply( this, arguments );
|
512 |
mlaModal.utility.mlaAttachmentsBrowser = this;
|
559 |
|
560 |
updateFilters: function( taxonomy, selectMarkup ) {
|
561 |
var newOptions = {};
|
|
|
562 |
|
563 |
if ( this.options.search && mlaModal.settings.enableTermsDropdown && mlaModal.settings.termsTaxonomy == taxonomy ) {
|
564 |
newOptions = mlaModal.utility.parseTermsOptions( selectMarkup );
|
652 |
|
653 |
// Test the contents and skip the first match, the "no parent" placeholder
|
654 |
results = regEx.exec( selectMarkup );
|
|
|
655 |
while ( null !== ( results = regEx.exec( selectMarkup ) ) ) {
|
|
|
656 |
termsOptions['termsClass'][termsCount] = results[3];
|
657 |
termsOptions['termsValue'][termsCount] = ( 'undefined' === typeof results[6] ) ? results[9] : results[7];
|
658 |
termsOptions['termsText'][termsCount++] = results[11].replace( '\ ', mlaModal.settings.termsIndent );
|
939 |
|
940 |
// Hook the 'ready' event when the sidebar has been rendered so we can add our enhancements
|
941 |
this.on( 'ready', function( event ) {
|
|
|
942 |
mlaModal.utility.hookCompatTaxonomies( this.model.get('id'), this.el );
|
943 |
});
|
944 |
}
|
957 |
|
958 |
// Hook the 'selection:reset' event so we can add our enhancements when it's done
|
959 |
this.on( 'selection:reset', function( model ) {
|
|
|
960 |
mlaModal.cid = null;
|
961 |
});
|
962 |
|
963 |
// Hook the 'selection:unsingle' event so we can add our enhancements when it's done
|
964 |
this.on( 'selection:unsingle', function( model ) {
|
|
|
965 |
mlaModal.cid = null;
|
966 |
});
|
967 |
|
968 |
// Hook the 'selection:single' event so we can add our enhancements when it's done
|
969 |
this.on( 'selection:single', function( model ) {
|
|
|
970 |
mlaModal.cid = model.cid;
|
971 |
});
|
972 |
|
973 |
// Hook the 'change:uploading' event so we can add our enhancements when it's done
|
974 |
this.on( 'change:uploading', function( model ) {
|
|
|
975 |
mlaModal.uploading = true;
|
976 |
});
|
977 |
|
978 |
// Hook the 'change' event when the sidebar has been rendered so we can add our enhancements
|
979 |
this.on( 'change', function( model ) {
|
|
|
|
|
980 |
if ( mlaModal.uploading && mlaModal.cid === model.cid ) {
|
981 |
var mediaFrame = wp.media.editor.get('content'),
|
982 |
compat = mediaFrame.content.get('compat');
|
994 |
mlaModal.utility.hookCompatTaxonomies = function( attachmentId, context ) {
|
995 |
var taxonomy;
|
996 |
|
|
|
|
|
|
|
997 |
if ( mlaModal.settings.enableDetailsCategory ) {
|
998 |
$('.mla-taxonomy-field .categorydiv', context ).each( function(){
|
999 |
taxonomy = mlaModal.utility.parseTaxonomyId( $(this).attr('id') );
|
js/mla-media-modal-scripts.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
var mlaModal={strings:{},settings:{},initialHTML:{},uploading:false,cid:null,utility:{originalMediaAjax:null,mlaAttachmentsBrowser:null,parseTermsOptions:null,arrayCleanup:null,parseTaxonomyId:null,hookCompatTaxonomies:null,fillCompatTaxonomies:null,supportCompatTaxonomies:null},tagBox:null};(function(a){mlaModal.utility.originalMediaAjax=wp.media.ajax;wp.media.ajax=function(c,b){if(_.isObject(c)){b=c}else{b=b||{};b.data=_.extend(b.data||{},{action:c})}if("query-attachments"==b.data.action){stype=typeof b.data.query.s;if("object"==stype){s=b.data.query.s}else{if("string"==stype){s={mla_search_value:b.data.query.s}}else{s={}}}if("undefined"!=typeof s.mla_filter_month){mlaModal.settings.filterMonth=s.mla_filter_month}if("undefined"!=typeof s.mla_filter_term){mlaModal.settings.filterTerm=s.mla_filter_term}if("undefined"!=typeof s.mla_search_value){mlaModal.settings.searchValue=s.mla_search_value}searchValues={mla_filter_month:mlaModal.settings.filterMonth,mla_filter_term:mlaModal.settings.filterTerm,mla_terms_search:mlaModal.settings.termsSearch,mla_search_clicks:mlaModal.settings.searchClicks,mla_search_value:mlaModal.settings.searchValue,mla_search_fields:mlaModal.settings.searchFields,mla_search_connector:mlaModal.settings.searchConnector};mlaModal.settings.termsSearch="";a("#mla-terms-search-input").html("").val("");b.data.query.s=searchValues}return mlaModal.utility.originalMediaAjax.call(this,b)};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"?{}:wp.media.view.settings.mla_settings;delete wp.media.view.settings.mla_settings;if(mlaModal.settings.enableMimeTypes){wp.media.view.AttachmentFilters.Mla=wp.media.view.AttachmentFilters.extend({createFilters:function(){var b={};_.each(mlaModal.settings.mimeTypes||{},function(d,c){b[c]={text:d,props:{type:c,uploadedTo:null,orderby:"date",order:"DESC"}}});b.all={text:wp.media.view.l10n.allMediaItems,props:{type:null,uploadedTo:null,orderby:"date",order:"DESC"},priority:10};b.uploaded={text:wp.media.view.l10n.uploadedToThisPost,props:{type:null,uploadedTo:wp.media.view.settings.post.id,orderby:"menuOrder",order:"ASC"},priority:20};this.filters=b},change:function(){var b=this.filters[this.el.value];if(b){this.model.set(b.props,{silent:true});a("#mla-search-submit").click()}}})}if(mlaModal.settings.enableMonthsDropdown){wp.media.view.AttachmentFilters.MlaMonths=wp.media.view.AttachmentFilters.extend({className:"attachment-months",createFilters:function(){var b={};_.each(mlaModal.settings.months||{},function(d,c){b[c]={text:d,props:{s:{mla_filter_month:c}}}});this.filters=b},select:function(){var b=this.model,d=mlaModal.settings.filterMonth,c=b.toJSON();if(_.isUndefined(c.s)){c.s={}}if("string"==typeof c.search){mlaModal.settings.searchValue=c.search}if(_.isUndefined(c.s.mla_filter_month)){c.s.mla_filter_month=mlaModal.settings.filterMonth}else{mlaModal.settings.filterMonth=c.s.mla_filter_month}_.find(this.filters,function(f,g){var e=_.all(f.props,function(i,h){return i.mla_filter_month==mlaModal.settings.filterMonth});if(e){return d=g}});this.$el.val(d)},change:function(){var b=this.filters[this.el.value];if(b){this.model.set(b.props);a("#mla-search-submit").click()}}})}if(mlaModal.settings.enableTermsDropdown){wp.media.view.AttachmentFilters.MlaTerms=wp.media.view.AttachmentFilters.extend({className:"attachment-terms",createFilters:function(){var b={};_.each(mlaModal.settings.termsText||{},function(d,c){b[c]={text:d,props:{s:{mla_filter_term:parseInt(mlaModal.settings.termsValue[c])}}}});this.filters=b},select:function(){var b=this.model,d=mlaModal.settings.filterTerm,c=b.toJSON();if(_.isUndefined(c.s)){c.s={}}if("string"==typeof c.search){mlaModal.settings.searchValue=c.search}if(_.isUndefined(c.s.mla_filter_term)){c.s.mla_filter_term=mlaModal.settings.filterTerm}else{mlaModal.settings.filterTerm=c.s.mla_filter_term}_.find(this.filters,function(f,g){var e=_.all(f.props,function(i,h){return i.mla_filter_term==mlaModal.settings.filterTerm});if(e){return d=g}});this.$el.val(d)},change:function(){var b=this.filters[this.el.value];if(b){this.model.set(b.props);a("#mla-search-submit").click()}}})}if(mlaModal.settings.enableTermsSearch){wp.media.view.MlaTermsSearch=wp.media.View.extend({tagName:"span",className:"mla-terms-search",template:wp.media.template("mla-terms-search-button"),attributes:{type:"mla-terms-search-button"},events:{change:"termsSearchOpen",click:"termsSearchOpen",},render:function(){this.$el.html(this.template(mlaModal.strings));return this},termsSearchOpen:function(b){if(("click"==b.type)&&("mla_terms_search"===b.target.name)){mlaTaxonomy.termsSearch.open();a("#mla-terms-search-form").off("submit");a("#mla-terms-search-form").submit(function(g){var c,f,d={phrases:"",taxonomies:[]};g.preventDefault();c=a("#mla-terms-search-form").serializeArray();for(f=0;f<c.length;f++){switch(c[f].name){case"mla_terms_search[phrases]":d.phrases=c[f].value;break;case"mla_terms_search[radio_phrases]":d.radio_phrases=c[f].value;break;case"mla_terms_search[radio_terms]":d.radio_terms=c[f].value;break;case"mla_terms_search[taxonomies][]":d.taxonomies[d.taxonomies.length]=c[f].value;break}}mlaModal.settings.termsSearch=d;a("#mla-search-submit").click();return false});a("#mla-terms-search-input").keypress(function(c){if(13==c.which){c.preventDefault();a("#mla-terms-search-submit").click()}})}}})}if(mlaModal.settings.enableSearchBox){wp.media.view.MlaSearch=wp.media.View.extend({tagName:"div",className:"mla-search-box",template:wp.media.template("mla-search-box"),attributes:{type:"mla-search-box"},events:{change:"search",click:"search",search:"search",MlaSearch:"search"},render:function(){this.$el.html(this.template(mlaModal.strings));return this},search:function(b){if(("click"==b.type)&&("mla_search_submit"!=b.target.name)){return}switch(b.target.name){case"s[mla_search_value]":mlaModal.settings.searchValue=b.target.value;break;case"mla_search_submit":searchValues={mla_filter_month:mlaModal.settings.filterMonth,mla_filter_term:mlaModal.settings.filterTerm,mla_terms_search:mlaModal.settings.termsSearch,mla_search_clicks:mlaModal.settings.searchClicks++,mla_search_value:mlaModal.settings.searchValue,mla_search_fields:mlaModal.settings.searchFields,mla_search_connector:mlaModal.settings.searchConnector};this.model.set({s:searchValues});break;case"s[mla_search_connector]":mlaModal.settings.searchConnector=b.target.value;break;case"s[mla_search_title]":index=mlaModal.settings.searchFields.indexOf("title");if(-1==index){mlaModal.settings.searchFields.push("title")}else{mlaModal.settings.searchFields.splice(index,1)}break;case"s[mla_search_name]":index=mlaModal.settings.searchFields.indexOf("name");if(-1==index){mlaModal.settings.searchFields.push("name")}else{mlaModal.settings.searchFields.splice(index,1)}break;case"s[mla_search_alt_text]":index=mlaModal.settings.searchFields.indexOf("alt-text");if(-1==index){mlaModal.settings.searchFields.push("alt-text")}else{mlaModal.settings.searchFields.splice(index,1)}break;case"s[mla_search_excerpt]":index=mlaModal.settings.searchFields.indexOf("excerpt");if(-1==index){mlaModal.settings.searchFields.push("excerpt")}else{mlaModal.settings.searchFields.splice(index,1)}break;case"s[mla_search_content]":index=mlaModal.settings.searchFields.indexOf("content");if(-1==index){mlaModal.settings.searchFields.push("content")}else{mlaModal.settings.searchFields.splice(index,1)}break;case"s[mla_search_terms]":index=mlaModal.settings.searchFields.indexOf("terms");if(-1==index){mlaModal.settings.searchFields.push("terms")}else{mlaModal.settings.searchFields.splice(index,1)}break}}})}if(mlaModal.settings.enableMimeTypes||mlaModal.settings.enableMonthsDropdown||mlaModal.settings.enableTermsDropdown||mlaModal.settings.enableTermsSearch||mlaModal.settings.enableSearchBox){wp.media.view.AttachmentsBrowser=wp.media.view.AttachmentsBrowser.extend({createToolbar:function(){var b;wp.media.view.AttachmentsBrowser.__super__.createToolbar.apply(this,arguments);mlaModal.utility.mlaAttachmentsBrowser=this;b=this.options.filters;if(("all"===b)&&mlaModal.settings.enableMimeTypes){this.toolbar.unset("filters",{silent:true});this.toolbar.set("filters",new wp.media.view.AttachmentFilters.Mla({controller:this.controller,model:this.collection.props,priority:-80}).render())}if(this.options.search&&mlaModal.settings.enableMonthsDropdown){this.toolbar.set("months",new wp.media.view.AttachmentFilters.MlaMonths({controller:this.controller,model:this.collection.props,priority:-80}).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:-80}).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:-80}).render())}if(this.options.search){if(mlaModal.settings.enableSearchBox){this.toolbar.unset("search",{silent:true});this.toolbar.set("MlaSearch",new wp.media.view.MlaSearch({controller:this.controller,model:this.collection.props,priority:60}).render())}}},updateFilters:function(b,c){var d={};if(this.options.search&&mlaModal.settings.enableTermsDropdown&&mlaModal.settings.termsTaxonomy==b){d=mlaModal.utility.parseTermsOptions(c);mlaModal.settings.termsClass=d.termsClass;mlaModal.settings.termsText=d.termsText;mlaModal.settings.termsValue=d.termsValue;this.toolbar.unset("terms",{silent:true});this.toolbar.set("terms",new wp.media.view.AttachmentFilters.MlaTerms({controller:this.controller,model:this.collection.props,priority:-80}).render())}}})}mlaModal.utility.parseTermsOptions=function(h){var g={termsClass:[mlaModal.settings.termsClass[0],mlaModal.settings.termsClass[1]],termsText:[mlaModal.settings.termsText[0],mlaModal.settings.termsText[1]],termsValue:[mlaModal.settings.termsValue[0],mlaModal.settings.termsValue[1]]},d=2,b,c,f=/\<option(( class=\"([^\"]+)\" )|( ))value=((\'([^\']+)\')|(\"([^\"]+)\"))([^\>]*)\>([^\<]*)\<.*/g,e=[];if("object"===typeof h){d=mlaModal.settings.termsValue.length;for(b=2;b<d;b++){e[b]={termsClass:mlaModal.settings.termsClass[b],termsText:mlaModal.settings.termsText[b],termsValue:mlaModal.settings.termsValue[b]};if("undefined"!==typeof h[mlaModal.settings.termsValue[b]]){delete h[mlaModal.settings.termsValue[b]]}}for(c in h){e[b++]={termsClass:"level-0",termsText:h[c],termsValue:c.toString()}}if(d===b){return{termsClass:mlaModal.settings.termsClass,termsText:mlaModal.settings.termsText,termsValue:mlaModal.settings.termsValue}}e.sort(function(j,i){if(j.termsText>i.termsText){return 1}else{if(j.termsText<i.termsText){return -1}else{return 0}}});b=2;for(c in e){g.termsClass[b]=e[c].termsClass;g.termsText[b]=e[c].termsText;g.termsValue[b++]=e[c].termsValue}return g}e=f.exec(h);while(null!==(e=f.exec(h))){g.termsClass[d]=e[3];g.termsValue[d]=("undefined"===typeof e[6])?e[9]:e[7];g.termsText[d++]=e[11].replace(" ",mlaModal.settings.termsIndent)}return g};mlaModal.utility.arrayCleanup=function(d){var c=[],b=("string"===typeof d);if(b){d=d.split(postL10n.comma)}jQuery.each(d,function(e,f){f=jQuery.trim(f);if(f&&jQuery.inArray(f,c)==-1){c.push(f)}});c.sort();if(b){c=c.join(postL10n.comma)}return c};mlaModal.utility.parseTaxonomyId=function(c){var b=c.split("-");b.shift();b.shift();return b.join("-")};mlaModal.tagBox={cleanTags:function(c){var b=postL10n.comma;if(","!==b){c=c.replace(new RegExp(b,"g"),",")}c=c.replace(/\s*,\s*/g,",").replace(/,+/g,",").replace(/[,\s]+$/,"").replace(/^[,\s]+/,"");if(","!==b){c=c.replace(/,/g,b)}return c},parseTags:function(e){var i=e.id,c=i.split("-check-num-")[1],f=a(e).closest(".tagsdiv"),h=f.find(".the-tags"),b=postL10n.comma,d=h.val().split(b),g=[];delete d[c];a.each(d,function(j,k){k=a.trim(k);if(k){g.push(k)}});h.val(this.cleanTags(g.join(b)));this.quickClicks(f);return false},quickClicks:function(d){var g=a(".the-tags",d),e=a(".tagchecklist",d),f=a(d).attr("id"),b,c;if(!g.length){return}c=g.prop("disabled");b=g.val().split(postL10n.comma);e.empty();a.each(b,function(i,k){var j,h;k=a.trim(k);if(!k){return}j=a("<span />").text(k);if(!c){h=a('<a id="'+f+"-check-num-"+i+'" class="ntdelbutton">X</a>');h.click(function(){mlaModal.tagBox.parseTags(this)});j.prepend(" ").prepend(h)}e.append(j)})},flushTags:function(h,d,c){var j,b,e,k=a(".the-tags",h),g=a("input.newtag",h),i=postL10n.comma;d=d||false;e=d?a(d).text():g.val();j=k.val();b=j?j+i+e:e;b=mlaModal.utility.arrayCleanup(this.cleanTags(b));k.val(b);this.quickClicks(h);if(!d){g.val("")}if("undefined"==typeof(c)){g.focus()}return false},getCloud:function(c,b){a.post(ajaxurl,{action:"get-tagcloud",tax:b},function(e,d){if(0===e||"success"!=d){e=wpAjax.broken}e=a('<p id="tagcloud-'+b+'" class="the-tagcloud">'+e+"</p>");a("a",e).click(function(){mlaModal.tagBox.flushTags(a(this).closest(".mla-taxonomy-field").children(".tagsdiv"),this);return false});a("#"+c).after(e)})},init:function(f,b,d){var e,c;e=a("#mla-taxonomy-"+b,d);c=a("div.ajaxtag",e);mlaModal.tagBox.quickClicks(e);a("input.tagadd",c).click(function(){mlaModal.tagBox.flushTags(a(this).closest(".tagsdiv"))});a("input.newtag",c).keyup(function(g){if(13==g.which){mlaModal.tagBox.flushTags(e);return false}}).keypress(function(g){if(13==g.which){g.preventDefault();return false}}).each(function(){a(this).suggest(ajaxurl+"?action=ajax-tag-search&tax="+b,{delay:500,resultsClass:"mla_ac_results",selectClass:"mla_ac_over",matchClass:"mla_ac_match",minchars:2,multiple:true,multipleSep:postL10n.comma+" "})});e.siblings(":first").click(function(){mlaModal.tagBox.getCloud(a("a",this).attr("id"),b);a("a",this).unbind().click(function(){a(this).siblings(".the-tagcloud").toggle();return false});return false});a(".compat-field-"+b+" td",d).on("mouseleave",function(i){var k,h=this,g=mlaModal.utility.arrayCleanup(a(".server-tags",h).val()),j=mlaModal.utility.arrayCleanup(a(".the-tags",h).val());if(g===j){return}a(h).css("opacity","0.5");k={id:f,};k[b]=j;wp.media.post(mlaModal.settings.ajaxUpdateCompatAction,k).done(function(m){var l,n;for(l in m){if("object"===typeof(m[l]["object-terms"])){mlaModal.utility.mlaAttachmentsBrowser.updateFilters(l,m[l]["object-terms"]);delete m[l]["object-terms"]}for(n in m[l]){a("#"+n,h).replaceWith(m[l][n])}}a(h).css("opacity","1.0")})});e.on("change",function(g){g.stopPropagation();return false});a(".the-tags, .server-tags .newtag",e).on("change",function(g){g.stopPropagation();return false})}};if(mlaModal.settings.enableDetailsCategory||mlaModal.settings.enableDetailsTag){wp.media.view.AttachmentCompat=wp.media.view.AttachmentCompat.extend({initialize:function(){wp.media.view.AttachmentCompat.__super__.initialize.apply(this,arguments);this.on("ready",function(b){mlaModal.utility.hookCompatTaxonomies(this.model.get("id"),this.el)})}})}if(mlaModal.settings.enableDetailsCategory||mlaModal.settings.enableDetailsTag){wp.media.model.Selection=wp.media.model.Selection.extend({initialize:function(){wp.media.model.Selection.__super__.initialize.apply(this,arguments);this.on("selection:reset",function(b){mlaModal.cid=null});this.on("selection:unsingle",function(b){mlaModal.cid=null});this.on("selection:single",function(b){mlaModal.cid=b.cid});this.on("change:uploading",function(b){mlaModal.uploading=true});this.on("change",function(d){if(mlaModal.uploading&&mlaModal.cid===d.cid){var b=wp.media.editor.get("content"),c=b.content.get("compat");mlaModal.utility.hookCompatTaxonomies(d.get("id"),c.sidebar.$el);mlaModal.uploading=false}})}})}mlaModal.utility.hookCompatTaxonomies=function(d,c){var b;if(mlaModal.settings.enableDetailsCategory){a(".mla-taxonomy-field .categorydiv",c).each(function(){b=mlaModal.utility.parseTaxonomyId(a(this).attr("id"));a(".compat-field-"+b+" th",c).click({id:d,currentTaxonomy:b,el:c},function(e){mlaModal.utility.fillCompatTaxonomies(e.data)})})}if(mlaModal.settings.enableDetailsTag){a(".mla-taxonomy-field .tagsdiv",c).each(function(){b=mlaModal.utility.parseTaxonomyId(a(this).attr("id"));a(".compat-field-"+b+" th",c).click({id:d,currentTaxonomy:b,el:c},function(e){mlaModal.utility.fillCompatTaxonomies(e.data)})})}};mlaModal.utility.fillCompatTaxonomies=function(f){var c=f.el,e=[],b,d;if(mlaModal.settings.enableDetailsCategory){a(".mla-taxonomy-field .categorydiv",c).each(function(){b=mlaModal.utility.parseTaxonomyId(a(this).attr("id"));e[e.length]=b;d=".compat-field-"+b;if("undefined"===typeof(mlaModal.initialHTML[b])){mlaModal.initialHTML[b]=a(d,c).html()}else{a(d,c).html(mlaModal.initialHTML[b])}a(d+" .categorydiv",c).html(mlaModal.strings.loadingText)})}if(mlaModal.settings.enableDetailsTag){a(".mla-taxonomy-field .tagsdiv",c).each(function(){b=mlaModal.utility.parseTaxonomyId(a(this).attr("id"));e[e.length]=b;d=".compat-field-"+b;if("undefined"===typeof(mlaModal.initialHTML[b])){mlaModal.initialHTML[b]=a(d,c).html()}else{a(d,c).html(mlaModal.initialHTML[b])}a(d+" .tagsdiv",c).html(mlaModal.strings.loadingText)})}if(e.length){wp.media.post(mlaModal.settings.ajaxFillCompatAction,{id:f.id,query:e,}).done(function(h){var g,i;for(g in h){i=".compat-field-"+g;a(i,c).html(h[g])}mlaModal.utility.supportCompatTaxonomies(f);a(".compat-field-"+f.currentTaxonomy+" td",c).show()})}};mlaModal.utility.supportCompatTaxonomies=function(d){var c=d.id,b=d.el;if(mlaModal.settings.enableDetailsCategory){a(".mla-taxonomy-field .categorydiv",b).each(function(){var g=a(this),e,h,f,k,i,m,l,j;f=mlaModal.utility.parseTaxonomyId(a(this).attr("id"));k=f+"_tab";i="#mla-"+f;m="#mla-new-"+f;l="#mla-search-"+f;j="#mla-attachments-"+c+"-"+f;if(f=="category"){k="cats"}g.find(".category-tabs").show();a(".compat-field-"+f+" th",b).click(function(){a(this).siblings("td").slideToggle()});g.on("mouseleave",function(p){var r,n,q=[],o=g.find(i+"-checklist input:checked");o.each(function(t){q[q.length]=a(this).val()});q.sort(function(u,t){return u-t});q=q.join(",");n=g.siblings(j).val();if(n===q){return}g.siblings(j).val(q);g.prop("disabled",true);r={id:c,};r[f]=q;wp.media.post(mlaModal.settings.ajaxUpdateCompatAction,r).done(function(u){var t,v;for(t in u){for(v in u[t]){g.find("#"+v).html(u[t][v])}}g.find(l).val("");g.find(i+"-searcher").addClass("mla-hidden-children");g.prop("disabled",false)})});g.on('change input[type="checkbox"]',function(n){n.stopPropagation();return false});g.find(i+"-tabs a").click(function(){var n=a(this).attr("href");a(this).parent().addClass("tabs").siblings("li").removeClass("tabs");g.find(i+"-tabs").siblings(".tabs-panel").hide();g.find(n).show();a(this).focus();if("#mla-"+f+"-all"==n){deleteUserSetting(k)}else{setUserSetting(k,"pop")}return false});if(getUserSetting(k)){g.find(i+'-tabs a[href="#mla-'+f+'-pop"]').click()}g.find(i+"-add-toggle").click(function(){g.find(i+"-searcher").addClass("mla-hidden-children");g.find(i+"-adder").toggleClass("mla-hidden-children");g.find(i+'-tabs a[href="#mla-'+f+'-all"]').click();g.find(i+"-checklist li").show();g.find(i+"-checklist-pop li").show();if(false===g.find(i+"-adder").hasClass("mla-hidden-children")){g.find(m).val("").removeClass("form-input-tip");g.find(m).focus()}return false});g.find(m).keypress(function(n){if(13===n.keyCode){n.preventDefault();g.find(i+"-add-submit").click()}});g.find(i+"-add-submit").click(function(){g.find(m).focus()});e=function(n){if(!g.find(m).val()){return false}n.data+="&"+g.find(i+"-checklist :checked").serialize();g.prop("disabled",true);return n};h=function(q,p){var o,n=g.find("#new"+f+"_parent");g.prop("disabled",false);if("undefined"!=p.parsed.responses[0]&&(o=p.parsed.responses[0].supplemental.newcat_parent)){n.before(o);n.remove();mlaModal.utility.mlaAttachmentsBrowser.updateFilters(f,o)}};g.find(i+"-checklist").wpList({alt:"",response:"mla-"+f+"-ajax-response",addBefore:e,addAfter:h});g.find(i+"-checklist, "+i+"-checklist-pop").on("click",'li.popular-category > label input[type="checkbox"]',function(){var n=a(this),p=n.is(":checked"),o=n.val();if(o&&n.parents("#mla-taxonomy-"+f).length){a("#in-"+f+"-"+o+", #in-popular-"+f+"-"+o).prop("checked",p)}});a.extend(a.expr[":"],{matchTerms:function(p,o,n,q){return(p.textContent||p.innerText||"").toLowerCase().indexOf((n[3]||"").toLowerCase())>=0}});g.find(l).keypress(function(n){if(13===n.keyCode){n.preventDefault();g.find(l).val("");g.find(i+"-searcher").addClass("mla-hidden-children");g.find(i+"-checklist li").show();g.find(i+"-checklist-pop li").show();return}});g.find(l).keyup(function(p){var q,o,n;if(13===p.keyCode){p.preventDefault();g.find(i+"-search-toggle").focus();return}q=g.find(l).val(),termList=g.find(i+"-checklist li");termListPopular=g.find(i+"-checklist-pop li");if(0<q.length){termList.hide();termListPopular.hide()}else{termList.show();termListPopular.show()}o=g.find(i+"-checklist label:matchTerms('"+q+"')");o.closest("li").find("li").andSelf().show();o.parents(i+"-checklist li").show();n=g.find(i+"-checklist-pop label:matchTerms('"+q+"')");n.closest("li").find("li").andSelf().show();n.parents(i+"-checklist li").show()});g.find(i+"-search-toggle").click(function(){g.find(i+"-adder ").addClass("mla-hidden-children");g.find(i+"-searcher").toggleClass("mla-hidden-children");g.find(i+'-tabs a[href="#mla-'+f+'-all"]').click();g.find(i+"-checklist li").show();g.find(i+"-checklist-pop li").show();if(false===g.find(i+"-searcher").hasClass("mla-hidden-children")){g.find(l).val("").removeClass("form-input-tip");g.find(l).focus()}return false})})}if(mlaModal.settings.enableDetailsTag){a(".mla-taxonomy-field .tagsdiv",b).each(function(){var e=mlaModal.utility.parseTaxonomyId(a(this).attr("id"));a(".compat-field-"+e+" th",b).click(function(){a(this).siblings("td").slideToggle()});mlaModal.tagBox.init(c,e,b)})}}}(jQuery));
|
1 |
+
var mlaModal={strings:{},settings:{},initialHTML:{},uploading:false,cid:null,utility:{originalMediaAjax:null,mlaAttachmentsBrowser:null,parseTermsOptions:null,arrayCleanup:null,parseTaxonomyId:null,hookCompatTaxonomies:null,fillCompatTaxonomies:null,supportCompatTaxonomies:null},tagBox:null};(function(a){mlaModal.utility.originalMediaAjax=wp.media.ajax;wp.media.ajax=function(c,b){if(_.isObject(c)){b=c}else{b=b||{};b.data=_.extend(b.data||{},{action:c})}if("query-attachments"==b.data.action){stype=typeof b.data.query.s;if("object"==stype){s=b.data.query.s}else{if("string"==stype){s={mla_search_value:b.data.query.s}}else{s={}}}if("undefined"!=typeof b.data.query.post_mime_type){mlaModal.settings.filterMime=b.data.query.post_mime_type}else{mlaModal.settings.filterMime="all"}if("undefined"!=typeof s.mla_filter_month){mlaModal.settings.filterMonth=s.mla_filter_month}if("undefined"!=typeof s.mla_filter_term){mlaModal.settings.filterTerm=s.mla_filter_term}if("undefined"!=typeof s.mla_search_value){mlaModal.settings.searchValue=s.mla_search_value}searchValues={mla_filter_month:mlaModal.settings.filterMonth,mla_filter_term:mlaModal.settings.filterTerm,mla_terms_search:mlaModal.settings.termsSearch,mla_search_clicks:mlaModal.settings.searchClicks,mla_search_value:mlaModal.settings.searchValue,mla_search_fields:mlaModal.settings.searchFields,mla_search_connector:mlaModal.settings.searchConnector};mlaModal.settings.termsSearch="";a("#mla-terms-search-input").html("").val("");b.data.query.s=searchValues}return mlaModal.utility.originalMediaAjax.call(this,b)};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"?{}:wp.media.view.settings.mla_settings;delete wp.media.view.settings.mla_settings;if(mlaModal.settings.enableMimeTypes){wp.media.view.AttachmentFilters.Mla=wp.media.view.AttachmentFilters.extend({createFilters:function(){var b={};_.each(mlaModal.settings.mimeTypes||{},function(d,c){b[c]={text:d,props:{type:c,uploadedTo:null,orderby:"date",order:"DESC"}}});b.all={text:wp.media.view.l10n.allMediaItems,props:{type:null,uploadedTo:null,orderby:"date",order:"DESC"},priority:10};b.uploaded={text:wp.media.view.l10n.uploadedToThisPost,props:{type:null,uploadedTo:wp.media.view.settings.post.id,orderby:"menuOrder",order:"ASC"},priority:20};this.filters=b;if((mlaModal.settings.filterMime!="all")&&("undefined"!==typeof b[mlaModal.settings.filterMime])){this.model.set(b[mlaModal.settings.filterMime].props,{silent:false})}},change:function(){var b=this.filters[this.el.value];if(b){this.model.set(b.props,{silent:true});a("#mla-search-submit").click()}}})}if(mlaModal.settings.enableMonthsDropdown){wp.media.view.AttachmentFilters.MlaMonths=wp.media.view.AttachmentFilters.extend({className:"attachment-months",createFilters:function(){var b={};_.each(mlaModal.settings.months||{},function(d,c){b[c]={text:d,props:{s:{mla_filter_month:c}}}});this.filters=b;if((mlaModal.settings.filterMonth>0)&&("undefined"!==typeof b[mlaModal.settings.filterMonth])){if(mlaModal.settings.filterMonth>0){this.model.set(b[mlaModal.settings.filterMonth].props,{silent:false})}}},select:function(){var b=this.model,d=mlaModal.settings.filterMonth,c=b.toJSON();if(_.isUndefined(c.s)){c.s={}}if("string"==typeof c.search){mlaModal.settings.searchValue=c.search}if(_.isUndefined(c.s.mla_filter_month)){c.s.mla_filter_month=mlaModal.settings.filterMonth}else{mlaModal.settings.filterMonth=c.s.mla_filter_month}_.find(this.filters,function(f,g){var e=_.all(f.props,function(i,h){return i.mla_filter_month==mlaModal.settings.filterMonth});if(e){return d=g}});this.$el.val(d)},change:function(){var b=this.filters[this.el.value];if(b){this.model.set(b.props);a("#mla-search-submit").click()}}})}if(mlaModal.settings.enableTermsDropdown){wp.media.view.AttachmentFilters.MlaTerms=wp.media.view.AttachmentFilters.extend({className:"attachment-terms",createFilters:function(){var b={};_.each(mlaModal.settings.termsText||{},function(d,c){b[c]={text:d,props:{s:{mla_filter_term:parseInt(mlaModal.settings.termsValue[c])}}}});this.filters=b;index=_.indexOf(mlaModal.settings.termsValue,mlaModal.settings.filterTerm);if(index>0){this.model.set(b[index].props,{silent:false})}},select:function(){var b=this.model,d=mlaModal.settings.filterTerm,c=b.toJSON();if(_.isUndefined(c.s)){c.s={}}if("string"==typeof c.search){mlaModal.settings.searchValue=c.search}if(_.isUndefined(c.s.mla_filter_term)){c.s.mla_filter_term=mlaModal.settings.filterTerm}else{mlaModal.settings.filterTerm=c.s.mla_filter_term}_.find(this.filters,function(f,g){var e=_.all(f.props,function(i,h){return i.mla_filter_term==mlaModal.settings.filterTerm});if(e){return d=g}});this.$el.val(d)},change:function(){var b=this.filters[this.el.value];if(b){this.model.set(b.props);a("#mla-search-submit").click()}}})}if(mlaModal.settings.enableTermsSearch){wp.media.view.MlaTermsSearch=wp.media.View.extend({tagName:"span",className:"mla-terms-search",template:wp.media.template("mla-terms-search-button"),attributes:{type:"mla-terms-search-button"},events:{change:"termsSearchOpen",click:"termsSearchOpen",},render:function(){this.$el.html(this.template(mlaModal.strings));return this},termsSearchOpen:function(b){if(("click"==b.type)&&("mla_terms_search"===b.target.name)){mlaTaxonomy.termsSearch.open();a("#mla-terms-search-form").off("submit");a("#mla-terms-search-form").submit(function(g){var c,f,d={phrases:"",taxonomies:[]};g.preventDefault();c=a("#mla-terms-search-form").serializeArray();for(f=0;f<c.length;f++){switch(c[f].name){case"mla_terms_search[phrases]":d.phrases=c[f].value;break;case"mla_terms_search[radio_phrases]":d.radio_phrases=c[f].value;break;case"mla_terms_search[radio_terms]":d.radio_terms=c[f].value;break;case"mla_terms_search[taxonomies][]":d.taxonomies[d.taxonomies.length]=c[f].value;break}}mlaModal.settings.termsSearch=d;a("#mla-search-submit").click();return false});a("#mla-terms-search-input").keypress(function(c){if(13==c.which){c.preventDefault();a("#mla-terms-search-submit").click()}})}}})}if(mlaModal.settings.enableSearchBox){wp.media.view.MlaSearch=wp.media.View.extend({tagName:"div",className:"mla-search-box",template:wp.media.template("mla-search-box"),attributes:{type:"mla-search-box"},events:{change:"search",click:"search",search:"search",MlaSearch:"search"},render:function(){this.$el.html(this.template(mlaModal.strings));return this},search:function(b){if(("click"==b.type)&&("mla_search_submit"!=b.target.name)){return}switch(b.target.name){case"s[mla_search_value]":mlaModal.settings.searchValue=b.target.value;break;case"mla_search_submit":searchValues={mla_filter_month:mlaModal.settings.filterMonth,mla_filter_term:mlaModal.settings.filterTerm,mla_terms_search:mlaModal.settings.termsSearch,mla_search_clicks:mlaModal.settings.searchClicks++,mla_search_value:mlaModal.settings.searchValue,mla_search_fields:mlaModal.settings.searchFields,mla_search_connector:mlaModal.settings.searchConnector};this.model.set({s:searchValues});break;case"s[mla_search_connector]":mlaModal.settings.searchConnector=b.target.value;break;case"s[mla_search_title]":index=mlaModal.settings.searchFields.indexOf("title");if(-1==index){mlaModal.settings.searchFields.push("title")}else{mlaModal.settings.searchFields.splice(index,1)}break;case"s[mla_search_name]":index=mlaModal.settings.searchFields.indexOf("name");if(-1==index){mlaModal.settings.searchFields.push("name")}else{mlaModal.settings.searchFields.splice(index,1)}break;case"s[mla_search_alt_text]":index=mlaModal.settings.searchFields.indexOf("alt-text");if(-1==index){mlaModal.settings.searchFields.push("alt-text")}else{mlaModal.settings.searchFields.splice(index,1)}break;case"s[mla_search_excerpt]":index=mlaModal.settings.searchFields.indexOf("excerpt");if(-1==index){mlaModal.settings.searchFields.push("excerpt")}else{mlaModal.settings.searchFields.splice(index,1)}break;case"s[mla_search_content]":index=mlaModal.settings.searchFields.indexOf("content");if(-1==index){mlaModal.settings.searchFields.push("content")}else{mlaModal.settings.searchFields.splice(index,1)}break;case"s[mla_search_terms]":index=mlaModal.settings.searchFields.indexOf("terms");if(-1==index){mlaModal.settings.searchFields.push("terms")}else{mlaModal.settings.searchFields.splice(index,1)}break}}})}if(mlaModal.settings.enableMimeTypes||mlaModal.settings.enableMonthsDropdown||mlaModal.settings.enableTermsDropdown||mlaModal.settings.enableTermsSearch||mlaModal.settings.enableSearchBox){wp.media.view.AttachmentsBrowser=wp.media.view.AttachmentsBrowser.extend({createToolbar:function(){var b;wp.media.view.AttachmentsBrowser.__super__.createToolbar.apply(this,arguments);mlaModal.utility.mlaAttachmentsBrowser=this;b=this.options.filters;if(("all"===b)&&mlaModal.settings.enableMimeTypes){this.toolbar.unset("filters",{silent:true});this.toolbar.set("filters",new wp.media.view.AttachmentFilters.Mla({controller:this.controller,model:this.collection.props,priority:-80}).render())}if(this.options.search&&mlaModal.settings.enableMonthsDropdown){this.toolbar.set("months",new wp.media.view.AttachmentFilters.MlaMonths({controller:this.controller,model:this.collection.props,priority:-80}).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:-80}).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:-80}).render())}if(this.options.search){if(mlaModal.settings.enableSearchBox){this.toolbar.unset("search",{silent:true});this.toolbar.set("MlaSearch",new wp.media.view.MlaSearch({controller:this.controller,model:this.collection.props,priority:60}).render())}}},updateFilters:function(b,c){var d={};if(this.options.search&&mlaModal.settings.enableTermsDropdown&&mlaModal.settings.termsTaxonomy==b){d=mlaModal.utility.parseTermsOptions(c);mlaModal.settings.termsClass=d.termsClass;mlaModal.settings.termsText=d.termsText;mlaModal.settings.termsValue=d.termsValue;this.toolbar.unset("terms",{silent:true});this.toolbar.set("terms",new wp.media.view.AttachmentFilters.MlaTerms({controller:this.controller,model:this.collection.props,priority:-80}).render())}}})}mlaModal.utility.parseTermsOptions=function(h){var g={termsClass:[mlaModal.settings.termsClass[0],mlaModal.settings.termsClass[1]],termsText:[mlaModal.settings.termsText[0],mlaModal.settings.termsText[1]],termsValue:[mlaModal.settings.termsValue[0],mlaModal.settings.termsValue[1]]},d=2,b,c,f=/\<option(( class=\"([^\"]+)\" )|( ))value=((\'([^\']+)\')|(\"([^\"]+)\"))([^\>]*)\>([^\<]*)\<.*/g,e=[];if("object"===typeof h){d=mlaModal.settings.termsValue.length;for(b=2;b<d;b++){e[b]={termsClass:mlaModal.settings.termsClass[b],termsText:mlaModal.settings.termsText[b],termsValue:mlaModal.settings.termsValue[b]};if("undefined"!==typeof h[mlaModal.settings.termsValue[b]]){delete h[mlaModal.settings.termsValue[b]]}}for(c in h){e[b++]={termsClass:"level-0",termsText:h[c],termsValue:c.toString()}}if(d===b){return{termsClass:mlaModal.settings.termsClass,termsText:mlaModal.settings.termsText,termsValue:mlaModal.settings.termsValue}}e.sort(function(j,i){if(j.termsText>i.termsText){return 1}else{if(j.termsText<i.termsText){return -1}else{return 0}}});b=2;for(c in e){g.termsClass[b]=e[c].termsClass;g.termsText[b]=e[c].termsText;g.termsValue[b++]=e[c].termsValue}return g}e=f.exec(h);while(null!==(e=f.exec(h))){g.termsClass[d]=e[3];g.termsValue[d]=("undefined"===typeof e[6])?e[9]:e[7];g.termsText[d++]=e[11].replace(" ",mlaModal.settings.termsIndent)}return g};mlaModal.utility.arrayCleanup=function(d){var c=[],b=("string"===typeof d);if(b){d=d.split(postL10n.comma)}jQuery.each(d,function(e,f){f=jQuery.trim(f);if(f&&jQuery.inArray(f,c)==-1){c.push(f)}});c.sort();if(b){c=c.join(postL10n.comma)}return c};mlaModal.utility.parseTaxonomyId=function(c){var b=c.split("-");b.shift();b.shift();return b.join("-")};mlaModal.tagBox={cleanTags:function(c){var b=postL10n.comma;if(","!==b){c=c.replace(new RegExp(b,"g"),",")}c=c.replace(/\s*,\s*/g,",").replace(/,+/g,",").replace(/[,\s]+$/,"").replace(/^[,\s]+/,"");if(","!==b){c=c.replace(/,/g,b)}return c},parseTags:function(e){var i=e.id,c=i.split("-check-num-")[1],f=a(e).closest(".tagsdiv"),h=f.find(".the-tags"),b=postL10n.comma,d=h.val().split(b),g=[];delete d[c];a.each(d,function(j,k){k=a.trim(k);if(k){g.push(k)}});h.val(this.cleanTags(g.join(b)));this.quickClicks(f);return false},quickClicks:function(d){var g=a(".the-tags",d),e=a(".tagchecklist",d),f=a(d).attr("id"),b,c;if(!g.length){return}c=g.prop("disabled");b=g.val().split(postL10n.comma);e.empty();a.each(b,function(i,k){var j,h;k=a.trim(k);if(!k){return}j=a("<span />").text(k);if(!c){h=a('<a id="'+f+"-check-num-"+i+'" class="ntdelbutton">X</a>');h.click(function(){mlaModal.tagBox.parseTags(this)});j.prepend(" ").prepend(h)}e.append(j)})},flushTags:function(h,d,c){var j,b,e,k=a(".the-tags",h),g=a("input.newtag",h),i=postL10n.comma;d=d||false;e=d?a(d).text():g.val();j=k.val();b=j?j+i+e:e;b=mlaModal.utility.arrayCleanup(this.cleanTags(b));k.val(b);this.quickClicks(h);if(!d){g.val("")}if("undefined"==typeof(c)){g.focus()}return false},getCloud:function(c,b){a.post(ajaxurl,{action:"get-tagcloud",tax:b},function(e,d){if(0===e||"success"!=d){e=wpAjax.broken}e=a('<p id="tagcloud-'+b+'" class="the-tagcloud">'+e+"</p>");a("a",e).click(function(){mlaModal.tagBox.flushTags(a(this).closest(".mla-taxonomy-field").children(".tagsdiv"),this);return false});a("#"+c).after(e)})},init:function(f,b,d){var e,c;e=a("#mla-taxonomy-"+b,d);c=a("div.ajaxtag",e);mlaModal.tagBox.quickClicks(e);a("input.tagadd",c).click(function(){mlaModal.tagBox.flushTags(a(this).closest(".tagsdiv"))});a("input.newtag",c).keyup(function(g){if(13==g.which){mlaModal.tagBox.flushTags(e);return false}}).keypress(function(g){if(13==g.which){g.preventDefault();return false}}).each(function(){a(this).suggest(ajaxurl+"?action=ajax-tag-search&tax="+b,{delay:500,resultsClass:"mla_ac_results",selectClass:"mla_ac_over",matchClass:"mla_ac_match",minchars:2,multiple:true,multipleSep:postL10n.comma+" "})});e.siblings(":first").click(function(){mlaModal.tagBox.getCloud(a("a",this).attr("id"),b);a("a",this).unbind().click(function(){a(this).siblings(".the-tagcloud").toggle();return false});return false});a(".compat-field-"+b+" td",d).on("mouseleave",function(i){var k,h=this,g=mlaModal.utility.arrayCleanup(a(".server-tags",h).val()),j=mlaModal.utility.arrayCleanup(a(".the-tags",h).val());if(g===j){return}a(h).css("opacity","0.5");k={id:f,};k[b]=j;wp.media.post(mlaModal.settings.ajaxUpdateCompatAction,k).done(function(m){var l,n;for(l in m){if("object"===typeof(m[l]["object-terms"])){mlaModal.utility.mlaAttachmentsBrowser.updateFilters(l,m[l]["object-terms"]);delete m[l]["object-terms"]}for(n in m[l]){a("#"+n,h).replaceWith(m[l][n])}}a(h).css("opacity","1.0")})});e.on("change",function(g){g.stopPropagation();return false});a(".the-tags, .server-tags .newtag",e).on("change",function(g){g.stopPropagation();return false})}};if(mlaModal.settings.enableDetailsCategory||mlaModal.settings.enableDetailsTag){wp.media.view.AttachmentCompat=wp.media.view.AttachmentCompat.extend({initialize:function(){wp.media.view.AttachmentCompat.__super__.initialize.apply(this,arguments);this.on("ready",function(b){mlaModal.utility.hookCompatTaxonomies(this.model.get("id"),this.el)})}})}if(mlaModal.settings.enableDetailsCategory||mlaModal.settings.enableDetailsTag){wp.media.model.Selection=wp.media.model.Selection.extend({initialize:function(){wp.media.model.Selection.__super__.initialize.apply(this,arguments);this.on("selection:reset",function(b){mlaModal.cid=null});this.on("selection:unsingle",function(b){mlaModal.cid=null});this.on("selection:single",function(b){mlaModal.cid=b.cid});this.on("change:uploading",function(b){mlaModal.uploading=true});this.on("change",function(d){if(mlaModal.uploading&&mlaModal.cid===d.cid){var b=wp.media.editor.get("content"),c=b.content.get("compat");mlaModal.utility.hookCompatTaxonomies(d.get("id"),c.sidebar.$el);mlaModal.uploading=false}})}})}mlaModal.utility.hookCompatTaxonomies=function(d,c){var b;if(mlaModal.settings.enableDetailsCategory){a(".mla-taxonomy-field .categorydiv",c).each(function(){b=mlaModal.utility.parseTaxonomyId(a(this).attr("id"));a(".compat-field-"+b+" th",c).click({id:d,currentTaxonomy:b,el:c},function(e){mlaModal.utility.fillCompatTaxonomies(e.data)})})}if(mlaModal.settings.enableDetailsTag){a(".mla-taxonomy-field .tagsdiv",c).each(function(){b=mlaModal.utility.parseTaxonomyId(a(this).attr("id"));a(".compat-field-"+b+" th",c).click({id:d,currentTaxonomy:b,el:c},function(e){mlaModal.utility.fillCompatTaxonomies(e.data)})})}};mlaModal.utility.fillCompatTaxonomies=function(f){var c=f.el,e=[],b,d;if(mlaModal.settings.enableDetailsCategory){a(".mla-taxonomy-field .categorydiv",c).each(function(){b=mlaModal.utility.parseTaxonomyId(a(this).attr("id"));e[e.length]=b;d=".compat-field-"+b;if("undefined"===typeof(mlaModal.initialHTML[b])){mlaModal.initialHTML[b]=a(d,c).html()}else{a(d,c).html(mlaModal.initialHTML[b])}a(d+" .categorydiv",c).html(mlaModal.strings.loadingText)})}if(mlaModal.settings.enableDetailsTag){a(".mla-taxonomy-field .tagsdiv",c).each(function(){b=mlaModal.utility.parseTaxonomyId(a(this).attr("id"));e[e.length]=b;d=".compat-field-"+b;if("undefined"===typeof(mlaModal.initialHTML[b])){mlaModal.initialHTML[b]=a(d,c).html()}else{a(d,c).html(mlaModal.initialHTML[b])}a(d+" .tagsdiv",c).html(mlaModal.strings.loadingText)})}if(e.length){wp.media.post(mlaModal.settings.ajaxFillCompatAction,{id:f.id,query:e,}).done(function(h){var g,i;for(g in h){i=".compat-field-"+g;a(i,c).html(h[g])}mlaModal.utility.supportCompatTaxonomies(f);a(".compat-field-"+f.currentTaxonomy+" td",c).show()})}};mlaModal.utility.supportCompatTaxonomies=function(d){var c=d.id,b=d.el;if(mlaModal.settings.enableDetailsCategory){a(".mla-taxonomy-field .categorydiv",b).each(function(){var g=a(this),e,h,f,k,i,m,l,j;f=mlaModal.utility.parseTaxonomyId(a(this).attr("id"));k=f+"_tab";i="#mla-"+f;m="#mla-new-"+f;l="#mla-search-"+f;j="#mla-attachments-"+c+"-"+f;if(f=="category"){k="cats"}g.find(".category-tabs").show();a(".compat-field-"+f+" th",b).click(function(){a(this).siblings("td").slideToggle()});g.on("mouseleave",function(p){var r,n,q=[],o=g.find(i+"-checklist input:checked");o.each(function(t){q[q.length]=a(this).val()});q.sort(function(u,t){return u-t});q=q.join(",");n=g.siblings(j).val();if(n===q){return}g.siblings(j).val(q);g.prop("disabled",true);r={id:c,};r[f]=q;wp.media.post(mlaModal.settings.ajaxUpdateCompatAction,r).done(function(u){var t,v;for(t in u){for(v in u[t]){g.find("#"+v).html(u[t][v])}}g.find(l).val("");g.find(i+"-searcher").addClass("mla-hidden-children");g.prop("disabled",false)})});g.on('change input[type="checkbox"]',function(n){n.stopPropagation();return false});g.find(i+"-tabs a").click(function(){var n=a(this).attr("href");a(this).parent().addClass("tabs").siblings("li").removeClass("tabs");g.find(i+"-tabs").siblings(".tabs-panel").hide();g.find(n).show();a(this).focus();if("#mla-"+f+"-all"==n){deleteUserSetting(k)}else{setUserSetting(k,"pop")}return false});if(getUserSetting(k)){g.find(i+'-tabs a[href="#mla-'+f+'-pop"]').click()}g.find(i+"-add-toggle").click(function(){g.find(i+"-searcher").addClass("mla-hidden-children");g.find(i+"-adder").toggleClass("mla-hidden-children");g.find(i+'-tabs a[href="#mla-'+f+'-all"]').click();g.find(i+"-checklist li").show();g.find(i+"-checklist-pop li").show();if(false===g.find(i+"-adder").hasClass("mla-hidden-children")){g.find(m).val("").removeClass("form-input-tip");g.find(m).focus()}return false});g.find(m).keypress(function(n){if(13===n.keyCode){n.preventDefault();g.find(i+"-add-submit").click()}});g.find(i+"-add-submit").click(function(){g.find(m).focus()});e=function(n){if(!g.find(m).val()){return false}n.data+="&"+g.find(i+"-checklist :checked").serialize();g.prop("disabled",true);return n};h=function(q,p){var o,n=g.find("#new"+f+"_parent");g.prop("disabled",false);if("undefined"!=p.parsed.responses[0]&&(o=p.parsed.responses[0].supplemental.newcat_parent)){n.before(o);n.remove();mlaModal.utility.mlaAttachmentsBrowser.updateFilters(f,o)}};g.find(i+"-checklist").wpList({alt:"",response:"mla-"+f+"-ajax-response",addBefore:e,addAfter:h});g.find(i+"-checklist, "+i+"-checklist-pop").on("click",'li.popular-category > label input[type="checkbox"]',function(){var n=a(this),p=n.is(":checked"),o=n.val();if(o&&n.parents("#mla-taxonomy-"+f).length){a("#in-"+f+"-"+o+", #in-popular-"+f+"-"+o).prop("checked",p)}});a.extend(a.expr[":"],{matchTerms:function(p,o,n,q){return(p.textContent||p.innerText||"").toLowerCase().indexOf((n[3]||"").toLowerCase())>=0}});g.find(l).keypress(function(n){if(13===n.keyCode){n.preventDefault();g.find(l).val("");g.find(i+"-searcher").addClass("mla-hidden-children");g.find(i+"-checklist li").show();g.find(i+"-checklist-pop li").show();return}});g.find(l).keyup(function(p){var q,o,n;if(13===p.keyCode){p.preventDefault();g.find(i+"-search-toggle").focus();return}q=g.find(l).val(),termList=g.find(i+"-checklist li");termListPopular=g.find(i+"-checklist-pop li");if(0<q.length){termList.hide();termListPopular.hide()}else{termList.show();termListPopular.show()}o=g.find(i+"-checklist label:matchTerms('"+q+"')");o.closest("li").find("li").andSelf().show();o.parents(i+"-checklist li").show();n=g.find(i+"-checklist-pop label:matchTerms('"+q+"')");n.closest("li").find("li").andSelf().show();n.parents(i+"-checklist li").show()});g.find(i+"-search-toggle").click(function(){g.find(i+"-adder ").addClass("mla-hidden-children");g.find(i+"-searcher").toggleClass("mla-hidden-children");g.find(i+'-tabs a[href="#mla-'+f+'-all"]').click();g.find(i+"-checklist li").show();g.find(i+"-checklist-pop li").show();if(false===g.find(i+"-searcher").hasClass("mla-hidden-children")){g.find(l).val("").removeClass("form-input-tip");g.find(l).focus()}return false})})}if(mlaModal.settings.enableDetailsTag){a(".mla-taxonomy-field .tagsdiv",b).each(function(){var e=mlaModal.utility.parseTaxonomyId(a(this).attr("id"));a(".compat-field-"+e+" th",b).click(function(){a(this).siblings("td").slideToggle()});mlaModal.tagBox.init(c,e,b)})}}}(jQuery));
|
js/mla-set-parent-scripts.js
CHANGED
@@ -144,26 +144,12 @@
|
|
144 |
$.ajax( ajaxurl, {
|
145 |
type: 'POST',
|
146 |
data: post,
|
147 |
-
dataType:
|
148 |
}).always( function() {
|
149 |
spinner.hide();
|
150 |
}).done( function( response ) {
|
151 |
var responseData = 'no response.data', id = 0;
|
152 |
|
153 |
-
if ( 'xml' === mla.settings.setParentDataType ) {
|
154 |
-
if ( 'string' === typeof( response ) ) {
|
155 |
-
response = { 'success': false, data: response };
|
156 |
-
} else {
|
157 |
-
ajaxResponse = wpAjax.parseAjaxResponse( response );
|
158 |
-
|
159 |
-
if ( ajaxResponse.errors ) {
|
160 |
-
response = { 'success': false, data: wpAjax.broken };
|
161 |
-
} else {
|
162 |
-
response = { 'success': true, data: ajaxResponse.responses[0].data };
|
163 |
-
}
|
164 |
-
}
|
165 |
-
}
|
166 |
-
|
167 |
if ( ! response.success ) {
|
168 |
if ( response.responseData ) {
|
169 |
responseData = response.data;
|
144 |
$.ajax( ajaxurl, {
|
145 |
type: 'POST',
|
146 |
data: post,
|
147 |
+
dataType: 'json'
|
148 |
}).always( function() {
|
149 |
spinner.hide();
|
150 |
}).done( function( response ) {
|
151 |
var responseData = 'no response.data', id = 0;
|
152 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
153 |
if ( ! response.success ) {
|
154 |
if ( response.responseData ) {
|
155 |
responseData = response.data;
|
js/mla-set-parent-scripts.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
(function(a){mla.setParent={init:function(){a("#mla-set-parent-submit").click(function(b){if(!a('#mla-set-parent-response-div input[type="radio"]:checked').length){b.preventDefault()}});a("#mla-set-parent-search").click(function(b){a("#mla-set-parent-paged").val(1);mla.setParent.send()});a("#mla-set-parent-search-div :input").keypress(function(b){if(13==b.which){mla.setParent.send();return false}});a("#mla-set-parent-post-type").change(function(b){a("#mla-set-parent-paged").val(1);mla.setParent.send()});a("#mla-set-parent-previous").click(function(c){var b=+a("#mla-set-parent-paged").val();if(b>1){a("#mla-set-parent-paged").val(b-1)}else{a("#mla-set-parent-paged").val(1)}mla.setParent.send()});a("#mla-set-parent-next").click(function(d){var c=+a("#mla-set-parent-count").val(),b=+a("#mla-set-parent-paged").val(),e=+a("#mla-set-parent-found").val();if(e<c){a("#mla-set-parent-paged").val(1)}else{a("#mla-set-parent-paged").val(b+1)}mla.setParent.send()});a("#mla-set-parent-close-div").click(mla.setParent.close);a("#mla-set-parent-cancel").click(function(b){b.preventDefault();return mla.setParent.close()});a("#mla-set-parent-inside-div").on("click","tr",function(){a(this).find(".found-radio input").prop("checked",true)})},open:function(e,d,b){var c=a("#mla-set-parent-overlay");if(c.length===0){a("body").append('<div id="mla-set-parent-overlay"></div>');mla.setParent.overlay()}c.show();if(e&&d){a("#mla-set-parent-parent").val(e);a("#mla-set-parent-children").val(d)}if(b){a("#mla-set-parent-titles").html(b)}if(mla.settings.useDashicons){a("#mla-set-parent-close-div").addClass("mla-set-parent-close-div-dashicons")}else{a("#mla-set-parent-close-div").html("x")}a("#mla-set-parent-div").show();a("#mla-set-parent-input ").focus().keyup(function(f){if(f.which==27){mla.setParent.close()}});mla.setParent.send();return false},close:function(){a("#mla-set-parent-input").val("");a("#mla-set-parent-post-type").val("all");a("#mla-set-parent-response-div").html("");a("#mla-set-parent-div").hide();a("#mla-set-parent-overlay").hide()},overlay:function(){a("#mla-set-parent-overlay").on("click",function(){mla.setParent.close()})},send:function(){var b={mla_set_parent_search_text:a("#mla-set-parent-input").val(),mla_set_parent_post_type:a("#mla-set-parent-post-type").val(),mla_set_parent_count:a("#mla-set-parent-count").val(),mla_set_parent_paged:a("#mla-set-parent-paged").val(),action:"mla_find_posts",_ajax_nonce:a("#mla-set-parent-ajax-nonce").val()},d=a("#mla-set-parent-search-div .spinner"),c=null;d.show();a.ajax(ajaxurl,{type:"POST",data:b,dataType:
|
1 |
+
(function(a){mla.setParent={init:function(){a("#mla-set-parent-submit").click(function(b){if(!a('#mla-set-parent-response-div input[type="radio"]:checked').length){b.preventDefault()}});a("#mla-set-parent-search").click(function(b){a("#mla-set-parent-paged").val(1);mla.setParent.send()});a("#mla-set-parent-search-div :input").keypress(function(b){if(13==b.which){mla.setParent.send();return false}});a("#mla-set-parent-post-type").change(function(b){a("#mla-set-parent-paged").val(1);mla.setParent.send()});a("#mla-set-parent-previous").click(function(c){var b=+a("#mla-set-parent-paged").val();if(b>1){a("#mla-set-parent-paged").val(b-1)}else{a("#mla-set-parent-paged").val(1)}mla.setParent.send()});a("#mla-set-parent-next").click(function(d){var c=+a("#mla-set-parent-count").val(),b=+a("#mla-set-parent-paged").val(),e=+a("#mla-set-parent-found").val();if(e<c){a("#mla-set-parent-paged").val(1)}else{a("#mla-set-parent-paged").val(b+1)}mla.setParent.send()});a("#mla-set-parent-close-div").click(mla.setParent.close);a("#mla-set-parent-cancel").click(function(b){b.preventDefault();return mla.setParent.close()});a("#mla-set-parent-inside-div").on("click","tr",function(){a(this).find(".found-radio input").prop("checked",true)})},open:function(e,d,b){var c=a("#mla-set-parent-overlay");if(c.length===0){a("body").append('<div id="mla-set-parent-overlay"></div>');mla.setParent.overlay()}c.show();if(e&&d){a("#mla-set-parent-parent").val(e);a("#mla-set-parent-children").val(d)}if(b){a("#mla-set-parent-titles").html(b)}if(mla.settings.useDashicons){a("#mla-set-parent-close-div").addClass("mla-set-parent-close-div-dashicons")}else{a("#mla-set-parent-close-div").html("x")}a("#mla-set-parent-div").show();a("#mla-set-parent-input ").focus().keyup(function(f){if(f.which==27){mla.setParent.close()}});mla.setParent.send();return false},close:function(){a("#mla-set-parent-input").val("");a("#mla-set-parent-post-type").val("all");a("#mla-set-parent-response-div").html("");a("#mla-set-parent-div").hide();a("#mla-set-parent-overlay").hide()},overlay:function(){a("#mla-set-parent-overlay").on("click",function(){mla.setParent.close()})},send:function(){var b={mla_set_parent_search_text:a("#mla-set-parent-input").val(),mla_set_parent_post_type:a("#mla-set-parent-post-type").val(),mla_set_parent_count:a("#mla-set-parent-count").val(),mla_set_parent_paged:a("#mla-set-parent-paged").val(),action:"mla_find_posts",_ajax_nonce:a("#mla-set-parent-ajax-nonce").val()},d=a("#mla-set-parent-search-div .spinner"),c=null;d.show();a.ajax(ajaxurl,{type:"POST",data:b,dataType:"json"}).always(function(){d.hide()}).done(function(e){var f="no response.data",g=0;if(!e.success){if(e.responseData){f=e.data}a("#mla-set-parent-response-div").text(mla.settings.ajaxDoneError+" ("+f+")")}else{a("#mla-set-parent-response-div").html(e.data);a("#mla-set-parent-response-div table tbody tr:eq(0)").before(a("#found-0-row").clone());g=a("#mla-set-parent-parent").val();a("#mla-set-parent-response-div #found-"+g).each(function(h,i){a(this).prop("checked",true)})}}).fail(function(f,e){if(200==f.status){a("#mla-set-parent-response-div").text("("+e+") "+f.responseText)}else{a("#mla-set-parent-response-div").text(mla.settings.ajaxFailError+" ("+e+"), jqXHR( "+f.status+", "+f.statusText+", "+f.responseText+")")}})}};a(document).ready(function(){mla.setParent.init()})})(jQuery);
|
languages/media-library-assistant-en_US.pot
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Media Library Assistant\n"
|
4 |
-
"POT-Creation-Date: 2014-
|
5 |
-
"PO-Revision-Date: 2014-
|
6 |
"Last-Translator: David Lingren <david@fairtradejudaica.org>\n"
|
7 |
"Language-Team: David Lingren <david@fairtradejudaica.org>\n"
|
8 |
"Language: en_US\n"
|
@@ -89,12 +89,12 @@ msgid ""
|
|
89 |
msgstr ""
|
90 |
|
91 |
#. translators: 1: function name 2: non-array value
|
92 |
-
#: includes/class-mla-data.php:1256 includes/class-mla-main.php:
|
93 |
-
#: includes/class-mla-main.php:
|
94 |
#: includes/class-mla-mime-types.php:483
|
95 |
#: includes/class-mla-mime-types.php:1218
|
96 |
-
#: includes/class-mla-mime-types.php:
|
97 |
-
#: includes/class-mla-settings.php:
|
98 |
#, php-format
|
99 |
msgctxt "error_log"
|
100 |
msgid "ERROR: %1$s non-array \"%2$s\""
|
@@ -140,511 +140,511 @@ msgid "DEBUG: _execute_list_table_query SQL_request = \"%1$s\"."
|
|
140 |
msgstr ""
|
141 |
|
142 |
#. translators: 1: search filter details
|
143 |
-
#: includes/class-mla-data.php:
|
144 |
#, php-format
|
145 |
msgid "mla_query_posts_search_filter not numeric, = \"%1$s\"."
|
146 |
msgstr ""
|
147 |
|
148 |
#. translators: 1: search filter details
|
149 |
-
#: includes/class-mla-data.php:
|
150 |
#, php-format
|
151 |
msgctxt "error_log"
|
152 |
msgid "DEBUG: mla_query_posts_search_filter not numeric, = \"%1$s\"."
|
153 |
msgstr ""
|
154 |
|
155 |
#. translators: 1: where filter details
|
156 |
-
#: includes/class-mla-data.php:
|
157 |
#, php-format
|
158 |
msgid "mla_query_posts_where_filter = \"%1$s\"."
|
159 |
msgstr ""
|
160 |
|
161 |
#. translators: 1: where filter details
|
162 |
-
#: includes/class-mla-data.php:
|
163 |
#, php-format
|
164 |
msgctxt "error_log"
|
165 |
msgid "DEBUG: mla_query_posts_where_filter = \"%1$s\"."
|
166 |
msgstr ""
|
167 |
|
168 |
#. translators: 1: join filter details
|
169 |
-
#: includes/class-mla-data.php:
|
170 |
#, php-format
|
171 |
msgid "mla_query_posts_join_filter = \"%1$s\"."
|
172 |
msgstr ""
|
173 |
|
174 |
#. translators: 1: join filter details
|
175 |
-
#: includes/class-mla-data.php:
|
176 |
#, php-format
|
177 |
msgctxt "error_log"
|
178 |
msgid "DEBUG: mla_query_posts_join_filter = \"%1$s\"."
|
179 |
msgstr ""
|
180 |
|
181 |
#. translators: 1: orderby details details
|
182 |
-
#: includes/class-mla-data.php:
|
183 |
#, php-format
|
184 |
msgid "mla_query_posts_orderby_filter = \"%1$s\"."
|
185 |
msgstr ""
|
186 |
|
187 |
#. translators: 1: orderby details details
|
188 |
-
#: includes/class-mla-data.php:
|
189 |
#, php-format
|
190 |
msgctxt "error_log"
|
191 |
msgid "DEBUG: mla_query_posts_orderby_filter = \"%1$s\"."
|
192 |
msgstr ""
|
193 |
|
194 |
#. translators: 1: SQL clauses
|
195 |
-
#: includes/class-mla-data.php:
|
196 |
#, php-format
|
197 |
msgid "mla_query_posts_clauses_filter = \"%1$s\"."
|
198 |
msgstr ""
|
199 |
|
200 |
#. translators: 1: SQL clauses
|
201 |
-
#: includes/class-mla-data.php:
|
202 |
#, php-format
|
203 |
msgctxt "error_log"
|
204 |
msgid "DEBUG: mla_query_posts_clauses_filter = \"%1$s\"."
|
205 |
msgstr ""
|
206 |
|
207 |
#. translators: 1: SQL clauses
|
208 |
-
#: includes/class-mla-data.php:
|
209 |
#, php-format
|
210 |
msgid "mla_query_posts_clauses_request_filter = \"%1$s\"."
|
211 |
msgstr ""
|
212 |
|
213 |
#. translators: 1: SQL clauses
|
214 |
-
#: includes/class-mla-data.php:
|
215 |
#, php-format
|
216 |
msgctxt "error_log"
|
217 |
msgid "DEBUG: mla_query_posts_clauses_request_filter = \"%1$s\"."
|
218 |
msgstr ""
|
219 |
|
220 |
#. translators: 1: post ID
|
221 |
-
#: includes/class-mla-data.php:
|
222 |
#, php-format
|
223 |
msgctxt "error_log"
|
224 |
msgid "ERROR: mla_get_attachment_by_id(%1$d) not found."
|
225 |
msgstr ""
|
226 |
|
227 |
#. translators: 1: post ID 2: post_type
|
228 |
-
#: includes/class-mla-data.php:
|
229 |
#, php-format
|
230 |
msgctxt "error_log"
|
231 |
msgid "ERROR: mla_get_attachment_by_id(%1$d) wrong post_type \"%2$s\"."
|
232 |
msgstr ""
|
233 |
|
234 |
-
#: includes/class-mla-data.php:
|
235 |
msgid "NO REFERENCE TESTS"
|
236 |
msgstr ""
|
237 |
|
238 |
-
#: includes/class-mla-data.php:
|
239 |
-
#: includes/class-mla-options.php:
|
240 |
msgid "ORPHAN"
|
241 |
msgstr ""
|
242 |
|
243 |
-
#: includes/class-mla-data.php:
|
244 |
msgid "UNUSED"
|
245 |
msgstr ""
|
246 |
|
247 |
-
#: includes/class-mla-data.php:
|
248 |
msgid "UNATTACHED"
|
249 |
msgstr ""
|
250 |
|
251 |
-
#: includes/class-mla-data.php:
|
252 |
msgid "INVALID PARENT"
|
253 |
msgstr ""
|
254 |
|
255 |
#. translators: 1: post_type, 2: post_title, 3: post ID, 4: query string, 5: error message
|
256 |
-
#: includes/class-mla-data.php:
|
257 |
#, php-format
|
258 |
msgid "(%1$s) %2$s (ID %3$d) query \"%4$s\" failed, returning \"%5$s\""
|
259 |
msgstr ""
|
260 |
|
261 |
#. translators: 1: index
|
262 |
-
#: includes/class-mla-data.php:
|
263 |
#, php-format
|
264 |
msgctxt "error_log"
|
265 |
msgid "ERROR: _build_pdf_indirect_objects bad value at $index = \"%1$d\"."
|
266 |
msgstr ""
|
267 |
|
268 |
#. translators: 1: source offset 2: nest level
|
269 |
-
#: includes/class-mla-data.php:
|
270 |
#, php-format
|
271 |
msgctxt "error_log"
|
272 |
msgid "ERROR: _parse_pdf_dictionary offset = %1$d, nest = %2$d."
|
273 |
msgstr ""
|
274 |
|
275 |
#. translators: 1: dictionary excerpt
|
276 |
-
#: includes/class-mla-data.php:
|
277 |
#, php-format
|
278 |
msgctxt "error_log"
|
279 |
msgid "ERROR: _parse_pdf_dictionary no end delimiter dump = %1$s."
|
280 |
msgstr ""
|
281 |
|
282 |
#. translators: 1: entry name 2: value excerpt
|
283 |
-
#: includes/class-mla-data.php:
|
284 |
#, php-format
|
285 |
msgctxt "error_log"
|
286 |
msgid "ERROR: _parse_pdf_dictionary bad value [ %1$s ] dump = %2$s"
|
287 |
msgstr ""
|
288 |
|
289 |
-
#: includes/class-mla-data.php:
|
290 |
msgctxt "error_log"
|
291 |
msgid "ERROR: _parse_xmp_metadata xml_parse_into_struct failed."
|
292 |
msgstr ""
|
293 |
|
294 |
-
#: includes/class-mla-data.php:
|
295 |
msgctxt "error_log"
|
296 |
msgid "ERROR: _parse_xmp_metadata set option failed."
|
297 |
msgstr ""
|
298 |
|
299 |
#. translators: 1: path and file
|
300 |
-
#: includes/class-mla-data.php:
|
301 |
#, php-format
|
302 |
msgctxt "error_log"
|
303 |
msgid "ERROR: File \"%1$s\", startxref not found."
|
304 |
msgstr ""
|
305 |
|
306 |
#. translators: 1: meta_key
|
307 |
-
#: includes/class-mla-data.php:
|
308 |
#, php-format
|
309 |
msgid "Deleting meta:%1$s"
|
310 |
msgstr ""
|
311 |
|
312 |
#. translators: 1: meta_key
|
313 |
-
#: includes/class-mla-data.php:
|
314 |
#, php-format
|
315 |
msgid "ERROR: meta:%1$s not found"
|
316 |
msgstr ""
|
317 |
|
318 |
#. translators: 1: meta_key 2: meta_value
|
319 |
-
#: includes/class-mla-data.php:
|
320 |
#, php-format
|
321 |
msgid "Adding meta:%1$s = %2$s"
|
322 |
msgstr ""
|
323 |
|
324 |
#. translators: 1: meta_key
|
325 |
-
#: includes/class-mla-data.php:
|
326 |
#, php-format
|
327 |
msgid "ERROR: Adding meta:%1$s; not found"
|
328 |
msgstr ""
|
329 |
|
330 |
#. translators: 1: meta_key
|
331 |
-
#: includes/class-mla-data.php:
|
332 |
#, php-format
|
333 |
msgid "Deleting Null meta:%1$s"
|
334 |
msgstr ""
|
335 |
|
336 |
#. translators: 1: element name 2: old_value 3: new_value
|
337 |
-
#: includes/class-mla-data.php:
|
338 |
-
#: includes/class-mla-data.php:
|
339 |
-
#: includes/class-mla-data.php:
|
340 |
-
#: includes/class-mla-data.php:
|
341 |
-
#: includes/class-mla-data.php:
|
342 |
-
#: includes/class-mla-data.php:
|
343 |
#: includes/class-mla-mime-types.php:1052
|
344 |
-
#: includes/class-mla-mime-types.php:
|
345 |
#, php-format
|
346 |
msgid "Changing %1$s from \"%2$s\" to \"%3$s\""
|
347 |
msgstr ""
|
348 |
|
349 |
#. translators: 1: meta_key
|
350 |
-
#: includes/class-mla-data.php:
|
351 |
#, php-format
|
352 |
msgid "ERROR: Changing meta:%1$s; not found"
|
353 |
msgstr ""
|
354 |
|
355 |
#. translators: 1: meta_key
|
356 |
-
#: includes/class-mla-data.php:
|
357 |
#, php-format
|
358 |
msgid "Deleting %1$s"
|
359 |
msgstr ""
|
360 |
|
361 |
#. translators: 1: meta_key 2: new_value
|
362 |
-
#: includes/class-mla-data.php:
|
363 |
#, php-format
|
364 |
msgid "Adding %1$s = [%2$s]"
|
365 |
msgstr ""
|
366 |
|
367 |
#. translators: 1: meta_key 2: meta_value
|
368 |
-
#: includes/class-mla-data.php:
|
369 |
#, php-format
|
370 |
msgid "Adding %1$s = %2$s"
|
371 |
msgstr ""
|
372 |
|
373 |
#. translators: 1: meta_key
|
374 |
-
#: includes/class-mla-data.php:
|
375 |
#, php-format
|
376 |
msgid "Deleting old %1$s values"
|
377 |
msgstr ""
|
378 |
|
379 |
#. translators: 1: meta_key 2: old_value 3: new_value 4: update count
|
380 |
-
#: includes/class-mla-data.php:
|
381 |
#, php-format
|
382 |
msgid "Changing %1$s from \"%2$s\" to \"%3$s\"; %4$d updates"
|
383 |
msgstr ""
|
384 |
|
385 |
-
#: includes/class-mla-data.php:
|
386 |
msgid "ERROR: Could not retrieve Attachment."
|
387 |
msgstr ""
|
388 |
|
389 |
-
#: includes/class-mla-data.php:
|
390 |
-
#: includes/class-mla-main.php:
|
391 |
-
#: includes/class-mla-main.php:
|
392 |
-
#: includes/class-mla-options.php:
|
393 |
#: includes/mla-main-search-box-template.php:42
|
394 |
#: includes/mla-media-modal-js-template.php:32
|
395 |
msgid "Title"
|
396 |
msgstr ""
|
397 |
|
398 |
#. translators: 1: old_value
|
399 |
-
#: includes/class-mla-data.php:
|
400 |
#, php-format
|
401 |
msgid "ERROR: Could not change Name/Slug \"%1$s\"; name already exists"
|
402 |
msgstr ""
|
403 |
|
404 |
-
#: includes/class-mla-data.php:
|
405 |
-
#: includes/class-mla-main.php:
|
406 |
msgid "Name/Slug"
|
407 |
msgstr ""
|
408 |
|
409 |
#. translators: 1: old_value
|
410 |
-
#: includes/class-mla-data.php:
|
411 |
#, php-format
|
412 |
msgid "Deleting ALT Text, was \"%1$s\""
|
413 |
msgstr ""
|
414 |
|
415 |
#. translators: 1: old_value
|
416 |
-
#: includes/class-mla-data.php:
|
417 |
#, php-format
|
418 |
msgid "ERROR: Could not delete ALT Text, remains \"%1$s\""
|
419 |
msgstr ""
|
420 |
|
421 |
-
#: includes/class-mla-data.php:
|
422 |
-
#: includes/class-mla-main.php:
|
423 |
-
#: includes/class-mla-options.php:
|
424 |
#: includes/mla-main-search-box-template.php:44
|
425 |
#: includes/mla-media-modal-js-template.php:40
|
426 |
msgid "ALT Text"
|
427 |
msgstr ""
|
428 |
|
429 |
#. translators: 1: old_value 2: new_value
|
430 |
-
#: includes/class-mla-data.php:
|
431 |
#, php-format
|
432 |
msgid "ERROR: Could not change ALT Text from \"%1$s\" to \"%2$s\""
|
433 |
msgstr ""
|
434 |
|
435 |
-
#: includes/class-mla-data.php:
|
436 |
-
#: includes/class-mla-main.php:
|
437 |
-
#: includes/class-mla-options.php:
|
438 |
#: includes/mla-main-search-box-template.php:45
|
439 |
#: includes/mla-media-modal-js-template.php:45
|
440 |
msgid "Caption"
|
441 |
msgstr ""
|
442 |
|
443 |
-
#: includes/class-mla-data.php:
|
444 |
-
#: includes/class-mla-main.php:
|
445 |
-
#: includes/class-mla-options.php:
|
446 |
-
#: includes/class-mla-settings.php:
|
447 |
-
#: includes/class-mla-settings.php:
|
448 |
#: includes/mla-main-search-box-template.php:46
|
449 |
#: includes/mla-media-modal-js-template.php:49
|
450 |
msgid "Description"
|
451 |
msgstr ""
|
452 |
|
453 |
-
#: includes/class-mla-data.php:
|
454 |
-
#: includes/class-mla-list-table.php:
|
455 |
-
#: includes/class-mla-options.php:
|
456 |
msgid "Parent"
|
457 |
msgstr ""
|
458 |
|
459 |
-
#: includes/class-mla-data.php:
|
460 |
-
#: includes/class-mla-edit-media.php:
|
461 |
-
#: includes/class-mla-main.php:
|
462 |
-
#: includes/class-mla-settings.php:
|
463 |
msgid "Menu Order"
|
464 |
msgstr ""
|
465 |
|
466 |
-
#: includes/class-mla-data.php:
|
467 |
-
#: includes/class-mla-main.php:
|
468 |
-
#: includes/class-mla-main.php:
|
469 |
msgid "Author"
|
470 |
msgstr ""
|
471 |
|
472 |
-
#: includes/class-mla-data.php:
|
473 |
msgid "Comments"
|
474 |
msgstr ""
|
475 |
|
476 |
-
#: includes/class-mla-data.php:
|
477 |
msgid "Pings"
|
478 |
msgstr ""
|
479 |
|
480 |
-
#: includes/class-mla-data.php:
|
481 |
msgid "Adding"
|
482 |
msgstr ""
|
483 |
|
484 |
-
#: includes/class-mla-data.php:
|
485 |
msgid "Removing"
|
486 |
msgstr ""
|
487 |
|
488 |
-
#: includes/class-mla-data.php:
|
489 |
msgid "Replacing"
|
490 |
msgstr ""
|
491 |
|
492 |
-
#: includes/class-mla-data.php:
|
493 |
msgid "Ignoring"
|
494 |
msgstr ""
|
495 |
|
496 |
#. translators: 1: action_name, 2: taxonomy
|
497 |
-
#: includes/class-mla-data.php:
|
498 |
#, php-format
|
499 |
msgid "%1$s \"%2$s\" terms"
|
500 |
msgstr ""
|
501 |
|
502 |
#. translators: 1: taxonomy
|
503 |
-
#: includes/class-mla-data.php:
|
504 |
#, php-format
|
505 |
msgid "You cannot assign \"%1$s\" terms"
|
506 |
msgstr ""
|
507 |
|
508 |
#. translators: 1: post ID
|
509 |
-
#: includes/class-mla-data.php:
|
510 |
#, php-format
|
511 |
msgid "Item %1$d, no changes detected."
|
512 |
msgstr ""
|
513 |
|
514 |
#. translators: 1: post ID
|
515 |
-
#: includes/class-mla-data.php:
|
516 |
#, php-format
|
517 |
msgid "Item %1$d updated."
|
518 |
msgstr ""
|
519 |
|
520 |
#. translators: 1: post ID
|
521 |
-
#: includes/class-mla-data.php:
|
522 |
#, php-format
|
523 |
msgid "ERROR: Item %1$d update failed."
|
524 |
msgstr ""
|
525 |
|
526 |
-
#: includes/class-mla-data.php:
|
527 |
-
#: includes/class-mla-edit-media.php:170 includes/class-mla-main.php:
|
528 |
-
#: includes/class-mla-main.php:
|
529 |
-
#: includes/class-mla-settings.php:
|
530 |
msgctxt "tag_delimiter"
|
531 |
msgid ","
|
532 |
msgstr ""
|
533 |
|
534 |
-
#: includes/class-mla-edit-media.php:172 includes/class-mla-main.php:
|
535 |
msgid "An ajax.fail error has occurred. Please reload the page and try again."
|
536 |
msgstr ""
|
537 |
|
538 |
-
#: includes/class-mla-edit-media.php:173 includes/class-mla-main.php:
|
539 |
msgid "An ajax.done error has occurred. Please reload the page and try again."
|
540 |
msgstr ""
|
541 |
|
542 |
-
#: includes/class-mla-edit-media.php:
|
543 |
msgid "Custom field mapping updated."
|
544 |
msgstr ""
|
545 |
|
546 |
-
#: includes/class-mla-edit-media.php:
|
547 |
msgid "IPTC/EXIF mapping updated."
|
548 |
msgstr ""
|
549 |
|
550 |
#. translators: date_i18n format for last modified date and time
|
551 |
-
#: includes/class-mla-edit-media.php:
|
552 |
msgid "M j, Y @ G:i"
|
553 |
msgstr ""
|
554 |
|
555 |
-
#: includes/class-mla-edit-media.php:
|
556 |
msgid "Last modified"
|
557 |
msgstr ""
|
558 |
|
559 |
-
#: includes/class-mla-edit-media.php:
|
560 |
msgid "Map Custom Field metadata for this item"
|
561 |
msgstr ""
|
562 |
|
563 |
-
#: includes/class-mla-edit-media.php:
|
564 |
msgid "Map Custom Field Metadata"
|
565 |
msgstr ""
|
566 |
|
567 |
-
#: includes/class-mla-edit-media.php:
|
568 |
msgid "Map IPTC/EXIF metadata for this item"
|
569 |
msgstr ""
|
570 |
|
571 |
-
#: includes/class-mla-edit-media.php:
|
572 |
msgid "Map IPTC/EXIF Metadata"
|
573 |
msgstr ""
|
574 |
|
575 |
-
#: includes/class-mla-edit-media.php:
|
576 |
-
#: includes/class-mla-main.php:
|
577 |
msgid "Parent Info"
|
578 |
msgstr ""
|
579 |
|
580 |
-
#: includes/class-mla-edit-media.php:
|
581 |
msgid "Attachment Metadata"
|
582 |
msgstr ""
|
583 |
|
584 |
-
#: includes/class-mla-edit-media.php:
|
585 |
-
#: includes/class-mla-main.php:
|
586 |
msgid "Featured in"
|
587 |
msgstr ""
|
588 |
|
589 |
-
#: includes/class-mla-edit-media.php:
|
590 |
-
#: includes/class-mla-main.php:
|
591 |
msgid "Inserted in"
|
592 |
msgstr ""
|
593 |
|
594 |
-
#: includes/class-mla-edit-media.php:
|
595 |
-
#: includes/class-mla-main.php:
|
596 |
-
#: includes/class-mla-settings.php:
|
597 |
msgid "Gallery in"
|
598 |
msgstr ""
|
599 |
|
600 |
-
#: includes/class-mla-edit-media.php:
|
601 |
-
#: includes/class-mla-main.php:
|
602 |
-
#: includes/class-mla-settings.php:
|
603 |
msgid "MLA Gallery in"
|
604 |
msgstr ""
|
605 |
|
606 |
#. translators: 1: function name 2: template key
|
607 |
-
#: includes/class-mla-edit-media.php:
|
608 |
-
#: includes/class-mla-settings.php:
|
609 |
#, php-format
|
610 |
msgctxt "error_log"
|
611 |
msgid "ERROR: %1$s discarding \"%2$s\"; no title/order"
|
612 |
msgstr ""
|
613 |
|
614 |
-
#: includes/class-mla-edit-media.php:
|
615 |
msgid "Post Parent"
|
616 |
msgstr ""
|
617 |
|
618 |
-
#: includes/class-mla-edit-media.php:
|
619 |
msgid "Select Parent"
|
620 |
msgstr ""
|
621 |
|
622 |
-
#: includes/class-mla-edit-media.php:
|
623 |
#: includes/class-mla-upload-optional-list-table.php:281
|
624 |
msgid "Select"
|
625 |
msgstr ""
|
626 |
|
627 |
-
#: includes/class-mla-edit-media.php:
|
628 |
-
#: includes/class-mla-edit-media.php:
|
629 |
-
#: includes/class-mla-list-table.php:
|
630 |
-
#: includes/class-mla-list-table.php:
|
631 |
-
#: includes/class-mla-list-table.php:
|
632 |
-
#: includes/class-mla-main.php:
|
633 |
-
#: includes/class-mla-main.php:
|
634 |
msgid "PARENT"
|
635 |
msgstr ""
|
636 |
|
637 |
-
#: includes/class-mla-edit-media.php:
|
638 |
msgid "Most Used"
|
639 |
msgstr ""
|
640 |
|
641 |
#. translators: %s: add new taxonomy label
|
642 |
-
#: includes/class-mla-edit-media.php:
|
643 |
#, php-format
|
644 |
msgid "+ %s"
|
645 |
msgstr ""
|
646 |
|
647 |
-
#: includes/class-mla-edit-media.php:
|
648 |
msgid "? Search"
|
649 |
msgstr ""
|
650 |
|
@@ -652,7 +652,7 @@ msgstr ""
|
|
652 |
msgid "All"
|
653 |
msgstr ""
|
654 |
|
655 |
-
#: includes/class-mla-list-table.php:211 includes/class-mla-settings.php:
|
656 |
#: includes/class-mla-view-list-table.php:379
|
657 |
#: includes/class-mla-view-list-table.php:395
|
658 |
msgid "No"
|
@@ -764,15 +764,15 @@ msgid "Attached to"
|
|
764 |
msgstr ""
|
765 |
|
766 |
#: includes/class-mla-list-table.php:513
|
767 |
-
#: includes/class-mla-list-table.php:
|
768 |
-
#: includes/class-mla-options.php:
|
769 |
-
#: includes/class-mla-options.php:
|
770 |
msgid "None"
|
771 |
msgstr ""
|
772 |
|
773 |
#: includes/class-mla-list-table.php:519 includes/class-mla-list-table.php:547
|
774 |
-
#: includes/class-mla-list-table.php:
|
775 |
-
#: includes/class-mla-list-table.php:
|
776 |
msgid "Filter by"
|
777 |
msgstr ""
|
778 |
|
@@ -789,12 +789,20 @@ msgstr ""
|
|
789 |
msgid "column_default: %1$s, %2$s"
|
790 |
msgstr ""
|
791 |
|
792 |
-
#: includes/class-mla-list-table.php:
|
793 |
-
#: includes/class-mla-list-table.php:
|
794 |
-
#: includes/class-mla-
|
795 |
-
#: includes/class-mla-list-table.php:
|
796 |
-
|
797 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
798 |
#: includes/class-mla-upload-list-table.php:312
|
799 |
#: includes/class-mla-upload-list-table.php:610
|
800 |
#: includes/class-mla-view-list-table.php:302
|
@@ -802,169 +810,163 @@ msgstr ""
|
|
802 |
msgid "Edit"
|
803 |
msgstr ""
|
804 |
|
805 |
-
#: includes/class-mla-list-table.php:
|
806 |
msgid "Restore this item from the Trash"
|
807 |
msgstr ""
|
808 |
|
809 |
-
#: includes/class-mla-list-table.php:
|
810 |
-
#: includes/class-mla-list-table.php:
|
811 |
msgid "Restore"
|
812 |
msgstr ""
|
813 |
|
814 |
-
#: includes/class-mla-list-table.php:
|
815 |
-
#: includes/class-mla-upload-list-table.php:312
|
816 |
-
#: includes/class-mla-view-list-table.php:302
|
817 |
-
msgid "Edit this item"
|
818 |
-
msgstr ""
|
819 |
-
|
820 |
-
#: includes/class-mla-list-table.php:650
|
821 |
#: includes/class-mla-upload-list-table.php:314
|
822 |
#: includes/class-mla-view-list-table.php:304
|
823 |
msgid "Edit this item inline"
|
824 |
msgstr ""
|
825 |
|
826 |
-
#: includes/class-mla-list-table.php:
|
827 |
-
#: includes/class-mla-options.php:
|
828 |
#: includes/class-mla-upload-list-table.php:314
|
829 |
#: includes/class-mla-view-list-table.php:304
|
830 |
msgid "Quick Edit"
|
831 |
msgstr ""
|
832 |
|
833 |
-
#: includes/class-mla-list-table.php:
|
834 |
msgid "Move this item to the Trash"
|
835 |
msgstr ""
|
836 |
|
837 |
-
#: includes/class-mla-list-table.php:
|
838 |
-
#: includes/class-mla-list-table.php:
|
839 |
msgid "Move to Trash"
|
840 |
msgstr ""
|
841 |
|
842 |
-
#: includes/class-mla-list-table.php:
|
843 |
#: includes/class-mla-upload-list-table.php:318
|
844 |
#: includes/class-mla-view-list-table.php:310
|
845 |
msgid "Delete this item Permanently"
|
846 |
msgstr ""
|
847 |
|
848 |
-
#: includes/class-mla-list-table.php:
|
849 |
-
#: includes/class-mla-list-table.php:
|
850 |
-
#: includes/class-mla-list-table.php:
|
851 |
#: includes/class-mla-upload-list-table.php:318
|
852 |
#: includes/class-mla-view-list-table.php:310
|
853 |
#: includes/class-mla-view-list-table.php:514
|
854 |
msgid "Delete Permanently"
|
855 |
msgstr ""
|
856 |
|
857 |
-
#: includes/class-mla-list-table.php:
|
858 |
msgid "View"
|
859 |
msgstr ""
|
860 |
|
861 |
-
#: includes/class-mla-list-table.php:
|
862 |
-
#: includes/class-mla-main.php:
|
863 |
msgid "(no title)"
|
864 |
msgstr ""
|
865 |
|
866 |
-
#: includes/class-mla-list-table.php:
|
867 |
msgid "Filter by Parent ID"
|
868 |
msgstr ""
|
869 |
|
870 |
-
#: includes/class-mla-list-table.php:
|
871 |
msgid "(no title: bad ID)"
|
872 |
msgstr ""
|
873 |
|
874 |
-
#: includes/class-mla-list-table.php:
|
875 |
-
#: includes/class-mla-list-table.php:
|
876 |
-
#: includes/class-mla-list-table.php:
|
877 |
-
#: includes/class-mla-main.php:
|
878 |
-
#: includes/class-mla-main.php:
|
879 |
#: includes/class-mla-options.php:464 includes/class-mla-options.php:473
|
880 |
#: includes/class-mla-options.php:482
|
881 |
msgid "Disabled"
|
882 |
msgstr ""
|
883 |
|
884 |
-
#: includes/class-mla-list-table.php:
|
885 |
-
#: includes/class-mla-settings.php:
|
886 |
msgid "MIME Type"
|
887 |
msgstr ""
|
888 |
|
889 |
-
#: includes/class-mla-list-table.php:
|
890 |
-
#: includes/class-mla-list-table.php:
|
891 |
msgid "Unpublished"
|
892 |
msgstr ""
|
893 |
|
894 |
#. translators: 1: upload/last modified date and time
|
895 |
-
#: includes/class-mla-list-table.php:
|
896 |
-
#: includes/class-mla-list-table.php:
|
897 |
#, php-format
|
898 |
msgid "%1$s from now"
|
899 |
msgstr ""
|
900 |
|
901 |
#. translators: 1: upload/last modified date and time
|
902 |
-
#: includes/class-mla-list-table.php:
|
903 |
-
#: includes/class-mla-list-table.php:
|
904 |
#, php-format
|
905 |
msgid "%1$s ago"
|
906 |
msgstr ""
|
907 |
|
908 |
#. translators: format for upload/last modified date
|
909 |
#. translators: date format in table columns, see http://php.net/date
|
910 |
-
#: includes/class-mla-list-table.php:
|
911 |
-
#: includes/class-mla-list-table.php:
|
912 |
-
#: includes/class-mla-list-table.php:
|
913 |
msgid "Y/m/d"
|
914 |
msgstr ""
|
915 |
|
916 |
-
#: includes/class-mla-list-table.php:
|
917 |
msgid "Filter by Author ID"
|
918 |
msgstr ""
|
919 |
|
920 |
-
#: includes/class-mla-list-table.php:
|
921 |
msgctxt "post_mime_types_singular"
|
922 |
msgid "Unattached"
|
923 |
msgstr ""
|
924 |
|
925 |
-
#: includes/class-mla-list-table.php:
|
926 |
msgid "Set Parent"
|
927 |
msgstr ""
|
928 |
|
929 |
-
#: includes/class-mla-list-table.php:
|
930 |
msgctxt "uploaded files"
|
931 |
msgid "All"
|
932 |
msgid_plural "All"
|
933 |
msgstr[0] ""
|
934 |
msgstr[1] ""
|
935 |
|
936 |
-
#: includes/class-mla-list-table.php:
|
937 |
msgid "Filter"
|
938 |
msgstr ""
|
939 |
|
940 |
-
#: includes/class-mla-list-table.php:
|
941 |
#: includes/mla-media-modal-js-template.php:58
|
942 |
msgid "Terms Search"
|
943 |
msgstr ""
|
944 |
|
945 |
-
#: includes/class-mla-list-table.php:
|
946 |
msgid "Clear Filter-by"
|
947 |
msgstr ""
|
948 |
|
949 |
-
#: includes/class-mla-list-table.php:
|
950 |
msgid "Empty Trash"
|
951 |
msgstr ""
|
952 |
|
953 |
-
#: includes/class-mla-main.php:
|
954 |
-
#: includes/class-mla-settings.php:
|
955 |
msgid "Error while saving the changes."
|
956 |
msgstr ""
|
957 |
|
958 |
-
#: includes/class-mla-main.php:
|
959 |
-
#: includes/class-mla-settings.php:
|
960 |
msgid "Remove From Bulk Edit"
|
961 |
msgstr ""
|
962 |
|
963 |
-
#: includes/class-mla-main.php:
|
964 |
msgid "Bulk Edit items"
|
965 |
msgstr ""
|
966 |
|
967 |
-
#: includes/class-mla-main.php:
|
968 |
#, php-format
|
969 |
msgid "Item permanently deleted."
|
970 |
msgid_plural "%d items permanently deleted."
|
@@ -972,45 +974,45 @@ msgstr[0] ""
|
|
972 |
msgstr[1] ""
|
973 |
|
974 |
#. translators: 1: post ID
|
975 |
-
#: includes/class-mla-main.php:
|
976 |
#, php-format
|
977 |
msgid "Item %1$d moved to Trash."
|
978 |
msgstr ""
|
979 |
|
980 |
-
#: includes/class-mla-main.php:
|
981 |
msgid "Entries per page"
|
982 |
msgstr ""
|
983 |
|
984 |
-
#: includes/class-mla-main.php:
|
985 |
msgid "You do not have permission to manage attachments."
|
986 |
msgstr ""
|
987 |
|
988 |
#. translators: 1: bulk_action, e.g., delete, edit, restore, trash
|
989 |
-
#: includes/class-mla-main.php:
|
990 |
-
#: includes/class-mla-settings.php:
|
991 |
#, php-format
|
992 |
msgid "Unknown bulk action %1$s"
|
993 |
msgstr ""
|
994 |
|
995 |
#. translators: 1: action name, e.g., edit
|
996 |
-
#: includes/class-mla-main.php:
|
997 |
-
#: includes/class-mla-settings.php:
|
998 |
#, php-format
|
999 |
msgid "Bulk Action %1$s - no items selected."
|
1000 |
msgstr ""
|
1001 |
|
1002 |
-
#: includes/class-mla-main.php:
|
1003 |
-
#: includes/class-mla-main.php:
|
1004 |
-
#: includes/class-mla-settings.php:
|
1005 |
-
#: includes/class-mla-settings.php:
|
1006 |
-
#: includes/class-mla-settings.php:
|
1007 |
-
#: includes/class-mla-settings.php:
|
1008 |
-
#: includes/class-mla-settings.php:
|
1009 |
#: includes/class-mla-shortcodes.php:1335
|
1010 |
msgid "ERROR:"
|
1011 |
msgstr ""
|
1012 |
|
1013 |
-
#: includes/class-mla-main.php:
|
1014 |
#, php-format
|
1015 |
msgctxt "deleted items"
|
1016 |
msgid "%s item deleted."
|
@@ -1018,324 +1020,324 @@ msgid_plural "%s items deleted."
|
|
1018 |
msgstr[0] ""
|
1019 |
msgstr[1] ""
|
1020 |
|
1021 |
-
#: includes/class-mla-main.php:
|
1022 |
msgid "No items deleted."
|
1023 |
msgstr ""
|
1024 |
|
1025 |
-
#: includes/class-mla-main.php:
|
1026 |
msgid "Edit single item"
|
1027 |
msgstr ""
|
1028 |
|
1029 |
#. translators: 1: post ID
|
1030 |
-
#: includes/class-mla-main.php:
|
1031 |
#, php-format
|
1032 |
msgid "Item %1$d cancelled."
|
1033 |
msgstr ""
|
1034 |
|
1035 |
-
#: includes/class-mla-main.php:
|
1036 |
msgid "Empty Terms Search; ignored"
|
1037 |
msgstr ""
|
1038 |
|
1039 |
#. translators: 1: row-level action, e.g., single_item_delete, single_item_edit
|
1040 |
#. translators: 1: bulk_action, e.g., single_item_delete, single_item_edit
|
1041 |
-
#: includes/class-mla-main.php:
|
1042 |
-
#: includes/class-mla-settings.php:
|
1043 |
#, php-format
|
1044 |
msgid "Unknown mla_admin_action - \"%1$s\""
|
1045 |
msgstr ""
|
1046 |
|
1047 |
-
#: includes/class-mla-main.php:
|
1048 |
msgid "term search results for"
|
1049 |
msgstr ""
|
1050 |
|
1051 |
-
#: includes/class-mla-main.php:
|
1052 |
msgid "post/parent results for"
|
1053 |
msgstr ""
|
1054 |
|
1055 |
-
#: includes/class-mla-main.php:
|
1056 |
msgid "search results for"
|
1057 |
msgstr ""
|
1058 |
|
1059 |
-
#: includes/class-mla-main.php:
|
1060 |
msgid "Type"
|
1061 |
msgstr ""
|
1062 |
|
1063 |
-
#: includes/class-mla-main.php:
|
1064 |
msgid "Date"
|
1065 |
msgstr ""
|
1066 |
|
1067 |
-
#: includes/class-mla-main.php:
|
1068 |
-
#: includes/class-mla-settings.php:
|
1069 |
msgid "Status"
|
1070 |
msgstr ""
|
1071 |
|
1072 |
-
#: includes/class-mla-main.php:
|
1073 |
msgid "Published"
|
1074 |
msgstr ""
|
1075 |
|
1076 |
-
#: includes/class-mla-main.php:
|
1077 |
msgid "Scheduled"
|
1078 |
msgstr ""
|
1079 |
|
1080 |
-
#: includes/class-mla-main.php:
|
1081 |
msgid "Pending Review"
|
1082 |
msgstr ""
|
1083 |
|
1084 |
-
#: includes/class-mla-main.php:
|
1085 |
msgid "Draft"
|
1086 |
msgstr ""
|
1087 |
|
1088 |
-
#: includes/class-mla-main.php:
|
1089 |
msgid "ERROR: No post ID found"
|
1090 |
msgstr ""
|
1091 |
|
1092 |
-
#: includes/class-mla-main.php:
|
1093 |
-
#: includes/class-mla-main.php:
|
1094 |
msgid "You are not allowed to edit this Attachment."
|
1095 |
msgstr ""
|
1096 |
|
1097 |
-
#: includes/class-mla-main.php:
|
1098 |
msgid "All Post Types"
|
1099 |
msgstr ""
|
1100 |
|
1101 |
-
#: includes/class-mla-main.php:
|
1102 |
#: includes/mla-media-modal-js-template.php:20
|
1103 |
msgid "Search"
|
1104 |
msgstr ""
|
1105 |
|
1106 |
-
#: includes/class-mla-main.php:
|
1107 |
msgid "For"
|
1108 |
msgstr ""
|
1109 |
|
1110 |
-
#: includes/class-mla-main.php:
|
1111 |
msgid "Unattached"
|
1112 |
msgstr ""
|
1113 |
|
1114 |
-
#: includes/class-mla-main.php:
|
1115 |
-
#: includes/class-mla-main.php:
|
1116 |
-
#: includes/class-mla-settings.php:
|
1117 |
-
#: includes/class-mla-settings.php:
|
1118 |
msgid "Cancel"
|
1119 |
msgstr ""
|
1120 |
|
1121 |
-
#: includes/class-mla-main.php:
|
1122 |
-
#: includes/class-mla-main.php:
|
1123 |
-
#: includes/class-mla-settings.php:
|
1124 |
-
#: includes/class-mla-settings.php:
|
1125 |
msgid "Update"
|
1126 |
msgstr ""
|
1127 |
|
1128 |
-
#: includes/class-mla-main.php:
|
1129 |
msgid "more"
|
1130 |
msgstr ""
|
1131 |
|
1132 |
-
#: includes/class-mla-main.php:
|
1133 |
msgid "less"
|
1134 |
msgstr ""
|
1135 |
|
1136 |
-
#: includes/class-mla-main.php:
|
1137 |
msgid "Add"
|
1138 |
msgstr ""
|
1139 |
|
1140 |
-
#: includes/class-mla-main.php:
|
1141 |
msgid "Remove"
|
1142 |
msgstr ""
|
1143 |
|
1144 |
-
#: includes/class-mla-main.php:
|
1145 |
-
#: includes/class-mla-options.php:
|
1146 |
-
#: includes/class-mla-options.php:
|
1147 |
-
#: includes/class-mla-options.php:
|
1148 |
-
#: includes/class-mla-options.php:
|
1149 |
msgid "Replace"
|
1150 |
msgstr ""
|
1151 |
|
1152 |
-
#: includes/class-mla-main.php:
|
1153 |
msgid "Parent ID"
|
1154 |
msgstr ""
|
1155 |
|
1156 |
-
#: includes/class-mla-main.php:
|
1157 |
-
#: includes/class-mla-options.php:
|
1158 |
-
#: includes/class-mla-settings.php:
|
1159 |
msgid "Bulk Edit"
|
1160 |
msgstr ""
|
1161 |
|
1162 |
-
#: includes/class-mla-main.php:
|
1163 |
-
#: includes/class-mla-settings.php:
|
1164 |
-
#: includes/class-mla-settings.php:
|
1165 |
msgid "No Change"
|
1166 |
msgstr ""
|
1167 |
|
1168 |
-
#: includes/class-mla-main.php:
|
1169 |
msgid "Allow"
|
1170 |
msgstr ""
|
1171 |
|
1172 |
-
#: includes/class-mla-main.php:
|
1173 |
msgid "Do not allow"
|
1174 |
msgstr ""
|
1175 |
|
1176 |
-
#: includes/class-mla-main.php:
|
1177 |
msgid "Map IPTC/EXIF metadata"
|
1178 |
msgstr ""
|
1179 |
|
1180 |
-
#: includes/class-mla-main.php:
|
1181 |
msgid "ERROR: You are not allowed to delete this item."
|
1182 |
msgstr ""
|
1183 |
|
1184 |
#. translators: 1: post ID
|
1185 |
-
#: includes/class-mla-main.php:
|
1186 |
#, php-format
|
1187 |
msgid "ERROR: Item %1$d could NOT be deleted."
|
1188 |
msgstr ""
|
1189 |
|
1190 |
#. translators: 1: post ID
|
1191 |
-
#: includes/class-mla-main.php:
|
1192 |
#, php-format
|
1193 |
msgid "Item %1$d permanently deleted."
|
1194 |
msgstr ""
|
1195 |
|
1196 |
#. translators: 1: page_template_array
|
1197 |
-
#: includes/class-mla-main.php:
|
1198 |
#, php-format
|
1199 |
msgctxt "error_log"
|
1200 |
msgid "ERROR: MLA::_display_single_item \\$page_template_array = \"%1$s\""
|
1201 |
msgstr ""
|
1202 |
|
1203 |
-
#: includes/class-mla-main.php:
|
1204 |
msgid "File name"
|
1205 |
msgstr ""
|
1206 |
|
1207 |
-
#: includes/class-mla-main.php:
|
1208 |
msgid "File type"
|
1209 |
msgstr ""
|
1210 |
|
1211 |
-
#: includes/class-mla-main.php:
|
1212 |
msgid "Upload date"
|
1213 |
msgstr ""
|
1214 |
|
1215 |
-
#: includes/class-mla-main.php:
|
1216 |
msgid "Dimensions"
|
1217 |
msgstr ""
|
1218 |
|
1219 |
-
#: includes/class-mla-main.php:
|
1220 |
msgid "required"
|
1221 |
msgstr ""
|
1222 |
|
1223 |
-
#: includes/class-mla-main.php:
|
1224 |
msgid "Must be unique; will be validated."
|
1225 |
msgstr ""
|
1226 |
|
1227 |
-
#: includes/class-mla-main.php:
|
1228 |
msgid "Alternate text for the image, e.g. “The Mona Lisa”"
|
1229 |
msgstr ""
|
1230 |
|
1231 |
-
#: includes/class-mla-main.php:
|
1232 |
msgid "ID, type and title of parent, if any."
|
1233 |
msgstr ""
|
1234 |
|
1235 |
-
#: includes/class-mla-main.php:
|
1236 |
msgid "File URL"
|
1237 |
msgstr ""
|
1238 |
|
1239 |
-
#: includes/class-mla-main.php:
|
1240 |
msgid "Location of the uploaded file."
|
1241 |
msgstr ""
|
1242 |
|
1243 |
-
#: includes/class-mla-main.php:
|
1244 |
msgid "Image Metadata"
|
1245 |
msgstr ""
|
1246 |
|
1247 |
-
#: includes/class-mla-main.php:
|
1248 |
msgid "ERROR: You are not allowed to move this item out of the Trash."
|
1249 |
msgstr ""
|
1250 |
|
1251 |
#. translators: 1: post ID
|
1252 |
-
#: includes/class-mla-main.php:
|
1253 |
#, php-format
|
1254 |
msgid "ERROR: Item %1$d could NOT be restored from Trash."
|
1255 |
msgstr ""
|
1256 |
|
1257 |
#. translators: 1: post ID
|
1258 |
-
#: includes/class-mla-main.php:
|
1259 |
#, php-format
|
1260 |
msgid "Item %1$d restored from Trash."
|
1261 |
msgstr ""
|
1262 |
|
1263 |
-
#: includes/class-mla-main.php:
|
1264 |
msgid "ERROR: You are not allowed to move this item to the Trash."
|
1265 |
msgstr ""
|
1266 |
|
1267 |
#. translators: 1: post ID
|
1268 |
-
#: includes/class-mla-main.php:
|
1269 |
#, php-format
|
1270 |
msgid "ERROR: Item %1$d could NOT be moved to Trash."
|
1271 |
msgstr ""
|
1272 |
|
1273 |
-
#: includes/class-mla-media-modal.php:
|
1274 |
-
#: includes/class-mla-media-modal.php:
|
1275 |
-
#: includes/class-mla-media-modal.php:
|
1276 |
-
#: includes/class-mla-media-modal.php:
|
1277 |
-
#: includes/class-mla-media-modal.php:
|
1278 |
msgid "Click to toggle"
|
1279 |
msgstr ""
|
1280 |
|
1281 |
-
#: includes/class-mla-media-modal.php:
|
1282 |
msgid "Show all dates"
|
1283 |
msgstr ""
|
1284 |
|
1285 |
#. translators: 1: month name, 2: 4-digit year
|
1286 |
-
#: includes/class-mla-media-modal.php:
|
1287 |
#, php-format
|
1288 |
msgid "%1$s %2$d"
|
1289 |
msgstr ""
|
1290 |
|
1291 |
-
#: includes/class-mla-media-modal.php:
|
1292 |
msgid "Search Box"
|
1293 |
msgstr ""
|
1294 |
|
1295 |
-
#: includes/class-mla-media-modal.php:
|
1296 |
msgid "Loading..."
|
1297 |
msgstr ""
|
1298 |
|
1299 |
-
#: includes/class-mla-media-modal.php:
|
1300 |
msgid "Tags"
|
1301 |
msgstr ""
|
1302 |
|
1303 |
#. translators: %s: add new taxonomy label
|
1304 |
-
#: includes/class-mla-media-modal.php:
|
1305 |
#, php-format
|
1306 |
msgid "Add New %1$s"
|
1307 |
msgstr ""
|
1308 |
|
1309 |
-
#: includes/class-mla-media-modal.php:
|
1310 |
msgid "Choose from the most used tags"
|
1311 |
msgstr ""
|
1312 |
|
1313 |
-
#: includes/class-mla-media-modal.php:
|
1314 |
msgid "Not Supported"
|
1315 |
msgstr ""
|
1316 |
|
1317 |
-
#: includes/class-mla-media-modal.php:
|
1318 |
-
#: includes/class-mla-media-modal.php:
|
1319 |
msgid "Search Terms"
|
1320 |
msgstr ""
|
1321 |
|
1322 |
-
#: includes/class-mla-media-modal.php:
|
1323 |
msgid "There are no taxonomies to search"
|
1324 |
msgstr ""
|
1325 |
|
1326 |
-
#: includes/class-mla-media-modal.php:
|
1327 |
msgid "All phrases"
|
1328 |
msgstr ""
|
1329 |
|
1330 |
-
#: includes/class-mla-media-modal.php:
|
1331 |
msgid "Any phrase"
|
1332 |
msgstr ""
|
1333 |
|
1334 |
-
#: includes/class-mla-media-modal.php:
|
1335 |
msgid "All terms"
|
1336 |
msgstr ""
|
1337 |
|
1338 |
-
#: includes/class-mla-media-modal.php:
|
1339 |
msgid "Any term"
|
1340 |
msgstr ""
|
1341 |
|
@@ -1374,15 +1376,15 @@ msgstr ""
|
|
1374 |
|
1375 |
#. translators: 1: element name 2: bad_value 3: good_value
|
1376 |
#: includes/class-mla-mime-types.php:953
|
1377 |
-
#: includes/class-mla-mime-types.php:
|
1378 |
#, php-format
|
1379 |
msgid "<br>Changing %1$s \"%2$s\" to valid value \"%3$s\""
|
1380 |
msgstr ""
|
1381 |
|
1382 |
#: includes/class-mla-mime-types.php:953
|
1383 |
#: includes/class-mla-mime-types.php:1041
|
1384 |
-
#: includes/class-mla-mime-types.php:1052 includes/class-mla-settings.php:
|
1385 |
-
#: includes/class-mla-settings.php:
|
1386 |
msgid "Slug"
|
1387 |
msgstr ""
|
1388 |
|
@@ -1400,7 +1402,7 @@ msgstr ""
|
|
1400 |
|
1401 |
#. translators: 1: element name 2: bad_value 3: good_value
|
1402 |
#: includes/class-mla-mime-types.php:1041
|
1403 |
-
#: includes/class-mla-mime-types.php:
|
1404 |
#, php-format
|
1405 |
msgid "<br>Changing new %1$s \"%2$s\" to valid value \"%3$s\""
|
1406 |
msgstr ""
|
@@ -1505,82 +1507,82 @@ msgstr ""
|
|
1505 |
msgid "icon"
|
1506 |
msgstr ""
|
1507 |
|
1508 |
-
#: includes/class-mla-mime-types.php:
|
1509 |
-
#: includes/class-mla-mime-types.php:
|
1510 |
msgid "ERROR: Cannot load Upload MIME Types"
|
1511 |
msgstr ""
|
1512 |
|
1513 |
-
#: includes/class-mla-mime-types.php:
|
1514 |
msgid "ERROR: Extension is required"
|
1515 |
msgstr ""
|
1516 |
|
1517 |
-
#: includes/class-mla-mime-types.php:
|
1518 |
-
#: includes/class-mla-mime-types.php:
|
1519 |
-
#: includes/class-mla-mime-types.php:
|
1520 |
msgid "extension"
|
1521 |
msgstr ""
|
1522 |
|
1523 |
#. translators: 1: slug
|
1524 |
-
#: includes/class-mla-mime-types.php:
|
1525 |
#, php-format
|
1526 |
msgid "ERROR: Could not add extension \"%1$s\"; value already exists"
|
1527 |
msgstr ""
|
1528 |
|
1529 |
-
#: includes/class-mla-mime-types.php:
|
1530 |
msgid "ERROR: MIME type is required"
|
1531 |
msgstr ""
|
1532 |
|
1533 |
#. translators: 1: clean_mime_type
|
1534 |
-
#: includes/class-mla-mime-types.php:
|
1535 |
-
#: includes/class-mla-mime-types.php:
|
1536 |
#, php-format
|
1537 |
msgid "ERROR: Bad MIME type; try \"%1$s\""
|
1538 |
msgstr ""
|
1539 |
|
1540 |
#. translators: 1: slug
|
1541 |
-
#: includes/class-mla-mime-types.php:
|
1542 |
#, php-format
|
1543 |
msgid "Upload MIME Type \"%1$s\"; added"
|
1544 |
msgstr ""
|
1545 |
|
1546 |
-
#: includes/class-mla-mime-types.php:
|
1547 |
-
#: includes/class-mla-mime-types.php:
|
1548 |
-
#: includes/class-mla-mime-types.php:
|
1549 |
msgid "ERROR: Cannot update Upload MIME Types"
|
1550 |
msgstr ""
|
1551 |
|
1552 |
#. translators: 1: slug
|
1553 |
-
#: includes/class-mla-mime-types.php:
|
1554 |
#, php-format
|
1555 |
msgid "ERROR: Could not add new extension \"%1$s\"; value already exists"
|
1556 |
msgstr ""
|
1557 |
|
1558 |
#. translators: 1: slug
|
1559 |
-
#: includes/class-mla-mime-types.php:
|
1560 |
#, php-format
|
1561 |
msgid "Edit type \"%1$s\"; no changes detected"
|
1562 |
msgstr ""
|
1563 |
|
1564 |
#. translators: 1: slug
|
1565 |
-
#: includes/class-mla-mime-types.php:
|
1566 |
#, php-format
|
1567 |
msgid "Edit type \"%1$s\"; updated"
|
1568 |
msgstr ""
|
1569 |
|
1570 |
#. translators: 1: slug
|
1571 |
-
#: includes/class-mla-mime-types.php:
|
1572 |
#, php-format
|
1573 |
msgid "Upload MIME Type \"%1$s\"; reverted to standard"
|
1574 |
msgstr ""
|
1575 |
|
1576 |
#. translators: 1: slug
|
1577 |
-
#: includes/class-mla-mime-types.php:
|
1578 |
#, php-format
|
1579 |
msgid "Upload MIME Type \"%1$s\"; deleted"
|
1580 |
msgstr ""
|
1581 |
|
1582 |
#. translators: 1: slug
|
1583 |
-
#: includes/class-mla-mime-types.php:
|
1584 |
#, php-format
|
1585 |
msgid "ERROR: Did not find Upload type \"%1$s\""
|
1586 |
msgstr ""
|
@@ -1627,45 +1629,45 @@ msgstr ""
|
|
1627 |
msgid "Att. Category"
|
1628 |
msgstr ""
|
1629 |
|
1630 |
-
#: includes/class-mla-objects.php:
|
1631 |
msgctxt "taxonomy_name_plural"
|
1632 |
msgid "Att. Tags"
|
1633 |
msgstr ""
|
1634 |
|
1635 |
-
#: includes/class-mla-objects.php:
|
1636 |
msgctxt "taxonomy_name_singular"
|
1637 |
msgid "Att. Tag"
|
1638 |
msgstr ""
|
1639 |
|
1640 |
-
#: includes/class-mla-objects.php:
|
1641 |
msgid "Search Att. Tags"
|
1642 |
msgstr ""
|
1643 |
|
1644 |
-
#: includes/class-mla-objects.php:
|
1645 |
msgid "All Att. Tags"
|
1646 |
msgstr ""
|
1647 |
|
1648 |
-
#: includes/class-mla-objects.php:
|
1649 |
msgid "Parent Att. Tag"
|
1650 |
msgstr ""
|
1651 |
|
1652 |
-
#: includes/class-mla-objects.php:
|
1653 |
msgid "Edit Att. Tag"
|
1654 |
msgstr ""
|
1655 |
|
1656 |
-
#: includes/class-mla-objects.php:
|
1657 |
msgid "Update Att. Tag"
|
1658 |
msgstr ""
|
1659 |
|
1660 |
-
#: includes/class-mla-objects.php:
|
1661 |
msgid "Add New Att. Tag"
|
1662 |
msgstr ""
|
1663 |
|
1664 |
-
#: includes/class-mla-objects.php:
|
1665 |
msgid "New Att. Tag Name"
|
1666 |
msgstr ""
|
1667 |
|
1668 |
-
#: includes/class-mla-objects.php:
|
1669 |
msgid "Att. Tag"
|
1670 |
msgstr ""
|
1671 |
|
@@ -1705,7 +1707,7 @@ msgstr ""
|
|
1705 |
msgid "tpls/mla-option-templates.tpl not found"
|
1706 |
msgstr ""
|
1707 |
|
1708 |
-
#: includes/class-mla-options.php:420 includes/class-mla-options.php:
|
1709 |
msgid "Attachment Categories"
|
1710 |
msgstr ""
|
1711 |
|
@@ -1713,7 +1715,7 @@ msgstr ""
|
|
1713 |
msgid "Check this option to add support for Attachment Categories."
|
1714 |
msgstr ""
|
1715 |
|
1716 |
-
#: includes/class-mla-options.php:427 includes/class-mla-options.php:
|
1717 |
msgid "Attachment Tags"
|
1718 |
msgstr ""
|
1719 |
|
@@ -1721,7 +1723,7 @@ msgstr ""
|
|
1721 |
msgid "Check this option to add support for Attachment Tags."
|
1722 |
msgstr ""
|
1723 |
|
1724 |
-
#: includes/class-mla-options.php:434 includes/class-mla-settings.php:
|
1725 |
msgid "Where-used Reporting"
|
1726 |
msgstr ""
|
1727 |
|
@@ -1783,7 +1785,7 @@ msgid ""
|
|
1783 |
"Cached."
|
1784 |
msgstr ""
|
1785 |
|
1786 |
-
#: includes/class-mla-options.php:487 includes/class-mla-settings.php:
|
1787 |
msgid "Taxonomy Support"
|
1788 |
msgstr ""
|
1789 |
|
@@ -1827,13 +1829,13 @@ msgid ""
|
|
1827 |
"\" list."
|
1828 |
msgstr ""
|
1829 |
|
1830 |
-
#: includes/class-mla-options.php:504 includes/class-mla-
|
1831 |
-
#: includes/class-mla-settings.php:
|
1832 |
msgid "For complete documentation"
|
1833 |
msgstr ""
|
1834 |
|
1835 |
-
#: includes/class-mla-options.php:504 includes/class-mla-
|
1836 |
-
#: includes/class-mla-settings.php:
|
1837 |
msgid "click here"
|
1838 |
msgstr ""
|
1839 |
|
@@ -1855,8 +1857,8 @@ msgstr ""
|
|
1855 |
msgid "Page Title"
|
1856 |
msgstr ""
|
1857 |
|
1858 |
-
#: includes/class-mla-options.php:544 includes/class-mla-settings.php:
|
1859 |
-
#: includes/class-mla-settings.php:
|
1860 |
msgid "Media Library Assistant"
|
1861 |
msgstr ""
|
1862 |
|
@@ -1906,7 +1908,7 @@ msgstr ""
|
|
1906 |
msgid "Order By"
|
1907 |
msgstr ""
|
1908 |
|
1909 |
-
#: includes/class-mla-options.php:582 includes/class-mla-options.php:
|
1910 |
msgid "Title/Name"
|
1911 |
msgstr ""
|
1912 |
|
@@ -1926,7 +1928,7 @@ msgstr ""
|
|
1926 |
msgid "Descending"
|
1927 |
msgstr ""
|
1928 |
|
1929 |
-
#: includes/class-mla-options.php:592 includes/class-mla-options.php:
|
1930 |
msgid "Choose the sort order."
|
1931 |
msgstr ""
|
1932 |
|
@@ -1978,7 +1980,7 @@ msgstr ""
|
|
1978 |
msgid "Display Search Controls"
|
1979 |
msgstr ""
|
1980 |
|
1981 |
-
#: includes/class-mla-options.php:640 includes/class-mla-options.php:
|
1982 |
msgid ""
|
1983 |
"Check/uncheck this option to display/hide the and/or connector and search "
|
1984 |
"fields controls."
|
@@ -2016,79 +2018,83 @@ msgid ""
|
|
2016 |
"Metadata\" and four \"where-used\" meta boxes to the Edit Media screen."
|
2017 |
msgstr ""
|
2018 |
|
2019 |
-
#: includes/class-mla-options.php:
|
|
|
|
|
|
|
|
|
2020 |
msgid "Media Manager Enhancements"
|
2021 |
msgstr ""
|
2022 |
|
2023 |
-
#: includes/class-mla-options.php:
|
2024 |
msgid "Enable Media Manager Enhancements"
|
2025 |
msgstr ""
|
2026 |
|
2027 |
-
#: includes/class-mla-options.php:
|
2028 |
msgid "Check/uncheck this option to enable/disable Media Manager Enhancements."
|
2029 |
msgstr ""
|
2030 |
|
2031 |
-
#: includes/class-mla-options.php:
|
2032 |
msgid "Media Manager Enhanced MIME Type filter"
|
2033 |
msgstr ""
|
2034 |
|
2035 |
-
#: includes/class-mla-options.php:
|
2036 |
msgid ""
|
2037 |
"Check this option to filter by more MIME Types, e.g., text, applications."
|
2038 |
msgstr ""
|
2039 |
|
2040 |
-
#: includes/class-mla-options.php:
|
2041 |
msgid "Media Manager Month and Year filter"
|
2042 |
msgstr ""
|
2043 |
|
2044 |
-
#: includes/class-mla-options.php:
|
2045 |
msgid "Check this option to filter by month and year uploaded."
|
2046 |
msgstr ""
|
2047 |
|
2048 |
-
#: includes/class-mla-options.php:
|
2049 |
msgid "Media Manager Category/Tag filter"
|
2050 |
msgstr ""
|
2051 |
|
2052 |
-
#: includes/class-mla-options.php:
|
2053 |
msgid "Check this option to filter by taxonomy terms."
|
2054 |
msgstr ""
|
2055 |
|
2056 |
-
#: includes/class-mla-options.php:
|
2057 |
msgid "Media Manager Terms Search popup"
|
2058 |
msgstr ""
|
2059 |
|
2060 |
-
#: includes/class-mla-options.php:
|
2061 |
msgid "Check this option to enable the \"Terms Search\" popup window."
|
2062 |
msgstr ""
|
2063 |
|
2064 |
-
#: includes/class-mla-options.php:
|
2065 |
msgid "Media Manager Enhanced Search Media box"
|
2066 |
msgstr ""
|
2067 |
|
2068 |
-
#: includes/class-mla-options.php:
|
2069 |
msgid "Check this option to enable search box enhancements."
|
2070 |
msgstr ""
|
2071 |
|
2072 |
-
#: includes/class-mla-options.php:
|
2073 |
msgid "Media Manager Enhanced Search Media Controls"
|
2074 |
msgstr ""
|
2075 |
|
2076 |
-
#: includes/class-mla-options.php:
|
2077 |
msgid "Media Manager Checklist meta boxes"
|
2078 |
msgstr ""
|
2079 |
|
2080 |
-
#: includes/class-mla-options.php:
|
2081 |
msgid ""
|
2082 |
"Check this option to enable MLA-enhanced meta boxes in the \"ATTACHMENT "
|
2083 |
"DETAILS\" pane.<br> This option is for any taxonomy that uses a "
|
2084 |
"<strong>\"checklist-style\"</strong> meta box.</strong>"
|
2085 |
msgstr ""
|
2086 |
|
2087 |
-
#: includes/class-mla-options.php:
|
2088 |
msgid "Media Manager Flat meta boxes"
|
2089 |
msgstr ""
|
2090 |
|
2091 |
-
#: includes/class-mla-options.php:
|
2092 |
msgid ""
|
2093 |
"Check this option to enable MLA-enhanced meta boxes in the \"ATTACHMENT "
|
2094 |
"DETAILS\" pane.<br> This option is for <strong>flat taxonomies</"
|
@@ -2096,143 +2102,143 @@ msgid ""
|
|
2096 |
"style\" meta box."
|
2097 |
msgstr ""
|
2098 |
|
2099 |
-
#: includes/class-mla-options.php:
|
2100 |
msgid "Media Manager Order By"
|
2101 |
msgstr ""
|
2102 |
|
2103 |
-
#: includes/class-mla-options.php:
|
2104 |
-
#: includes/class-mla-options.php:
|
2105 |
-
#: includes/class-mla-options.php:
|
2106 |
msgid "Media Manager Default"
|
2107 |
msgstr ""
|
2108 |
|
2109 |
-
#: includes/class-mla-options.php:
|
2110 |
msgid ""
|
2111 |
"If you want to override the Media Manager default,<br> select a "
|
2112 |
"column for the sort order of the Media Library listing."
|
2113 |
msgstr ""
|
2114 |
|
2115 |
-
#: includes/class-mla-options.php:
|
2116 |
msgid "Media Manager Order"
|
2117 |
msgstr ""
|
2118 |
|
2119 |
-
#: includes/class-mla-options.php:
|
2120 |
msgid "Attachment Display Settings"
|
2121 |
msgstr ""
|
2122 |
|
2123 |
#. translators: 1: option name, e.g., Alignment, Link To or Size
|
2124 |
-
#: includes/class-mla-options.php:
|
2125 |
msgid "Alignment"
|
2126 |
msgstr ""
|
2127 |
|
2128 |
-
#: includes/class-mla-options.php:
|
2129 |
msgid "Left"
|
2130 |
msgstr ""
|
2131 |
|
2132 |
-
#: includes/class-mla-options.php:
|
2133 |
msgid "Center"
|
2134 |
msgstr ""
|
2135 |
|
2136 |
-
#: includes/class-mla-options.php:
|
2137 |
msgid "Right"
|
2138 |
msgstr ""
|
2139 |
|
2140 |
#. translators: 1: option name, e.g., Alignment, Link To or Size
|
2141 |
-
#: includes/class-mla-options.php:
|
2142 |
msgid "Link To"
|
2143 |
msgstr ""
|
2144 |
|
2145 |
-
#: includes/class-mla-options.php:
|
2146 |
msgid "Media File"
|
2147 |
msgstr ""
|
2148 |
|
2149 |
-
#: includes/class-mla-options.php:
|
2150 |
msgid "Attachment Page"
|
2151 |
msgstr ""
|
2152 |
|
2153 |
-
#: includes/class-mla-options.php:
|
2154 |
msgid "Custom URL"
|
2155 |
msgstr ""
|
2156 |
|
2157 |
#. translators: 1: option name, e.g., Alignment, Link To or Size
|
2158 |
-
#: includes/class-mla-options.php:
|
2159 |
msgid "Size"
|
2160 |
msgstr ""
|
2161 |
|
2162 |
-
#: includes/class-mla-options.php:
|
2163 |
msgid "Thumbnail"
|
2164 |
msgstr ""
|
2165 |
|
2166 |
-
#: includes/class-mla-options.php:
|
2167 |
msgid "Medium"
|
2168 |
msgstr ""
|
2169 |
|
2170 |
-
#: includes/class-mla-options.php:
|
2171 |
msgid "Large"
|
2172 |
msgstr ""
|
2173 |
|
2174 |
-
#: includes/class-mla-options.php:
|
2175 |
msgid "Full Size"
|
2176 |
msgstr ""
|
2177 |
|
2178 |
-
#: includes/class-mla-options.php:
|
2179 |
msgid "Default [mla_gallery] Templates and Settings"
|
2180 |
msgstr ""
|
2181 |
|
2182 |
-
#: includes/class-mla-options.php:
|
2183 |
msgid "Style Template"
|
2184 |
msgstr ""
|
2185 |
|
2186 |
#. translators: 1: template type 2: shortcode
|
2187 |
-
#: includes/class-mla-options.php:
|
2188 |
-
#: includes/class-mla-options.php:
|
2189 |
#, php-format
|
2190 |
msgid "Select the default %1$s for your %2$s shortcodes."
|
2191 |
msgstr ""
|
2192 |
|
2193 |
-
#: includes/class-mla-options.php:
|
2194 |
-
#: includes/class-mla-settings.php:
|
2195 |
-
#: includes/class-mla-settings.php:
|
2196 |
-
#: includes/class-mla-settings.php:
|
2197 |
msgid "style template"
|
2198 |
msgstr ""
|
2199 |
|
2200 |
-
#: includes/class-mla-options.php:
|
2201 |
msgid "Markup Template"
|
2202 |
msgstr ""
|
2203 |
|
2204 |
-
#: includes/class-mla-options.php:
|
2205 |
-
#: includes/class-mla-settings.php:
|
2206 |
-
#: includes/class-mla-settings.php:
|
2207 |
-
#: includes/class-mla-settings.php:
|
2208 |
msgid "markup template"
|
2209 |
msgstr ""
|
2210 |
|
2211 |
-
#: includes/class-mla-options.php:
|
2212 |
msgid "Default columns"
|
2213 |
msgstr ""
|
2214 |
|
2215 |
-
#: includes/class-mla-options.php:
|
2216 |
msgid ""
|
2217 |
"Enter the number of [mla_tag_cloud] columns; must be a positive integer."
|
2218 |
msgstr ""
|
2219 |
|
2220 |
-
#: includes/class-mla-options.php:
|
2221 |
msgid "Default mla_margin"
|
2222 |
msgstr ""
|
2223 |
|
2224 |
-
#: includes/class-mla-options.php:
|
2225 |
msgid ""
|
2226 |
"Enter the CSS \"margin\" property value, in length (px, em, pt, etc.), "
|
2227 |
"percent (%), \"auto\" or \"inherit\".<br> Enter \"none\" to "
|
2228 |
"remove the property entirely."
|
2229 |
msgstr ""
|
2230 |
|
2231 |
-
#: includes/class-mla-options.php:
|
2232 |
msgid "Default mla_itemwidth"
|
2233 |
msgstr ""
|
2234 |
|
2235 |
-
#: includes/class-mla-options.php:
|
2236 |
msgid ""
|
2237 |
"Enter the CSS \"width\" property value, in length (px, em, pt, etc.), "
|
2238 |
"percent (%), \"auto\" or \"inherit\".<br> Enter \"calculate"
|
@@ -2242,15 +2248,15 @@ msgid ""
|
|
2242 |
"the property entirely."
|
2243 |
msgstr ""
|
2244 |
|
2245 |
-
#: includes/class-mla-options.php:
|
2246 |
msgid "Enter the number of [mla_gallery] columns; must be a positive integer."
|
2247 |
msgstr ""
|
2248 |
|
2249 |
-
#: includes/class-mla-options.php:
|
2250 |
msgid "Enable custom field mapping when adding new media"
|
2251 |
msgstr ""
|
2252 |
|
2253 |
-
#: includes/class-mla-options.php:
|
2254 |
msgid ""
|
2255 |
"Check this option to enable mapping when uploading new media (attachments)."
|
2256 |
"<br> Click Save Changes at the bottom of the screen if you change "
|
@@ -2258,18 +2264,18 @@ msgid ""
|
|
2258 |
"buttons on the bulk edit, single edit and settings screens."
|
2259 |
msgstr ""
|
2260 |
|
2261 |
-
#: includes/class-mla-options.php:
|
2262 |
msgid "Enable custom field mapping when updating media metadata"
|
2263 |
msgstr ""
|
2264 |
|
2265 |
-
#: includes/class-mla-options.php:
|
2266 |
msgid ""
|
2267 |
"Check this option to enable mapping when media (attachments) metadata is "
|
2268 |
"regenerated,<br> e.g., when the Media/Edit Media \"Edit Image\" "
|
2269 |
"functions are used."
|
2270 |
msgstr ""
|
2271 |
|
2272 |
-
#: includes/class-mla-options.php:
|
2273 |
msgid ""
|
2274 |
"Update the custom field mapping values above, then click Save Changes to "
|
2275 |
"make the updates permanent.<br>You can also make temporary updates and click "
|
@@ -2277,22 +2283,22 @@ msgid ""
|
|
2277 |
"saving any rule changes."
|
2278 |
msgstr ""
|
2279 |
|
2280 |
-
#: includes/class-mla-options.php:
|
2281 |
msgid "Enable IPTC/EXIF Mapping when adding new media"
|
2282 |
msgstr ""
|
2283 |
|
2284 |
-
#: includes/class-mla-options.php:
|
2285 |
msgid ""
|
2286 |
"Check this option to enable mapping when uploading new media (attachments)."
|
2287 |
"<br> Does NOT affect the operation of the \"Map\" buttons on the "
|
2288 |
"bulk edit, single edit and settings screens."
|
2289 |
msgstr ""
|
2290 |
|
2291 |
-
#: includes/class-mla-options.php:
|
2292 |
msgid "Enable IPTC/EXIF Mapping when updating media metadata"
|
2293 |
msgstr ""
|
2294 |
|
2295 |
-
#: includes/class-mla-options.php:
|
2296 |
msgid ""
|
2297 |
"Update the standard field mapping values above, then click <strong>Save "
|
2298 |
"Changes</strong> to make the updates permanent.<br>You can also make "
|
@@ -2301,13 +2307,13 @@ msgid ""
|
|
2301 |
"changes."
|
2302 |
msgstr ""
|
2303 |
|
2304 |
-
#: includes/class-mla-options.php:
|
2305 |
msgid ""
|
2306 |
"Update the taxonomy term mapping values above, then click <strong>Save "
|
2307 |
"Changes</strong> or <strong>Map All Attachments, Taxonomy Terms Now</strong>."
|
2308 |
msgstr ""
|
2309 |
|
2310 |
-
#: includes/class-mla-options.php:
|
2311 |
msgid ""
|
2312 |
"<strong>Update</strong> individual custom field mapping values above, or "
|
2313 |
"make several updates and click <strong>Save Changes</strong> below to apply "
|
@@ -2318,682 +2324,682 @@ msgid ""
|
|
2318 |
"changes."
|
2319 |
msgstr ""
|
2320 |
|
2321 |
-
#: includes/class-mla-options.php:
|
2322 |
msgid "IPTC/EXIF Mapping help"
|
2323 |
msgstr ""
|
2324 |
|
2325 |
-
#: includes/class-mla-options.php:
|
2326 |
msgid "Enable View and Post MIME Type Support"
|
2327 |
msgstr ""
|
2328 |
|
2329 |
-
#: includes/class-mla-options.php:
|
2330 |
msgid ""
|
2331 |
"Check/uncheck this option to enable/disable Post MIME Type Support, then "
|
2332 |
"click <strong>Save Changes</strong> to record the new setting."
|
2333 |
msgstr ""
|
2334 |
|
2335 |
-
#: includes/class-mla-options.php:
|
2336 |
msgid "Post MIME Types help."
|
2337 |
msgstr ""
|
2338 |
|
2339 |
-
#: includes/class-mla-options.php:
|
2340 |
msgctxt "post_mime_types_singular"
|
2341 |
msgid "All"
|
2342 |
msgstr ""
|
2343 |
|
2344 |
-
#: includes/class-mla-options.php:
|
2345 |
msgctxt "post_mime_types_plural"
|
2346 |
msgid "All"
|
2347 |
msgstr ""
|
2348 |
|
2349 |
-
#: includes/class-mla-options.php:
|
2350 |
-
#: includes/class-mla-options.php:
|
2351 |
msgctxt "post_mime_types_description"
|
2352 |
msgid "Built-in view"
|
2353 |
msgstr ""
|
2354 |
|
2355 |
-
#: includes/class-mla-options.php:
|
2356 |
msgctxt "post_mime_types_singular"
|
2357 |
msgid "Image"
|
2358 |
msgstr ""
|
2359 |
|
2360 |
-
#: includes/class-mla-options.php:
|
2361 |
msgctxt "post_mime_types_plural"
|
2362 |
msgid "Images"
|
2363 |
msgstr ""
|
2364 |
|
2365 |
-
#: includes/class-mla-options.php:
|
2366 |
msgctxt "post_mime_types_description"
|
2367 |
msgid "All image subtypes"
|
2368 |
msgstr ""
|
2369 |
|
2370 |
-
#: includes/class-mla-options.php:
|
2371 |
msgctxt "post_mime_types_singular"
|
2372 |
msgid "Audio"
|
2373 |
msgstr ""
|
2374 |
|
2375 |
-
#: includes/class-mla-options.php:
|
2376 |
msgctxt "post_mime_types_plural"
|
2377 |
msgid "Audio"
|
2378 |
msgstr ""
|
2379 |
|
2380 |
-
#: includes/class-mla-options.php:
|
2381 |
msgctxt "post_mime_types_description"
|
2382 |
msgid "All audio subtypes"
|
2383 |
msgstr ""
|
2384 |
|
2385 |
-
#: includes/class-mla-options.php:
|
2386 |
msgctxt "post_mime_types_singular"
|
2387 |
msgid "Video"
|
2388 |
msgstr ""
|
2389 |
|
2390 |
-
#: includes/class-mla-options.php:
|
2391 |
msgctxt "post_mime_types_plural"
|
2392 |
msgid "Video"
|
2393 |
msgstr ""
|
2394 |
|
2395 |
-
#: includes/class-mla-options.php:
|
2396 |
msgctxt "post_mime_types_description"
|
2397 |
msgid "All video subtypes"
|
2398 |
msgstr ""
|
2399 |
|
2400 |
-
#: includes/class-mla-options.php:
|
2401 |
msgctxt "post_mime_types_singular"
|
2402 |
msgid "Text"
|
2403 |
msgstr ""
|
2404 |
|
2405 |
-
#: includes/class-mla-options.php:
|
2406 |
msgctxt "post_mime_types_plural"
|
2407 |
msgid "Text"
|
2408 |
msgstr ""
|
2409 |
|
2410 |
-
#: includes/class-mla-options.php:
|
2411 |
msgctxt "post_mime_types_description"
|
2412 |
msgid "All text subtypes"
|
2413 |
msgstr ""
|
2414 |
|
2415 |
-
#: includes/class-mla-options.php:
|
2416 |
msgctxt "post_mime_types_singular"
|
2417 |
msgid "Application"
|
2418 |
msgstr ""
|
2419 |
|
2420 |
-
#: includes/class-mla-options.php:
|
2421 |
msgctxt "post_mime_types_plural"
|
2422 |
msgid "Applications"
|
2423 |
msgstr ""
|
2424 |
|
2425 |
-
#: includes/class-mla-options.php:
|
2426 |
msgctxt "post_mime_types_description"
|
2427 |
msgid "All application subtypes"
|
2428 |
msgstr ""
|
2429 |
|
2430 |
-
#: includes/class-mla-options.php:
|
2431 |
msgctxt "post_mime_types_plural"
|
2432 |
msgid "Unattached"
|
2433 |
msgstr ""
|
2434 |
|
2435 |
-
#: includes/class-mla-options.php:
|
2436 |
msgctxt "post_mime_types_singular"
|
2437 |
msgid "Trash"
|
2438 |
msgstr ""
|
2439 |
|
2440 |
-
#: includes/class-mla-options.php:
|
2441 |
msgctxt "post_mime_types_plural"
|
2442 |
msgid "Trash"
|
2443 |
msgstr ""
|
2444 |
|
2445 |
-
#: includes/class-mla-options.php:
|
2446 |
msgid "Enable Upload MIME Type Support"
|
2447 |
msgstr ""
|
2448 |
|
2449 |
-
#: includes/class-mla-options.php:
|
2450 |
msgid ""
|
2451 |
"Check/uncheck this option to enable/disable Upload MIME Type Support, then "
|
2452 |
"click <strong>Save Changes</strong> to record the new setting."
|
2453 |
msgstr ""
|
2454 |
|
2455 |
-
#: includes/class-mla-options.php:
|
2456 |
msgid "Upload MIME Types help."
|
2457 |
msgstr ""
|
2458 |
|
2459 |
-
#: includes/class-mla-options.php:
|
2460 |
msgid "Enable MLA File Type Icons Support"
|
2461 |
msgstr ""
|
2462 |
|
2463 |
-
#: includes/class-mla-options.php:
|
2464 |
msgid ""
|
2465 |
"Check/uncheck this option to enable/disable MLA File Type Icons Support, "
|
2466 |
"then click <strong>Save Changes</strong> to record the new setting."
|
2467 |
msgstr ""
|
2468 |
|
2469 |
-
#: includes/class-mla-options.php:
|
2470 |
-
#: includes/class-mla-options.php:
|
2471 |
msgid "no templates exist"
|
2472 |
msgstr ""
|
2473 |
|
2474 |
-
#: includes/class-mla-options.php:
|
2475 |
msgid "not found"
|
2476 |
msgstr ""
|
2477 |
|
2478 |
#. translators: 1: option name 2: action, e.g., update, delete, reset
|
2479 |
-
#: includes/class-mla-options.php:
|
2480 |
-
#: includes/class-mla-options.php:
|
2481 |
-
#: includes/class-mla-options.php:
|
2482 |
#, php-format
|
2483 |
msgid "ERROR: Custom %1$s unknown action \"%2$s\""
|
2484 |
msgstr ""
|
2485 |
|
2486 |
-
#: includes/class-mla-options.php:
|
2487 |
msgid "Support"
|
2488 |
msgstr ""
|
2489 |
|
2490 |
-
#: includes/class-mla-options.php:
|
2491 |
msgid "Inline Edit"
|
2492 |
msgstr ""
|
2493 |
|
2494 |
-
#: includes/class-mla-options.php:
|
2495 |
msgid "Checklist"
|
2496 |
msgstr ""
|
2497 |
|
2498 |
-
#: includes/class-mla-options.php:
|
2499 |
msgid "Term Search"
|
2500 |
msgstr ""
|
2501 |
|
2502 |
-
#: includes/class-mla-options.php:
|
2503 |
msgid "List Filter"
|
2504 |
msgstr ""
|
2505 |
|
2506 |
-
#: includes/class-mla-options.php:
|
2507 |
msgid "Taxonomy"
|
2508 |
msgstr ""
|
2509 |
|
2510 |
#. translators: 1: taxonomy name
|
2511 |
-
#: includes/class-mla-options.php:
|
2512 |
#, php-format
|
2513 |
msgid "List Filter ignored; %1$s not supported."
|
2514 |
msgstr ""
|
2515 |
|
2516 |
#. translators: 1: taxonomy name
|
2517 |
-
#: includes/class-mla-options.php:
|
2518 |
#, php-format
|
2519 |
msgid "Inline Edit ignored; %1$s not supported."
|
2520 |
msgstr ""
|
2521 |
|
2522 |
#. translators: 1: taxonomy name
|
2523 |
-
#: includes/class-mla-options.php:
|
2524 |
#, php-format
|
2525 |
msgid "Checklist ignored; %1$s not supported."
|
2526 |
msgstr ""
|
2527 |
|
2528 |
#. translators: 1: taxonomy name
|
2529 |
-
#: includes/class-mla-options.php:
|
2530 |
#, php-format
|
2531 |
msgid "Term Search ignored; %1$s not supported."
|
2532 |
msgstr ""
|
2533 |
|
2534 |
#. translators: 1: option name, e.g., taxonomy_support
|
2535 |
-
#: includes/class-mla-options.php:
|
2536 |
#, php-format
|
2537 |
msgid "Update custom %1$s"
|
2538 |
msgstr ""
|
2539 |
|
2540 |
#. translators: 1: option name, e.g., taxonomy_support
|
2541 |
-
#: includes/class-mla-options.php:
|
2542 |
-
#: includes/class-mla-options.php:
|
2543 |
#, php-format
|
2544 |
msgid "Reset custom %1$s"
|
2545 |
msgstr ""
|
2546 |
|
2547 |
-
#: includes/class-mla-options.php:
|
2548 |
#: includes/mla-main-search-box-template.php:38
|
2549 |
#: includes/mla-media-modal-js-template.php:24
|
2550 |
msgid "and"
|
2551 |
msgstr ""
|
2552 |
|
2553 |
-
#: includes/class-mla-options.php:
|
2554 |
#: includes/mla-main-search-box-template.php:40
|
2555 |
#: includes/mla-media-modal-js-template.php:28
|
2556 |
msgid "or"
|
2557 |
msgstr ""
|
2558 |
|
2559 |
-
#: includes/class-mla-options.php:
|
2560 |
-
#: includes/class-mla-settings.php:
|
2561 |
-
#: includes/class-mla-settings.php:
|
2562 |
-
#: includes/class-mla-settings.php:
|
2563 |
#: includes/mla-main-search-box-template.php:43
|
2564 |
#: includes/mla-media-modal-js-template.php:36
|
2565 |
msgid "Name"
|
2566 |
msgstr ""
|
2567 |
|
2568 |
-
#: includes/class-mla-options.php:
|
2569 |
#: includes/mla-main-search-box-template.php:47
|
2570 |
#: includes/mla-media-modal-js-template.php:53
|
2571 |
msgid "Terms"
|
2572 |
msgstr ""
|
2573 |
|
2574 |
-
#: includes/class-mla-options.php:
|
2575 |
-
#: includes/class-mla-options.php:
|
2576 |
-
#: includes/class-mla-settings.php:
|
2577 |
msgid "None (select a value)"
|
2578 |
msgstr ""
|
2579 |
|
2580 |
-
#: includes/class-mla-options.php:
|
2581 |
msgid "Metadata (see below)"
|
2582 |
msgstr ""
|
2583 |
|
2584 |
-
#: includes/class-mla-options.php:
|
2585 |
msgid "Template (see below)"
|
2586 |
msgstr ""
|
2587 |
|
2588 |
#. translators: 1: custom field name
|
2589 |
-
#: includes/class-mla-options.php:
|
2590 |
#, php-format
|
2591 |
msgid "ERROR: New field %1$s already exists."
|
2592 |
msgstr ""
|
2593 |
|
2594 |
#. translators: 1: custom field name
|
2595 |
-
#: includes/class-mla-options.php:
|
2596 |
#, php-format
|
2597 |
msgid "Adding new field %1$s."
|
2598 |
msgstr ""
|
2599 |
|
2600 |
#. translators: 1: custom field name
|
2601 |
-
#: includes/class-mla-options.php:
|
2602 |
#, php-format
|
2603 |
msgid "Adding new rule for %1$s."
|
2604 |
msgstr ""
|
2605 |
|
2606 |
#. translators: 1: custom field name
|
2607 |
-
#: includes/class-mla-options.php:
|
2608 |
-
#: includes/class-mla-options.php:
|
2609 |
#, php-format
|
2610 |
msgid "Deleting rule for %1$s."
|
2611 |
msgstr ""
|
2612 |
|
2613 |
#. translators: 1: custom field name 2: attribute 3: old value 4: new value
|
2614 |
-
#: includes/class-mla-options.php:
|
2615 |
-
#: includes/class-mla-options.php:
|
2616 |
-
#: includes/class-mla-options.php:
|
2617 |
-
#: includes/class-mla-options.php:
|
2618 |
-
#: includes/class-mla-options.php:
|
2619 |
-
#: includes/class-mla-options.php:
|
2620 |
-
#: includes/class-mla-options.php:
|
2621 |
#, php-format
|
2622 |
msgid "%1$s changing %2$s from %3$s to %4$s."
|
2623 |
msgstr ""
|
2624 |
|
2625 |
-
#: includes/class-mla-options.php:
|
2626 |
msgid "Data Source"
|
2627 |
msgstr ""
|
2628 |
|
2629 |
-
#: includes/class-mla-options.php:
|
2630 |
-
#: includes/class-mla-options.php:
|
2631 |
msgid "Replace to Keep"
|
2632 |
msgstr ""
|
2633 |
|
2634 |
-
#: includes/class-mla-options.php:
|
2635 |
-
#: includes/class-mla-options.php:
|
2636 |
msgid "Keep to Replace"
|
2637 |
msgstr ""
|
2638 |
|
2639 |
#. translators: 1: custom field name 2: attribute 3: old value 'to' new value
|
2640 |
-
#: includes/class-mla-options.php:
|
2641 |
-
#: includes/class-mla-options.php:
|
2642 |
-
#: includes/class-mla-options.php:
|
2643 |
-
#: includes/class-mla-options.php:
|
2644 |
-
#: includes/class-mla-options.php:
|
2645 |
-
#: includes/class-mla-options.php:
|
2646 |
#, php-format
|
2647 |
msgid "%1$s changing %2$s value from %3$s."
|
2648 |
msgstr ""
|
2649 |
|
2650 |
-
#: includes/class-mla-options.php:
|
2651 |
-
#: includes/class-mla-options.php:
|
2652 |
-
#: includes/class-mla-options.php:
|
2653 |
-
#: includes/class-mla-options.php:
|
2654 |
msgid "Existing Text"
|
2655 |
msgstr ""
|
2656 |
|
2657 |
-
#: includes/class-mla-options.php:
|
2658 |
msgid "Format"
|
2659 |
msgstr ""
|
2660 |
|
2661 |
-
#: includes/class-mla-options.php:
|
2662 |
-
#: includes/class-mla-options.php:
|
2663 |
msgid "unchecked to checked"
|
2664 |
msgstr ""
|
2665 |
|
2666 |
-
#: includes/class-mla-options.php:
|
2667 |
-
#: includes/class-mla-options.php:
|
2668 |
msgid "checked to unchecked"
|
2669 |
msgstr ""
|
2670 |
|
2671 |
-
#: includes/class-mla-options.php:
|
2672 |
msgid "MLA Column"
|
2673 |
msgstr ""
|
2674 |
|
2675 |
-
#: includes/class-mla-options.php:
|
2676 |
msgid "Metavalue name"
|
2677 |
msgstr ""
|
2678 |
|
2679 |
-
#: includes/class-mla-options.php:
|
2680 |
-
#: includes/class-mla-options.php:
|
2681 |
msgid "Option"
|
2682 |
msgstr ""
|
2683 |
|
2684 |
-
#: includes/class-mla-options.php:
|
2685 |
msgid "Delete NULL"
|
2686 |
msgstr ""
|
2687 |
|
2688 |
-
#: includes/class-mla-options.php:
|
2689 |
msgid "No Custom Field Mapping Rules Defined"
|
2690 |
msgstr ""
|
2691 |
|
2692 |
-
#: includes/class-mla-options.php:
|
2693 |
-
#: includes/class-mla-options.php:
|
2694 |
-
#: includes/class-mla-options.php:
|
2695 |
-
#: includes/class-mla-options.php:
|
2696 |
msgid "Keep"
|
2697 |
msgstr ""
|
2698 |
|
2699 |
-
#: includes/class-mla-options.php:
|
2700 |
-
#: includes/class-mla-options.php:
|
2701 |
msgid "Native"
|
2702 |
msgstr ""
|
2703 |
|
2704 |
-
#: includes/class-mla-options.php:
|
2705 |
-
#: includes/class-mla-options.php:
|
2706 |
msgid "Commas"
|
2707 |
msgstr ""
|
2708 |
|
2709 |
-
#: includes/class-mla-options.php:
|
2710 |
-
#: includes/class-mla-options.php:
|
2711 |
msgid "Text"
|
2712 |
msgstr ""
|
2713 |
|
2714 |
-
#: includes/class-mla-options.php:
|
2715 |
-
#: includes/class-mla-options.php:
|
2716 |
msgid "Single"
|
2717 |
msgstr ""
|
2718 |
|
2719 |
-
#: includes/class-mla-options.php:
|
2720 |
-
#: includes/class-mla-options.php:
|
2721 |
msgid "Export"
|
2722 |
msgstr ""
|
2723 |
|
2724 |
-
#: includes/class-mla-options.php:
|
2725 |
-
#: includes/class-mla-options.php:
|
2726 |
msgid "Array"
|
2727 |
msgstr ""
|
2728 |
|
2729 |
-
#: includes/class-mla-options.php:
|
2730 |
-
#: includes/class-mla-options.php:
|
2731 |
msgid "Multi"
|
2732 |
msgstr ""
|
2733 |
|
2734 |
-
#: includes/class-mla-options.php:
|
2735 |
-
#: includes/class-mla-options.php:
|
2736 |
msgid "Delete NULL values"
|
2737 |
msgstr ""
|
2738 |
|
2739 |
-
#: includes/class-mla-options.php:
|
2740 |
msgid "Delete Rule"
|
2741 |
msgstr ""
|
2742 |
|
2743 |
-
#: includes/class-mla-options.php:
|
2744 |
msgid "Delete Rule AND Field"
|
2745 |
msgstr ""
|
2746 |
|
2747 |
-
#: includes/class-mla-options.php:
|
2748 |
msgid "Update Rule"
|
2749 |
msgstr ""
|
2750 |
|
2751 |
-
#: includes/class-mla-options.php:
|
2752 |
msgid "Map All Attachments"
|
2753 |
msgstr ""
|
2754 |
|
2755 |
-
#: includes/class-mla-options.php:
|
2756 |
msgid "Add a new Mapping Rule"
|
2757 |
msgstr ""
|
2758 |
|
2759 |
-
#: includes/class-mla-options.php:
|
2760 |
msgid "Add Rule"
|
2761 |
msgstr ""
|
2762 |
|
2763 |
-
#: includes/class-mla-options.php:
|
2764 |
msgid "Add Rule and Map All Attachments"
|
2765 |
msgstr ""
|
2766 |
|
2767 |
-
#: includes/class-mla-options.php:
|
2768 |
msgid "Add a new Field and Mapping Rule"
|
2769 |
msgstr ""
|
2770 |
|
2771 |
-
#: includes/class-mla-options.php:
|
2772 |
msgid "Add Field"
|
2773 |
msgstr ""
|
2774 |
|
2775 |
-
#: includes/class-mla-options.php:
|
2776 |
msgid "Add Field and Map All Attachments"
|
2777 |
msgstr ""
|
2778 |
|
2779 |
-
#: includes/class-mla-options.php:
|
2780 |
-
#: includes/class-mla-options.php:
|
2781 |
-
#: includes/class-mla-options.php:
|
2782 |
msgid "Field Title"
|
2783 |
msgstr ""
|
2784 |
|
2785 |
-
#: includes/class-mla-options.php:
|
2786 |
msgid "Custom field mapping rules updated."
|
2787 |
msgstr ""
|
2788 |
|
2789 |
-
#: includes/class-mla-options.php:
|
2790 |
msgid "ERROR: Custom field mapping rules update failed."
|
2791 |
msgstr ""
|
2792 |
|
2793 |
-
#: includes/class-mla-options.php:
|
2794 |
msgid "Custom field no mapping rule changes detected."
|
2795 |
msgstr ""
|
2796 |
|
2797 |
-
#: includes/class-mla-options.php:
|
2798 |
msgid "Custom field mapping settings saved."
|
2799 |
msgstr ""
|
2800 |
|
2801 |
-
#: includes/class-mla-options.php:
|
2802 |
msgid "ERROR: Custom field mapping settings reset failed."
|
2803 |
msgstr ""
|
2804 |
|
2805 |
#. translators: 1: custom field name
|
2806 |
-
#: includes/class-mla-options.php:
|
2807 |
#, php-format
|
2808 |
msgid "ERROR: No old values for %1$s."
|
2809 |
msgstr ""
|
2810 |
|
2811 |
-
#: includes/class-mla-options.php:
|
2812 |
-
#: includes/class-mla-options.php:
|
2813 |
-
#: includes/class-mla-options.php:
|
2814 |
msgid "IPTC Value"
|
2815 |
msgstr ""
|
2816 |
|
2817 |
-
#: includes/class-mla-options.php:
|
2818 |
-
#: includes/class-mla-options.php:
|
2819 |
msgid "EXIF Value"
|
2820 |
msgstr ""
|
2821 |
|
2822 |
-
#: includes/class-mla-options.php:
|
2823 |
-
#: includes/class-mla-options.php:
|
2824 |
msgid "EXIF to IPTC"
|
2825 |
msgstr ""
|
2826 |
|
2827 |
-
#: includes/class-mla-options.php:
|
2828 |
-
#: includes/class-mla-options.php:
|
2829 |
msgid "IPTC to EXIF"
|
2830 |
msgstr ""
|
2831 |
|
2832 |
-
#: includes/class-mla-options.php:
|
2833 |
-
#: includes/class-mla-options.php:
|
2834 |
-
#: includes/class-mla-options.php:
|
2835 |
msgid "Priority"
|
2836 |
msgstr ""
|
2837 |
|
2838 |
-
#: includes/class-mla-options.php:
|
2839 |
msgid "Delimiter(s)"
|
2840 |
msgstr ""
|
2841 |
|
2842 |
-
#: includes/class-mla-options.php:
|
2843 |
-
#: includes/class-mla-options.php:
|
2844 |
-
#: includes/class-mla-options.php:
|
2845 |
msgid "IPTC"
|
2846 |
msgstr ""
|
2847 |
|
2848 |
-
#: includes/class-mla-options.php:
|
2849 |
-
#: includes/class-mla-options.php:
|
2850 |
-
#: includes/class-mla-options.php:
|
2851 |
msgid "EXIF"
|
2852 |
msgstr ""
|
2853 |
|
2854 |
-
#: includes/class-mla-options.php:
|
2855 |
-
#: includes/class-mla-options.php:
|
2856 |
msgid "EXIF/Template Value"
|
2857 |
msgstr ""
|
2858 |
|
2859 |
#. translators: 1: option name
|
2860 |
-
#: includes/class-mla-options.php:
|
2861 |
#, php-format
|
2862 |
msgid "ERROR: Render unknown custom %1$s."
|
2863 |
msgstr ""
|
2864 |
|
2865 |
#. translators: 1: option name
|
2866 |
-
#: includes/class-mla-options.php:
|
2867 |
#, php-format
|
2868 |
msgid "ERROR: Update/delete unknown custom %1$s."
|
2869 |
msgstr ""
|
2870 |
|
2871 |
-
#: includes/class-mla-options.php:
|
2872 |
msgid "IPTC/EXIF mapping settings updated."
|
2873 |
msgstr ""
|
2874 |
|
2875 |
-
#: includes/class-mla-options.php:
|
2876 |
msgid "ERROR: IPTC/EXIF settings update failed."
|
2877 |
msgstr ""
|
2878 |
|
2879 |
-
#: includes/class-mla-options.php:
|
2880 |
msgid "IPTC/EXIF no mapping changes detected."
|
2881 |
msgstr ""
|
2882 |
|
2883 |
#. translators: 1: field type
|
2884 |
-
#: includes/class-mla-options.php:
|
2885 |
-
#: includes/class-mla-options.php:
|
2886 |
#, php-format
|
2887 |
msgid "%1$s settings saved."
|
2888 |
msgstr ""
|
2889 |
|
2890 |
-
#: includes/class-mla-options.php:
|
2891 |
-
#: includes/class-mla-settings.php:
|
2892 |
-
#: includes/class-mla-settings.php:
|
2893 |
msgid "Standard field"
|
2894 |
msgstr ""
|
2895 |
|
2896 |
#. translators: 1: field type
|
2897 |
-
#: includes/class-mla-options.php:
|
2898 |
-
#: includes/class-mla-options.php:
|
2899 |
#, php-format
|
2900 |
msgid "ERROR: IPTC/EXIF %1$s settings update failed."
|
2901 |
msgstr ""
|
2902 |
|
2903 |
-
#: includes/class-mla-options.php:
|
2904 |
-
#: includes/class-mla-settings.php:
|
2905 |
-
#: includes/class-mla-settings.php:
|
2906 |
msgid "Taxonomy term"
|
2907 |
msgstr ""
|
2908 |
|
2909 |
-
#: includes/class-mla-options.php:
|
2910 |
-
#: includes/class-mla-settings.php:
|
2911 |
-
#: includes/class-mla-settings.php:
|
2912 |
-
#: includes/class-mla-settings.php:
|
2913 |
msgid "Custom field"
|
2914 |
msgstr ""
|
2915 |
|
2916 |
#. translators: 1: option name, e.g., taxonomy_support
|
2917 |
-
#: includes/class-mla-options.php:
|
2918 |
#, php-format
|
2919 |
msgid "ERROR: Reset unknown custom %1$s"
|
2920 |
msgstr ""
|
2921 |
|
2922 |
-
#: includes/class-mla-settings.php:
|
2923 |
msgid "no slug"
|
2924 |
msgstr ""
|
2925 |
|
2926 |
-
#: includes/class-mla-settings.php:
|
2927 |
msgid "Media Library Assistant Settings"
|
2928 |
msgstr ""
|
2929 |
|
2930 |
-
#: includes/class-mla-settings.php:
|
2931 |
msgid "Views per page"
|
2932 |
msgstr ""
|
2933 |
|
2934 |
-
#: includes/class-mla-settings.php:
|
2935 |
msgid "Types per page"
|
2936 |
msgstr ""
|
2937 |
|
2938 |
-
#: includes/class-mla-settings.php:
|
2939 |
msgid "Upload types per page"
|
2940 |
msgstr ""
|
2941 |
|
2942 |
-
#: includes/class-mla-settings.php:
|
2943 |
msgid "ERROR: No view slug found"
|
2944 |
msgstr ""
|
2945 |
|
2946 |
-
#: includes/class-mla-settings.php:
|
2947 |
msgid "ERROR: No upload slug found"
|
2948 |
msgstr ""
|
2949 |
|
2950 |
-
#: includes/class-mla-settings.php:
|
2951 |
msgid "Settings"
|
2952 |
msgstr ""
|
2953 |
|
2954 |
#. translators: 1: function name 2: option type, e.g., radio, select, text
|
2955 |
-
#: includes/class-mla-settings.php:
|
2956 |
-
#: includes/class-mla-settings.php:
|
2957 |
#, php-format
|
2958 |
msgctxt "error_log"
|
2959 |
msgid "ERROR: %1$s unknown type = \"%2$s\""
|
2960 |
msgstr ""
|
2961 |
|
2962 |
-
#: includes/class-mla-settings.php:
|
2963 |
msgid "Go to Top"
|
2964 |
msgstr ""
|
2965 |
|
2966 |
-
#: includes/class-mla-settings.php:
|
2967 |
msgid "General"
|
2968 |
msgstr ""
|
2969 |
|
2970 |
-
#: includes/class-mla-settings.php:
|
2971 |
msgid "Views"
|
2972 |
msgstr ""
|
2973 |
|
2974 |
-
#: includes/class-mla-settings.php:
|
2975 |
msgid "Uploads"
|
2976 |
msgstr ""
|
2977 |
|
2978 |
-
#: includes/class-mla-settings.php:
|
2979 |
-
#: includes/class-mla-settings.php:
|
2980 |
msgid "MLA Gallery"
|
2981 |
msgstr ""
|
2982 |
|
2983 |
-
#: includes/class-mla-settings.php:
|
2984 |
msgid "Custom Fields"
|
2985 |
msgstr ""
|
2986 |
|
2987 |
-
#: includes/class-mla-settings.php:
|
2988 |
msgid "Documentation"
|
2989 |
msgstr ""
|
2990 |
|
2991 |
-
#: includes/class-mla-settings.php:
|
2992 |
msgid "General Processing Options"
|
2993 |
msgstr ""
|
2994 |
|
2995 |
#. translators: 1: - 4: page subheader values
|
2996 |
-
#: includes/class-mla-settings.php:
|
2997 |
#, php-format
|
2998 |
msgid ""
|
2999 |
"In this tab you can find a number of options for controlling the "
|
@@ -3002,40 +3008,40 @@ msgid ""
|
|
3002 |
"any changes you make."
|
3003 |
msgstr ""
|
3004 |
|
3005 |
-
#: includes/class-mla-settings.php:
|
3006 |
msgid "Media/Assistant Table Defaults"
|
3007 |
msgstr ""
|
3008 |
|
3009 |
-
#: includes/class-mla-settings.php:
|
3010 |
-
#: includes/class-mla-settings.php:
|
3011 |
-
#: includes/class-mla-settings.php:
|
3012 |
-
#: includes/class-mla-settings.php:
|
3013 |
-
#: includes/class-mla-settings.php:
|
3014 |
msgid "Save Changes"
|
3015 |
msgstr ""
|
3016 |
|
3017 |
-
#: includes/class-mla-settings.php:
|
3018 |
msgid "Export ALL Settings"
|
3019 |
msgstr ""
|
3020 |
|
3021 |
-
#: includes/class-mla-settings.php:
|
3022 |
msgid "Delete General options and restore default settings"
|
3023 |
msgstr ""
|
3024 |
|
3025 |
-
#: includes/class-mla-settings.php:
|
3026 |
msgid "Support Our Work"
|
3027 |
msgstr ""
|
3028 |
|
3029 |
-
#: includes/class-mla-settings.php:
|
3030 |
msgid "Donate to FTJ"
|
3031 |
msgstr ""
|
3032 |
|
3033 |
-
#: includes/class-mla-settings.php:
|
3034 |
msgid "Donate"
|
3035 |
msgstr ""
|
3036 |
|
3037 |
#. translators: 1: donation hyperlink
|
3038 |
-
#: includes/class-mla-settings.php:
|
3039 |
#, php-format
|
3040 |
msgid ""
|
3041 |
"This plugin was inspired by my work on the WordPress web site for our "
|
@@ -3044,27 +3050,27 @@ msgid ""
|
|
3044 |
"our work. Thank you!"
|
3045 |
msgstr ""
|
3046 |
|
3047 |
-
#: includes/class-mla-settings.php:
|
3048 |
msgid "tax-deductible donation"
|
3049 |
msgstr ""
|
3050 |
|
3051 |
-
#: includes/class-mla-settings.php:
|
3052 |
msgid "enhanced version of the WordPress [gallery] shortcode."
|
3053 |
msgstr ""
|
3054 |
|
3055 |
-
#: includes/class-mla-settings.php:
|
3056 |
msgid "enhanced version of the WordPress Tag Cloud."
|
3057 |
msgstr ""
|
3058 |
|
3059 |
-
#: includes/class-mla-settings.php:
|
3060 |
msgid "Shortcodes made available by this plugin"
|
3061 |
msgstr ""
|
3062 |
|
3063 |
-
#: includes/class-mla-settings.php:
|
3064 |
msgid "Edit View"
|
3065 |
msgstr ""
|
3066 |
|
3067 |
-
#: includes/class-mla-settings.php:
|
3068 |
msgid ""
|
3069 |
"The “slug” is the URL-friendly, unique key for the view. It must "
|
3070 |
"be all lowercase and contain only letters, numbers, periods (.), slashes (/) "
|
@@ -3073,25 +3079,25 @@ msgid ""
|
|
3073 |
"MIME</strong> type, e.g., “image” or “image/jpeg”."
|
3074 |
msgstr ""
|
3075 |
|
3076 |
-
#: includes/class-mla-settings.php:
|
3077 |
msgid "Singular Label"
|
3078 |
msgstr ""
|
3079 |
|
3080 |
-
#: includes/class-mla-settings.php:
|
3081 |
msgid "Plural Label"
|
3082 |
msgstr ""
|
3083 |
|
3084 |
-
#: includes/class-mla-settings.php:
|
3085 |
msgid ""
|
3086 |
"The labels, e.g., “Image” and “Images” are used for "
|
3087 |
"column headers and other display purposes."
|
3088 |
msgstr ""
|
3089 |
|
3090 |
-
#: includes/class-mla-settings.php:
|
3091 |
msgid "Specification"
|
3092 |
msgstr ""
|
3093 |
|
3094 |
-
#: includes/class-mla-settings.php:
|
3095 |
msgid ""
|
3096 |
"If the MIME type specification differs from the slug, enter it here. You may "
|
3097 |
"include multiple MIME types, e.g., “audio,video” and/or wildcard "
|
@@ -3099,54 +3105,54 @@ msgid ""
|
|
3099 |
"MIME Type box is checked."
|
3100 |
msgstr ""
|
3101 |
|
3102 |
-
#: includes/class-mla-settings.php:
|
3103 |
msgid "Post MIME Type"
|
3104 |
msgstr ""
|
3105 |
|
3106 |
-
#: includes/class-mla-settings.php:
|
3107 |
msgid ""
|
3108 |
"Check this box if you want to add this entry to the list of MIME types "
|
3109 |
"returned by wp_get_mime_types()."
|
3110 |
msgstr ""
|
3111 |
|
3112 |
-
#: includes/class-mla-settings.php:
|
3113 |
msgid "Table View"
|
3114 |
msgstr ""
|
3115 |
|
3116 |
-
#: includes/class-mla-settings.php:
|
3117 |
msgid ""
|
3118 |
"Check this box if you want to add this entry to the list of Media/Assistant "
|
3119 |
"table views."
|
3120 |
msgstr ""
|
3121 |
|
3122 |
-
#: includes/class-mla-settings.php:
|
3123 |
msgid ""
|
3124 |
"You can choose your own table view order by entering a number (1 for first, "
|
3125 |
"etc.) in this field."
|
3126 |
msgstr ""
|
3127 |
|
3128 |
-
#: includes/class-mla-settings.php:
|
3129 |
-
#: includes/class-mla-settings.php:
|
3130 |
msgid ""
|
3131 |
"The description can contain any documentation or notes you need to "
|
3132 |
"understand or use the item."
|
3133 |
msgstr ""
|
3134 |
|
3135 |
#. translators: 1: view name/slug
|
3136 |
-
#: includes/class-mla-settings.php:
|
3137 |
#, php-format
|
3138 |
msgid "Edit view \"%1$s\" cancelled."
|
3139 |
msgstr ""
|
3140 |
|
3141 |
-
#: includes/class-mla-settings.php:
|
3142 |
msgid "View and Post MIME Type Support is disabled"
|
3143 |
msgstr ""
|
3144 |
|
3145 |
-
#: includes/class-mla-settings.php:
|
3146 |
msgid "Library Views/Post MIME Type Processing"
|
3147 |
msgstr ""
|
3148 |
|
3149 |
-
#: includes/class-mla-settings.php:
|
3150 |
msgid ""
|
3151 |
"In this tab you can manage the list of \"Post MIME Types\", which are used "
|
3152 |
"by WordPress to define the views for the <em><strong>Media/Library</strong></"
|
@@ -3158,7 +3164,7 @@ msgid ""
|
|
3158 |
msgstr ""
|
3159 |
|
3160 |
#. translators: 1: Documentation hyperlink
|
3161 |
-
#: includes/class-mla-settings.php:
|
3162 |
#, php-format
|
3163 |
msgid ""
|
3164 |
"You can find more information about library views, Post MIME types and how "
|
@@ -3167,100 +3173,100 @@ msgid ""
|
|
3167 |
"screen."
|
3168 |
msgstr ""
|
3169 |
|
3170 |
-
#: includes/class-mla-settings.php:
|
3171 |
msgid "Library View Processing documentation"
|
3172 |
msgstr ""
|
3173 |
|
3174 |
-
#: includes/class-mla-settings.php:
|
3175 |
-
#: includes/class-mla-settings.php:
|
3176 |
msgid "Displaying search results for"
|
3177 |
msgstr ""
|
3178 |
|
3179 |
-
#: includes/class-mla-settings.php:
|
3180 |
msgid "Search Views"
|
3181 |
msgstr ""
|
3182 |
|
3183 |
-
#: includes/class-mla-settings.php:
|
3184 |
msgid "Add New View"
|
3185 |
msgstr ""
|
3186 |
|
3187 |
-
#: includes/class-mla-settings.php:
|
3188 |
msgid "Add View"
|
3189 |
msgstr ""
|
3190 |
|
3191 |
-
#: includes/class-mla-settings.php:
|
3192 |
msgid "<strong>Quick Edit</strong>"
|
3193 |
msgstr ""
|
3194 |
|
3195 |
-
#: includes/class-mla-settings.php:
|
3196 |
#: includes/class-mla-view-list-table.php:377
|
3197 |
#: includes/class-mla-view-list-table.php:393
|
3198 |
msgid "Yes"
|
3199 |
msgstr ""
|
3200 |
|
3201 |
-
#: includes/class-mla-settings.php:
|
3202 |
msgid "Edit Upload MIME Type"
|
3203 |
msgstr ""
|
3204 |
|
3205 |
-
#: includes/class-mla-settings.php:
|
3206 |
msgid "Extension"
|
3207 |
msgstr ""
|
3208 |
|
3209 |
-
#: includes/class-mla-settings.php:
|
3210 |
msgid ""
|
3211 |
"The “extension” is the file extension for this type, and a "
|
3212 |
"unique key for the item. It must be all lowercase and contain only letters "
|
3213 |
"and numbers."
|
3214 |
msgstr ""
|
3215 |
|
3216 |
-
#: includes/class-mla-settings.php:
|
3217 |
msgid ""
|
3218 |
"The MIME Type must be all lowercase and contain only letters, numbers, "
|
3219 |
"periods (.), slashes (/) and hyphens (-). It <strong>must be a valid MIME</"
|
3220 |
"strong> type, e.g., “image” or “image/jpeg”."
|
3221 |
msgstr ""
|
3222 |
|
3223 |
-
#: includes/class-mla-settings.php:
|
3224 |
msgid "Icon Type"
|
3225 |
msgstr ""
|
3226 |
|
3227 |
-
#: includes/class-mla-settings.php:
|
3228 |
msgid ""
|
3229 |
"The Icon Type selects a thumbnail image displayed for non-image file types, "
|
3230 |
"such as PDF documents."
|
3231 |
msgstr ""
|
3232 |
|
3233 |
-
#: includes/class-mla-settings.php:
|
3234 |
msgid "Inactive"
|
3235 |
msgstr ""
|
3236 |
|
3237 |
-
#: includes/class-mla-settings.php:
|
3238 |
msgid ""
|
3239 |
"Check this box if you want to remove this entry from the list of Upload MIME "
|
3240 |
"Types returned by get_allowed_mime_types()."
|
3241 |
msgstr ""
|
3242 |
|
3243 |
-
#: includes/class-mla-settings.php:
|
3244 |
msgid "Known File Extension/MIME Type Associations"
|
3245 |
msgstr ""
|
3246 |
|
3247 |
-
#: includes/class-mla-settings.php:
|
3248 |
msgid "Search Known MIME Types"
|
3249 |
msgstr ""
|
3250 |
|
3251 |
-
#: includes/class-mla-settings.php:
|
3252 |
msgid "To search by extension, use \".\", e.g., \".doc\""
|
3253 |
msgstr ""
|
3254 |
|
3255 |
-
#: includes/class-mla-settings.php:
|
3256 |
msgid "Upload MIME Type Support is disabled"
|
3257 |
msgstr ""
|
3258 |
|
3259 |
-
#: includes/class-mla-settings.php:
|
3260 |
msgid "File Extension and MIME Type Processing"
|
3261 |
msgstr ""
|
3262 |
|
3263 |
-
#: includes/class-mla-settings.php:
|
3264 |
msgid ""
|
3265 |
"In this tab you can manage the list of file extension/MIME Type "
|
3266 |
"associations, which are used by WordPress to decide what kind of files can "
|
@@ -3270,7 +3276,7 @@ msgid ""
|
|
3270 |
msgstr ""
|
3271 |
|
3272 |
#. translators: 1: Documentation hyperlink
|
3273 |
-
#: includes/class-mla-settings.php:
|
3274 |
#, php-format
|
3275 |
msgid ""
|
3276 |
"You can find more information about file extensions, MIME types and how "
|
@@ -3278,52 +3284,52 @@ msgid ""
|
|
3278 |
"the <strong>\"Help\"</strong> tab in the upper-right corner of this screen."
|
3279 |
msgstr ""
|
3280 |
|
3281 |
-
#: includes/class-mla-settings.php:
|
3282 |
msgid "File Extension Processing documentation"
|
3283 |
msgstr ""
|
3284 |
|
3285 |
-
#: includes/class-mla-settings.php:
|
3286 |
msgid "Search Uploads"
|
3287 |
msgstr ""
|
3288 |
|
3289 |
-
#: includes/class-mla-settings.php:
|
3290 |
msgid "Add New Upload MIME Type"
|
3291 |
msgstr ""
|
3292 |
|
3293 |
-
#: includes/class-mla-settings.php:
|
3294 |
msgid ""
|
3295 |
"To search the database of over 1,500 known extension/type associations, "
|
3296 |
"click \"Search Known Types\" below the form."
|
3297 |
msgstr ""
|
3298 |
|
3299 |
-
#: includes/class-mla-settings.php:
|
3300 |
msgid ""
|
3301 |
"The “extension” is the file extension for this type, and unique "
|
3302 |
"key for the item. It must be all lowercase and contain only letters and "
|
3303 |
"numbers."
|
3304 |
msgstr ""
|
3305 |
|
3306 |
-
#: includes/class-mla-settings.php:
|
3307 |
msgid "Add Upload MIME Type"
|
3308 |
msgstr ""
|
3309 |
|
3310 |
-
#: includes/class-mla-settings.php:
|
3311 |
msgid "Search Known Types"
|
3312 |
msgstr ""
|
3313 |
|
3314 |
-
#: includes/class-mla-settings.php:
|
3315 |
msgid "Active"
|
3316 |
msgstr ""
|
3317 |
|
3318 |
-
#: includes/class-mla-settings.php:
|
3319 |
msgid "MLA Gallery Options"
|
3320 |
msgstr ""
|
3321 |
|
3322 |
-
#: includes/class-mla-settings.php:
|
3323 |
msgid "Go to Markup Templates"
|
3324 |
msgstr ""
|
3325 |
|
3326 |
-
#: includes/class-mla-settings.php:
|
3327 |
msgid ""
|
3328 |
"In this tab you can view the default style and markup templates. You can "
|
3329 |
"also define additional templates and use the <code>mla_style</code> and "
|
@@ -3333,121 +3339,121 @@ msgid ""
|
|
3333 |
"Changes\" at the bottom of this page."
|
3334 |
msgstr ""
|
3335 |
|
3336 |
-
#: includes/class-mla-settings.php:
|
3337 |
msgid "Style Templates"
|
3338 |
msgstr ""
|
3339 |
|
3340 |
-
#: includes/class-mla-settings.php:
|
3341 |
msgid "Markup Templates"
|
3342 |
msgstr ""
|
3343 |
|
3344 |
-
#: includes/class-mla-settings.php:
|
3345 |
msgid "Theme"
|
3346 |
msgstr ""
|
3347 |
|
3348 |
-
#: includes/class-mla-settings.php:
|
3349 |
msgid ""
|
3350 |
"This default template cannot be altered or deleted, but you can copy the "
|
3351 |
"styles."
|
3352 |
msgstr ""
|
3353 |
|
3354 |
-
#: includes/class-mla-settings.php:
|
3355 |
-
#: includes/class-mla-settings.php:
|
3356 |
msgid "Styles"
|
3357 |
msgstr ""
|
3358 |
|
3359 |
-
#: includes/class-mla-settings.php:
|
3360 |
-
#: includes/class-mla-settings.php:
|
3361 |
msgid ""
|
3362 |
"List of substitution parameters, e.g., [+selector+], on Documentation tab."
|
3363 |
msgstr ""
|
3364 |
|
3365 |
-
#: includes/class-mla-settings.php:
|
3366 |
msgid "Delete this template"
|
3367 |
msgstr ""
|
3368 |
|
3369 |
-
#: includes/class-mla-settings.php:
|
3370 |
msgid ""
|
3371 |
"Check the box to delete this template when you press Update at the bottom of "
|
3372 |
"the page."
|
3373 |
msgstr ""
|
3374 |
|
3375 |
-
#: includes/class-mla-settings.php:
|
3376 |
msgid "Fill in a name and styles to add a new template."
|
3377 |
msgstr ""
|
3378 |
|
3379 |
-
#: includes/class-mla-settings.php:
|
3380 |
msgid ""
|
3381 |
"This default template cannot be altered or deleted, but you can copy the "
|
3382 |
"markup."
|
3383 |
msgstr ""
|
3384 |
|
3385 |
-
#: includes/class-mla-settings.php:
|
3386 |
-
#: includes/class-mla-settings.php:
|
3387 |
msgid "Open"
|
3388 |
msgstr ""
|
3389 |
|
3390 |
-
#: includes/class-mla-settings.php:
|
3391 |
-
#: includes/class-mla-settings.php:
|
3392 |
msgid ""
|
3393 |
"Markup for the beginning of the gallery. List of parameters, e.g., [+selector"
|
3394 |
"+], on Documentation tab."
|
3395 |
msgstr ""
|
3396 |
|
3397 |
-
#: includes/class-mla-settings.php:
|
3398 |
-
#: includes/class-mla-settings.php:
|
3399 |
msgid "Row"
|
3400 |
msgstr ""
|
3401 |
|
3402 |
-
#: includes/class-mla-settings.php:
|
3403 |
msgid "Markup for the beginning of each row in the gallery."
|
3404 |
msgstr ""
|
3405 |
|
3406 |
-
#: includes/class-mla-settings.php:
|
3407 |
-
#: includes/class-mla-settings.php:
|
3408 |
msgid "Item"
|
3409 |
msgstr ""
|
3410 |
|
3411 |
-
#: includes/class-mla-settings.php:
|
3412 |
msgid "Markup for each item/cell of the gallery."
|
3413 |
msgstr ""
|
3414 |
|
3415 |
-
#: includes/class-mla-settings.php:
|
3416 |
-
#: includes/class-mla-settings.php:
|
3417 |
msgid "Close"
|
3418 |
msgstr ""
|
3419 |
|
3420 |
-
#: includes/class-mla-settings.php:
|
3421 |
msgid "Markup for the end of each row in the gallery."
|
3422 |
msgstr ""
|
3423 |
|
3424 |
-
#: includes/class-mla-settings.php:
|
3425 |
-
#: includes/class-mla-settings.php:
|
3426 |
msgid "Markup for the end of the gallery."
|
3427 |
msgstr ""
|
3428 |
|
3429 |
-
#: includes/class-mla-settings.php:
|
3430 |
msgid "Markup for the beginning of each row."
|
3431 |
msgstr ""
|
3432 |
|
3433 |
-
#: includes/class-mla-settings.php:
|
3434 |
msgid "Markup for each item/cell."
|
3435 |
msgstr ""
|
3436 |
|
3437 |
-
#: includes/class-mla-settings.php:
|
3438 |
msgid "Markup for the end of each row."
|
3439 |
msgstr ""
|
3440 |
|
3441 |
-
#: includes/class-mla-settings.php:
|
3442 |
msgid "Fill in a name and markup to add a new template."
|
3443 |
msgstr ""
|
3444 |
|
3445 |
-
#: includes/class-mla-settings.php:
|
3446 |
msgid "Custom Field and Attachment Metadata Processing Options"
|
3447 |
msgstr ""
|
3448 |
|
3449 |
#. translators: 1: Documentation hyperlink
|
3450 |
-
#: includes/class-mla-settings.php:
|
3451 |
#, php-format
|
3452 |
msgid ""
|
3453 |
"In this tab you can define the rules for mapping several types of image "
|
@@ -3457,36 +3463,36 @@ msgid ""
|
|
3457 |
"field. See the %1$s section of the Documentation for details."
|
3458 |
msgstr ""
|
3459 |
|
3460 |
-
#: includes/class-mla-settings.php:
|
3461 |
msgid "Updating Attachment Metadata Documentation"
|
3462 |
msgstr ""
|
3463 |
|
3464 |
-
#: includes/class-mla-settings.php:
|
3465 |
msgid "Adding or changing Attachment Metadata"
|
3466 |
msgstr ""
|
3467 |
|
3468 |
#. translators: 1: Documentation hyperlink
|
3469 |
-
#: includes/class-mla-settings.php:
|
3470 |
#, php-format
|
3471 |
msgid ""
|
3472 |
"You can find more information about using the controls in this tab to define "
|
3473 |
"mapping rules and apply them in the %1$s section of the Documentation."
|
3474 |
msgstr ""
|
3475 |
|
3476 |
-
#: includes/class-mla-settings.php:
|
3477 |
msgid "Custom Field Options documentation"
|
3478 |
msgstr ""
|
3479 |
|
3480 |
-
#: includes/class-mla-settings.php:
|
3481 |
msgid "Custom field mapping"
|
3482 |
msgstr ""
|
3483 |
|
3484 |
-
#: includes/class-mla-settings.php:
|
3485 |
msgid "Map All Rules, All Attachments Now"
|
3486 |
msgstr ""
|
3487 |
|
3488 |
#. translators: 1: "Save Changes"
|
3489 |
-
#: includes/class-mla-settings.php:
|
3490 |
#, php-format
|
3491 |
msgid ""
|
3492 |
"Click %1$s to update the \"Enable custom field mapping...\" checkbox and/or "
|
@@ -3495,18 +3501,18 @@ msgid ""
|
|
3495 |
msgstr ""
|
3496 |
|
3497 |
#. translators: 1: "Map All Rules..."
|
3498 |
-
#: includes/class-mla-settings.php:
|
3499 |
#, php-format
|
3500 |
msgid ""
|
3501 |
"Click %1$s to apply all the rules at once (rule changes will be applied but "
|
3502 |
"not saved)."
|
3503 |
msgstr ""
|
3504 |
|
3505 |
-
#: includes/class-mla-settings.php:
|
3506 |
msgid "IPTC & EXIF Processing Options"
|
3507 |
msgstr ""
|
3508 |
|
3509 |
-
#: includes/class-mla-settings.php:
|
3510 |
msgid ""
|
3511 |
"In this tab you can define the rules for mapping IPTC (International Press "
|
3512 |
"Telecommunications Council) and EXIF (EXchangeable Image File) metadata to "
|
@@ -3515,32 +3521,32 @@ msgid ""
|
|
3515 |
"click \"Save Changes\" at the bottom of this page."
|
3516 |
msgstr ""
|
3517 |
|
3518 |
-
#: includes/class-mla-settings.php:
|
3519 |
msgid "IPTC/EXIF Options documentation"
|
3520 |
msgstr ""
|
3521 |
|
3522 |
-
#: includes/class-mla-settings.php:
|
3523 |
msgid "Standard field mapping"
|
3524 |
msgstr ""
|
3525 |
|
3526 |
-
#: includes/class-mla-settings.php:
|
3527 |
msgid "Map All Attachments, Standard Fields Now"
|
3528 |
msgstr ""
|
3529 |
|
3530 |
-
#: includes/class-mla-settings.php:
|
3531 |
msgid "Taxonomy term mapping"
|
3532 |
msgstr ""
|
3533 |
|
3534 |
-
#: includes/class-mla-settings.php:
|
3535 |
msgid "Map All Attachments, Taxonomy Terms Now"
|
3536 |
msgstr ""
|
3537 |
|
3538 |
-
#: includes/class-mla-settings.php:
|
3539 |
msgid "Map All Attachments, Custom Fields Now"
|
3540 |
msgstr ""
|
3541 |
|
3542 |
#. translators: 1: "Save Changes"
|
3543 |
-
#: includes/class-mla-settings.php:
|
3544 |
#, php-format
|
3545 |
msgid ""
|
3546 |
"Click %1$s to update the \"Enable IPTC/EXIF mapping...\" checkbox and/or all "
|
@@ -3548,159 +3554,159 @@ msgid ""
|
|
3548 |
"performed.</strong>"
|
3549 |
msgstr ""
|
3550 |
|
3551 |
-
#: includes/class-mla-settings.php:
|
3552 |
msgid "Media Library Assistant - Error"
|
3553 |
msgstr ""
|
3554 |
|
3555 |
-
#: includes/class-mla-settings.php:
|
3556 |
msgid "You do not have permission to manage plugin settings."
|
3557 |
msgstr ""
|
3558 |
|
3559 |
-
#: includes/class-mla-settings.php:
|
3560 |
msgid "ERROR: Cannot render content tab"
|
3561 |
msgstr ""
|
3562 |
|
3563 |
-
#: includes/class-mla-settings.php:
|
3564 |
msgid "ERROR: Unknown content tab"
|
3565 |
msgstr ""
|
3566 |
|
3567 |
#. translators: 1: template type 2: template name
|
3568 |
-
#: includes/class-mla-settings.php:
|
3569 |
#, php-format
|
3570 |
msgctxt "message_list"
|
3571 |
msgid "Deleting %1$s \"%2$s\"."
|
3572 |
msgstr ""
|
3573 |
|
3574 |
#. translators: 1: template name 2: template type
|
3575 |
-
#: includes/class-mla-settings.php:
|
3576 |
#, php-format
|
3577 |
msgid "ERROR: Reserved name \"%1$s\", new %2$s discarded."
|
3578 |
msgstr ""
|
3579 |
|
3580 |
#. translators: 1: template name 2: template type
|
3581 |
-
#: includes/class-mla-settings.php:
|
3582 |
#, php-format
|
3583 |
msgid "ERROR: Duplicate name \"%1$s\", new %2$s discarded."
|
3584 |
msgstr ""
|
3585 |
|
3586 |
#. translators: 1: template type 2: template name
|
3587 |
-
#: includes/class-mla-settings.php:
|
3588 |
#, php-format
|
3589 |
msgctxt "message_list"
|
3590 |
msgid "Adding new %1$s \"%2$s\"."
|
3591 |
msgstr ""
|
3592 |
|
3593 |
#. translators: 1: element name 3: old value
|
3594 |
-
#: includes/class-mla-settings.php:
|
3595 |
#, php-format
|
3596 |
msgid "ERROR: Blank %1$s, reverting to \"%3$s\"."
|
3597 |
msgstr ""
|
3598 |
|
3599 |
-
#: includes/class-mla-settings.php:
|
3600 |
-
#: includes/class-mla-settings.php:
|
3601 |
msgid "style template name"
|
3602 |
msgstr ""
|
3603 |
|
3604 |
#. translators: 1: element name 2: new value 3: old value
|
3605 |
-
#: includes/class-mla-settings.php:
|
3606 |
#, php-format
|
3607 |
msgid "ERROR: Duplicate new %1$s \"%2$s\", reverting to \"%3$s\"."
|
3608 |
msgstr ""
|
3609 |
|
3610 |
#. translators: 1: element name 2: old_value 3: new_value
|
3611 |
-
#: includes/class-mla-settings.php:
|
3612 |
#, php-format
|
3613 |
msgctxt "message_list"
|
3614 |
msgid "Changing %1$s from \"%2$s\" to \"%3$s\""
|
3615 |
msgstr ""
|
3616 |
|
3617 |
#. translators: 1: template type 2: template name
|
3618 |
-
#: includes/class-mla-settings.php:
|
3619 |
#, php-format
|
3620 |
msgctxt "message_list"
|
3621 |
msgid "Updating contents of %1$s \"%2$s\"."
|
3622 |
msgstr ""
|
3623 |
|
3624 |
#. translators: 1: template type
|
3625 |
-
#: includes/class-mla-settings.php:
|
3626 |
#, php-format
|
3627 |
msgid "ERROR: Update of %1$s failed."
|
3628 |
msgstr ""
|
3629 |
|
3630 |
-
#: includes/class-mla-settings.php:
|
3631 |
-
#: includes/class-mla-settings.php:
|
3632 |
msgid "markup template name"
|
3633 |
msgstr ""
|
3634 |
|
3635 |
#. translators: 1: template name
|
3636 |
-
#: includes/class-mla-settings.php:
|
3637 |
#, php-format
|
3638 |
msgctxt "message_list"
|
3639 |
msgid "Updating open markup for \"%1$s\"."
|
3640 |
msgstr ""
|
3641 |
|
3642 |
#. translators: 1: template name
|
3643 |
-
#: includes/class-mla-settings.php:
|
3644 |
#, php-format
|
3645 |
msgctxt "message_list"
|
3646 |
msgid "Updating row open markup for \"%1$s\"."
|
3647 |
msgstr ""
|
3648 |
|
3649 |
#. translators: 1: template name
|
3650 |
-
#: includes/class-mla-settings.php:
|
3651 |
#, php-format
|
3652 |
msgctxt "message_list"
|
3653 |
msgid "Updating item markup for \"%1$s\"."
|
3654 |
msgstr ""
|
3655 |
|
3656 |
#. translators: 1: template name
|
3657 |
-
#: includes/class-mla-settings.php:
|
3658 |
#, php-format
|
3659 |
msgctxt "message_list"
|
3660 |
msgid "Updating row close markup for \"%1$s\"."
|
3661 |
msgstr ""
|
3662 |
|
3663 |
#. translators: 1: template name
|
3664 |
-
#: includes/class-mla-settings.php:
|
3665 |
#, php-format
|
3666 |
msgctxt "message_list"
|
3667 |
msgid "Updating close markup for \"%1$s\"."
|
3668 |
msgstr ""
|
3669 |
|
3670 |
#. translators: 1: field type
|
3671 |
-
#: includes/class-mla-settings.php:
|
3672 |
#, php-format
|
3673 |
msgid "%1$s no changes detected."
|
3674 |
msgstr ""
|
3675 |
|
3676 |
-
#: includes/class-mla-settings.php:
|
3677 |
msgid "View settings saved."
|
3678 |
msgstr ""
|
3679 |
|
3680 |
-
#: includes/class-mla-settings.php:
|
3681 |
msgid "Upload MIME Type settings saved."
|
3682 |
msgstr ""
|
3683 |
|
3684 |
-
#: includes/class-mla-settings.php:
|
3685 |
msgid "ERROR: No custom field mapping rules to process."
|
3686 |
msgstr ""
|
3687 |
|
3688 |
#. translators: 1: field type 2: examined count 3: updated count
|
3689 |
-
#: includes/class-mla-settings.php:
|
3690 |
-
#: includes/class-mla-settings.php:
|
3691 |
#, php-format
|
3692 |
msgid "%1$s mapping completed; %2$d attachment(s) examined, %3$d updated."
|
3693 |
msgstr ""
|
3694 |
|
3695 |
#. translators: 1: field type 2: examined count
|
3696 |
-
#: includes/class-mla-settings.php:
|
3697 |
-
#: includes/class-mla-settings.php:
|
3698 |
#, php-format
|
3699 |
msgid ""
|
3700 |
"%1$s mapping completed; %2$d attachment(s) examined, no changes detected."
|
3701 |
msgstr ""
|
3702 |
|
3703 |
-
#: includes/class-mla-settings.php:
|
3704 |
#, php-format
|
3705 |
msgid "%s attachment"
|
3706 |
msgid_plural "%s attachments"
|
@@ -3708,145 +3714,145 @@ msgstr[0] ""
|
|
3708 |
msgstr[1] ""
|
3709 |
|
3710 |
#. translators: 1: number of attachments
|
3711 |
-
#: includes/class-mla-settings.php:
|
3712 |
#, php-format
|
3713 |
msgid "Deleted custom field value from %1$s."
|
3714 |
msgstr ""
|
3715 |
|
3716 |
-
#: includes/class-mla-settings.php:
|
3717 |
msgid "No attachments contained this custom field."
|
3718 |
msgstr ""
|
3719 |
|
3720 |
#. translators: 1: field type
|
3721 |
-
#: includes/class-mla-settings.php:
|
3722 |
-
#: includes/class-mla-settings.php:
|
3723 |
#, php-format
|
3724 |
msgid "ERROR: No %1$s settings to process."
|
3725 |
msgstr ""
|
3726 |
|
3727 |
-
#: includes/class-mla-settings.php:
|
3728 |
-
#: includes/class-mla-settings.php:
|
3729 |
msgid "updated."
|
3730 |
msgstr ""
|
3731 |
|
3732 |
#. translators: 1: reference type, e.g., Gallery in
|
3733 |
-
#: includes/class-mla-settings.php:
|
3734 |
#, php-format
|
3735 |
msgctxt "message_list"
|
3736 |
msgid "%1$s - references updated."
|
3737 |
msgstr ""
|
3738 |
|
3739 |
-
#: includes/class-mla-settings.php:
|
3740 |
msgid "General settings saved."
|
3741 |
msgstr ""
|
3742 |
|
3743 |
#. translators: 1: option name
|
3744 |
-
#: includes/class-mla-settings.php:
|
3745 |
#, php-format
|
3746 |
msgctxt "message_list"
|
3747 |
msgid "delete_option \"%1$s\""
|
3748 |
msgstr ""
|
3749 |
|
3750 |
-
#: includes/class-mla-settings.php:
|
3751 |
msgid "General settings reset to default values."
|
3752 |
msgstr ""
|
3753 |
|
3754 |
-
#: includes/class-mla-settings.php:
|
3755 |
msgid "select settings"
|
3756 |
msgstr ""
|
3757 |
|
3758 |
-
#: includes/class-mla-settings.php:
|
3759 |
msgid "Import ALL Settings"
|
3760 |
msgstr ""
|
3761 |
|
3762 |
-
#: includes/class-mla-settings.php:
|
3763 |
msgctxt "message_list"
|
3764 |
msgid "exported"
|
3765 |
msgstr ""
|
3766 |
|
3767 |
-
#: includes/class-mla-settings.php:
|
3768 |
msgctxt "message_list"
|
3769 |
msgid "skipped"
|
3770 |
msgstr ""
|
3771 |
|
3772 |
-
#: includes/class-mla-settings.php:
|
3773 |
msgid "ALL settings exported."
|
3774 |
msgstr ""
|
3775 |
|
3776 |
#. translators: 1: backup directory name
|
3777 |
-
#: includes/class-mla-settings.php:
|
3778 |
#, php-format
|
3779 |
msgid "ERROR: The settings directory ( %1$s ) cannot be created."
|
3780 |
msgstr ""
|
3781 |
|
3782 |
#. translators: 1: backup directory name
|
3783 |
-
#: includes/class-mla-settings.php:
|
3784 |
#, php-format
|
3785 |
msgid "ERROR: The settings directory ( %1$s ) is not writable."
|
3786 |
msgstr ""
|
3787 |
|
3788 |
#. translators: 1: backup file name
|
3789 |
-
#: includes/class-mla-settings.php:
|
3790 |
#, php-format
|
3791 |
msgid "ERROR: The settings file ( %1$s ) could not be opened."
|
3792 |
msgstr ""
|
3793 |
|
3794 |
#. translators: 1: PHP error information
|
3795 |
-
#: includes/class-mla-settings.php:
|
3796 |
#, php-format
|
3797 |
msgctxt "error_log"
|
3798 |
msgid "ERROR: _export_settings $error_info = \"%1$s\"."
|
3799 |
msgstr ""
|
3800 |
|
3801 |
#. translators: 1: backup file name 2: error message
|
3802 |
-
#: includes/class-mla-settings.php:
|
3803 |
#, php-format
|
3804 |
msgid "ERROR: Writing the settings file ( %1$s ) \"%2$s\"."
|
3805 |
msgstr ""
|
3806 |
|
3807 |
#. translators: 1: number of option settings
|
3808 |
-
#: includes/class-mla-settings.php:
|
3809 |
#, php-format
|
3810 |
msgid "Settings exported; %1$s settings recorded."
|
3811 |
msgstr ""
|
3812 |
|
3813 |
-
#: includes/class-mla-settings.php:
|
3814 |
msgid "No settings imported."
|
3815 |
msgstr ""
|
3816 |
|
3817 |
-
#: includes/class-mla-settings.php:
|
3818 |
msgid "Please select an import settings file from the dropdown list."
|
3819 |
msgstr ""
|
3820 |
|
3821 |
-
#: includes/class-mla-settings.php:
|
3822 |
msgid "ERROR: The import settings dropdown selection is missing."
|
3823 |
msgstr ""
|
3824 |
|
3825 |
#. translators: 1: PHP error information
|
3826 |
-
#: includes/class-mla-settings.php:
|
3827 |
#, php-format
|
3828 |
msgctxt "error_log"
|
3829 |
msgid "ERROR: _import_settings $error_info = \"%1$s\"."
|
3830 |
msgstr ""
|
3831 |
|
3832 |
#. translators: 1: backup file name 2: error message
|
3833 |
-
#: includes/class-mla-settings.php:
|
3834 |
#, php-format
|
3835 |
msgid "ERROR: Reading the settings file ( %1$s ) \"%2$s\"."
|
3836 |
msgstr ""
|
3837 |
|
3838 |
-
#: includes/class-mla-settings.php:
|
3839 |
msgctxt "message_list"
|
3840 |
msgid "updated"
|
3841 |
msgstr ""
|
3842 |
|
3843 |
-
#: includes/class-mla-settings.php:
|
3844 |
msgctxt "message_list"
|
3845 |
msgid "unchanged"
|
3846 |
msgstr ""
|
3847 |
|
3848 |
#. translators: 1: number of option settings updated 2: number of option settings unchanged
|
3849 |
-
#: includes/class-mla-settings.php:
|
3850 |
#, php-format
|
3851 |
msgid "Settings imported; %1$s updated, %2$s unchanged."
|
3852 |
msgstr ""
|
@@ -3900,67 +3906,67 @@ msgstr ""
|
|
3900 |
msgid "ERROR: Invalid mla_gallery"
|
3901 |
msgstr ""
|
3902 |
|
3903 |
-
#: includes/class-mla-shortcodes.php:
|
3904 |
msgid "mla_debug query"
|
3905 |
msgstr ""
|
3906 |
|
3907 |
-
#: includes/class-mla-shortcodes.php:
|
3908 |
msgid "mla_debug request"
|
3909 |
msgstr ""
|
3910 |
|
3911 |
-
#: includes/class-mla-shortcodes.php:
|
3912 |
msgid "mla_debug query_vars"
|
3913 |
msgstr ""
|
3914 |
|
3915 |
-
#: includes/class-mla-shortcodes.php:
|
3916 |
msgid "mla_debug post_count"
|
3917 |
msgstr ""
|
3918 |
|
3919 |
-
#: includes/class-mla-shortcodes.php:
|
3920 |
msgid "mla_debug WHERE filter"
|
3921 |
msgstr ""
|
3922 |
|
3923 |
-
#: includes/class-mla-shortcodes.php:
|
3924 |
msgid "mla_debug modified WHERE filter"
|
3925 |
msgstr ""
|
3926 |
|
3927 |
-
#: includes/class-mla-shortcodes.php:
|
3928 |
msgid "mla_debug ORDER BY filter, incoming"
|
3929 |
msgstr ""
|
3930 |
|
3931 |
-
#: includes/class-mla-shortcodes.php:
|
3932 |
msgid "Replacement ORDER BY clause"
|
3933 |
msgstr ""
|
3934 |
|
3935 |
-
#: includes/class-mla-shortcodes.php:
|
3936 |
msgid "mla_debug posts_clauses filter"
|
3937 |
msgstr ""
|
3938 |
|
3939 |
-
#: includes/class-mla-shortcodes.php:
|
3940 |
msgid "mla_debug posts_clauses_request filter"
|
3941 |
msgstr ""
|
3942 |
|
3943 |
-
#: includes/class-mla-shortcodes.php:
|
3944 |
msgid "Invalid taxonomy"
|
3945 |
msgstr ""
|
3946 |
|
3947 |
-
#: includes/class-mla-shortcodes.php:
|
3948 |
msgid "mla_debug query arguments"
|
3949 |
msgstr ""
|
3950 |
|
3951 |
-
#: includes/class-mla-shortcodes.php:
|
3952 |
msgid "mla_debug last_query"
|
3953 |
msgstr ""
|
3954 |
|
3955 |
-
#: includes/class-mla-shortcodes.php:
|
3956 |
msgid "mla_debug last_error"
|
3957 |
msgstr ""
|
3958 |
|
3959 |
-
#: includes/class-mla-shortcodes.php:
|
3960 |
msgid "mla_debug num_rows"
|
3961 |
msgstr ""
|
3962 |
|
3963 |
-
#: includes/class-mla-shortcodes.php:
|
3964 |
msgid "mla_debug found_rows"
|
3965 |
msgstr ""
|
3966 |
|
@@ -4068,6 +4074,7 @@ msgid "Order"
|
|
4068 |
msgstr ""
|
4069 |
|
4070 |
#: includes/mla-main-search-box-template.php:34
|
|
|
4071 |
#: includes/mla-media-modal-js-template.php:17
|
4072 |
msgid "Search Media"
|
4073 |
msgstr ""
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Media Library Assistant\n"
|
4 |
+
"POT-Creation-Date: 2014-08-15 17:04-0800\n"
|
5 |
+
"PO-Revision-Date: 2014-08-15 17:04-0800\n"
|
6 |
"Last-Translator: David Lingren <david@fairtradejudaica.org>\n"
|
7 |
"Language-Team: David Lingren <david@fairtradejudaica.org>\n"
|
8 |
"Language: en_US\n"
|
89 |
msgstr ""
|
90 |
|
91 |
#. translators: 1: function name 2: non-array value
|
92 |
+
#: includes/class-mla-data.php:1256 includes/class-mla-main.php:1535
|
93 |
+
#: includes/class-mla-main.php:1610 includes/class-mla-media-modal.php:1161
|
94 |
#: includes/class-mla-mime-types.php:483
|
95 |
#: includes/class-mla-mime-types.php:1218
|
96 |
+
#: includes/class-mla-mime-types.php:2361 includes/class-mla-settings.php:1192
|
97 |
+
#: includes/class-mla-settings.php:1639
|
98 |
#, php-format
|
99 |
msgctxt "error_log"
|
100 |
msgid "ERROR: %1$s non-array \"%2$s\""
|
140 |
msgstr ""
|
141 |
|
142 |
#. translators: 1: search filter details
|
143 |
+
#: includes/class-mla-data.php:1976
|
144 |
#, php-format
|
145 |
msgid "mla_query_posts_search_filter not numeric, = \"%1$s\"."
|
146 |
msgstr ""
|
147 |
|
148 |
#. translators: 1: search filter details
|
149 |
+
#: includes/class-mla-data.php:1979
|
150 |
#, php-format
|
151 |
msgctxt "error_log"
|
152 |
msgid "DEBUG: mla_query_posts_search_filter not numeric, = \"%1$s\"."
|
153 |
msgstr ""
|
154 |
|
155 |
#. translators: 1: where filter details
|
156 |
+
#: includes/class-mla-data.php:2041
|
157 |
#, php-format
|
158 |
msgid "mla_query_posts_where_filter = \"%1$s\"."
|
159 |
msgstr ""
|
160 |
|
161 |
#. translators: 1: where filter details
|
162 |
+
#: includes/class-mla-data.php:2044
|
163 |
#, php-format
|
164 |
msgctxt "error_log"
|
165 |
msgid "DEBUG: mla_query_posts_where_filter = \"%1$s\"."
|
166 |
msgstr ""
|
167 |
|
168 |
#. translators: 1: join filter details
|
169 |
+
#: includes/class-mla-data.php:2095
|
170 |
#, php-format
|
171 |
msgid "mla_query_posts_join_filter = \"%1$s\"."
|
172 |
msgstr ""
|
173 |
|
174 |
#. translators: 1: join filter details
|
175 |
+
#: includes/class-mla-data.php:2098
|
176 |
#, php-format
|
177 |
msgctxt "error_log"
|
178 |
msgid "DEBUG: mla_query_posts_join_filter = \"%1$s\"."
|
179 |
msgstr ""
|
180 |
|
181 |
#. translators: 1: orderby details details
|
182 |
+
#: includes/class-mla-data.php:2197
|
183 |
#, php-format
|
184 |
msgid "mla_query_posts_orderby_filter = \"%1$s\"."
|
185 |
msgstr ""
|
186 |
|
187 |
#. translators: 1: orderby details details
|
188 |
+
#: includes/class-mla-data.php:2200
|
189 |
#, php-format
|
190 |
msgctxt "error_log"
|
191 |
msgid "DEBUG: mla_query_posts_orderby_filter = \"%1$s\"."
|
192 |
msgstr ""
|
193 |
|
194 |
#. translators: 1: SQL clauses
|
195 |
+
#: includes/class-mla-data.php:2236
|
196 |
#, php-format
|
197 |
msgid "mla_query_posts_clauses_filter = \"%1$s\"."
|
198 |
msgstr ""
|
199 |
|
200 |
#. translators: 1: SQL clauses
|
201 |
+
#: includes/class-mla-data.php:2239
|
202 |
#, php-format
|
203 |
msgctxt "error_log"
|
204 |
msgid "DEBUG: mla_query_posts_clauses_filter = \"%1$s\"."
|
205 |
msgstr ""
|
206 |
|
207 |
#. translators: 1: SQL clauses
|
208 |
+
#: includes/class-mla-data.php:2260
|
209 |
#, php-format
|
210 |
msgid "mla_query_posts_clauses_request_filter = \"%1$s\"."
|
211 |
msgstr ""
|
212 |
|
213 |
#. translators: 1: SQL clauses
|
214 |
+
#: includes/class-mla-data.php:2263
|
215 |
#, php-format
|
216 |
msgctxt "error_log"
|
217 |
msgid "DEBUG: mla_query_posts_clauses_request_filter = \"%1$s\"."
|
218 |
msgstr ""
|
219 |
|
220 |
#. translators: 1: post ID
|
221 |
+
#: includes/class-mla-data.php:2295
|
222 |
#, php-format
|
223 |
msgctxt "error_log"
|
224 |
msgid "ERROR: mla_get_attachment_by_id(%1$d) not found."
|
225 |
msgstr ""
|
226 |
|
227 |
#. translators: 1: post ID 2: post_type
|
228 |
+
#: includes/class-mla-data.php:2301
|
229 |
#, php-format
|
230 |
msgctxt "error_log"
|
231 |
msgid "ERROR: mla_get_attachment_by_id(%1$d) wrong post_type \"%2$s\"."
|
232 |
msgstr ""
|
233 |
|
234 |
+
#: includes/class-mla-data.php:2854 includes/class-mla-list-table.php:830
|
235 |
msgid "NO REFERENCE TESTS"
|
236 |
msgstr ""
|
237 |
|
238 |
+
#: includes/class-mla-data.php:2860 includes/class-mla-options.php:2616
|
239 |
+
#: includes/class-mla-options.php:2617
|
240 |
msgid "ORPHAN"
|
241 |
msgstr ""
|
242 |
|
243 |
+
#: includes/class-mla-data.php:2864
|
244 |
msgid "UNUSED"
|
245 |
msgstr ""
|
246 |
|
247 |
+
#: includes/class-mla-data.php:2869
|
248 |
msgid "UNATTACHED"
|
249 |
msgstr ""
|
250 |
|
251 |
+
#: includes/class-mla-data.php:2871
|
252 |
msgid "INVALID PARENT"
|
253 |
msgstr ""
|
254 |
|
255 |
#. translators: 1: post_type, 2: post_title, 3: post ID, 4: query string, 5: error message
|
256 |
+
#: includes/class-mla-data.php:3052
|
257 |
#, php-format
|
258 |
msgid "(%1$s) %2$s (ID %3$d) query \"%4$s\" failed, returning \"%5$s\""
|
259 |
msgstr ""
|
260 |
|
261 |
#. translators: 1: index
|
262 |
+
#: includes/class-mla-data.php:3298
|
263 |
#, php-format
|
264 |
msgctxt "error_log"
|
265 |
msgid "ERROR: _build_pdf_indirect_objects bad value at $index = \"%1$d\"."
|
266 |
msgstr ""
|
267 |
|
268 |
#. translators: 1: source offset 2: nest level
|
269 |
+
#: includes/class-mla-data.php:3623
|
270 |
#, php-format
|
271 |
msgctxt "error_log"
|
272 |
msgid "ERROR: _parse_pdf_dictionary offset = %1$d, nest = %2$d."
|
273 |
msgstr ""
|
274 |
|
275 |
#. translators: 1: dictionary excerpt
|
276 |
+
#: includes/class-mla-data.php:3625
|
277 |
#, php-format
|
278 |
msgctxt "error_log"
|
279 |
msgid "ERROR: _parse_pdf_dictionary no end delimiter dump = %1$s."
|
280 |
msgstr ""
|
281 |
|
282 |
#. translators: 1: entry name 2: value excerpt
|
283 |
+
#: includes/class-mla-data.php:3671
|
284 |
#, php-format
|
285 |
msgctxt "error_log"
|
286 |
msgid "ERROR: _parse_pdf_dictionary bad value [ %1$s ] dump = %2$s"
|
287 |
msgstr ""
|
288 |
|
289 |
+
#: includes/class-mla-data.php:3785
|
290 |
msgctxt "error_log"
|
291 |
msgid "ERROR: _parse_xmp_metadata xml_parse_into_struct failed."
|
292 |
msgstr ""
|
293 |
|
294 |
+
#: includes/class-mla-data.php:3788
|
295 |
msgctxt "error_log"
|
296 |
msgid "ERROR: _parse_xmp_metadata set option failed."
|
297 |
msgstr ""
|
298 |
|
299 |
#. translators: 1: path and file
|
300 |
+
#: includes/class-mla-data.php:4145
|
301 |
#, php-format
|
302 |
msgctxt "error_log"
|
303 |
msgid "ERROR: File \"%1$s\", startxref not found."
|
304 |
msgstr ""
|
305 |
|
306 |
#. translators: 1: meta_key
|
307 |
+
#: includes/class-mla-data.php:5062
|
308 |
#, php-format
|
309 |
msgid "Deleting meta:%1$s"
|
310 |
msgstr ""
|
311 |
|
312 |
#. translators: 1: meta_key
|
313 |
+
#: includes/class-mla-data.php:5065
|
314 |
#, php-format
|
315 |
msgid "ERROR: meta:%1$s not found"
|
316 |
msgstr ""
|
317 |
|
318 |
#. translators: 1: meta_key 2: meta_value
|
319 |
+
#: includes/class-mla-data.php:5074
|
320 |
#, php-format
|
321 |
msgid "Adding meta:%1$s = %2$s"
|
322 |
msgstr ""
|
323 |
|
324 |
#. translators: 1: meta_key
|
325 |
+
#: includes/class-mla-data.php:5078
|
326 |
#, php-format
|
327 |
msgid "ERROR: Adding meta:%1$s; not found"
|
328 |
msgstr ""
|
329 |
|
330 |
#. translators: 1: meta_key
|
331 |
+
#: includes/class-mla-data.php:5085
|
332 |
#, php-format
|
333 |
msgid "Deleting Null meta:%1$s"
|
334 |
msgstr ""
|
335 |
|
336 |
#. translators: 1: element name 2: old_value 3: new_value
|
337 |
+
#: includes/class-mla-data.php:5095 includes/class-mla-data.php:5246
|
338 |
+
#: includes/class-mla-data.php:5307 includes/class-mla-data.php:5333
|
339 |
+
#: includes/class-mla-data.php:5367 includes/class-mla-data.php:5380
|
340 |
+
#: includes/class-mla-data.php:5389 includes/class-mla-data.php:5400
|
341 |
+
#: includes/class-mla-data.php:5411 includes/class-mla-data.php:5424
|
342 |
+
#: includes/class-mla-data.php:5433 includes/class-mla-data.php:5442
|
343 |
#: includes/class-mla-mime-types.php:1052
|
344 |
+
#: includes/class-mla-mime-types.php:2125
|
345 |
#, php-format
|
346 |
msgid "Changing %1$s from \"%2$s\" to \"%3$s\""
|
347 |
msgstr ""
|
348 |
|
349 |
#. translators: 1: meta_key
|
350 |
+
#: includes/class-mla-data.php:5100
|
351 |
#, php-format
|
352 |
msgid "ERROR: Changing meta:%1$s; not found"
|
353 |
msgstr ""
|
354 |
|
355 |
#. translators: 1: meta_key
|
356 |
+
#: includes/class-mla-data.php:5160
|
357 |
#, php-format
|
358 |
msgid "Deleting %1$s"
|
359 |
msgstr ""
|
360 |
|
361 |
#. translators: 1: meta_key 2: new_value
|
362 |
+
#: includes/class-mla-data.php:5171
|
363 |
#, php-format
|
364 |
msgid "Adding %1$s = [%2$s]"
|
365 |
msgstr ""
|
366 |
|
367 |
#. translators: 1: meta_key 2: meta_value
|
368 |
+
#: includes/class-mla-data.php:5177
|
369 |
#, php-format
|
370 |
msgid "Adding %1$s = %2$s"
|
371 |
msgstr ""
|
372 |
|
373 |
#. translators: 1: meta_key
|
374 |
+
#: includes/class-mla-data.php:5201
|
375 |
#, php-format
|
376 |
msgid "Deleting old %1$s values"
|
377 |
msgstr ""
|
378 |
|
379 |
#. translators: 1: meta_key 2: old_value 3: new_value 4: update count
|
380 |
+
#: includes/class-mla-data.php:5231
|
381 |
#, php-format
|
382 |
msgid "Changing %1$s from \"%2$s\" to \"%3$s\"; %4$d updates"
|
383 |
msgstr ""
|
384 |
|
385 |
+
#: includes/class-mla-data.php:5289 includes/class-mla-main.php:1892
|
386 |
msgid "ERROR: Could not retrieve Attachment."
|
387 |
msgstr ""
|
388 |
|
389 |
+
#: includes/class-mla-data.php:5307 includes/class-mla-main.php:1305
|
390 |
+
#: includes/class-mla-main.php:1549 includes/class-mla-main.php:1739
|
391 |
+
#: includes/class-mla-main.php:2110 includes/class-mla-objects.php:275
|
392 |
+
#: includes/class-mla-options.php:992 includes/class-mla-options.php:1752
|
393 |
#: includes/mla-main-search-box-template.php:42
|
394 |
#: includes/mla-media-modal-js-template.php:32
|
395 |
msgid "Title"
|
396 |
msgstr ""
|
397 |
|
398 |
#. translators: 1: old_value
|
399 |
+
#: includes/class-mla-data.php:5330
|
400 |
#, php-format
|
401 |
msgid "ERROR: Could not change Name/Slug \"%1$s\"; name already exists"
|
402 |
msgstr ""
|
403 |
|
404 |
+
#: includes/class-mla-data.php:5333 includes/class-mla-main.php:1740
|
405 |
+
#: includes/class-mla-main.php:2113 includes/class-mla-options.php:999
|
406 |
msgid "Name/Slug"
|
407 |
msgstr ""
|
408 |
|
409 |
#. translators: 1: old_value
|
410 |
+
#: includes/class-mla-data.php:5359
|
411 |
#, php-format
|
412 |
msgid "Deleting ALT Text, was \"%1$s\""
|
413 |
msgstr ""
|
414 |
|
415 |
#. translators: 1: old_value
|
416 |
+
#: includes/class-mla-data.php:5362
|
417 |
#, php-format
|
418 |
msgid "ERROR: Could not delete ALT Text, remains \"%1$s\""
|
419 |
msgstr ""
|
420 |
|
421 |
+
#: includes/class-mla-data.php:5367 includes/class-mla-list-table.php:1069
|
422 |
+
#: includes/class-mla-main.php:1743 includes/class-mla-main.php:2116
|
423 |
+
#: includes/class-mla-options.php:1006 includes/class-mla-options.php:1758
|
424 |
#: includes/mla-main-search-box-template.php:44
|
425 |
#: includes/mla-media-modal-js-template.php:40
|
426 |
msgid "ALT Text"
|
427 |
msgstr ""
|
428 |
|
429 |
#. translators: 1: old_value 2: new_value
|
430 |
+
#: includes/class-mla-data.php:5370
|
431 |
#, php-format
|
432 |
msgid "ERROR: Could not change ALT Text from \"%1$s\" to \"%2$s\""
|
433 |
msgstr ""
|
434 |
|
435 |
+
#: includes/class-mla-data.php:5380 includes/class-mla-main.php:1741
|
436 |
+
#: includes/class-mla-main.php:2119 includes/class-mla-options.php:1013
|
437 |
+
#: includes/class-mla-options.php:1761
|
438 |
#: includes/mla-main-search-box-template.php:45
|
439 |
#: includes/mla-media-modal-js-template.php:45
|
440 |
msgid "Caption"
|
441 |
msgstr ""
|
442 |
|
443 |
+
#: includes/class-mla-data.php:5389 includes/class-mla-main.php:1742
|
444 |
+
#: includes/class-mla-main.php:2121 includes/class-mla-options.php:1020
|
445 |
+
#: includes/class-mla-options.php:1764 includes/class-mla-settings.php:1158
|
446 |
+
#: includes/class-mla-settings.php:1415 includes/class-mla-settings.php:1514
|
447 |
+
#: includes/class-mla-settings.php:1878
|
448 |
#: includes/mla-main-search-box-template.php:46
|
449 |
#: includes/mla-media-modal-js-template.php:49
|
450 |
msgid "Description"
|
451 |
msgstr ""
|
452 |
|
453 |
+
#: includes/class-mla-data.php:5400 includes/class-mla-list-table.php:804
|
454 |
+
#: includes/class-mla-list-table.php:896 includes/class-mla-options.php:4074
|
455 |
+
#: includes/class-mla-options.php:4414
|
456 |
msgid "Parent"
|
457 |
msgstr ""
|
458 |
|
459 |
+
#: includes/class-mla-data.php:5411 includes/class-mla-edit-media.php:307
|
460 |
+
#: includes/class-mla-edit-media.php:447 includes/class-mla-main.php:1746
|
461 |
+
#: includes/class-mla-main.php:2127 includes/class-mla-settings.php:1156
|
462 |
+
#: includes/class-mla-settings.php:1413
|
463 |
msgid "Menu Order"
|
464 |
msgstr ""
|
465 |
|
466 |
+
#: includes/class-mla-data.php:5424 includes/class-mla-list-table.php:1218
|
467 |
+
#: includes/class-mla-main.php:1616 includes/class-mla-main.php:1718
|
468 |
+
#: includes/class-mla-main.php:1941
|
469 |
msgid "Author"
|
470 |
msgstr ""
|
471 |
|
472 |
+
#: includes/class-mla-data.php:5433 includes/class-mla-main.php:1757
|
473 |
msgid "Comments"
|
474 |
msgstr ""
|
475 |
|
476 |
+
#: includes/class-mla-data.php:5442 includes/class-mla-main.php:1758
|
477 |
msgid "Pings"
|
478 |
msgstr ""
|
479 |
|
480 |
+
#: includes/class-mla-data.php:5476
|
481 |
msgid "Adding"
|
482 |
msgstr ""
|
483 |
|
484 |
+
#: includes/class-mla-data.php:5480
|
485 |
msgid "Removing"
|
486 |
msgstr ""
|
487 |
|
488 |
+
#: includes/class-mla-data.php:5485
|
489 |
msgid "Replacing"
|
490 |
msgstr ""
|
491 |
|
492 |
+
#: includes/class-mla-data.php:5489
|
493 |
msgid "Ignoring"
|
494 |
msgstr ""
|
495 |
|
496 |
#. translators: 1: action_name, 2: taxonomy
|
497 |
+
#: includes/class-mla-data.php:5501
|
498 |
#, php-format
|
499 |
msgid "%1$s \"%2$s\" terms"
|
500 |
msgstr ""
|
501 |
|
502 |
#. translators: 1: taxonomy
|
503 |
+
#: includes/class-mla-data.php:5505
|
504 |
#, php-format
|
505 |
msgid "You cannot assign \"%1$s\" terms"
|
506 |
msgstr ""
|
507 |
|
508 |
#. translators: 1: post ID
|
509 |
+
#: includes/class-mla-data.php:5517
|
510 |
#, php-format
|
511 |
msgid "Item %1$d, no changes detected."
|
512 |
msgstr ""
|
513 |
|
514 |
#. translators: 1: post ID
|
515 |
+
#: includes/class-mla-data.php:5529
|
516 |
#, php-format
|
517 |
msgid "Item %1$d updated."
|
518 |
msgstr ""
|
519 |
|
520 |
#. translators: 1: post ID
|
521 |
+
#: includes/class-mla-data.php:5543
|
522 |
#, php-format
|
523 |
msgid "ERROR: Item %1$d update failed."
|
524 |
msgstr ""
|
525 |
|
526 |
+
#: includes/class-mla-data.php:5566 includes/class-mla-edit-media.php:125
|
527 |
+
#: includes/class-mla-edit-media.php:170 includes/class-mla-main.php:330
|
528 |
+
#: includes/class-mla-main.php:358 includes/class-mla-main.php:1444
|
529 |
+
#: includes/class-mla-settings.php:311 includes/class-mla-settings.php:329
|
530 |
msgctxt "tag_delimiter"
|
531 |
msgid ","
|
532 |
msgstr ""
|
533 |
|
534 |
+
#: includes/class-mla-edit-media.php:172 includes/class-mla-main.php:352
|
535 |
msgid "An ajax.fail error has occurred. Please reload the page and try again."
|
536 |
msgstr ""
|
537 |
|
538 |
+
#: includes/class-mla-edit-media.php:173 includes/class-mla-main.php:353
|
539 |
msgid "An ajax.done error has occurred. Please reload the page and try again."
|
540 |
msgstr ""
|
541 |
|
542 |
+
#: includes/class-mla-edit-media.php:197
|
543 |
msgid "Custom field mapping updated."
|
544 |
msgstr ""
|
545 |
|
546 |
+
#: includes/class-mla-edit-media.php:198
|
547 |
msgid "IPTC/EXIF mapping updated."
|
548 |
msgstr ""
|
549 |
|
550 |
#. translators: date_i18n format for last modified date and time
|
551 |
+
#: includes/class-mla-edit-media.php:216
|
552 |
msgid "M j, Y @ G:i"
|
553 |
msgstr ""
|
554 |
|
555 |
+
#: includes/class-mla-edit-media.php:218 includes/class-mla-main.php:2105
|
556 |
msgid "Last modified"
|
557 |
msgstr ""
|
558 |
|
559 |
+
#: includes/class-mla-edit-media.php:229
|
560 |
msgid "Map Custom Field metadata for this item"
|
561 |
msgstr ""
|
562 |
|
563 |
+
#: includes/class-mla-edit-media.php:229 includes/class-mla-main.php:1764
|
564 |
msgid "Map Custom Field Metadata"
|
565 |
msgstr ""
|
566 |
|
567 |
+
#: includes/class-mla-edit-media.php:231
|
568 |
msgid "Map IPTC/EXIF metadata for this item"
|
569 |
msgstr ""
|
570 |
|
571 |
+
#: includes/class-mla-edit-media.php:231
|
572 |
msgid "Map IPTC/EXIF Metadata"
|
573 |
msgstr ""
|
574 |
|
575 |
+
#: includes/class-mla-edit-media.php:303 includes/class-mla-edit-media.php:426
|
576 |
+
#: includes/class-mla-main.php:2123
|
577 |
msgid "Parent Info"
|
578 |
msgstr ""
|
579 |
|
580 |
+
#: includes/class-mla-edit-media.php:313 includes/class-mla-edit-media.php:471
|
581 |
msgid "Attachment Metadata"
|
582 |
msgstr ""
|
583 |
|
584 |
+
#: includes/class-mla-edit-media.php:318 includes/class-mla-edit-media.php:505
|
585 |
+
#: includes/class-mla-main.php:2134 includes/class-mla-options.php:451
|
586 |
msgid "Featured in"
|
587 |
msgstr ""
|
588 |
|
589 |
+
#: includes/class-mla-edit-media.php:322 includes/class-mla-edit-media.php:544
|
590 |
+
#: includes/class-mla-main.php:2136 includes/class-mla-options.php:460
|
591 |
msgid "Inserted in"
|
592 |
msgstr ""
|
593 |
|
594 |
+
#: includes/class-mla-edit-media.php:326 includes/class-mla-edit-media.php:579
|
595 |
+
#: includes/class-mla-main.php:2138 includes/class-mla-options.php:469
|
596 |
+
#: includes/class-mla-settings.php:3335
|
597 |
msgid "Gallery in"
|
598 |
msgstr ""
|
599 |
|
600 |
+
#: includes/class-mla-edit-media.php:330 includes/class-mla-edit-media.php:614
|
601 |
+
#: includes/class-mla-main.php:2140 includes/class-mla-options.php:478
|
602 |
+
#: includes/class-mla-settings.php:3345
|
603 |
msgid "MLA Gallery in"
|
604 |
msgstr ""
|
605 |
|
606 |
#. translators: 1: function name 2: template key
|
607 |
+
#: includes/class-mla-edit-media.php:373 includes/class-mla-main.php:585
|
608 |
+
#: includes/class-mla-settings.php:473
|
609 |
#, php-format
|
610 |
msgctxt "error_log"
|
611 |
msgid "ERROR: %1$s discarding \"%2$s\"; no title/order"
|
612 |
msgstr ""
|
613 |
|
614 |
+
#: includes/class-mla-edit-media.php:425
|
615 |
msgid "Post Parent"
|
616 |
msgstr ""
|
617 |
|
618 |
+
#: includes/class-mla-edit-media.php:427 includes/class-mla-main.php:1540
|
619 |
msgid "Select Parent"
|
620 |
msgstr ""
|
621 |
|
622 |
+
#: includes/class-mla-edit-media.php:427 includes/class-mla-main.php:1745
|
623 |
#: includes/class-mla-upload-optional-list-table.php:281
|
624 |
msgid "Select"
|
625 |
msgstr ""
|
626 |
|
627 |
+
#: includes/class-mla-edit-media.php:494 includes/class-mla-edit-media.php:532
|
628 |
+
#: includes/class-mla-edit-media.php:568 includes/class-mla-edit-media.php:603
|
629 |
+
#: includes/class-mla-list-table.php:932 includes/class-mla-list-table.php:969
|
630 |
+
#: includes/class-mla-list-table.php:1004
|
631 |
+
#: includes/class-mla-list-table.php:1038 includes/class-mla-main.php:1954
|
632 |
+
#: includes/class-mla-main.php:1973 includes/class-mla-main.php:1990
|
633 |
+
#: includes/class-mla-main.php:2006
|
634 |
msgid "PARENT"
|
635 |
msgstr ""
|
636 |
|
637 |
+
#: includes/class-mla-edit-media.php:797
|
638 |
msgid "Most Used"
|
639 |
msgstr ""
|
640 |
|
641 |
#. translators: %s: add new taxonomy label
|
642 |
+
#: includes/class-mla-edit-media.php:826
|
643 |
#, php-format
|
644 |
msgid "+ %s"
|
645 |
msgstr ""
|
646 |
|
647 |
+
#: includes/class-mla-edit-media.php:832
|
648 |
msgid "? Search"
|
649 |
msgstr ""
|
650 |
|
652 |
msgid "All"
|
653 |
msgstr ""
|
654 |
|
655 |
+
#: includes/class-mla-list-table.php:211 includes/class-mla-settings.php:1424
|
656 |
#: includes/class-mla-view-list-table.php:379
|
657 |
#: includes/class-mla-view-list-table.php:395
|
658 |
msgid "No"
|
764 |
msgstr ""
|
765 |
|
766 |
#: includes/class-mla-list-table.php:513
|
767 |
+
#: includes/class-mla-list-table.php:1127 includes/class-mla-options.php:582
|
768 |
+
#: includes/class-mla-options.php:750 includes/class-mla-options.php:774
|
769 |
+
#: includes/class-mla-options.php:788 includes/class-mla-settings.php:1962
|
770 |
msgid "None"
|
771 |
msgstr ""
|
772 |
|
773 |
#: includes/class-mla-list-table.php:519 includes/class-mla-list-table.php:547
|
774 |
+
#: includes/class-mla-list-table.php:1065
|
775 |
+
#: includes/class-mla-list-table.php:1109
|
776 |
msgid "Filter by"
|
777 |
msgstr ""
|
778 |
|
789 |
msgid "column_default: %1$s, %2$s"
|
790 |
msgstr ""
|
791 |
|
792 |
+
#: includes/class-mla-list-table.php:627 includes/class-mla-list-table.php:672
|
793 |
+
#: includes/class-mla-list-table.php:674
|
794 |
+
#: includes/class-mla-upload-list-table.php:312
|
795 |
+
#: includes/class-mla-view-list-table.php:302
|
796 |
+
msgid "Edit this item"
|
797 |
+
msgstr ""
|
798 |
+
|
799 |
+
#: includes/class-mla-list-table.php:627 includes/class-mla-list-table.php:630
|
800 |
+
#: includes/class-mla-list-table.php:672 includes/class-mla-list-table.php:674
|
801 |
+
#: includes/class-mla-list-table.php:937 includes/class-mla-list-table.php:974
|
802 |
+
#: includes/class-mla-list-table.php:1009
|
803 |
+
#: includes/class-mla-list-table.php:1043
|
804 |
+
#: includes/class-mla-list-table.php:1235
|
805 |
+
#: includes/class-mla-list-table.php:1670
|
806 |
#: includes/class-mla-upload-list-table.php:312
|
807 |
#: includes/class-mla-upload-list-table.php:610
|
808 |
#: includes/class-mla-view-list-table.php:302
|
810 |
msgid "Edit"
|
811 |
msgstr ""
|
812 |
|
813 |
+
#: includes/class-mla-list-table.php:660
|
814 |
msgid "Restore this item from the Trash"
|
815 |
msgstr ""
|
816 |
|
817 |
+
#: includes/class-mla-list-table.php:660
|
818 |
+
#: includes/class-mla-list-table.php:1667
|
819 |
msgid "Restore"
|
820 |
msgstr ""
|
821 |
|
822 |
+
#: includes/class-mla-list-table.php:677
|
|
|
|
|
|
|
|
|
|
|
|
|
823 |
#: includes/class-mla-upload-list-table.php:314
|
824 |
#: includes/class-mla-view-list-table.php:304
|
825 |
msgid "Edit this item inline"
|
826 |
msgstr ""
|
827 |
|
828 |
+
#: includes/class-mla-list-table.php:677 includes/class-mla-main.php:1738
|
829 |
+
#: includes/class-mla-options.php:3177 includes/class-mla-options.php:3449
|
830 |
#: includes/class-mla-upload-list-table.php:314
|
831 |
#: includes/class-mla-view-list-table.php:304
|
832 |
msgid "Quick Edit"
|
833 |
msgstr ""
|
834 |
|
835 |
+
#: includes/class-mla-list-table.php:683
|
836 |
msgid "Move this item to the Trash"
|
837 |
msgstr ""
|
838 |
|
839 |
+
#: includes/class-mla-list-table.php:683
|
840 |
+
#: includes/class-mla-list-table.php:1673
|
841 |
msgid "Move to Trash"
|
842 |
msgstr ""
|
843 |
|
844 |
+
#: includes/class-mla-list-table.php:688
|
845 |
#: includes/class-mla-upload-list-table.php:318
|
846 |
#: includes/class-mla-view-list-table.php:310
|
847 |
msgid "Delete this item Permanently"
|
848 |
msgstr ""
|
849 |
|
850 |
+
#: includes/class-mla-list-table.php:688
|
851 |
+
#: includes/class-mla-list-table.php:1668
|
852 |
+
#: includes/class-mla-list-table.php:1675
|
853 |
#: includes/class-mla-upload-list-table.php:318
|
854 |
#: includes/class-mla-view-list-table.php:310
|
855 |
#: includes/class-mla-view-list-table.php:514
|
856 |
msgid "Delete Permanently"
|
857 |
msgstr ""
|
858 |
|
859 |
+
#: includes/class-mla-list-table.php:692
|
860 |
msgid "View"
|
861 |
msgstr ""
|
862 |
|
863 |
+
#: includes/class-mla-list-table.php:730 includes/class-mla-list-table.php:798
|
864 |
+
#: includes/class-mla-main.php:356 includes/class-mla-main.php:1309
|
865 |
msgid "(no title)"
|
866 |
msgstr ""
|
867 |
|
868 |
+
#: includes/class-mla-list-table.php:801 includes/class-mla-list-table.php:893
|
869 |
msgid "Filter by Parent ID"
|
870 |
msgstr ""
|
871 |
|
872 |
+
#: includes/class-mla-list-table.php:890
|
873 |
msgid "(no title: bad ID)"
|
874 |
msgstr ""
|
875 |
|
876 |
+
#: includes/class-mla-list-table.php:925 includes/class-mla-list-table.php:959
|
877 |
+
#: includes/class-mla-list-table.php:997
|
878 |
+
#: includes/class-mla-list-table.php:1031 includes/class-mla-main.php:1962
|
879 |
+
#: includes/class-mla-main.php:1982 includes/class-mla-main.php:1998
|
880 |
+
#: includes/class-mla-main.php:2014 includes/class-mla-options.php:455
|
881 |
#: includes/class-mla-options.php:464 includes/class-mla-options.php:473
|
882 |
#: includes/class-mla-options.php:482
|
883 |
msgid "Disabled"
|
884 |
msgstr ""
|
885 |
|
886 |
+
#: includes/class-mla-list-table.php:1112 includes/class-mla-settings.php:1507
|
887 |
+
#: includes/class-mla-settings.php:1872
|
888 |
msgid "MIME Type"
|
889 |
msgstr ""
|
890 |
|
891 |
+
#: includes/class-mla-list-table.php:1152
|
892 |
+
#: includes/class-mla-list-table.php:1184
|
893 |
msgid "Unpublished"
|
894 |
msgstr ""
|
895 |
|
896 |
#. translators: 1: upload/last modified date and time
|
897 |
+
#: includes/class-mla-list-table.php:1160
|
898 |
+
#: includes/class-mla-list-table.php:1191
|
899 |
#, php-format
|
900 |
msgid "%1$s from now"
|
901 |
msgstr ""
|
902 |
|
903 |
#. translators: 1: upload/last modified date and time
|
904 |
+
#: includes/class-mla-list-table.php:1163
|
905 |
+
#: includes/class-mla-list-table.php:1193
|
906 |
#, php-format
|
907 |
msgid "%1$s ago"
|
908 |
msgstr ""
|
909 |
|
910 |
#. translators: format for upload/last modified date
|
911 |
#. translators: date format in table columns, see http://php.net/date
|
912 |
+
#: includes/class-mla-list-table.php:1167
|
913 |
+
#: includes/class-mla-list-table.php:1196
|
914 |
+
#: includes/class-mla-list-table.php:1252 includes/class-mla-main.php:1332
|
915 |
msgid "Y/m/d"
|
916 |
msgstr ""
|
917 |
|
918 |
+
#: includes/class-mla-list-table.php:1215
|
919 |
msgid "Filter by Author ID"
|
920 |
msgstr ""
|
921 |
|
922 |
+
#: includes/class-mla-list-table.php:1254 includes/class-mla-options.php:1109
|
923 |
msgctxt "post_mime_types_singular"
|
924 |
msgid "Unattached"
|
925 |
msgstr ""
|
926 |
|
927 |
+
#: includes/class-mla-list-table.php:1257
|
928 |
msgid "Set Parent"
|
929 |
msgstr ""
|
930 |
|
931 |
+
#: includes/class-mla-list-table.php:1519
|
932 |
msgctxt "uploaded files"
|
933 |
msgid "All"
|
934 |
msgid_plural "All"
|
935 |
msgstr[0] ""
|
936 |
msgstr[1] ""
|
937 |
|
938 |
+
#: includes/class-mla-list-table.php:1701
|
939 |
msgid "Filter"
|
940 |
msgstr ""
|
941 |
|
942 |
+
#: includes/class-mla-list-table.php:1705
|
943 |
#: includes/mla-media-modal-js-template.php:58
|
944 |
msgid "Terms Search"
|
945 |
msgstr ""
|
946 |
|
947 |
+
#: includes/class-mla-list-table.php:1711
|
948 |
msgid "Clear Filter-by"
|
949 |
msgstr ""
|
950 |
|
951 |
+
#: includes/class-mla-list-table.php:1715
|
952 |
msgid "Empty Trash"
|
953 |
msgstr ""
|
954 |
|
955 |
+
#: includes/class-mla-main.php:354 includes/class-mla-settings.php:308
|
956 |
+
#: includes/class-mla-settings.php:326
|
957 |
msgid "Error while saving the changes."
|
958 |
msgstr ""
|
959 |
|
960 |
+
#: includes/class-mla-main.php:355 includes/class-mla-settings.php:309
|
961 |
+
#: includes/class-mla-settings.php:327
|
962 |
msgid "Remove From Bulk Edit"
|
963 |
msgstr ""
|
964 |
|
965 |
+
#: includes/class-mla-main.php:357
|
966 |
msgid "Bulk Edit items"
|
967 |
msgstr ""
|
968 |
|
969 |
+
#: includes/class-mla-main.php:467
|
970 |
#, php-format
|
971 |
msgid "Item permanently deleted."
|
972 |
msgid_plural "%d items permanently deleted."
|
974 |
msgstr[1] ""
|
975 |
|
976 |
#. translators: 1: post ID
|
977 |
+
#: includes/class-mla-main.php:472 includes/class-mla-main.php:2222
|
978 |
#, php-format
|
979 |
msgid "Item %1$d moved to Trash."
|
980 |
msgstr ""
|
981 |
|
982 |
+
#: includes/class-mla-main.php:491
|
983 |
msgid "Entries per page"
|
984 |
msgstr ""
|
985 |
|
986 |
+
#: includes/class-mla-main.php:811
|
987 |
msgid "You do not have permission to manage attachments."
|
988 |
msgstr ""
|
989 |
|
990 |
#. translators: 1: bulk_action, e.g., delete, edit, restore, trash
|
991 |
+
#: includes/class-mla-main.php:956 includes/class-mla-settings.php:1270
|
992 |
+
#: includes/class-mla-settings.php:1737
|
993 |
#, php-format
|
994 |
msgid "Unknown bulk action %1$s"
|
995 |
msgstr ""
|
996 |
|
997 |
#. translators: 1: action name, e.g., edit
|
998 |
+
#: includes/class-mla-main.php:985 includes/class-mla-settings.php:1280
|
999 |
+
#: includes/class-mla-settings.php:1748
|
1000 |
#, php-format
|
1001 |
msgid "Bulk Action %1$s - no items selected."
|
1002 |
msgstr ""
|
1003 |
|
1004 |
+
#: includes/class-mla-main.php:1014 includes/class-mla-main.php:1108
|
1005 |
+
#: includes/class-mla-main.php:1139 includes/class-mla-main.php:1372
|
1006 |
+
#: includes/class-mla-settings.php:551 includes/class-mla-settings.php:591
|
1007 |
+
#: includes/class-mla-settings.php:1224 includes/class-mla-settings.php:1301
|
1008 |
+
#: includes/class-mla-settings.php:1690 includes/class-mla-settings.php:1769
|
1009 |
+
#: includes/class-mla-settings.php:2320 includes/class-mla-settings.php:2443
|
1010 |
+
#: includes/class-mla-settings.php:2578 includes/class-mla-shortcodes.php:1261
|
1011 |
#: includes/class-mla-shortcodes.php:1335
|
1012 |
msgid "ERROR:"
|
1013 |
msgstr ""
|
1014 |
|
1015 |
+
#: includes/class-mla-main.php:1022
|
1016 |
#, php-format
|
1017 |
msgctxt "deleted items"
|
1018 |
msgid "%s item deleted."
|
1020 |
msgstr[0] ""
|
1021 |
msgstr[1] ""
|
1022 |
|
1023 |
+
#: includes/class-mla-main.php:1024
|
1024 |
msgid "No items deleted."
|
1025 |
msgstr ""
|
1026 |
|
1027 |
+
#: includes/class-mla-main.php:1039
|
1028 |
msgid "Edit single item"
|
1029 |
msgstr ""
|
1030 |
|
1031 |
#. translators: 1: post ID
|
1032 |
+
#: includes/class-mla-main.php:1054
|
1033 |
#, php-format
|
1034 |
msgid "Item %1$d cancelled."
|
1035 |
msgstr ""
|
1036 |
|
1037 |
+
#: includes/class-mla-main.php:1089
|
1038 |
msgid "Empty Terms Search; ignored"
|
1039 |
msgstr ""
|
1040 |
|
1041 |
#. translators: 1: row-level action, e.g., single_item_delete, single_item_edit
|
1042 |
#. translators: 1: bulk_action, e.g., single_item_delete, single_item_edit
|
1043 |
+
#: includes/class-mla-main.php:1099 includes/class-mla-settings.php:1317
|
1044 |
+
#: includes/class-mla-settings.php:1787
|
1045 |
#, php-format
|
1046 |
msgid "Unknown mla_admin_action - \"%1$s\""
|
1047 |
msgstr ""
|
1048 |
|
1049 |
+
#: includes/class-mla-main.php:1127
|
1050 |
msgid "term search results for"
|
1051 |
msgstr ""
|
1052 |
|
1053 |
+
#: includes/class-mla-main.php:1130
|
1054 |
msgid "post/parent results for"
|
1055 |
msgstr ""
|
1056 |
|
1057 |
+
#: includes/class-mla-main.php:1132
|
1058 |
msgid "search results for"
|
1059 |
msgstr ""
|
1060 |
|
1061 |
+
#: includes/class-mla-main.php:1305 includes/class-mla-main.php:1550
|
1062 |
msgid "Type"
|
1063 |
msgstr ""
|
1064 |
|
1065 |
+
#: includes/class-mla-main.php:1305 includes/class-mla-main.php:1551
|
1066 |
msgid "Date"
|
1067 |
msgstr ""
|
1068 |
|
1069 |
+
#: includes/class-mla-main.php:1305 includes/class-mla-main.php:1552
|
1070 |
+
#: includes/class-mla-settings.php:1888
|
1071 |
msgid "Status"
|
1072 |
msgstr ""
|
1073 |
|
1074 |
+
#: includes/class-mla-main.php:1315
|
1075 |
msgid "Published"
|
1076 |
msgstr ""
|
1077 |
|
1078 |
+
#: includes/class-mla-main.php:1318
|
1079 |
msgid "Scheduled"
|
1080 |
msgstr ""
|
1081 |
|
1082 |
+
#: includes/class-mla-main.php:1321
|
1083 |
msgid "Pending Review"
|
1084 |
msgstr ""
|
1085 |
|
1086 |
+
#: includes/class-mla-main.php:1324
|
1087 |
msgid "Draft"
|
1088 |
msgstr ""
|
1089 |
|
1090 |
+
#: includes/class-mla-main.php:1361 includes/class-mla-main.php:1399
|
1091 |
msgid "ERROR: No post ID found"
|
1092 |
msgstr ""
|
1093 |
|
1094 |
+
#: includes/class-mla-main.php:1368 includes/class-mla-main.php:1406
|
1095 |
+
#: includes/class-mla-main.php:1899
|
1096 |
msgid "You are not allowed to edit this Attachment."
|
1097 |
msgstr ""
|
1098 |
|
1099 |
+
#: includes/class-mla-main.php:1497
|
1100 |
msgid "All Post Types"
|
1101 |
msgstr ""
|
1102 |
|
1103 |
+
#: includes/class-mla-main.php:1541 includes/class-mla-media-modal.php:1191
|
1104 |
#: includes/mla-media-modal-js-template.php:20
|
1105 |
msgid "Search"
|
1106 |
msgstr ""
|
1107 |
|
1108 |
+
#: includes/class-mla-main.php:1543
|
1109 |
msgid "For"
|
1110 |
msgstr ""
|
1111 |
|
1112 |
+
#: includes/class-mla-main.php:1553
|
1113 |
msgid "Unattached"
|
1114 |
msgstr ""
|
1115 |
|
1116 |
+
#: includes/class-mla-main.php:1558 includes/class-mla-main.php:1751
|
1117 |
+
#: includes/class-mla-main.php:2096 includes/class-mla-settings.php:1161
|
1118 |
+
#: includes/class-mla-settings.php:1420 includes/class-mla-settings.php:1517
|
1119 |
+
#: includes/class-mla-settings.php:1589 includes/class-mla-settings.php:1885
|
1120 |
msgid "Cancel"
|
1121 |
msgstr ""
|
1122 |
|
1123 |
+
#: includes/class-mla-main.php:1562 includes/class-mla-main.php:1752
|
1124 |
+
#: includes/class-mla-main.php:2097 includes/class-mla-settings.php:1160
|
1125 |
+
#: includes/class-mla-settings.php:1421 includes/class-mla-settings.php:1516
|
1126 |
+
#: includes/class-mla-settings.php:1886
|
1127 |
msgid "Update"
|
1128 |
msgstr ""
|
1129 |
|
1130 |
+
#: includes/class-mla-main.php:1651
|
1131 |
msgid "more"
|
1132 |
msgstr ""
|
1133 |
|
1134 |
+
#: includes/class-mla-main.php:1652
|
1135 |
msgid "less"
|
1136 |
msgstr ""
|
1137 |
|
1138 |
+
#: includes/class-mla-main.php:1655 includes/class-mla-main.php:1693
|
1139 |
msgid "Add"
|
1140 |
msgstr ""
|
1141 |
|
1142 |
+
#: includes/class-mla-main.php:1656 includes/class-mla-main.php:1694
|
1143 |
msgid "Remove"
|
1144 |
msgstr ""
|
1145 |
|
1146 |
+
#: includes/class-mla-main.php:1657 includes/class-mla-main.php:1695
|
1147 |
+
#: includes/class-mla-options.php:3275 includes/class-mla-options.php:3372
|
1148 |
+
#: includes/class-mla-options.php:3414 includes/class-mla-options.php:4303
|
1149 |
+
#: includes/class-mla-options.php:4353 includes/class-mla-options.php:4450
|
1150 |
+
#: includes/class-mla-options.php:4494 includes/class-mla-options.php:4519
|
1151 |
msgid "Replace"
|
1152 |
msgstr ""
|
1153 |
|
1154 |
+
#: includes/class-mla-main.php:1744
|
1155 |
msgid "Parent ID"
|
1156 |
msgstr ""
|
1157 |
|
1158 |
+
#: includes/class-mla-main.php:1753 includes/class-mla-options.php:3191
|
1159 |
+
#: includes/class-mla-options.php:3450 includes/class-mla-settings.php:1422
|
1160 |
+
#: includes/class-mla-settings.php:1887
|
1161 |
msgid "Bulk Edit"
|
1162 |
msgstr ""
|
1163 |
|
1164 |
+
#: includes/class-mla-main.php:1759 includes/class-mla-main.php:1799
|
1165 |
+
#: includes/class-mla-settings.php:1423 includes/class-mla-settings.php:1461
|
1166 |
+
#: includes/class-mla-settings.php:1889
|
1167 |
msgid "No Change"
|
1168 |
msgstr ""
|
1169 |
|
1170 |
+
#: includes/class-mla-main.php:1760
|
1171 |
msgid "Allow"
|
1172 |
msgstr ""
|
1173 |
|
1174 |
+
#: includes/class-mla-main.php:1761
|
1175 |
msgid "Do not allow"
|
1176 |
msgstr ""
|
1177 |
|
1178 |
+
#: includes/class-mla-main.php:1763 includes/class-mla-main.php:2098
|
1179 |
msgid "Map IPTC/EXIF metadata"
|
1180 |
msgstr ""
|
1181 |
|
1182 |
+
#: includes/class-mla-main.php:1851
|
1183 |
msgid "ERROR: You are not allowed to delete this item."
|
1184 |
msgstr ""
|
1185 |
|
1186 |
#. translators: 1: post ID
|
1187 |
+
#: includes/class-mla-main.php:1859
|
1188 |
#, php-format
|
1189 |
msgid "ERROR: Item %1$d could NOT be deleted."
|
1190 |
msgstr ""
|
1191 |
|
1192 |
#. translators: 1: post ID
|
1193 |
+
#: includes/class-mla-main.php:1866
|
1194 |
#, php-format
|
1195 |
msgid "Item %1$d permanently deleted."
|
1196 |
msgstr ""
|
1197 |
|
1198 |
#. translators: 1: page_template_array
|
1199 |
+
#: includes/class-mla-main.php:1926
|
1200 |
#, php-format
|
1201 |
msgctxt "error_log"
|
1202 |
msgid "ERROR: MLA::_display_single_item \\$page_template_array = \"%1$s\""
|
1203 |
msgstr ""
|
1204 |
|
1205 |
+
#: includes/class-mla-main.php:2100
|
1206 |
msgid "File name"
|
1207 |
msgstr ""
|
1208 |
|
1209 |
+
#: includes/class-mla-main.php:2102
|
1210 |
msgid "File type"
|
1211 |
msgstr ""
|
1212 |
|
1213 |
+
#: includes/class-mla-main.php:2103
|
1214 |
msgid "Upload date"
|
1215 |
msgstr ""
|
1216 |
|
1217 |
+
#: includes/class-mla-main.php:2107
|
1218 |
msgid "Dimensions"
|
1219 |
msgstr ""
|
1220 |
|
1221 |
+
#: includes/class-mla-main.php:2111
|
1222 |
msgid "required"
|
1223 |
msgstr ""
|
1224 |
|
1225 |
+
#: includes/class-mla-main.php:2115
|
1226 |
msgid "Must be unique; will be validated."
|
1227 |
msgstr ""
|
1228 |
|
1229 |
+
#: includes/class-mla-main.php:2118
|
1230 |
msgid "Alternate text for the image, e.g. “The Mona Lisa”"
|
1231 |
msgstr ""
|
1232 |
|
1233 |
+
#: includes/class-mla-main.php:2126
|
1234 |
msgid "ID, type and title of parent, if any."
|
1235 |
msgstr ""
|
1236 |
|
1237 |
+
#: includes/class-mla-main.php:2129
|
1238 |
msgid "File URL"
|
1239 |
msgstr ""
|
1240 |
|
1241 |
+
#: includes/class-mla-main.php:2131
|
1242 |
msgid "Location of the uploaded file."
|
1243 |
msgstr ""
|
1244 |
|
1245 |
+
#: includes/class-mla-main.php:2132
|
1246 |
msgid "Image Metadata"
|
1247 |
msgstr ""
|
1248 |
|
1249 |
+
#: includes/class-mla-main.php:2167
|
1250 |
msgid "ERROR: You are not allowed to move this item out of the Trash."
|
1251 |
msgstr ""
|
1252 |
|
1253 |
#. translators: 1: post ID
|
1254 |
+
#: includes/class-mla-main.php:2175
|
1255 |
#, php-format
|
1256 |
msgid "ERROR: Item %1$d could NOT be restored from Trash."
|
1257 |
msgstr ""
|
1258 |
|
1259 |
#. translators: 1: post ID
|
1260 |
+
#: includes/class-mla-main.php:2190
|
1261 |
#, php-format
|
1262 |
msgid "Item %1$d restored from Trash."
|
1263 |
msgstr ""
|
1264 |
|
1265 |
+
#: includes/class-mla-main.php:2207
|
1266 |
msgid "ERROR: You are not allowed to move this item to the Trash."
|
1267 |
msgstr ""
|
1268 |
|
1269 |
#. translators: 1: post ID
|
1270 |
+
#: includes/class-mla-main.php:2215
|
1271 |
#, php-format
|
1272 |
msgid "ERROR: Item %1$d could NOT be moved to Trash."
|
1273 |
msgstr ""
|
1274 |
|
1275 |
+
#: includes/class-mla-media-modal.php:242
|
1276 |
+
#: includes/class-mla-media-modal.php:248
|
1277 |
+
#: includes/class-mla-media-modal.php:786
|
1278 |
+
#: includes/class-mla-media-modal.php:820
|
1279 |
+
#: includes/class-mla-media-modal.php:865
|
1280 |
msgid "Click to toggle"
|
1281 |
msgstr ""
|
1282 |
|
1283 |
+
#: includes/class-mla-media-modal.php:284
|
1284 |
msgid "Show all dates"
|
1285 |
msgstr ""
|
1286 |
|
1287 |
#. translators: 1: month name, 2: 4-digit year
|
1288 |
+
#: includes/class-mla-media-modal.php:299
|
1289 |
#, php-format
|
1290 |
msgid "%1$s %2$d"
|
1291 |
msgstr ""
|
1292 |
|
1293 |
+
#: includes/class-mla-media-modal.php:484
|
1294 |
msgid "Search Box"
|
1295 |
msgstr ""
|
1296 |
|
1297 |
+
#: includes/class-mla-media-modal.php:485
|
1298 |
msgid "Loading..."
|
1299 |
msgstr ""
|
1300 |
|
1301 |
+
#: includes/class-mla-media-modal.php:831
|
1302 |
msgid "Tags"
|
1303 |
msgstr ""
|
1304 |
|
1305 |
#. translators: %s: add new taxonomy label
|
1306 |
+
#: includes/class-mla-media-modal.php:833
|
1307 |
#, php-format
|
1308 |
msgid "Add New %1$s"
|
1309 |
msgstr ""
|
1310 |
|
1311 |
+
#: includes/class-mla-media-modal.php:849
|
1312 |
msgid "Choose from the most used tags"
|
1313 |
msgstr ""
|
1314 |
|
1315 |
+
#: includes/class-mla-media-modal.php:871
|
1316 |
msgid "Not Supported"
|
1317 |
msgstr ""
|
1318 |
|
1319 |
+
#: includes/class-mla-media-modal.php:1174
|
1320 |
+
#: includes/class-mla-media-modal.php:1190
|
1321 |
msgid "Search Terms"
|
1322 |
msgstr ""
|
1323 |
|
1324 |
+
#: includes/class-mla-media-modal.php:1175
|
1325 |
msgid "There are no taxonomies to search"
|
1326 |
msgstr ""
|
1327 |
|
1328 |
+
#: includes/class-mla-media-modal.php:1193
|
1329 |
msgid "All phrases"
|
1330 |
msgstr ""
|
1331 |
|
1332 |
+
#: includes/class-mla-media-modal.php:1195
|
1333 |
msgid "Any phrase"
|
1334 |
msgstr ""
|
1335 |
|
1336 |
+
#: includes/class-mla-media-modal.php:1197
|
1337 |
msgid "All terms"
|
1338 |
msgstr ""
|
1339 |
|
1340 |
+
#: includes/class-mla-media-modal.php:1199
|
1341 |
msgid "Any term"
|
1342 |
msgstr ""
|
1343 |
|
1376 |
|
1377 |
#. translators: 1: element name 2: bad_value 3: good_value
|
1378 |
#: includes/class-mla-mime-types.php:953
|
1379 |
+
#: includes/class-mla-mime-types.php:1988
|
1380 |
#, php-format
|
1381 |
msgid "<br>Changing %1$s \"%2$s\" to valid value \"%3$s\""
|
1382 |
msgstr ""
|
1383 |
|
1384 |
#: includes/class-mla-mime-types.php:953
|
1385 |
#: includes/class-mla-mime-types.php:1041
|
1386 |
+
#: includes/class-mla-mime-types.php:1052 includes/class-mla-settings.php:1145
|
1387 |
+
#: includes/class-mla-settings.php:1402
|
1388 |
msgid "Slug"
|
1389 |
msgstr ""
|
1390 |
|
1402 |
|
1403 |
#. translators: 1: element name 2: bad_value 3: good_value
|
1404 |
#: includes/class-mla-mime-types.php:1041
|
1405 |
+
#: includes/class-mla-mime-types.php:2114
|
1406 |
#, php-format
|
1407 |
msgid "<br>Changing new %1$s \"%2$s\" to valid value \"%3$s\""
|
1408 |
msgstr ""
|
1507 |
msgid "icon"
|
1508 |
msgstr ""
|
1509 |
|
1510 |
+
#: includes/class-mla-mime-types.php:1972
|
1511 |
+
#: includes/class-mla-mime-types.php:2071
|
1512 |
msgid "ERROR: Cannot load Upload MIME Types"
|
1513 |
msgstr ""
|
1514 |
|
1515 |
+
#: includes/class-mla-mime-types.php:1983
|
1516 |
msgid "ERROR: Extension is required"
|
1517 |
msgstr ""
|
1518 |
|
1519 |
+
#: includes/class-mla-mime-types.php:1988
|
1520 |
+
#: includes/class-mla-mime-types.php:2114
|
1521 |
+
#: includes/class-mla-mime-types.php:2125
|
1522 |
msgid "extension"
|
1523 |
msgstr ""
|
1524 |
|
1525 |
#. translators: 1: slug
|
1526 |
+
#: includes/class-mla-mime-types.php:1996
|
1527 |
#, php-format
|
1528 |
msgid "ERROR: Could not add extension \"%1$s\"; value already exists"
|
1529 |
msgstr ""
|
1530 |
|
1531 |
+
#: includes/class-mla-mime-types.php:2004
|
1532 |
msgid "ERROR: MIME type is required"
|
1533 |
msgstr ""
|
1534 |
|
1535 |
#. translators: 1: clean_mime_type
|
1536 |
+
#: includes/class-mla-mime-types.php:2009
|
1537 |
+
#: includes/class-mla-mime-types.php:2156
|
1538 |
#, php-format
|
1539 |
msgid "ERROR: Bad MIME type; try \"%1$s\""
|
1540 |
msgstr ""
|
1541 |
|
1542 |
#. translators: 1: slug
|
1543 |
+
#: includes/class-mla-mime-types.php:2046
|
1544 |
#, php-format
|
1545 |
msgid "Upload MIME Type \"%1$s\"; added"
|
1546 |
msgstr ""
|
1547 |
|
1548 |
+
#: includes/class-mla-mime-types.php:2052
|
1549 |
+
#: includes/class-mla-mime-types.php:2241
|
1550 |
+
#: includes/class-mla-mime-types.php:2320
|
1551 |
msgid "ERROR: Cannot update Upload MIME Types"
|
1552 |
msgstr ""
|
1553 |
|
1554 |
#. translators: 1: slug
|
1555 |
+
#: includes/class-mla-mime-types.php:2122
|
1556 |
#, php-format
|
1557 |
msgid "ERROR: Could not add new extension \"%1$s\"; value already exists"
|
1558 |
msgstr ""
|
1559 |
|
1560 |
#. translators: 1: slug
|
1561 |
+
#: includes/class-mla-mime-types.php:2221
|
1562 |
#, php-format
|
1563 |
msgid "Edit type \"%1$s\"; no changes detected"
|
1564 |
msgstr ""
|
1565 |
|
1566 |
#. translators: 1: slug
|
1567 |
+
#: includes/class-mla-mime-types.php:2235
|
1568 |
#, php-format
|
1569 |
msgid "Edit type \"%1$s\"; updated"
|
1570 |
msgstr ""
|
1571 |
|
1572 |
#. translators: 1: slug
|
1573 |
+
#: includes/class-mla-mime-types.php:2308
|
1574 |
#, php-format
|
1575 |
msgid "Upload MIME Type \"%1$s\"; reverted to standard"
|
1576 |
msgstr ""
|
1577 |
|
1578 |
#. translators: 1: slug
|
1579 |
+
#: includes/class-mla-mime-types.php:2314
|
1580 |
#, php-format
|
1581 |
msgid "Upload MIME Type \"%1$s\"; deleted"
|
1582 |
msgstr ""
|
1583 |
|
1584 |
#. translators: 1: slug
|
1585 |
+
#: includes/class-mla-mime-types.php:2329
|
1586 |
#, php-format
|
1587 |
msgid "ERROR: Did not find Upload type \"%1$s\""
|
1588 |
msgstr ""
|
1629 |
msgid "Att. Category"
|
1630 |
msgstr ""
|
1631 |
|
1632 |
+
#: includes/class-mla-objects.php:66
|
1633 |
msgctxt "taxonomy_name_plural"
|
1634 |
msgid "Att. Tags"
|
1635 |
msgstr ""
|
1636 |
|
1637 |
+
#: includes/class-mla-objects.php:67
|
1638 |
msgctxt "taxonomy_name_singular"
|
1639 |
msgid "Att. Tag"
|
1640 |
msgstr ""
|
1641 |
|
1642 |
+
#: includes/class-mla-objects.php:68
|
1643 |
msgid "Search Att. Tags"
|
1644 |
msgstr ""
|
1645 |
|
1646 |
+
#: includes/class-mla-objects.php:69
|
1647 |
msgid "All Att. Tags"
|
1648 |
msgstr ""
|
1649 |
|
1650 |
+
#: includes/class-mla-objects.php:70 includes/class-mla-objects.php:71
|
1651 |
msgid "Parent Att. Tag"
|
1652 |
msgstr ""
|
1653 |
|
1654 |
+
#: includes/class-mla-objects.php:72
|
1655 |
msgid "Edit Att. Tag"
|
1656 |
msgstr ""
|
1657 |
|
1658 |
+
#: includes/class-mla-objects.php:73
|
1659 |
msgid "Update Att. Tag"
|
1660 |
msgstr ""
|
1661 |
|
1662 |
+
#: includes/class-mla-objects.php:74
|
1663 |
msgid "Add New Att. Tag"
|
1664 |
msgstr ""
|
1665 |
|
1666 |
+
#: includes/class-mla-objects.php:75
|
1667 |
msgid "New Att. Tag Name"
|
1668 |
msgstr ""
|
1669 |
|
1670 |
+
#: includes/class-mla-objects.php:76
|
1671 |
msgid "Att. Tag"
|
1672 |
msgstr ""
|
1673 |
|
1707 |
msgid "tpls/mla-option-templates.tpl not found"
|
1708 |
msgstr ""
|
1709 |
|
1710 |
+
#: includes/class-mla-options.php:420 includes/class-mla-options.php:1591
|
1711 |
msgid "Attachment Categories"
|
1712 |
msgstr ""
|
1713 |
|
1715 |
msgid "Check this option to add support for Attachment Categories."
|
1716 |
msgstr ""
|
1717 |
|
1718 |
+
#: includes/class-mla-options.php:427 includes/class-mla-options.php:1606
|
1719 |
msgid "Attachment Tags"
|
1720 |
msgstr ""
|
1721 |
|
1723 |
msgid "Check this option to add support for Attachment Tags."
|
1724 |
msgstr ""
|
1725 |
|
1726 |
+
#: includes/class-mla-options.php:434 includes/class-mla-settings.php:986
|
1727 |
msgid "Where-used Reporting"
|
1728 |
msgstr ""
|
1729 |
|
1785 |
"Cached."
|
1786 |
msgstr ""
|
1787 |
|
1788 |
+
#: includes/class-mla-options.php:487 includes/class-mla-settings.php:986
|
1789 |
msgid "Taxonomy Support"
|
1790 |
msgstr ""
|
1791 |
|
1829 |
"\" list."
|
1830 |
msgstr ""
|
1831 |
|
1832 |
+
#: includes/class-mla-options.php:504 includes/class-mla-options.php:674
|
1833 |
+
#: includes/class-mla-settings.php:1018 includes/class-mla-settings.php:1019
|
1834 |
msgid "For complete documentation"
|
1835 |
msgstr ""
|
1836 |
|
1837 |
+
#: includes/class-mla-options.php:504 includes/class-mla-options.php:674
|
1838 |
+
#: includes/class-mla-settings.php:1018 includes/class-mla-settings.php:1019
|
1839 |
msgid "click here"
|
1840 |
msgstr ""
|
1841 |
|
1857 |
msgid "Page Title"
|
1858 |
msgstr ""
|
1859 |
|
1860 |
+
#: includes/class-mla-options.php:544 includes/class-mla-settings.php:360
|
1861 |
+
#: includes/class-mla-settings.php:2559
|
1862 |
msgid "Media Library Assistant"
|
1863 |
msgstr ""
|
1864 |
|
1908 |
msgid "Order By"
|
1909 |
msgstr ""
|
1910 |
|
1911 |
+
#: includes/class-mla-options.php:582 includes/class-mla-options.php:750
|
1912 |
msgid "Title/Name"
|
1913 |
msgstr ""
|
1914 |
|
1928 |
msgid "Descending"
|
1929 |
msgstr ""
|
1930 |
|
1931 |
+
#: includes/class-mla-options.php:592 includes/class-mla-options.php:760
|
1932 |
msgid "Choose the sort order."
|
1933 |
msgstr ""
|
1934 |
|
1980 |
msgid "Display Search Controls"
|
1981 |
msgstr ""
|
1982 |
|
1983 |
+
#: includes/class-mla-options.php:640 includes/class-mla-options.php:728
|
1984 |
msgid ""
|
1985 |
"Check/uncheck this option to display/hide the and/or connector and search "
|
1986 |
"fields controls."
|
2018 |
"Metadata\" and four \"where-used\" meta boxes to the Edit Media screen."
|
2019 |
msgstr ""
|
2020 |
|
2021 |
+
#: includes/class-mla-options.php:673
|
2022 |
+
msgid "You can also use Filters to customize the meta boxes."
|
2023 |
+
msgstr ""
|
2024 |
+
|
2025 |
+
#: includes/class-mla-options.php:678 includes/class-mla-settings.php:986
|
2026 |
msgid "Media Manager Enhancements"
|
2027 |
msgstr ""
|
2028 |
|
2029 |
+
#: includes/class-mla-options.php:683
|
2030 |
msgid "Enable Media Manager Enhancements"
|
2031 |
msgstr ""
|
2032 |
|
2033 |
+
#: includes/class-mla-options.php:686
|
2034 |
msgid "Check/uncheck this option to enable/disable Media Manager Enhancements."
|
2035 |
msgstr ""
|
2036 |
|
2037 |
+
#: includes/class-mla-options.php:690
|
2038 |
msgid "Media Manager Enhanced MIME Type filter"
|
2039 |
msgstr ""
|
2040 |
|
2041 |
+
#: includes/class-mla-options.php:693
|
2042 |
msgid ""
|
2043 |
"Check this option to filter by more MIME Types, e.g., text, applications."
|
2044 |
msgstr ""
|
2045 |
|
2046 |
+
#: includes/class-mla-options.php:697
|
2047 |
msgid "Media Manager Month and Year filter"
|
2048 |
msgstr ""
|
2049 |
|
2050 |
+
#: includes/class-mla-options.php:700
|
2051 |
msgid "Check this option to filter by month and year uploaded."
|
2052 |
msgstr ""
|
2053 |
|
2054 |
+
#: includes/class-mla-options.php:704
|
2055 |
msgid "Media Manager Category/Tag filter"
|
2056 |
msgstr ""
|
2057 |
|
2058 |
+
#: includes/class-mla-options.php:707
|
2059 |
msgid "Check this option to filter by taxonomy terms."
|
2060 |
msgstr ""
|
2061 |
|
2062 |
+
#: includes/class-mla-options.php:711
|
2063 |
msgid "Media Manager Terms Search popup"
|
2064 |
msgstr ""
|
2065 |
|
2066 |
+
#: includes/class-mla-options.php:714
|
2067 |
msgid "Check this option to enable the \"Terms Search\" popup window."
|
2068 |
msgstr ""
|
2069 |
|
2070 |
+
#: includes/class-mla-options.php:718
|
2071 |
msgid "Media Manager Enhanced Search Media box"
|
2072 |
msgstr ""
|
2073 |
|
2074 |
+
#: includes/class-mla-options.php:721
|
2075 |
msgid "Check this option to enable search box enhancements."
|
2076 |
msgstr ""
|
2077 |
|
2078 |
+
#: includes/class-mla-options.php:725
|
2079 |
msgid "Media Manager Enhanced Search Media Controls"
|
2080 |
msgstr ""
|
2081 |
|
2082 |
+
#: includes/class-mla-options.php:732
|
2083 |
msgid "Media Manager Checklist meta boxes"
|
2084 |
msgstr ""
|
2085 |
|
2086 |
+
#: includes/class-mla-options.php:735
|
2087 |
msgid ""
|
2088 |
"Check this option to enable MLA-enhanced meta boxes in the \"ATTACHMENT "
|
2089 |
"DETAILS\" pane.<br> This option is for any taxonomy that uses a "
|
2090 |
"<strong>\"checklist-style\"</strong> meta box.</strong>"
|
2091 |
msgstr ""
|
2092 |
|
2093 |
+
#: includes/class-mla-options.php:739
|
2094 |
msgid "Media Manager Flat meta boxes"
|
2095 |
msgstr ""
|
2096 |
|
2097 |
+
#: includes/class-mla-options.php:742
|
2098 |
msgid ""
|
2099 |
"Check this option to enable MLA-enhanced meta boxes in the \"ATTACHMENT "
|
2100 |
"DETAILS\" pane.<br> This option is for <strong>flat taxonomies</"
|
2102 |
"style\" meta box."
|
2103 |
msgstr ""
|
2104 |
|
2105 |
+
#: includes/class-mla-options.php:746
|
2106 |
msgid "Media Manager Order By"
|
2107 |
msgstr ""
|
2108 |
|
2109 |
+
#: includes/class-mla-options.php:750 includes/class-mla-options.php:759
|
2110 |
+
#: includes/class-mla-options.php:774 includes/class-mla-options.php:788
|
2111 |
+
#: includes/class-mla-options.php:802 includes/class-mla-settings.php:1068
|
2112 |
msgid "Media Manager Default"
|
2113 |
msgstr ""
|
2114 |
|
2115 |
+
#: includes/class-mla-options.php:751
|
2116 |
msgid ""
|
2117 |
"If you want to override the Media Manager default,<br> select a "
|
2118 |
"column for the sort order of the Media Library listing."
|
2119 |
msgstr ""
|
2120 |
|
2121 |
+
#: includes/class-mla-options.php:755
|
2122 |
msgid "Media Manager Order"
|
2123 |
msgstr ""
|
2124 |
|
2125 |
+
#: includes/class-mla-options.php:764
|
2126 |
msgid "Attachment Display Settings"
|
2127 |
msgstr ""
|
2128 |
|
2129 |
#. translators: 1: option name, e.g., Alignment, Link To or Size
|
2130 |
+
#: includes/class-mla-options.php:769 includes/class-mla-options.php:771
|
2131 |
msgid "Alignment"
|
2132 |
msgstr ""
|
2133 |
|
2134 |
+
#: includes/class-mla-options.php:774
|
2135 |
msgid "Left"
|
2136 |
msgstr ""
|
2137 |
|
2138 |
+
#: includes/class-mla-options.php:774
|
2139 |
msgid "Center"
|
2140 |
msgstr ""
|
2141 |
|
2142 |
+
#: includes/class-mla-options.php:774
|
2143 |
msgid "Right"
|
2144 |
msgstr ""
|
2145 |
|
2146 |
#. translators: 1: option name, e.g., Alignment, Link To or Size
|
2147 |
+
#: includes/class-mla-options.php:783 includes/class-mla-options.php:785
|
2148 |
msgid "Link To"
|
2149 |
msgstr ""
|
2150 |
|
2151 |
+
#: includes/class-mla-options.php:788
|
2152 |
msgid "Media File"
|
2153 |
msgstr ""
|
2154 |
|
2155 |
+
#: includes/class-mla-options.php:788
|
2156 |
msgid "Attachment Page"
|
2157 |
msgstr ""
|
2158 |
|
2159 |
+
#: includes/class-mla-options.php:788
|
2160 |
msgid "Custom URL"
|
2161 |
msgstr ""
|
2162 |
|
2163 |
#. translators: 1: option name, e.g., Alignment, Link To or Size
|
2164 |
+
#: includes/class-mla-options.php:797 includes/class-mla-options.php:799
|
2165 |
msgid "Size"
|
2166 |
msgstr ""
|
2167 |
|
2168 |
+
#: includes/class-mla-options.php:802
|
2169 |
msgid "Thumbnail"
|
2170 |
msgstr ""
|
2171 |
|
2172 |
+
#: includes/class-mla-options.php:802
|
2173 |
msgid "Medium"
|
2174 |
msgstr ""
|
2175 |
|
2176 |
+
#: includes/class-mla-options.php:802
|
2177 |
msgid "Large"
|
2178 |
msgstr ""
|
2179 |
|
2180 |
+
#: includes/class-mla-options.php:802
|
2181 |
msgid "Full Size"
|
2182 |
msgstr ""
|
2183 |
|
2184 |
+
#: includes/class-mla-options.php:811
|
2185 |
msgid "Default [mla_gallery] Templates and Settings"
|
2186 |
msgstr ""
|
2187 |
|
2188 |
+
#: includes/class-mla-options.php:816 includes/class-mla-options.php:860
|
2189 |
msgid "Style Template"
|
2190 |
msgstr ""
|
2191 |
|
2192 |
#. translators: 1: template type 2: shortcode
|
2193 |
+
#: includes/class-mla-options.php:822 includes/class-mla-options.php:832
|
2194 |
+
#: includes/class-mla-options.php:866 includes/class-mla-options.php:876
|
2195 |
#, php-format
|
2196 |
msgid "Select the default %1$s for your %2$s shortcodes."
|
2197 |
msgstr ""
|
2198 |
|
2199 |
+
#: includes/class-mla-options.php:822 includes/class-mla-options.php:866
|
2200 |
+
#: includes/class-mla-settings.php:2654 includes/class-mla-settings.php:2665
|
2201 |
+
#: includes/class-mla-settings.php:2671 includes/class-mla-settings.php:2675
|
2202 |
+
#: includes/class-mla-settings.php:2704 includes/class-mla-settings.php:2715
|
2203 |
msgid "style template"
|
2204 |
msgstr ""
|
2205 |
|
2206 |
+
#: includes/class-mla-options.php:826 includes/class-mla-options.php:870
|
2207 |
msgid "Markup Template"
|
2208 |
msgstr ""
|
2209 |
|
2210 |
+
#: includes/class-mla-options.php:832 includes/class-mla-options.php:876
|
2211 |
+
#: includes/class-mla-settings.php:2744 includes/class-mla-settings.php:2757
|
2212 |
+
#: includes/class-mla-settings.php:2763 includes/class-mla-settings.php:2767
|
2213 |
+
#: includes/class-mla-settings.php:2836
|
2214 |
msgid "markup template"
|
2215 |
msgstr ""
|
2216 |
|
2217 |
+
#: includes/class-mla-options.php:836 includes/class-mla-options.php:880
|
2218 |
msgid "Default columns"
|
2219 |
msgstr ""
|
2220 |
|
2221 |
+
#: includes/class-mla-options.php:840
|
2222 |
msgid ""
|
2223 |
"Enter the number of [mla_tag_cloud] columns; must be a positive integer."
|
2224 |
msgstr ""
|
2225 |
|
2226 |
+
#: includes/class-mla-options.php:844 includes/class-mla-options.php:888
|
2227 |
msgid "Default mla_margin"
|
2228 |
msgstr ""
|
2229 |
|
2230 |
+
#: includes/class-mla-options.php:848 includes/class-mla-options.php:892
|
2231 |
msgid ""
|
2232 |
"Enter the CSS \"margin\" property value, in length (px, em, pt, etc.), "
|
2233 |
"percent (%), \"auto\" or \"inherit\".<br> Enter \"none\" to "
|
2234 |
"remove the property entirely."
|
2235 |
msgstr ""
|
2236 |
|
2237 |
+
#: includes/class-mla-options.php:852 includes/class-mla-options.php:896
|
2238 |
msgid "Default mla_itemwidth"
|
2239 |
msgstr ""
|
2240 |
|
2241 |
+
#: includes/class-mla-options.php:856 includes/class-mla-options.php:900
|
2242 |
msgid ""
|
2243 |
"Enter the CSS \"width\" property value, in length (px, em, pt, etc.), "
|
2244 |
"percent (%), \"auto\" or \"inherit\".<br> Enter \"calculate"
|
2248 |
"the property entirely."
|
2249 |
msgstr ""
|
2250 |
|
2251 |
+
#: includes/class-mla-options.php:884
|
2252 |
msgid "Enter the number of [mla_gallery] columns; must be a positive integer."
|
2253 |
msgstr ""
|
2254 |
|
2255 |
+
#: includes/class-mla-options.php:920
|
2256 |
msgid "Enable custom field mapping when adding new media"
|
2257 |
msgstr ""
|
2258 |
|
2259 |
+
#: includes/class-mla-options.php:923
|
2260 |
msgid ""
|
2261 |
"Check this option to enable mapping when uploading new media (attachments)."
|
2262 |
"<br> Click Save Changes at the bottom of the screen if you change "
|
2264 |
"buttons on the bulk edit, single edit and settings screens."
|
2265 |
msgstr ""
|
2266 |
|
2267 |
+
#: includes/class-mla-options.php:927
|
2268 |
msgid "Enable custom field mapping when updating media metadata"
|
2269 |
msgstr ""
|
2270 |
|
2271 |
+
#: includes/class-mla-options.php:930 includes/class-mla-options.php:954
|
2272 |
msgid ""
|
2273 |
"Check this option to enable mapping when media (attachments) metadata is "
|
2274 |
"regenerated,<br> e.g., when the Media/Edit Media \"Edit Image\" "
|
2275 |
"functions are used."
|
2276 |
msgstr ""
|
2277 |
|
2278 |
+
#: includes/class-mla-options.php:934
|
2279 |
msgid ""
|
2280 |
"Update the custom field mapping values above, then click Save Changes to "
|
2281 |
"make the updates permanent.<br>You can also make temporary updates and click "
|
2283 |
"saving any rule changes."
|
2284 |
msgstr ""
|
2285 |
|
2286 |
+
#: includes/class-mla-options.php:944
|
2287 |
msgid "Enable IPTC/EXIF Mapping when adding new media"
|
2288 |
msgstr ""
|
2289 |
|
2290 |
+
#: includes/class-mla-options.php:947
|
2291 |
msgid ""
|
2292 |
"Check this option to enable mapping when uploading new media (attachments)."
|
2293 |
"<br> Does NOT affect the operation of the \"Map\" buttons on the "
|
2294 |
"bulk edit, single edit and settings screens."
|
2295 |
msgstr ""
|
2296 |
|
2297 |
+
#: includes/class-mla-options.php:951
|
2298 |
msgid "Enable IPTC/EXIF Mapping when updating media metadata"
|
2299 |
msgstr ""
|
2300 |
|
2301 |
+
#: includes/class-mla-options.php:958
|
2302 |
msgid ""
|
2303 |
"Update the standard field mapping values above, then click <strong>Save "
|
2304 |
"Changes</strong> to make the updates permanent.<br>You can also make "
|
2307 |
"changes."
|
2308 |
msgstr ""
|
2309 |
|
2310 |
+
#: includes/class-mla-options.php:968
|
2311 |
msgid ""
|
2312 |
"Update the taxonomy term mapping values above, then click <strong>Save "
|
2313 |
"Changes</strong> or <strong>Map All Attachments, Taxonomy Terms Now</strong>."
|
2314 |
msgstr ""
|
2315 |
|
2316 |
+
#: includes/class-mla-options.php:978
|
2317 |
msgid ""
|
2318 |
"<strong>Update</strong> individual custom field mapping values above, or "
|
2319 |
"make several updates and click <strong>Save Changes</strong> below to apply "
|
2324 |
"changes."
|
2325 |
msgstr ""
|
2326 |
|
2327 |
+
#: includes/class-mla-options.php:988
|
2328 |
msgid "IPTC/EXIF Mapping help"
|
2329 |
msgstr ""
|
2330 |
|
2331 |
+
#: includes/class-mla-options.php:1040
|
2332 |
msgid "Enable View and Post MIME Type Support"
|
2333 |
msgstr ""
|
2334 |
|
2335 |
+
#: includes/class-mla-options.php:1043
|
2336 |
msgid ""
|
2337 |
"Check/uncheck this option to enable/disable Post MIME Type Support, then "
|
2338 |
"click <strong>Save Changes</strong> to record the new setting."
|
2339 |
msgstr ""
|
2340 |
|
2341 |
+
#: includes/class-mla-options.php:1052
|
2342 |
msgid "Post MIME Types help."
|
2343 |
msgstr ""
|
2344 |
|
2345 |
+
#: includes/class-mla-options.php:1055
|
2346 |
msgctxt "post_mime_types_singular"
|
2347 |
msgid "All"
|
2348 |
msgstr ""
|
2349 |
|
2350 |
+
#: includes/class-mla-options.php:1056
|
2351 |
msgctxt "post_mime_types_plural"
|
2352 |
msgid "All"
|
2353 |
msgstr ""
|
2354 |
|
2355 |
+
#: includes/class-mla-options.php:1061 includes/class-mla-options.php:1115
|
2356 |
+
#: includes/class-mla-options.php:1124
|
2357 |
msgctxt "post_mime_types_description"
|
2358 |
msgid "Built-in view"
|
2359 |
msgstr ""
|
2360 |
|
2361 |
+
#: includes/class-mla-options.php:1064
|
2362 |
msgctxt "post_mime_types_singular"
|
2363 |
msgid "Image"
|
2364 |
msgstr ""
|
2365 |
|
2366 |
+
#: includes/class-mla-options.php:1065
|
2367 |
msgctxt "post_mime_types_plural"
|
2368 |
msgid "Images"
|
2369 |
msgstr ""
|
2370 |
|
2371 |
+
#: includes/class-mla-options.php:1070
|
2372 |
msgctxt "post_mime_types_description"
|
2373 |
msgid "All image subtypes"
|
2374 |
msgstr ""
|
2375 |
|
2376 |
+
#: includes/class-mla-options.php:1073
|
2377 |
msgctxt "post_mime_types_singular"
|
2378 |
msgid "Audio"
|
2379 |
msgstr ""
|
2380 |
|
2381 |
+
#: includes/class-mla-options.php:1074
|
2382 |
msgctxt "post_mime_types_plural"
|
2383 |
msgid "Audio"
|
2384 |
msgstr ""
|
2385 |
|
2386 |
+
#: includes/class-mla-options.php:1079
|
2387 |
msgctxt "post_mime_types_description"
|
2388 |
msgid "All audio subtypes"
|
2389 |
msgstr ""
|
2390 |
|
2391 |
+
#: includes/class-mla-options.php:1082
|
2392 |
msgctxt "post_mime_types_singular"
|
2393 |
msgid "Video"
|
2394 |
msgstr ""
|
2395 |
|
2396 |
+
#: includes/class-mla-options.php:1083
|
2397 |
msgctxt "post_mime_types_plural"
|
2398 |
msgid "Video"
|
2399 |
msgstr ""
|
2400 |
|
2401 |
+
#: includes/class-mla-options.php:1088
|
2402 |
msgctxt "post_mime_types_description"
|
2403 |
msgid "All video subtypes"
|
2404 |
msgstr ""
|
2405 |
|
2406 |
+
#: includes/class-mla-options.php:1091
|
2407 |
msgctxt "post_mime_types_singular"
|
2408 |
msgid "Text"
|
2409 |
msgstr ""
|
2410 |
|
2411 |
+
#: includes/class-mla-options.php:1092
|
2412 |
msgctxt "post_mime_types_plural"
|
2413 |
msgid "Text"
|
2414 |
msgstr ""
|
2415 |
|
2416 |
+
#: includes/class-mla-options.php:1097
|
2417 |
msgctxt "post_mime_types_description"
|
2418 |
msgid "All text subtypes"
|
2419 |
msgstr ""
|
2420 |
|
2421 |
+
#: includes/class-mla-options.php:1100
|
2422 |
msgctxt "post_mime_types_singular"
|
2423 |
msgid "Application"
|
2424 |
msgstr ""
|
2425 |
|
2426 |
+
#: includes/class-mla-options.php:1101
|
2427 |
msgctxt "post_mime_types_plural"
|
2428 |
msgid "Applications"
|
2429 |
msgstr ""
|
2430 |
|
2431 |
+
#: includes/class-mla-options.php:1106
|
2432 |
msgctxt "post_mime_types_description"
|
2433 |
msgid "All application subtypes"
|
2434 |
msgstr ""
|
2435 |
|
2436 |
+
#: includes/class-mla-options.php:1110
|
2437 |
msgctxt "post_mime_types_plural"
|
2438 |
msgid "Unattached"
|
2439 |
msgstr ""
|
2440 |
|
2441 |
+
#: includes/class-mla-options.php:1118
|
2442 |
msgctxt "post_mime_types_singular"
|
2443 |
msgid "Trash"
|
2444 |
msgstr ""
|
2445 |
|
2446 |
+
#: includes/class-mla-options.php:1119
|
2447 |
msgctxt "post_mime_types_plural"
|
2448 |
msgid "Trash"
|
2449 |
msgstr ""
|
2450 |
|
2451 |
+
#: includes/class-mla-options.php:1130
|
2452 |
msgid "Enable Upload MIME Type Support"
|
2453 |
msgstr ""
|
2454 |
|
2455 |
+
#: includes/class-mla-options.php:1133
|
2456 |
msgid ""
|
2457 |
"Check/uncheck this option to enable/disable Upload MIME Type Support, then "
|
2458 |
"click <strong>Save Changes</strong> to record the new setting."
|
2459 |
msgstr ""
|
2460 |
|
2461 |
+
#: includes/class-mla-options.php:1142
|
2462 |
msgid "Upload MIME Types help."
|
2463 |
msgstr ""
|
2464 |
|
2465 |
+
#: includes/class-mla-options.php:1147
|
2466 |
msgid "Enable MLA File Type Icons Support"
|
2467 |
msgstr ""
|
2468 |
|
2469 |
+
#: includes/class-mla-options.php:1150
|
2470 |
msgid ""
|
2471 |
"Check/uncheck this option to enable/disable MLA File Type Icons Support, "
|
2472 |
"then click <strong>Save Changes</strong> to record the new setting."
|
2473 |
msgstr ""
|
2474 |
|
2475 |
+
#: includes/class-mla-options.php:1177 includes/class-mla-options.php:1199
|
2476 |
+
#: includes/class-mla-options.php:1241
|
2477 |
msgid "no templates exist"
|
2478 |
msgstr ""
|
2479 |
|
2480 |
+
#: includes/class-mla-options.php:1185
|
2481 |
msgid "not found"
|
2482 |
msgstr ""
|
2483 |
|
2484 |
#. translators: 1: option name 2: action, e.g., update, delete, reset
|
2485 |
+
#: includes/class-mla-options.php:1558 includes/class-mla-options.php:1722
|
2486 |
+
#: includes/class-mla-options.php:1798 includes/class-mla-options.php:3488
|
2487 |
+
#: includes/class-mla-options.php:4639
|
2488 |
#, php-format
|
2489 |
msgid "ERROR: Custom %1$s unknown action \"%2$s\""
|
2490 |
msgstr ""
|
2491 |
|
2492 |
+
#: includes/class-mla-options.php:1647
|
2493 |
msgid "Support"
|
2494 |
msgstr ""
|
2495 |
|
2496 |
+
#: includes/class-mla-options.php:1648
|
2497 |
msgid "Inline Edit"
|
2498 |
msgstr ""
|
2499 |
|
2500 |
+
#: includes/class-mla-options.php:1649
|
2501 |
msgid "Checklist"
|
2502 |
msgstr ""
|
2503 |
|
2504 |
+
#: includes/class-mla-options.php:1650
|
2505 |
msgid "Term Search"
|
2506 |
msgstr ""
|
2507 |
|
2508 |
+
#: includes/class-mla-options.php:1651
|
2509 |
msgid "List Filter"
|
2510 |
msgstr ""
|
2511 |
|
2512 |
+
#: includes/class-mla-options.php:1652
|
2513 |
msgid "Taxonomy"
|
2514 |
msgstr ""
|
2515 |
|
2516 |
#. translators: 1: taxonomy name
|
2517 |
+
#: includes/class-mla-options.php:1670
|
2518 |
#, php-format
|
2519 |
msgid "List Filter ignored; %1$s not supported."
|
2520 |
msgstr ""
|
2521 |
|
2522 |
#. translators: 1: taxonomy name
|
2523 |
+
#: includes/class-mla-options.php:1677
|
2524 |
#, php-format
|
2525 |
msgid "Inline Edit ignored; %1$s not supported."
|
2526 |
msgstr ""
|
2527 |
|
2528 |
#. translators: 1: taxonomy name
|
2529 |
+
#: includes/class-mla-options.php:1687
|
2530 |
#, php-format
|
2531 |
msgid "Checklist ignored; %1$s not supported."
|
2532 |
msgstr ""
|
2533 |
|
2534 |
#. translators: 1: taxonomy name
|
2535 |
+
#: includes/class-mla-options.php:1695
|
2536 |
#, php-format
|
2537 |
msgid "Term Search ignored; %1$s not supported."
|
2538 |
msgstr ""
|
2539 |
|
2540 |
#. translators: 1: option name, e.g., taxonomy_support
|
2541 |
+
#: includes/class-mla-options.php:1712 includes/class-mla-options.php:1788
|
2542 |
#, php-format
|
2543 |
msgid "Update custom %1$s"
|
2544 |
msgstr ""
|
2545 |
|
2546 |
#. translators: 1: option name, e.g., taxonomy_support
|
2547 |
+
#: includes/class-mla-options.php:1719 includes/class-mla-options.php:1795
|
2548 |
+
#: includes/class-mla-options.php:4632
|
2549 |
#, php-format
|
2550 |
msgid "Reset custom %1$s"
|
2551 |
msgstr ""
|
2552 |
|
2553 |
+
#: includes/class-mla-options.php:1748
|
2554 |
#: includes/mla-main-search-box-template.php:38
|
2555 |
#: includes/mla-media-modal-js-template.php:24
|
2556 |
msgid "and"
|
2557 |
msgstr ""
|
2558 |
|
2559 |
+
#: includes/class-mla-options.php:1750
|
2560 |
#: includes/mla-main-search-box-template.php:40
|
2561 |
#: includes/mla-media-modal-js-template.php:28
|
2562 |
msgid "or"
|
2563 |
msgstr ""
|
2564 |
|
2565 |
+
#: includes/class-mla-options.php:1755 includes/class-mla-settings.php:2017
|
2566 |
+
#: includes/class-mla-settings.php:2050 includes/class-mla-settings.php:2076
|
2567 |
+
#: includes/class-mla-settings.php:2111 includes/class-mla-settings.php:2168
|
2568 |
+
#: includes/class-mla-settings.php:2218
|
2569 |
#: includes/mla-main-search-box-template.php:43
|
2570 |
#: includes/mla-media-modal-js-template.php:36
|
2571 |
msgid "Name"
|
2572 |
msgstr ""
|
2573 |
|
2574 |
+
#: includes/class-mla-options.php:1767
|
2575 |
#: includes/mla-main-search-box-template.php:47
|
2576 |
#: includes/mla-media-modal-js-template.php:53
|
2577 |
msgid "Terms"
|
2578 |
msgstr ""
|
2579 |
|
2580 |
+
#: includes/class-mla-options.php:2860 includes/class-mla-options.php:2980
|
2581 |
+
#: includes/class-mla-options.php:3820 includes/class-mla-options.php:3851
|
2582 |
+
#: includes/class-mla-settings.php:1467
|
2583 |
msgid "None (select a value)"
|
2584 |
msgstr ""
|
2585 |
|
2586 |
+
#: includes/class-mla-options.php:2987
|
2587 |
msgid "Metadata (see below)"
|
2588 |
msgstr ""
|
2589 |
|
2590 |
+
#: includes/class-mla-options.php:2994
|
2591 |
msgid "Template (see below)"
|
2592 |
msgstr ""
|
2593 |
|
2594 |
#. translators: 1: custom field name
|
2595 |
+
#: includes/class-mla-options.php:3059 includes/class-mla-options.php:4123
|
2596 |
#, php-format
|
2597 |
msgid "ERROR: New field %1$s already exists."
|
2598 |
msgstr ""
|
2599 |
|
2600 |
#. translators: 1: custom field name
|
2601 |
+
#: includes/class-mla-options.php:3064 includes/class-mla-options.php:4128
|
2602 |
#, php-format
|
2603 |
msgid "Adding new field %1$s."
|
2604 |
msgstr ""
|
2605 |
|
2606 |
#. translators: 1: custom field name
|
2607 |
+
#: includes/class-mla-options.php:3074 includes/class-mla-options.php:4138
|
2608 |
#, php-format
|
2609 |
msgid "Adding new rule for %1$s."
|
2610 |
msgstr ""
|
2611 |
|
2612 |
#. translators: 1: custom field name
|
2613 |
+
#: includes/class-mla-options.php:3105 includes/class-mla-options.php:4000
|
2614 |
+
#: includes/class-mla-options.php:4159
|
2615 |
#, php-format
|
2616 |
msgid "Deleting rule for %1$s."
|
2617 |
msgstr ""
|
2618 |
|
2619 |
#. translators: 1: custom field name 2: attribute 3: old value 4: new value
|
2620 |
+
#: includes/class-mla-options.php:3128 includes/class-mla-options.php:3149
|
2621 |
+
#: includes/class-mla-options.php:3199 includes/class-mla-options.php:3206
|
2622 |
+
#: includes/class-mla-options.php:3917 includes/class-mla-options.php:3924
|
2623 |
+
#: includes/class-mla-options.php:3931 includes/class-mla-options.php:4025
|
2624 |
+
#: includes/class-mla-options.php:4032 includes/class-mla-options.php:4067
|
2625 |
+
#: includes/class-mla-options.php:4074 includes/class-mla-options.php:4169
|
2626 |
+
#: includes/class-mla-options.php:4176
|
2627 |
#, php-format
|
2628 |
msgid "%1$s changing %2$s from %3$s to %4$s."
|
2629 |
msgstr ""
|
2630 |
|
2631 |
+
#: includes/class-mla-options.php:3128 includes/class-mla-options.php:3445
|
2632 |
msgid "Data Source"
|
2633 |
msgstr ""
|
2634 |
|
2635 |
+
#: includes/class-mla-options.php:3134 includes/class-mla-options.php:3951
|
2636 |
+
#: includes/class-mla-options.php:4052 includes/class-mla-options.php:4196
|
2637 |
msgid "Replace to Keep"
|
2638 |
msgstr ""
|
2639 |
|
2640 |
+
#: includes/class-mla-options.php:3137 includes/class-mla-options.php:3954
|
2641 |
+
#: includes/class-mla-options.php:4055 includes/class-mla-options.php:4199
|
2642 |
msgid "Keep to Replace"
|
2643 |
msgstr ""
|
2644 |
|
2645 |
#. translators: 1: custom field name 2: attribute 3: old value 'to' new value
|
2646 |
+
#: includes/class-mla-options.php:3142 includes/class-mla-options.php:3163
|
2647 |
+
#: includes/class-mla-options.php:3177 includes/class-mla-options.php:3191
|
2648 |
+
#: includes/class-mla-options.php:3220 includes/class-mla-options.php:3945
|
2649 |
+
#: includes/class-mla-options.php:3959 includes/class-mla-options.php:4046
|
2650 |
+
#: includes/class-mla-options.php:4060 includes/class-mla-options.php:4190
|
2651 |
+
#: includes/class-mla-options.php:4204
|
2652 |
#, php-format
|
2653 |
msgid "%1$s changing %2$s value from %3$s."
|
2654 |
msgstr ""
|
2655 |
|
2656 |
+
#: includes/class-mla-options.php:3142 includes/class-mla-options.php:3446
|
2657 |
+
#: includes/class-mla-options.php:3959 includes/class-mla-options.php:4060
|
2658 |
+
#: includes/class-mla-options.php:4204 includes/class-mla-options.php:4326
|
2659 |
+
#: includes/class-mla-options.php:4412 includes/class-mla-options.php:4530
|
2660 |
msgid "Existing Text"
|
2661 |
msgstr ""
|
2662 |
|
2663 |
+
#: includes/class-mla-options.php:3149 includes/class-mla-options.php:3447
|
2664 |
msgid "Format"
|
2665 |
msgstr ""
|
2666 |
|
2667 |
+
#: includes/class-mla-options.php:3155 includes/class-mla-options.php:3169
|
2668 |
+
#: includes/class-mla-options.php:3183 includes/class-mla-options.php:3212
|
2669 |
msgid "unchecked to checked"
|
2670 |
msgstr ""
|
2671 |
|
2672 |
+
#: includes/class-mla-options.php:3158 includes/class-mla-options.php:3172
|
2673 |
+
#: includes/class-mla-options.php:3186 includes/class-mla-options.php:3215
|
2674 |
msgid "checked to unchecked"
|
2675 |
msgstr ""
|
2676 |
|
2677 |
+
#: includes/class-mla-options.php:3163 includes/class-mla-options.php:3448
|
2678 |
msgid "MLA Column"
|
2679 |
msgstr ""
|
2680 |
|
2681 |
+
#: includes/class-mla-options.php:3199
|
2682 |
msgid "Metavalue name"
|
2683 |
msgstr ""
|
2684 |
|
2685 |
+
#: includes/class-mla-options.php:3206 includes/class-mla-options.php:3287
|
2686 |
+
#: includes/class-mla-options.php:3383 includes/class-mla-options.php:3425
|
2687 |
msgid "Option"
|
2688 |
msgstr ""
|
2689 |
|
2690 |
+
#: includes/class-mla-options.php:3220
|
2691 |
msgid "Delete NULL"
|
2692 |
msgstr ""
|
2693 |
|
2694 |
+
#: includes/class-mla-options.php:3259 includes/class-mla-options.php:4424
|
2695 |
msgid "No Custom Field Mapping Rules Defined"
|
2696 |
msgstr ""
|
2697 |
|
2698 |
+
#: includes/class-mla-options.php:3273 includes/class-mla-options.php:3370
|
2699 |
+
#: includes/class-mla-options.php:3412 includes/class-mla-options.php:4301
|
2700 |
+
#: includes/class-mla-options.php:4351 includes/class-mla-options.php:4448
|
2701 |
+
#: includes/class-mla-options.php:4492 includes/class-mla-options.php:4517
|
2702 |
msgid "Keep"
|
2703 |
msgstr ""
|
2704 |
|
2705 |
+
#: includes/class-mla-options.php:3277 includes/class-mla-options.php:3374
|
2706 |
+
#: includes/class-mla-options.php:3416
|
2707 |
msgid "Native"
|
2708 |
msgstr ""
|
2709 |
|
2710 |
+
#: includes/class-mla-options.php:3279 includes/class-mla-options.php:3376
|
2711 |
+
#: includes/class-mla-options.php:3418
|
2712 |
msgid "Commas"
|
2713 |
msgstr ""
|
2714 |
|
2715 |
+
#: includes/class-mla-options.php:3289 includes/class-mla-options.php:3385
|
2716 |
+
#: includes/class-mla-options.php:3427
|
2717 |
msgid "Text"
|
2718 |
msgstr ""
|
2719 |
|
2720 |
+
#: includes/class-mla-options.php:3291 includes/class-mla-options.php:3387
|
2721 |
+
#: includes/class-mla-options.php:3429
|
2722 |
msgid "Single"
|
2723 |
msgstr ""
|
2724 |
|
2725 |
+
#: includes/class-mla-options.php:3293 includes/class-mla-options.php:3389
|
2726 |
+
#: includes/class-mla-options.php:3431
|
2727 |
msgid "Export"
|
2728 |
msgstr ""
|
2729 |
|
2730 |
+
#: includes/class-mla-options.php:3295 includes/class-mla-options.php:3391
|
2731 |
+
#: includes/class-mla-options.php:3433
|
2732 |
msgid "Array"
|
2733 |
msgstr ""
|
2734 |
|
2735 |
+
#: includes/class-mla-options.php:3297 includes/class-mla-options.php:3393
|
2736 |
+
#: includes/class-mla-options.php:3435
|
2737 |
msgid "Multi"
|
2738 |
msgstr ""
|
2739 |
|
2740 |
+
#: includes/class-mla-options.php:3299 includes/class-mla-options.php:3395
|
2741 |
+
#: includes/class-mla-options.php:3437
|
2742 |
msgid "Delete NULL values"
|
2743 |
msgstr ""
|
2744 |
|
2745 |
+
#: includes/class-mla-options.php:3300 includes/class-mla-options.php:4451
|
2746 |
msgid "Delete Rule"
|
2747 |
msgstr ""
|
2748 |
|
2749 |
+
#: includes/class-mla-options.php:3301 includes/class-mla-options.php:4452
|
2750 |
msgid "Delete Rule AND Field"
|
2751 |
msgstr ""
|
2752 |
|
2753 |
+
#: includes/class-mla-options.php:3302 includes/class-mla-options.php:4453
|
2754 |
msgid "Update Rule"
|
2755 |
msgstr ""
|
2756 |
|
2757 |
+
#: includes/class-mla-options.php:3303 includes/class-mla-options.php:4454
|
2758 |
msgid "Map All Attachments"
|
2759 |
msgstr ""
|
2760 |
|
2761 |
+
#: includes/class-mla-options.php:3365 includes/class-mla-options.php:4481
|
2762 |
msgid "Add a new Mapping Rule"
|
2763 |
msgstr ""
|
2764 |
|
2765 |
+
#: includes/class-mla-options.php:3396 includes/class-mla-options.php:4495
|
2766 |
msgid "Add Rule"
|
2767 |
msgstr ""
|
2768 |
|
2769 |
+
#: includes/class-mla-options.php:3397 includes/class-mla-options.php:4496
|
2770 |
msgid "Add Rule and Map All Attachments"
|
2771 |
msgstr ""
|
2772 |
|
2773 |
+
#: includes/class-mla-options.php:3407 includes/class-mla-options.php:4506
|
2774 |
msgid "Add a new Field and Mapping Rule"
|
2775 |
msgstr ""
|
2776 |
|
2777 |
+
#: includes/class-mla-options.php:3438 includes/class-mla-options.php:4520
|
2778 |
msgid "Add Field"
|
2779 |
msgstr ""
|
2780 |
|
2781 |
+
#: includes/class-mla-options.php:3439 includes/class-mla-options.php:4521
|
2782 |
msgid "Add Field and Map All Attachments"
|
2783 |
msgstr ""
|
2784 |
|
2785 |
+
#: includes/class-mla-options.php:3444 includes/class-mla-options.php:3917
|
2786 |
+
#: includes/class-mla-options.php:4322 includes/class-mla-options.php:4408
|
2787 |
+
#: includes/class-mla-options.php:4526
|
2788 |
msgid "Field Title"
|
2789 |
msgstr ""
|
2790 |
|
2791 |
+
#: includes/class-mla-options.php:3469
|
2792 |
msgid "Custom field mapping rules updated."
|
2793 |
msgstr ""
|
2794 |
|
2795 |
+
#: includes/class-mla-options.php:3471
|
2796 |
msgid "ERROR: Custom field mapping rules update failed."
|
2797 |
msgstr ""
|
2798 |
|
2799 |
+
#: includes/class-mla-options.php:3474
|
2800 |
msgid "Custom field no mapping rule changes detected."
|
2801 |
msgstr ""
|
2802 |
|
2803 |
+
#: includes/class-mla-options.php:3482
|
2804 |
msgid "Custom field mapping settings saved."
|
2805 |
msgstr ""
|
2806 |
|
2807 |
+
#: includes/class-mla-options.php:3484
|
2808 |
msgid "ERROR: Custom field mapping settings reset failed."
|
2809 |
msgstr ""
|
2810 |
|
2811 |
#. translators: 1: custom field name
|
2812 |
+
#: includes/class-mla-options.php:3905
|
2813 |
#, php-format
|
2814 |
msgid "ERROR: No old values for %1$s."
|
2815 |
msgstr ""
|
2816 |
|
2817 |
+
#: includes/class-mla-options.php:3924 includes/class-mla-options.php:4025
|
2818 |
+
#: includes/class-mla-options.php:4169 includes/class-mla-options.php:4323
|
2819 |
+
#: includes/class-mla-options.php:4409 includes/class-mla-options.php:4527
|
2820 |
msgid "IPTC Value"
|
2821 |
msgstr ""
|
2822 |
|
2823 |
+
#: includes/class-mla-options.php:3931 includes/class-mla-options.php:4032
|
2824 |
+
#: includes/class-mla-options.php:4176
|
2825 |
msgid "EXIF Value"
|
2826 |
msgstr ""
|
2827 |
|
2828 |
+
#: includes/class-mla-options.php:3937 includes/class-mla-options.php:4038
|
2829 |
+
#: includes/class-mla-options.php:4182
|
2830 |
msgid "EXIF to IPTC"
|
2831 |
msgstr ""
|
2832 |
|
2833 |
+
#: includes/class-mla-options.php:3940 includes/class-mla-options.php:4041
|
2834 |
+
#: includes/class-mla-options.php:4185
|
2835 |
msgid "IPTC to EXIF"
|
2836 |
msgstr ""
|
2837 |
|
2838 |
+
#: includes/class-mla-options.php:3945 includes/class-mla-options.php:4046
|
2839 |
+
#: includes/class-mla-options.php:4190 includes/class-mla-options.php:4325
|
2840 |
+
#: includes/class-mla-options.php:4411 includes/class-mla-options.php:4529
|
2841 |
msgid "Priority"
|
2842 |
msgstr ""
|
2843 |
|
2844 |
+
#: includes/class-mla-options.php:4067 includes/class-mla-options.php:4413
|
2845 |
msgid "Delimiter(s)"
|
2846 |
msgstr ""
|
2847 |
|
2848 |
+
#: includes/class-mla-options.php:4297 includes/class-mla-options.php:4347
|
2849 |
+
#: includes/class-mla-options.php:4444 includes/class-mla-options.php:4488
|
2850 |
+
#: includes/class-mla-options.php:4513
|
2851 |
msgid "IPTC"
|
2852 |
msgstr ""
|
2853 |
|
2854 |
+
#: includes/class-mla-options.php:4299 includes/class-mla-options.php:4349
|
2855 |
+
#: includes/class-mla-options.php:4446 includes/class-mla-options.php:4490
|
2856 |
+
#: includes/class-mla-options.php:4515
|
2857 |
msgid "EXIF"
|
2858 |
msgstr ""
|
2859 |
|
2860 |
+
#: includes/class-mla-options.php:4324 includes/class-mla-options.php:4410
|
2861 |
+
#: includes/class-mla-options.php:4528
|
2862 |
msgid "EXIF/Template Value"
|
2863 |
msgstr ""
|
2864 |
|
2865 |
#. translators: 1: option name
|
2866 |
+
#: includes/class-mla-options.php:4538
|
2867 |
#, php-format
|
2868 |
msgid "ERROR: Render unknown custom %1$s."
|
2869 |
msgstr ""
|
2870 |
|
2871 |
#. translators: 1: option name
|
2872 |
+
#: includes/class-mla-options.php:4582
|
2873 |
#, php-format
|
2874 |
msgid "ERROR: Update/delete unknown custom %1$s."
|
2875 |
msgstr ""
|
2876 |
|
2877 |
+
#: includes/class-mla-options.php:4588
|
2878 |
msgid "IPTC/EXIF mapping settings updated."
|
2879 |
msgstr ""
|
2880 |
|
2881 |
+
#: includes/class-mla-options.php:4590
|
2882 |
msgid "ERROR: IPTC/EXIF settings update failed."
|
2883 |
msgstr ""
|
2884 |
|
2885 |
+
#: includes/class-mla-options.php:4593
|
2886 |
msgid "IPTC/EXIF no mapping changes detected."
|
2887 |
msgstr ""
|
2888 |
|
2889 |
#. translators: 1: field type
|
2890 |
+
#: includes/class-mla-options.php:4604 includes/class-mla-options.php:4614
|
2891 |
+
#: includes/class-mla-options.php:4624 includes/class-mla-settings.php:2842
|
2892 |
#, php-format
|
2893 |
msgid "%1$s settings saved."
|
2894 |
msgstr ""
|
2895 |
|
2896 |
+
#: includes/class-mla-options.php:4604 includes/class-mla-options.php:4607
|
2897 |
+
#: includes/class-mla-settings.php:3073 includes/class-mla-settings.php:3107
|
2898 |
+
#: includes/class-mla-settings.php:3110
|
2899 |
msgid "Standard field"
|
2900 |
msgstr ""
|
2901 |
|
2902 |
#. translators: 1: field type
|
2903 |
+
#: includes/class-mla-options.php:4607 includes/class-mla-options.php:4617
|
2904 |
+
#: includes/class-mla-options.php:4627
|
2905 |
#, php-format
|
2906 |
msgid "ERROR: IPTC/EXIF %1$s settings update failed."
|
2907 |
msgstr ""
|
2908 |
|
2909 |
+
#: includes/class-mla-options.php:4614 includes/class-mla-options.php:4617
|
2910 |
+
#: includes/class-mla-settings.php:3133 includes/class-mla-settings.php:3167
|
2911 |
+
#: includes/class-mla-settings.php:3170
|
2912 |
msgid "Taxonomy term"
|
2913 |
msgstr ""
|
2914 |
|
2915 |
+
#: includes/class-mla-options.php:4624 includes/class-mla-options.php:4627
|
2916 |
+
#: includes/class-mla-settings.php:2980 includes/class-mla-settings.php:2983
|
2917 |
+
#: includes/class-mla-settings.php:3208 includes/class-mla-settings.php:3242
|
2918 |
+
#: includes/class-mla-settings.php:3245
|
2919 |
msgid "Custom field"
|
2920 |
msgstr ""
|
2921 |
|
2922 |
#. translators: 1: option name, e.g., taxonomy_support
|
2923 |
+
#: includes/class-mla-options.php:4635
|
2924 |
#, php-format
|
2925 |
msgid "ERROR: Reset unknown custom %1$s"
|
2926 |
msgstr ""
|
2927 |
|
2928 |
+
#: includes/class-mla-settings.php:310 includes/class-mla-settings.php:328
|
2929 |
msgid "no slug"
|
2930 |
msgstr ""
|
2931 |
|
2932 |
+
#: includes/class-mla-settings.php:360
|
2933 |
msgid "Media Library Assistant Settings"
|
2934 |
msgstr ""
|
2935 |
|
2936 |
+
#: includes/class-mla-settings.php:379
|
2937 |
msgid "Views per page"
|
2938 |
msgstr ""
|
2939 |
|
2940 |
+
#: includes/class-mla-settings.php:390
|
2941 |
msgid "Types per page"
|
2942 |
msgstr ""
|
2943 |
|
2944 |
+
#: includes/class-mla-settings.php:401
|
2945 |
msgid "Upload types per page"
|
2946 |
msgstr ""
|
2947 |
|
2948 |
+
#: includes/class-mla-settings.php:537
|
2949 |
msgid "ERROR: No view slug found"
|
2950 |
msgstr ""
|
2951 |
|
2952 |
+
#: includes/class-mla-settings.php:580
|
2953 |
msgid "ERROR: No upload slug found"
|
2954 |
msgstr ""
|
2955 |
|
2956 |
+
#: includes/class-mla-settings.php:616 includes/class-mla-settings.php:2560
|
2957 |
msgid "Settings"
|
2958 |
msgstr ""
|
2959 |
|
2960 |
#. translators: 1: function name 2: option type, e.g., radio, select, text
|
2961 |
+
#: includes/class-mla-settings.php:664 includes/class-mla-settings.php:696
|
2962 |
+
#: includes/class-mla-settings.php:834
|
2963 |
#, php-format
|
2964 |
msgctxt "error_log"
|
2965 |
msgid "ERROR: %1$s unknown type = \"%2$s\""
|
2966 |
msgstr ""
|
2967 |
|
2968 |
+
#: includes/class-mla-settings.php:732 includes/class-mla-settings.php:992
|
2969 |
msgid "Go to Top"
|
2970 |
msgstr ""
|
2971 |
|
2972 |
+
#: includes/class-mla-settings.php:883
|
2973 |
msgid "General"
|
2974 |
msgstr ""
|
2975 |
|
2976 |
+
#: includes/class-mla-settings.php:884
|
2977 |
msgid "Views"
|
2978 |
msgstr ""
|
2979 |
|
2980 |
+
#: includes/class-mla-settings.php:885
|
2981 |
msgid "Uploads"
|
2982 |
msgstr ""
|
2983 |
|
2984 |
+
#: includes/class-mla-settings.php:886 includes/class-mla-settings.php:2842
|
2985 |
+
#: includes/class-mla-settings.php:2845
|
2986 |
msgid "MLA Gallery"
|
2987 |
msgstr ""
|
2988 |
|
2989 |
+
#: includes/class-mla-settings.php:887
|
2990 |
msgid "Custom Fields"
|
2991 |
msgstr ""
|
2992 |
|
2993 |
+
#: includes/class-mla-settings.php:889
|
2994 |
msgid "Documentation"
|
2995 |
msgstr ""
|
2996 |
|
2997 |
+
#: includes/class-mla-settings.php:984
|
2998 |
msgid "General Processing Options"
|
2999 |
msgstr ""
|
3000 |
|
3001 |
#. translators: 1: - 4: page subheader values
|
3002 |
+
#: includes/class-mla-settings.php:986
|
3003 |
#, php-format
|
3004 |
msgid ""
|
3005 |
"In this tab you can find a number of options for controlling the "
|
3008 |
"any changes you make."
|
3009 |
msgstr ""
|
3010 |
|
3011 |
+
#: includes/class-mla-settings.php:986
|
3012 |
msgid "Media/Assistant Table Defaults"
|
3013 |
msgstr ""
|
3014 |
|
3015 |
+
#: includes/class-mla-settings.php:987 includes/class-mla-settings.php:1347
|
3016 |
+
#: includes/class-mla-settings.php:1400 includes/class-mla-settings.php:1817
|
3017 |
+
#: includes/class-mla-settings.php:1867 includes/class-mla-settings.php:1953
|
3018 |
+
#: includes/class-mla-settings.php:2357 includes/class-mla-settings.php:2360
|
3019 |
+
#: includes/class-mla-settings.php:2480 includes/class-mla-settings.php:2482
|
3020 |
msgid "Save Changes"
|
3021 |
msgstr ""
|
3022 |
|
3023 |
+
#: includes/class-mla-settings.php:988
|
3024 |
msgid "Export ALL Settings"
|
3025 |
msgstr ""
|
3026 |
|
3027 |
+
#: includes/class-mla-settings.php:989
|
3028 |
msgid "Delete General options and restore default settings"
|
3029 |
msgstr ""
|
3030 |
|
3031 |
+
#: includes/class-mla-settings.php:993
|
3032 |
msgid "Support Our Work"
|
3033 |
msgstr ""
|
3034 |
|
3035 |
+
#: includes/class-mla-settings.php:994 includes/class-mla-settings.php:997
|
3036 |
msgid "Donate to FTJ"
|
3037 |
msgstr ""
|
3038 |
|
3039 |
+
#: includes/class-mla-settings.php:995
|
3040 |
msgid "Donate"
|
3041 |
msgstr ""
|
3042 |
|
3043 |
#. translators: 1: donation hyperlink
|
3044 |
+
#: includes/class-mla-settings.php:997
|
3045 |
#, php-format
|
3046 |
msgid ""
|
3047 |
"This plugin was inspired by my work on the WordPress web site for our "
|
3050 |
"our work. Thank you!"
|
3051 |
msgstr ""
|
3052 |
|
3053 |
+
#: includes/class-mla-settings.php:997
|
3054 |
msgid "tax-deductible donation"
|
3055 |
msgstr ""
|
3056 |
|
3057 |
+
#: includes/class-mla-settings.php:1018
|
3058 |
msgid "enhanced version of the WordPress [gallery] shortcode."
|
3059 |
msgstr ""
|
3060 |
|
3061 |
+
#: includes/class-mla-settings.php:1019
|
3062 |
msgid "enhanced version of the WordPress Tag Cloud."
|
3063 |
msgstr ""
|
3064 |
|
3065 |
+
#: includes/class-mla-settings.php:1031
|
3066 |
msgid "Shortcodes made available by this plugin"
|
3067 |
msgstr ""
|
3068 |
|
3069 |
+
#: includes/class-mla-settings.php:1140
|
3070 |
msgid "Edit View"
|
3071 |
msgstr ""
|
3072 |
|
3073 |
+
#: includes/class-mla-settings.php:1146 includes/class-mla-settings.php:1403
|
3074 |
msgid ""
|
3075 |
"The “slug” is the URL-friendly, unique key for the view. It must "
|
3076 |
"be all lowercase and contain only letters, numbers, periods (.), slashes (/) "
|
3079 |
"MIME</strong> type, e.g., “image” or “image/jpeg”."
|
3080 |
msgstr ""
|
3081 |
|
3082 |
+
#: includes/class-mla-settings.php:1147 includes/class-mla-settings.php:1404
|
3083 |
msgid "Singular Label"
|
3084 |
msgstr ""
|
3085 |
|
3086 |
+
#: includes/class-mla-settings.php:1148 includes/class-mla-settings.php:1405
|
3087 |
msgid "Plural Label"
|
3088 |
msgstr ""
|
3089 |
|
3090 |
+
#: includes/class-mla-settings.php:1149 includes/class-mla-settings.php:1406
|
3091 |
msgid ""
|
3092 |
"The labels, e.g., “Image” and “Images” are used for "
|
3093 |
"column headers and other display purposes."
|
3094 |
msgstr ""
|
3095 |
|
3096 |
+
#: includes/class-mla-settings.php:1150 includes/class-mla-settings.php:1407
|
3097 |
msgid "Specification"
|
3098 |
msgstr ""
|
3099 |
|
3100 |
+
#: includes/class-mla-settings.php:1151 includes/class-mla-settings.php:1408
|
3101 |
msgid ""
|
3102 |
"If the MIME type specification differs from the slug, enter it here. You may "
|
3103 |
"include multiple MIME types, e.g., “audio,video” and/or wildcard "
|
3105 |
"MIME Type box is checked."
|
3106 |
msgstr ""
|
3107 |
|
3108 |
+
#: includes/class-mla-settings.php:1152 includes/class-mla-settings.php:1409
|
3109 |
msgid "Post MIME Type"
|
3110 |
msgstr ""
|
3111 |
|
3112 |
+
#: includes/class-mla-settings.php:1153 includes/class-mla-settings.php:1410
|
3113 |
msgid ""
|
3114 |
"Check this box if you want to add this entry to the list of MIME types "
|
3115 |
"returned by wp_get_mime_types()."
|
3116 |
msgstr ""
|
3117 |
|
3118 |
+
#: includes/class-mla-settings.php:1154 includes/class-mla-settings.php:1411
|
3119 |
msgid "Table View"
|
3120 |
msgstr ""
|
3121 |
|
3122 |
+
#: includes/class-mla-settings.php:1155 includes/class-mla-settings.php:1412
|
3123 |
msgid ""
|
3124 |
"Check this box if you want to add this entry to the list of Media/Assistant "
|
3125 |
"table views."
|
3126 |
msgstr ""
|
3127 |
|
3128 |
+
#: includes/class-mla-settings.php:1157 includes/class-mla-settings.php:1414
|
3129 |
msgid ""
|
3130 |
"You can choose your own table view order by entering a number (1 for first, "
|
3131 |
"etc.) in this field."
|
3132 |
msgstr ""
|
3133 |
|
3134 |
+
#: includes/class-mla-settings.php:1159 includes/class-mla-settings.php:1416
|
3135 |
+
#: includes/class-mla-settings.php:1515 includes/class-mla-settings.php:1879
|
3136 |
msgid ""
|
3137 |
"The description can contain any documentation or notes you need to "
|
3138 |
"understand or use the item."
|
3139 |
msgstr ""
|
3140 |
|
3141 |
#. translators: 1: view name/slug
|
3142 |
+
#: includes/class-mla-settings.php:1309 includes/class-mla-settings.php:1779
|
3143 |
#, php-format
|
3144 |
msgid "Edit view \"%1$s\" cancelled."
|
3145 |
msgstr ""
|
3146 |
|
3147 |
+
#: includes/class-mla-settings.php:1344
|
3148 |
msgid "View and Post MIME Type Support is disabled"
|
3149 |
msgstr ""
|
3150 |
|
3151 |
+
#: includes/class-mla-settings.php:1389 includes/class-mla-settings.php:1392
|
3152 |
msgid "Library Views/Post MIME Type Processing"
|
3153 |
msgstr ""
|
3154 |
|
3155 |
+
#: includes/class-mla-settings.php:1390
|
3156 |
msgid ""
|
3157 |
"In this tab you can manage the list of \"Post MIME Types\", which are used "
|
3158 |
"by WordPress to define the views for the <em><strong>Media/Library</strong></"
|
3164 |
msgstr ""
|
3165 |
|
3166 |
#. translators: 1: Documentation hyperlink
|
3167 |
+
#: includes/class-mla-settings.php:1392
|
3168 |
#, php-format
|
3169 |
msgid ""
|
3170 |
"You can find more information about library views, Post MIME types and how "
|
3173 |
"screen."
|
3174 |
msgstr ""
|
3175 |
|
3176 |
+
#: includes/class-mla-settings.php:1392
|
3177 |
msgid "Library View Processing documentation"
|
3178 |
msgstr ""
|
3179 |
|
3180 |
+
#: includes/class-mla-settings.php:1396 includes/class-mla-settings.php:1585
|
3181 |
+
#: includes/class-mla-settings.php:1891
|
3182 |
msgid "Displaying search results for"
|
3183 |
msgstr ""
|
3184 |
|
3185 |
+
#: includes/class-mla-settings.php:1397
|
3186 |
msgid "Search Views"
|
3187 |
msgstr ""
|
3188 |
|
3189 |
+
#: includes/class-mla-settings.php:1401
|
3190 |
msgid "Add New View"
|
3191 |
msgstr ""
|
3192 |
|
3193 |
+
#: includes/class-mla-settings.php:1417
|
3194 |
msgid "Add View"
|
3195 |
msgstr ""
|
3196 |
|
3197 |
+
#: includes/class-mla-settings.php:1419 includes/class-mla-settings.php:1884
|
3198 |
msgid "<strong>Quick Edit</strong>"
|
3199 |
msgstr ""
|
3200 |
|
3201 |
+
#: includes/class-mla-settings.php:1425
|
3202 |
#: includes/class-mla-view-list-table.php:377
|
3203 |
#: includes/class-mla-view-list-table.php:393
|
3204 |
msgid "Yes"
|
3205 |
msgstr ""
|
3206 |
|
3207 |
+
#: includes/class-mla-settings.php:1500
|
3208 |
msgid "Edit Upload MIME Type"
|
3209 |
msgstr ""
|
3210 |
|
3211 |
+
#: includes/class-mla-settings.php:1505 includes/class-mla-settings.php:1870
|
3212 |
msgid "Extension"
|
3213 |
msgstr ""
|
3214 |
|
3215 |
+
#: includes/class-mla-settings.php:1506
|
3216 |
msgid ""
|
3217 |
"The “extension” is the file extension for this type, and a "
|
3218 |
"unique key for the item. It must be all lowercase and contain only letters "
|
3219 |
"and numbers."
|
3220 |
msgstr ""
|
3221 |
|
3222 |
+
#: includes/class-mla-settings.php:1508 includes/class-mla-settings.php:1873
|
3223 |
msgid ""
|
3224 |
"The MIME Type must be all lowercase and contain only letters, numbers, "
|
3225 |
"periods (.), slashes (/) and hyphens (-). It <strong>must be a valid MIME</"
|
3226 |
"strong> type, e.g., “image” or “image/jpeg”."
|
3227 |
msgstr ""
|
3228 |
|
3229 |
+
#: includes/class-mla-settings.php:1509 includes/class-mla-settings.php:1874
|
3230 |
msgid "Icon Type"
|
3231 |
msgstr ""
|
3232 |
|
3233 |
+
#: includes/class-mla-settings.php:1511 includes/class-mla-settings.php:1875
|
3234 |
msgid ""
|
3235 |
"The Icon Type selects a thumbnail image displayed for non-image file types, "
|
3236 |
"such as PDF documents."
|
3237 |
msgstr ""
|
3238 |
|
3239 |
+
#: includes/class-mla-settings.php:1512 includes/class-mla-settings.php:1876
|
3240 |
msgid "Inactive"
|
3241 |
msgstr ""
|
3242 |
|
3243 |
+
#: includes/class-mla-settings.php:1513 includes/class-mla-settings.php:1877
|
3244 |
msgid ""
|
3245 |
"Check this box if you want to remove this entry from the list of Upload MIME "
|
3246 |
"Types returned by get_allowed_mime_types()."
|
3247 |
msgstr ""
|
3248 |
|
3249 |
+
#: includes/class-mla-settings.php:1584
|
3250 |
msgid "Known File Extension/MIME Type Associations"
|
3251 |
msgstr ""
|
3252 |
|
3253 |
+
#: includes/class-mla-settings.php:1586
|
3254 |
msgid "Search Known MIME Types"
|
3255 |
msgstr ""
|
3256 |
|
3257 |
+
#: includes/class-mla-settings.php:1588 includes/class-mla-settings.php:1863
|
3258 |
msgid "To search by extension, use \".\", e.g., \".doc\""
|
3259 |
msgstr ""
|
3260 |
|
3261 |
+
#: includes/class-mla-settings.php:1814
|
3262 |
msgid "Upload MIME Type Support is disabled"
|
3263 |
msgstr ""
|
3264 |
|
3265 |
+
#: includes/class-mla-settings.php:1857 includes/class-mla-settings.php:1860
|
3266 |
msgid "File Extension and MIME Type Processing"
|
3267 |
msgstr ""
|
3268 |
|
3269 |
+
#: includes/class-mla-settings.php:1858
|
3270 |
msgid ""
|
3271 |
"In this tab you can manage the list of file extension/MIME Type "
|
3272 |
"associations, which are used by WordPress to decide what kind of files can "
|
3276 |
msgstr ""
|
3277 |
|
3278 |
#. translators: 1: Documentation hyperlink
|
3279 |
+
#: includes/class-mla-settings.php:1860
|
3280 |
#, php-format
|
3281 |
msgid ""
|
3282 |
"You can find more information about file extensions, MIME types and how "
|
3284 |
"the <strong>\"Help\"</strong> tab in the upper-right corner of this screen."
|
3285 |
msgstr ""
|
3286 |
|
3287 |
+
#: includes/class-mla-settings.php:1860
|
3288 |
msgid "File Extension Processing documentation"
|
3289 |
msgstr ""
|
3290 |
|
3291 |
+
#: includes/class-mla-settings.php:1862
|
3292 |
msgid "Search Uploads"
|
3293 |
msgstr ""
|
3294 |
|
3295 |
+
#: includes/class-mla-settings.php:1868
|
3296 |
msgid "Add New Upload MIME Type"
|
3297 |
msgstr ""
|
3298 |
|
3299 |
+
#: includes/class-mla-settings.php:1869
|
3300 |
msgid ""
|
3301 |
"To search the database of over 1,500 known extension/type associations, "
|
3302 |
"click \"Search Known Types\" below the form."
|
3303 |
msgstr ""
|
3304 |
|
3305 |
+
#: includes/class-mla-settings.php:1871
|
3306 |
msgid ""
|
3307 |
"The “extension” is the file extension for this type, and unique "
|
3308 |
"key for the item. It must be all lowercase and contain only letters and "
|
3309 |
"numbers."
|
3310 |
msgstr ""
|
3311 |
|
3312 |
+
#: includes/class-mla-settings.php:1880
|
3313 |
msgid "Add Upload MIME Type"
|
3314 |
msgstr ""
|
3315 |
|
3316 |
+
#: includes/class-mla-settings.php:1882
|
3317 |
msgid "Search Known Types"
|
3318 |
msgstr ""
|
3319 |
|
3320 |
+
#: includes/class-mla-settings.php:1890
|
3321 |
msgid "Active"
|
3322 |
msgstr ""
|
3323 |
|
3324 |
+
#: includes/class-mla-settings.php:1943
|
3325 |
msgid "MLA Gallery Options"
|
3326 |
msgstr ""
|
3327 |
|
3328 |
+
#: includes/class-mla-settings.php:1944
|
3329 |
msgid "Go to Markup Templates"
|
3330 |
msgstr ""
|
3331 |
|
3332 |
+
#: includes/class-mla-settings.php:1945
|
3333 |
msgid ""
|
3334 |
"In this tab you can view the default style and markup templates. You can "
|
3335 |
"also define additional templates and use the <code>mla_style</code> and "
|
3339 |
"Changes\" at the bottom of this page."
|
3340 |
msgstr ""
|
3341 |
|
3342 |
+
#: includes/class-mla-settings.php:1948
|
3343 |
msgid "Style Templates"
|
3344 |
msgstr ""
|
3345 |
|
3346 |
+
#: includes/class-mla-settings.php:1951
|
3347 |
msgid "Markup Templates"
|
3348 |
msgstr ""
|
3349 |
|
3350 |
+
#: includes/class-mla-settings.php:1964
|
3351 |
msgid "Theme"
|
3352 |
msgstr ""
|
3353 |
|
3354 |
+
#: includes/class-mla-settings.php:2012
|
3355 |
msgid ""
|
3356 |
"This default template cannot be altered or deleted, but you can copy the "
|
3357 |
"styles."
|
3358 |
msgstr ""
|
3359 |
|
3360 |
+
#: includes/class-mla-settings.php:2023 includes/class-mla-settings.php:2056
|
3361 |
+
#: includes/class-mla-settings.php:2082
|
3362 |
msgid "Styles"
|
3363 |
msgstr ""
|
3364 |
|
3365 |
+
#: includes/class-mla-settings.php:2027 includes/class-mla-settings.php:2060
|
3366 |
+
#: includes/class-mla-settings.php:2086
|
3367 |
msgid ""
|
3368 |
"List of substitution parameters, e.g., [+selector+], on Documentation tab."
|
3369 |
msgstr ""
|
3370 |
|
3371 |
+
#: includes/class-mla-settings.php:2044 includes/class-mla-settings.php:2162
|
3372 |
msgid "Delete this template"
|
3373 |
msgstr ""
|
3374 |
|
3375 |
+
#: includes/class-mla-settings.php:2045 includes/class-mla-settings.php:2163
|
3376 |
msgid ""
|
3377 |
"Check the box to delete this template when you press Update at the bottom of "
|
3378 |
"the page."
|
3379 |
msgstr ""
|
3380 |
|
3381 |
+
#: includes/class-mla-settings.php:2071
|
3382 |
msgid "Fill in a name and styles to add a new template."
|
3383 |
msgstr ""
|
3384 |
|
3385 |
+
#: includes/class-mla-settings.php:2106
|
3386 |
msgid ""
|
3387 |
"This default template cannot be altered or deleted, but you can copy the "
|
3388 |
"markup."
|
3389 |
msgstr ""
|
3390 |
|
3391 |
+
#: includes/class-mla-settings.php:2118 includes/class-mla-settings.php:2175
|
3392 |
+
#: includes/class-mla-settings.php:2225
|
3393 |
msgid "Open"
|
3394 |
msgstr ""
|
3395 |
|
3396 |
+
#: includes/class-mla-settings.php:2122 includes/class-mla-settings.php:2179
|
3397 |
+
#: includes/class-mla-settings.php:2229
|
3398 |
msgid ""
|
3399 |
"Markup for the beginning of the gallery. List of parameters, e.g., [+selector"
|
3400 |
"+], on Documentation tab."
|
3401 |
msgstr ""
|
3402 |
|
3403 |
+
#: includes/class-mla-settings.php:2124 includes/class-mla-settings.php:2181
|
3404 |
+
#: includes/class-mla-settings.php:2231
|
3405 |
msgid "Row"
|
3406 |
msgstr ""
|
3407 |
|
3408 |
+
#: includes/class-mla-settings.php:2128 includes/class-mla-settings.php:2235
|
3409 |
msgid "Markup for the beginning of each row in the gallery."
|
3410 |
msgstr ""
|
3411 |
|
3412 |
+
#: includes/class-mla-settings.php:2130 includes/class-mla-settings.php:2187
|
3413 |
+
#: includes/class-mla-settings.php:2237
|
3414 |
msgid "Item"
|
3415 |
msgstr ""
|
3416 |
|
3417 |
+
#: includes/class-mla-settings.php:2134 includes/class-mla-settings.php:2241
|
3418 |
msgid "Markup for each item/cell of the gallery."
|
3419 |
msgstr ""
|
3420 |
|
3421 |
+
#: includes/class-mla-settings.php:2136 includes/class-mla-settings.php:2193
|
3422 |
+
#: includes/class-mla-settings.php:2243
|
3423 |
msgid "Close"
|
3424 |
msgstr ""
|
3425 |
|
3426 |
+
#: includes/class-mla-settings.php:2140 includes/class-mla-settings.php:2247
|
3427 |
msgid "Markup for the end of each row in the gallery."
|
3428 |
msgstr ""
|
3429 |
|
3430 |
+
#: includes/class-mla-settings.php:2145 includes/class-mla-settings.php:2202
|
3431 |
+
#: includes/class-mla-settings.php:2252
|
3432 |
msgid "Markup for the end of the gallery."
|
3433 |
msgstr ""
|
3434 |
|
3435 |
+
#: includes/class-mla-settings.php:2185
|
3436 |
msgid "Markup for the beginning of each row."
|
3437 |
msgstr ""
|
3438 |
|
3439 |
+
#: includes/class-mla-settings.php:2191
|
3440 |
msgid "Markup for each item/cell."
|
3441 |
msgstr ""
|
3442 |
|
3443 |
+
#: includes/class-mla-settings.php:2197
|
3444 |
msgid "Markup for the end of each row."
|
3445 |
msgstr ""
|
3446 |
|
3447 |
+
#: includes/class-mla-settings.php:2213
|
3448 |
msgid "Fill in a name and markup to add a new template."
|
3449 |
msgstr ""
|
3450 |
|
3451 |
+
#: includes/class-mla-settings.php:2347 includes/class-mla-settings.php:2351
|
3452 |
msgid "Custom Field and Attachment Metadata Processing Options"
|
3453 |
msgstr ""
|
3454 |
|
3455 |
#. translators: 1: Documentation hyperlink
|
3456 |
+
#: includes/class-mla-settings.php:2349
|
3457 |
#, php-format
|
3458 |
msgid ""
|
3459 |
"In this tab you can define the rules for mapping several types of image "
|
3463 |
"field. See the %1$s section of the Documentation for details."
|
3464 |
msgstr ""
|
3465 |
|
3466 |
+
#: includes/class-mla-settings.php:2349
|
3467 |
msgid "Updating Attachment Metadata Documentation"
|
3468 |
msgstr ""
|
3469 |
|
3470 |
+
#: includes/class-mla-settings.php:2349
|
3471 |
msgid "Adding or changing Attachment Metadata"
|
3472 |
msgstr ""
|
3473 |
|
3474 |
#. translators: 1: Documentation hyperlink
|
3475 |
+
#: includes/class-mla-settings.php:2351 includes/class-mla-settings.php:2467
|
3476 |
#, php-format
|
3477 |
msgid ""
|
3478 |
"You can find more information about using the controls in this tab to define "
|
3479 |
"mapping rules and apply them in the %1$s section of the Documentation."
|
3480 |
msgstr ""
|
3481 |
|
3482 |
+
#: includes/class-mla-settings.php:2351
|
3483 |
msgid "Custom Field Options documentation"
|
3484 |
msgstr ""
|
3485 |
|
3486 |
+
#: includes/class-mla-settings.php:2355 includes/class-mla-settings.php:2477
|
3487 |
msgid "Custom field mapping"
|
3488 |
msgstr ""
|
3489 |
|
3490 |
+
#: includes/class-mla-settings.php:2358 includes/class-mla-settings.php:2362
|
3491 |
msgid "Map All Rules, All Attachments Now"
|
3492 |
msgstr ""
|
3493 |
|
3494 |
#. translators: 1: "Save Changes"
|
3495 |
+
#: includes/class-mla-settings.php:2360
|
3496 |
#, php-format
|
3497 |
msgid ""
|
3498 |
"Click %1$s to update the \"Enable custom field mapping...\" checkbox and/or "
|
3501 |
msgstr ""
|
3502 |
|
3503 |
#. translators: 1: "Map All Rules..."
|
3504 |
+
#: includes/class-mla-settings.php:2362
|
3505 |
#, php-format
|
3506 |
msgid ""
|
3507 |
"Click %1$s to apply all the rules at once (rule changes will be applied but "
|
3508 |
"not saved)."
|
3509 |
msgstr ""
|
3510 |
|
3511 |
+
#: includes/class-mla-settings.php:2464 includes/class-mla-settings.php:2467
|
3512 |
msgid "IPTC & EXIF Processing Options"
|
3513 |
msgstr ""
|
3514 |
|
3515 |
+
#: includes/class-mla-settings.php:2465
|
3516 |
msgid ""
|
3517 |
"In this tab you can define the rules for mapping IPTC (International Press "
|
3518 |
"Telecommunications Council) and EXIF (EXchangeable Image File) metadata to "
|
3521 |
"click \"Save Changes\" at the bottom of this page."
|
3522 |
msgstr ""
|
3523 |
|
3524 |
+
#: includes/class-mla-settings.php:2467
|
3525 |
msgid "IPTC/EXIF Options documentation"
|
3526 |
msgstr ""
|
3527 |
|
3528 |
+
#: includes/class-mla-settings.php:2471
|
3529 |
msgid "Standard field mapping"
|
3530 |
msgstr ""
|
3531 |
|
3532 |
+
#: includes/class-mla-settings.php:2472
|
3533 |
msgid "Map All Attachments, Standard Fields Now"
|
3534 |
msgstr ""
|
3535 |
|
3536 |
+
#: includes/class-mla-settings.php:2474
|
3537 |
msgid "Taxonomy term mapping"
|
3538 |
msgstr ""
|
3539 |
|
3540 |
+
#: includes/class-mla-settings.php:2475
|
3541 |
msgid "Map All Attachments, Taxonomy Terms Now"
|
3542 |
msgstr ""
|
3543 |
|
3544 |
+
#: includes/class-mla-settings.php:2478
|
3545 |
msgid "Map All Attachments, Custom Fields Now"
|
3546 |
msgstr ""
|
3547 |
|
3548 |
#. translators: 1: "Save Changes"
|
3549 |
+
#: includes/class-mla-settings.php:2482
|
3550 |
#, php-format
|
3551 |
msgid ""
|
3552 |
"Click %1$s to update the \"Enable IPTC/EXIF mapping...\" checkbox and/or all "
|
3554 |
"performed.</strong>"
|
3555 |
msgstr ""
|
3556 |
|
3557 |
+
#: includes/class-mla-settings.php:2542
|
3558 |
msgid "Media Library Assistant - Error"
|
3559 |
msgstr ""
|
3560 |
|
3561 |
+
#: includes/class-mla-settings.php:2543
|
3562 |
msgid "You do not have permission to manage plugin settings."
|
3563 |
msgstr ""
|
3564 |
|
3565 |
+
#: includes/class-mla-settings.php:2571
|
3566 |
msgid "ERROR: Cannot render content tab"
|
3567 |
msgstr ""
|
3568 |
|
3569 |
+
#: includes/class-mla-settings.php:2574
|
3570 |
msgid "ERROR: Unknown content tab"
|
3571 |
msgstr ""
|
3572 |
|
3573 |
#. translators: 1: template type 2: template name
|
3574 |
+
#: includes/class-mla-settings.php:2654 includes/class-mla-settings.php:2744
|
3575 |
#, php-format
|
3576 |
msgctxt "message_list"
|
3577 |
msgid "Deleting %1$s \"%2$s\"."
|
3578 |
msgstr ""
|
3579 |
|
3580 |
#. translators: 1: template name 2: template type
|
3581 |
+
#: includes/class-mla-settings.php:2665 includes/class-mla-settings.php:2757
|
3582 |
#, php-format
|
3583 |
msgid "ERROR: Reserved name \"%1$s\", new %2$s discarded."
|
3584 |
msgstr ""
|
3585 |
|
3586 |
#. translators: 1: template name 2: template type
|
3587 |
+
#: includes/class-mla-settings.php:2671 includes/class-mla-settings.php:2763
|
3588 |
#, php-format
|
3589 |
msgid "ERROR: Duplicate name \"%1$s\", new %2$s discarded."
|
3590 |
msgstr ""
|
3591 |
|
3592 |
#. translators: 1: template type 2: template name
|
3593 |
+
#: includes/class-mla-settings.php:2675 includes/class-mla-settings.php:2767
|
3594 |
#, php-format
|
3595 |
msgctxt "message_list"
|
3596 |
msgid "Adding new %1$s \"%2$s\"."
|
3597 |
msgstr ""
|
3598 |
|
3599 |
#. translators: 1: element name 3: old value
|
3600 |
+
#: includes/class-mla-settings.php:2685 includes/class-mla-settings.php:2777
|
3601 |
#, php-format
|
3602 |
msgid "ERROR: Blank %1$s, reverting to \"%3$s\"."
|
3603 |
msgstr ""
|
3604 |
|
3605 |
+
#: includes/class-mla-settings.php:2685 includes/class-mla-settings.php:2693
|
3606 |
+
#: includes/class-mla-settings.php:2697
|
3607 |
msgid "style template name"
|
3608 |
msgstr ""
|
3609 |
|
3610 |
#. translators: 1: element name 2: new value 3: old value
|
3611 |
+
#: includes/class-mla-settings.php:2693 includes/class-mla-settings.php:2784
|
3612 |
#, php-format
|
3613 |
msgid "ERROR: Duplicate new %1$s \"%2$s\", reverting to \"%3$s\"."
|
3614 |
msgstr ""
|
3615 |
|
3616 |
#. translators: 1: element name 2: old_value 3: new_value
|
3617 |
+
#: includes/class-mla-settings.php:2697 includes/class-mla-settings.php:2788
|
3618 |
#, php-format
|
3619 |
msgctxt "message_list"
|
3620 |
msgid "Changing %1$s from \"%2$s\" to \"%3$s\""
|
3621 |
msgstr ""
|
3622 |
|
3623 |
#. translators: 1: template type 2: template name
|
3624 |
+
#: includes/class-mla-settings.php:2704
|
3625 |
#, php-format
|
3626 |
msgctxt "message_list"
|
3627 |
msgid "Updating contents of %1$s \"%2$s\"."
|
3628 |
msgstr ""
|
3629 |
|
3630 |
#. translators: 1: template type
|
3631 |
+
#: includes/class-mla-settings.php:2715 includes/class-mla-settings.php:2836
|
3632 |
#, php-format
|
3633 |
msgid "ERROR: Update of %1$s failed."
|
3634 |
msgstr ""
|
3635 |
|
3636 |
+
#: includes/class-mla-settings.php:2777 includes/class-mla-settings.php:2784
|
3637 |
+
#: includes/class-mla-settings.php:2788
|
3638 |
msgid "markup template name"
|
3639 |
msgstr ""
|
3640 |
|
3641 |
#. translators: 1: template name
|
3642 |
+
#: includes/class-mla-settings.php:2796
|
3643 |
#, php-format
|
3644 |
msgctxt "message_list"
|
3645 |
msgid "Updating open markup for \"%1$s\"."
|
3646 |
msgstr ""
|
3647 |
|
3648 |
#. translators: 1: template name
|
3649 |
+
#: includes/class-mla-settings.php:2802
|
3650 |
#, php-format
|
3651 |
msgctxt "message_list"
|
3652 |
msgid "Updating row open markup for \"%1$s\"."
|
3653 |
msgstr ""
|
3654 |
|
3655 |
#. translators: 1: template name
|
3656 |
+
#: includes/class-mla-settings.php:2808
|
3657 |
#, php-format
|
3658 |
msgctxt "message_list"
|
3659 |
msgid "Updating item markup for \"%1$s\"."
|
3660 |
msgstr ""
|
3661 |
|
3662 |
#. translators: 1: template name
|
3663 |
+
#: includes/class-mla-settings.php:2814
|
3664 |
#, php-format
|
3665 |
msgctxt "message_list"
|
3666 |
msgid "Updating row close markup for \"%1$s\"."
|
3667 |
msgstr ""
|
3668 |
|
3669 |
#. translators: 1: template name
|
3670 |
+
#: includes/class-mla-settings.php:2820
|
3671 |
#, php-format
|
3672 |
msgctxt "message_list"
|
3673 |
msgid "Updating close markup for \"%1$s\"."
|
3674 |
msgstr ""
|
3675 |
|
3676 |
#. translators: 1: field type
|
3677 |
+
#: includes/class-mla-settings.php:2845
|
3678 |
#, php-format
|
3679 |
msgid "%1$s no changes detected."
|
3680 |
msgstr ""
|
3681 |
|
3682 |
+
#: includes/class-mla-settings.php:2880
|
3683 |
msgid "View settings saved."
|
3684 |
msgstr ""
|
3685 |
|
3686 |
+
#: includes/class-mla-settings.php:2914
|
3687 |
msgid "Upload MIME Type settings saved."
|
3688 |
msgstr ""
|
3689 |
|
3690 |
+
#: includes/class-mla-settings.php:2955
|
3691 |
msgid "ERROR: No custom field mapping rules to process."
|
3692 |
msgstr ""
|
3693 |
|
3694 |
#. translators: 1: field type 2: examined count 3: updated count
|
3695 |
+
#: includes/class-mla-settings.php:2980 includes/class-mla-settings.php:3107
|
3696 |
+
#: includes/class-mla-settings.php:3167 includes/class-mla-settings.php:3242
|
3697 |
#, php-format
|
3698 |
msgid "%1$s mapping completed; %2$d attachment(s) examined, %3$d updated."
|
3699 |
msgstr ""
|
3700 |
|
3701 |
#. translators: 1: field type 2: examined count
|
3702 |
+
#: includes/class-mla-settings.php:2983 includes/class-mla-settings.php:3110
|
3703 |
+
#: includes/class-mla-settings.php:3170 includes/class-mla-settings.php:3245
|
3704 |
#, php-format
|
3705 |
msgid ""
|
3706 |
"%1$s mapping completed; %2$d attachment(s) examined, no changes detected."
|
3707 |
msgstr ""
|
3708 |
|
3709 |
+
#: includes/class-mla-settings.php:3010
|
3710 |
#, php-format
|
3711 |
msgid "%s attachment"
|
3712 |
msgid_plural "%s attachments"
|
3714 |
msgstr[1] ""
|
3715 |
|
3716 |
#. translators: 1: number of attachments
|
3717 |
+
#: includes/class-mla-settings.php:3012
|
3718 |
#, php-format
|
3719 |
msgid "Deleted custom field value from %1$s."
|
3720 |
msgstr ""
|
3721 |
|
3722 |
+
#: includes/class-mla-settings.php:3015
|
3723 |
msgid "No attachments contained this custom field."
|
3724 |
msgstr ""
|
3725 |
|
3726 |
#. translators: 1: field type
|
3727 |
+
#: includes/class-mla-settings.php:3073 includes/class-mla-settings.php:3133
|
3728 |
+
#: includes/class-mla-settings.php:3208
|
3729 |
#, php-format
|
3730 |
msgid "ERROR: No %1$s settings to process."
|
3731 |
msgstr ""
|
3732 |
|
3733 |
+
#: includes/class-mla-settings.php:3098 includes/class-mla-settings.php:3158
|
3734 |
+
#: includes/class-mla-settings.php:3233
|
3735 |
msgid "updated."
|
3736 |
msgstr ""
|
3737 |
|
3738 |
#. translators: 1: reference type, e.g., Gallery in
|
3739 |
+
#: includes/class-mla-settings.php:3335 includes/class-mla-settings.php:3345
|
3740 |
#, php-format
|
3741 |
msgctxt "message_list"
|
3742 |
msgid "%1$s - references updated."
|
3743 |
msgstr ""
|
3744 |
|
3745 |
+
#: includes/class-mla-settings.php:3385
|
3746 |
msgid "General settings saved."
|
3747 |
msgstr ""
|
3748 |
|
3749 |
#. translators: 1: option name
|
3750 |
+
#: includes/class-mla-settings.php:3416
|
3751 |
#, php-format
|
3752 |
msgctxt "message_list"
|
3753 |
msgid "delete_option \"%1$s\""
|
3754 |
msgstr ""
|
3755 |
|
3756 |
+
#: includes/class-mla-settings.php:3424
|
3757 |
msgid "General settings reset to default values."
|
3758 |
msgstr ""
|
3759 |
|
3760 |
+
#: includes/class-mla-settings.php:3466
|
3761 |
msgid "select settings"
|
3762 |
msgstr ""
|
3763 |
|
3764 |
+
#: includes/class-mla-settings.php:3486
|
3765 |
msgid "Import ALL Settings"
|
3766 |
msgstr ""
|
3767 |
|
3768 |
+
#: includes/class-mla-settings.php:3511
|
3769 |
msgctxt "message_list"
|
3770 |
msgid "exported"
|
3771 |
msgstr ""
|
3772 |
|
3773 |
+
#: includes/class-mla-settings.php:3513
|
3774 |
msgctxt "message_list"
|
3775 |
msgid "skipped"
|
3776 |
msgstr ""
|
3777 |
|
3778 |
+
#: includes/class-mla-settings.php:3520
|
3779 |
msgid "ALL settings exported."
|
3780 |
msgstr ""
|
3781 |
|
3782 |
#. translators: 1: backup directory name
|
3783 |
+
#: includes/class-mla-settings.php:3531
|
3784 |
#, php-format
|
3785 |
msgid "ERROR: The settings directory ( %1$s ) cannot be created."
|
3786 |
msgstr ""
|
3787 |
|
3788 |
#. translators: 1: backup directory name
|
3789 |
+
#: includes/class-mla-settings.php:3535
|
3790 |
#, php-format
|
3791 |
msgid "ERROR: The settings directory ( %1$s ) is not writable."
|
3792 |
msgstr ""
|
3793 |
|
3794 |
#. translators: 1: backup file name
|
3795 |
+
#: includes/class-mla-settings.php:3546
|
3796 |
#, php-format
|
3797 |
msgid "ERROR: The settings file ( %1$s ) could not be opened."
|
3798 |
msgstr ""
|
3799 |
|
3800 |
#. translators: 1: PHP error information
|
3801 |
+
#: includes/class-mla-settings.php:3553
|
3802 |
#, php-format
|
3803 |
msgctxt "error_log"
|
3804 |
msgid "ERROR: _export_settings $error_info = \"%1$s\"."
|
3805 |
msgstr ""
|
3806 |
|
3807 |
#. translators: 1: backup file name 2: error message
|
3808 |
+
#: includes/class-mla-settings.php:3562
|
3809 |
#, php-format
|
3810 |
msgid "ERROR: Writing the settings file ( %1$s ) \"%2$s\"."
|
3811 |
msgstr ""
|
3812 |
|
3813 |
#. translators: 1: number of option settings
|
3814 |
+
#: includes/class-mla-settings.php:3568
|
3815 |
#, php-format
|
3816 |
msgid "Settings exported; %1$s settings recorded."
|
3817 |
msgstr ""
|
3818 |
|
3819 |
+
#: includes/class-mla-settings.php:3586
|
3820 |
msgid "No settings imported."
|
3821 |
msgstr ""
|
3822 |
|
3823 |
+
#: includes/class-mla-settings.php:3595
|
3824 |
msgid "Please select an import settings file from the dropdown list."
|
3825 |
msgstr ""
|
3826 |
|
3827 |
+
#: includes/class-mla-settings.php:3599
|
3828 |
msgid "ERROR: The import settings dropdown selection is missing."
|
3829 |
msgstr ""
|
3830 |
|
3831 |
#. translators: 1: PHP error information
|
3832 |
+
#: includes/class-mla-settings.php:3607
|
3833 |
#, php-format
|
3834 |
msgctxt "error_log"
|
3835 |
msgid "ERROR: _import_settings $error_info = \"%1$s\"."
|
3836 |
msgstr ""
|
3837 |
|
3838 |
#. translators: 1: backup file name 2: error message
|
3839 |
+
#: includes/class-mla-settings.php:3616
|
3840 |
#, php-format
|
3841 |
msgid "ERROR: Reading the settings file ( %1$s ) \"%2$s\"."
|
3842 |
msgstr ""
|
3843 |
|
3844 |
+
#: includes/class-mla-settings.php:3626
|
3845 |
msgctxt "message_list"
|
3846 |
msgid "updated"
|
3847 |
msgstr ""
|
3848 |
|
3849 |
+
#: includes/class-mla-settings.php:3629
|
3850 |
msgctxt "message_list"
|
3851 |
msgid "unchanged"
|
3852 |
msgstr ""
|
3853 |
|
3854 |
#. translators: 1: number of option settings updated 2: number of option settings unchanged
|
3855 |
+
#: includes/class-mla-settings.php:3634
|
3856 |
#, php-format
|
3857 |
msgid "Settings imported; %1$s updated, %2$s unchanged."
|
3858 |
msgstr ""
|
3906 |
msgid "ERROR: Invalid mla_gallery"
|
3907 |
msgstr ""
|
3908 |
|
3909 |
+
#: includes/class-mla-shortcodes.php:2961
|
3910 |
msgid "mla_debug query"
|
3911 |
msgstr ""
|
3912 |
|
3913 |
+
#: includes/class-mla-shortcodes.php:2962
|
3914 |
msgid "mla_debug request"
|
3915 |
msgstr ""
|
3916 |
|
3917 |
+
#: includes/class-mla-shortcodes.php:2963
|
3918 |
msgid "mla_debug query_vars"
|
3919 |
msgstr ""
|
3920 |
|
3921 |
+
#: includes/class-mla-shortcodes.php:2964
|
3922 |
msgid "mla_debug post_count"
|
3923 |
msgstr ""
|
3924 |
|
3925 |
+
#: includes/class-mla-shortcodes.php:3016
|
3926 |
msgid "mla_debug WHERE filter"
|
3927 |
msgstr ""
|
3928 |
|
3929 |
+
#: includes/class-mla-shortcodes.php:3035
|
3930 |
msgid "mla_debug modified WHERE filter"
|
3931 |
msgstr ""
|
3932 |
|
3933 |
+
#: includes/class-mla-shortcodes.php:3058
|
3934 |
msgid "mla_debug ORDER BY filter, incoming"
|
3935 |
msgstr ""
|
3936 |
|
3937 |
+
#: includes/class-mla-shortcodes.php:3058
|
3938 |
msgid "Replacement ORDER BY clause"
|
3939 |
msgstr ""
|
3940 |
|
3941 |
+
#: includes/class-mla-shortcodes.php:3081
|
3942 |
msgid "mla_debug posts_clauses filter"
|
3943 |
msgstr ""
|
3944 |
|
3945 |
+
#: includes/class-mla-shortcodes.php:3099
|
3946 |
msgid "mla_debug posts_clauses_request filter"
|
3947 |
msgstr ""
|
3948 |
|
3949 |
+
#: includes/class-mla-shortcodes.php:3281
|
3950 |
msgid "Invalid taxonomy"
|
3951 |
msgstr ""
|
3952 |
|
3953 |
+
#: includes/class-mla-shortcodes.php:3462
|
3954 |
msgid "mla_debug query arguments"
|
3955 |
msgstr ""
|
3956 |
|
3957 |
+
#: includes/class-mla-shortcodes.php:3463
|
3958 |
msgid "mla_debug last_query"
|
3959 |
msgstr ""
|
3960 |
|
3961 |
+
#: includes/class-mla-shortcodes.php:3464
|
3962 |
msgid "mla_debug last_error"
|
3963 |
msgstr ""
|
3964 |
|
3965 |
+
#: includes/class-mla-shortcodes.php:3465
|
3966 |
msgid "mla_debug num_rows"
|
3967 |
msgstr ""
|
3968 |
|
3969 |
+
#: includes/class-mla-shortcodes.php:3466
|
3970 |
msgid "mla_debug found_rows"
|
3971 |
msgstr ""
|
3972 |
|
4074 |
msgstr ""
|
4075 |
|
4076 |
#: includes/mla-main-search-box-template.php:34
|
4077 |
+
#: includes/mla-main-search-box-template.php:36
|
4078 |
#: includes/mla-media-modal-js-template.php:17
|
4079 |
msgid "Search Media"
|
4080 |
msgstr ""
|
phpDocs/classes/MLA.html
CHANGED
@@ -820,7 +820,7 @@ change the meta data for a single attachment.</h2>
|
|
820 |
<div class="row"><footer class="span12">
|
821 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
822 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
823 |
-
generated on 2014-
|
824 |
</div>
|
825 |
</body>
|
826 |
</html>
|
820 |
<div class="row"><footer class="span12">
|
821 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
822 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
823 |
+
generated on 2014-08-15T15:57:32-07:00.<br></footer></div>
|
824 |
</div>
|
825 |
</body>
|
826 |
</html>
|
phpDocs/classes/MLAData.html
CHANGED
@@ -1857,7 +1857,7 @@ ALT Text and custom field columns.</p></p>
|
|
1857 |
<div class="row"><footer class="span12">
|
1858 |
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>
|
1859 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
1860 |
-
generated on 2014-
|
1861 |
</div>
|
1862 |
</body>
|
1863 |
</html>
|
1857 |
<div class="row"><footer class="span12">
|
1858 |
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>
|
1859 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
1860 |
+
generated on 2014-08-15T15:57:32-07:00.<br></footer></div>
|
1861 |
</div>
|
1862 |
</body>
|
1863 |
</html>
|
phpDocs/classes/MLAEdit.html
CHANGED
@@ -70,7 +70,7 @@
|
|
70 |
<li class="method public "><a href="#mla_image_metadata_handler" title="mla_image_metadata_handler :: Renders the Image Metadata meta box on the Edit Media page."><span class="description">Renders the Image Metadata meta box on the Edit Media page.</span><pre>mla_image_metadata_handler()</pre></a></li>
|
71 |
<li class="method public "><a href="#mla_inserted_in_handler" title="mla_inserted_in_handler :: Renders the Inserted in meta box on the Edit Media page."><span class="description">Renders the Inserted in meta box on the Edit Media page.</span><pre>mla_inserted_in_handler()</pre></a></li>
|
72 |
<li class="method public "><a href="#mla_menu_order_handler" title="mla_menu_order_handler :: Renders the Menu Order meta box on the Edit Media page."><span class="description">Renders the Menu Order meta box on the Edit Media page.</span><pre>mla_menu_order_handler()</pre></a></li>
|
73 |
-
<li class="method public "><a href="#mla_mla_gallery_in_handler" title="mla_mla_gallery_in_handler :: Renders the Gallery in meta box on the Edit Media page."><span class="description">Renders the Gallery in meta box on the Edit Media page.</span><pre>mla_mla_gallery_in_handler()</pre></a></li>
|
74 |
<li class="method public "><a href="#mla_parent_info_handler" title="mla_parent_info_handler :: Renders the Parent Info meta box on the Edit Media page."><span class="description">Renders the Parent Info meta box on the Edit Media page.</span><pre>mla_parent_info_handler()</pre></a></li>
|
75 |
<li class="method public "><a href="#mla_post_updated_messages_filter" title="mla_post_updated_messages_filter :: Adds mapping update messages for display at the top of the Edit Media screen."><span class="description">Adds mapping update messages for display at the top of the Edit Media screen.</span><pre>mla_post_updated_messages_filter()</pre></a></li>
|
76 |
<li class="nav-header private">» Private</li>
|
@@ -323,7 +323,7 @@ Output to the Media/Edit Media screen and to the Media Manager Modal Window.</p>
|
|
323 |
</div></div>
|
324 |
</div>
|
325 |
<a name="mla_mla_gallery_in_handler" id="mla_mla_gallery_in_handler"></a><div class="element clickable method public mla_mla_gallery_in_handler" data-toggle="collapse" data-target=".mla_mla_gallery_in_handler .collapse">
|
326 |
-
<h2>Renders the Gallery in meta box on the Edit Media page.</h2>
|
327 |
<pre>mla_mla_gallery_in_handler(object $post) : void</pre>
|
328 |
<div class="labels"></div>
|
329 |
<div class="row collapse"><div class="detail-description">
|
@@ -450,7 +450,7 @@ The array is built once each page load and cached for subsequent calls.</p></p>
|
|
450 |
<div class="row"><footer class="span12">
|
451 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
452 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
453 |
-
generated on 2014-
|
454 |
</div>
|
455 |
</body>
|
456 |
</html>
|
70 |
<li class="method public "><a href="#mla_image_metadata_handler" title="mla_image_metadata_handler :: Renders the Image Metadata meta box on the Edit Media page."><span class="description">Renders the Image Metadata meta box on the Edit Media page.</span><pre>mla_image_metadata_handler()</pre></a></li>
|
71 |
<li class="method public "><a href="#mla_inserted_in_handler" title="mla_inserted_in_handler :: Renders the Inserted in meta box on the Edit Media page."><span class="description">Renders the Inserted in meta box on the Edit Media page.</span><pre>mla_inserted_in_handler()</pre></a></li>
|
72 |
<li class="method public "><a href="#mla_menu_order_handler" title="mla_menu_order_handler :: Renders the Menu Order meta box on the Edit Media page."><span class="description">Renders the Menu Order meta box on the Edit Media page.</span><pre>mla_menu_order_handler()</pre></a></li>
|
73 |
+
<li class="method public "><a href="#mla_mla_gallery_in_handler" title="mla_mla_gallery_in_handler :: Renders the MLA Gallery in meta box on the Edit Media page."><span class="description">Renders the MLA Gallery in meta box on the Edit Media page.</span><pre>mla_mla_gallery_in_handler()</pre></a></li>
|
74 |
<li class="method public "><a href="#mla_parent_info_handler" title="mla_parent_info_handler :: Renders the Parent Info meta box on the Edit Media page."><span class="description">Renders the Parent Info meta box on the Edit Media page.</span><pre>mla_parent_info_handler()</pre></a></li>
|
75 |
<li class="method public "><a href="#mla_post_updated_messages_filter" title="mla_post_updated_messages_filter :: Adds mapping update messages for display at the top of the Edit Media screen."><span class="description">Adds mapping update messages for display at the top of the Edit Media screen.</span><pre>mla_post_updated_messages_filter()</pre></a></li>
|
76 |
<li class="nav-header private">» Private</li>
|
323 |
</div></div>
|
324 |
</div>
|
325 |
<a name="mla_mla_gallery_in_handler" id="mla_mla_gallery_in_handler"></a><div class="element clickable method public mla_mla_gallery_in_handler" data-toggle="collapse" data-target=".mla_mla_gallery_in_handler .collapse">
|
326 |
+
<h2>Renders the MLA Gallery in meta box on the Edit Media page.</h2>
|
327 |
<pre>mla_mla_gallery_in_handler(object $post) : void</pre>
|
328 |
<div class="labels"></div>
|
329 |
<div class="row collapse"><div class="detail-description">
|
450 |
<div class="row"><footer class="span12">
|
451 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
452 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
453 |
+
generated on 2014-08-15T15:57:32-07:00.<br></footer></div>
|
454 |
</div>
|
455 |
</body>
|
456 |
</html>
|
phpDocs/classes/MLAMime.html
CHANGED
@@ -1288,7 +1288,7 @@ Defined as public because it's a filter.</p></p>
|
|
1288 |
<div class="row"><footer class="span12">
|
1289 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
1290 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
1291 |
-
generated on 2014-
|
1292 |
</div>
|
1293 |
</body>
|
1294 |
</html>
|
1288 |
<div class="row"><footer class="span12">
|
1289 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
1290 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
1291 |
+
generated on 2014-08-15T15:57:32-07:00.<br></footer></div>
|
1292 |
</div>
|
1293 |
</body>
|
1294 |
</html>
|
phpDocs/classes/MLAModal.html
CHANGED
@@ -86,6 +86,7 @@ but only once per page load</span><pre>mla_add_terms_search_scripts()</pre></a><
|
|
86 |
<li class="property private "><a href="#%24mla_media_modal_settings" title="$mla_media_modal_settings :: Share the settings values between mla_media_view_settings_filter
|
87 |
and mla_print_media_templates_action"><span class="description">Share the settings values between mla_media_view_settings_filter
|
88 |
and mla_print_media_templates_action</span><pre>$mla_media_modal_settings</pre></a></li>
|
|
|
89 |
<li class="nav-header">
|
90 |
<i class="icon-custom icon-constant"></i> Constants</li>
|
91 |
<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>
|
@@ -422,6 +423,20 @@ and mla_print_media_templates_action</h2>
|
|
422 |
</tr></table>
|
423 |
</div></div>
|
424 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
425 |
<h3>
|
426 |
<i class="icon-custom icon-constant"></i> Constants</h3>
|
427 |
<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">
|
@@ -515,7 +530,7 @@ and mla_print_media_templates_action</h2>
|
|
515 |
<div class="row"><footer class="span12">
|
516 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
517 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
518 |
-
generated on 2014-
|
519 |
</div>
|
520 |
</body>
|
521 |
</html>
|
86 |
<li class="property private "><a href="#%24mla_media_modal_settings" title="$mla_media_modal_settings :: Share the settings values between mla_media_view_settings_filter
|
87 |
and mla_print_media_templates_action"><span class="description">Share the settings values between mla_media_view_settings_filter
|
88 |
and mla_print_media_templates_action</span><pre>$mla_media_modal_settings</pre></a></li>
|
89 |
+
<li class="property private "><a href="#%24mla_query_attachments" title="$mla_query_attachments :: Executing mla_query_attachments_action"><span class="description">Executing mla_query_attachments_action</span><pre>$mla_query_attachments</pre></a></li>
|
90 |
<li class="nav-header">
|
91 |
<i class="icon-custom icon-constant"></i> Constants</li>
|
92 |
<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>
|
423 |
</tr></table>
|
424 |
</div></div>
|
425 |
</div>
|
426 |
+
<a name="%24mla_query_attachments" id="$mla_query_attachments"> </a><div class="element clickable property private $mla_query_attachments" data-toggle="collapse" data-target=".$mla_query_attachments .collapse">
|
427 |
+
<h2>Executing mla_query_attachments_action</h2>
|
428 |
+
<pre>$mla_query_attachments : boolean</pre>
|
429 |
+
<div class="labels"></div>
|
430 |
+
<div class="row collapse"><div class="detail-description">
|
431 |
+
<p class="long_description"><p>Informs mla_attachment_fields_to_edit_filter() that MLA enhancements
|
432 |
+
be added to the compatible fields. Keeps our enhancements out of the
|
433 |
+
WP 4.0 Media Grid display.</p></p>
|
434 |
+
<table class="table table-bordered"><tr>
|
435 |
+
<th>since</th>
|
436 |
+
<td>1.91</td>
|
437 |
+
</tr></table>
|
438 |
+
</div></div>
|
439 |
+
</div>
|
440 |
<h3>
|
441 |
<i class="icon-custom icon-constant"></i> Constants</h3>
|
442 |
<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">
|
530 |
<div class="row"><footer class="span12">
|
531 |
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>
|
532 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
533 |
+
generated on 2014-08-15T15:57:32-07:00.<br></footer></div>
|
534 |
</div>
|
535 |
</body>
|
536 |
</html>
|
phpDocs/classes/MLAObjects.html
CHANGED
@@ -172,7 +172,7 @@ which replaces the "Posts" column with an equivalent "Attachments" column.</h2>
|
|
172 |
<div class="row"><footer class="span12">
|
173 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
174 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
175 |
-
generated on 2014-
|
176 |
</div>
|
177 |
</body>
|
178 |
</html>
|
172 |
<div class="row"><footer class="span12">
|
173 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
174 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
175 |
+
generated on 2014-08-15T15:57:32-07:00.<br></footer></div>
|
176 |
</div>
|
177 |
</body>
|
178 |
</html>
|
phpDocs/classes/MLAOptions.html
CHANGED
@@ -755,7 +755,7 @@ settings are being updated or reset.</h2>
|
|
755 |
</div>
|
756 |
<a name="mla_update_attachment_metadata_filter" id="mla_update_attachment_metadata_filter"></a><div class="element clickable method public mla_update_attachment_metadata_filter" data-toggle="collapse" data-target=".mla_update_attachment_metadata_filter .collapse">
|
757 |
<h2>Perform IPTC/EXIF and Custom Field mapping on just-inserted attachment</h2>
|
758 |
-
<pre>mla_update_attachment_metadata_filter(array $data, integer $post_id) :
|
759 |
<div class="labels"></div>
|
760 |
<div class="row collapse"><div class="detail-description">
|
761 |
<p class="long_description"><p>This filter tests the $add_attachment_id variable set by the mla_add_attachment_action
|
@@ -773,6 +773,9 @@ to ensure that mapping is only performed for new additions, not metadata updates
|
|
773 |
<h4>$post_id</h4>
|
774 |
<code>integer</code><p>ID of just-inserted attachment</p>
|
775 |
</div>
|
|
|
|
|
|
|
776 |
</div></div>
|
777 |
</div>
|
778 |
<a name="mla_update_option" id="mla_update_option"></a><div class="element clickable method public mla_update_option" data-toggle="collapse" data-target=".mla_update_option .collapse">
|
@@ -1576,7 +1579,7 @@ also controls the ATTACHMENT DETAILS enhancements</h2>
|
|
1576 |
<div class="row"><footer class="span12">
|
1577 |
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>
|
1578 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
1579 |
-
generated on 2014-
|
1580 |
</div>
|
1581 |
</body>
|
1582 |
</html>
|
755 |
</div>
|
756 |
<a name="mla_update_attachment_metadata_filter" id="mla_update_attachment_metadata_filter"></a><div class="element clickable method public mla_update_attachment_metadata_filter" data-toggle="collapse" data-target=".mla_update_attachment_metadata_filter .collapse">
|
757 |
<h2>Perform IPTC/EXIF and Custom Field mapping on just-inserted attachment</h2>
|
758 |
+
<pre>mla_update_attachment_metadata_filter(array $data, integer $post_id) : array</pre>
|
759 |
<div class="labels"></div>
|
760 |
<div class="row collapse"><div class="detail-description">
|
761 |
<p class="long_description"><p>This filter tests the $add_attachment_id variable set by the mla_add_attachment_action
|
773 |
<h4>$post_id</h4>
|
774 |
<code>integer</code><p>ID of just-inserted attachment</p>
|
775 |
</div>
|
776 |
+
<h3>Returns</h3>
|
777 |
+
<div class="subelement response">
|
778 |
+
<code>array</code>Updated attachment metadata</div>
|
779 |
</div></div>
|
780 |
</div>
|
781 |
<a name="mla_update_option" id="mla_update_option"></a><div class="element clickable method public mla_update_option" data-toggle="collapse" data-target=".mla_update_option .collapse">
|
1579 |
<div class="row"><footer class="span12">
|
1580 |
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>
|
1581 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
1582 |
+
generated on 2014-08-15T15:57:32-07:00.<br></footer></div>
|
1583 |
</div>
|
1584 |
</body>
|
1585 |
</html>
|
phpDocs/classes/MLASettings.html
CHANGED
@@ -1182,9 +1182,15 @@ because Localization calls cannot be placed in the "public static" array definit
|
|
1182 |
</div>
|
1183 |
<a name="MLA_SETTINGS_SLUG" id="MLA_SETTINGS_SLUG"> </a><div class="element clickable constant MLA_SETTINGS_SLUG" data-toggle="collapse" data-target=".MLA_SETTINGS_SLUG .collapse">
|
1184 |
<h2>Provides a unique name for the settings page</h2>
|
1185 |
-
<pre>MLA_SETTINGS_SLUG </pre>
|
1186 |
<div class="labels"></div>
|
1187 |
-
<div class="row collapse"><div class="detail-description"
|
|
|
|
|
|
|
|
|
|
|
|
|
1188 |
</div>
|
1189 |
</div>
|
1190 |
</div>
|
@@ -1193,7 +1199,7 @@ because Localization calls cannot be placed in the "public static" array definit
|
|
1193 |
<div class="row"><footer class="span12">
|
1194 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
1195 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
1196 |
-
generated on 2014-
|
1197 |
</div>
|
1198 |
</body>
|
1199 |
</html>
|
1182 |
</div>
|
1183 |
<a name="MLA_SETTINGS_SLUG" id="MLA_SETTINGS_SLUG"> </a><div class="element clickable constant MLA_SETTINGS_SLUG" data-toggle="collapse" data-target=".MLA_SETTINGS_SLUG .collapse">
|
1184 |
<h2>Provides a unique name for the settings page</h2>
|
1185 |
+
<pre>MLA_SETTINGS_SLUG : string</pre>
|
1186 |
<div class="labels"></div>
|
1187 |
+
<div class="row collapse"><div class="detail-description">
|
1188 |
+
<p class="long_description"></p>
|
1189 |
+
<table class="table table-bordered"><tr>
|
1190 |
+
<th>since</th>
|
1191 |
+
<td>0.1</td>
|
1192 |
+
</tr></table>
|
1193 |
+
</div></div>
|
1194 |
</div>
|
1195 |
</div>
|
1196 |
</div>
|
1199 |
<div class="row"><footer class="span12">
|
1200 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
1201 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
1202 |
+
generated on 2014-08-15T15:57:32-07:00.<br></footer></div>
|
1203 |
</div>
|
1204 |
</body>
|
1205 |
</html>
|
phpDocs/classes/MLAShortcodes.html
CHANGED
@@ -651,7 +651,7 @@ any further logic required to translate those values is contained in the filter.
|
|
651 |
<div class="row"><footer class="span12">
|
652 |
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>
|
653 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
654 |
-
generated on 2014-
|
655 |
</div>
|
656 |
</body>
|
657 |
</html>
|
651 |
<div class="row"><footer class="span12">
|
652 |
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>
|
653 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
654 |
+
generated on 2014-08-15T15:57:32-07:00.<br></footer></div>
|
655 |
</div>
|
656 |
</body>
|
657 |
</html>
|
phpDocs/classes/MLATest.html
CHANGED
@@ -165,7 +165,7 @@ to ensure the plugin can run in the current WordPress envrionment.</p>
|
|
165 |
<div class="row"><footer class="span12">
|
166 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
167 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
168 |
-
generated on 2014-
|
169 |
</div>
|
170 |
</body>
|
171 |
</html>
|
165 |
<div class="row"><footer class="span12">
|
166 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
167 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
168 |
+
generated on 2014-08-15T15:57:32-07:00.<br></footer></div>
|
169 |
</div>
|
170 |
</body>
|
171 |
</html>
|
phpDocs/classes/MLATextWidget.html
CHANGED
@@ -178,7 +178,7 @@
|
|
178 |
<div class="row"><footer class="span12">
|
179 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
180 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
181 |
-
generated on 2014-
|
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 2014-08-15T15:57:32-07:00.<br></footer></div>
|
182 |
</div>
|
183 |
</body>
|
184 |
</html>
|
phpDocs/classes/MLA_Checklist_Walker.html
CHANGED
@@ -163,7 +163,7 @@ Class Walker is defined in /wp-includes/class-wp-walker.php.</p></p>
|
|
163 |
<div class="row"><footer class="span12">
|
164 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
165 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
166 |
-
generated on 2014-
|
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 2014-08-15T15:57:32-07:00.<br></footer></div>
|
167 |
</div>
|
168 |
</body>
|
169 |
</html>
|
phpDocs/classes/MLA_List_Table.html
CHANGED
@@ -1193,7 +1193,7 @@ MLA_List_Table::mla_admin_init_action.</p></p>
|
|
1193 |
<div class="row"><footer class="span12">
|
1194 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
1195 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
1196 |
-
generated on 2014-
|
1197 |
</div>
|
1198 |
</body>
|
1199 |
</html>
|
1193 |
<div class="row"><footer class="span12">
|
1194 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
1195 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
1196 |
+
generated on 2014-08-15T15:57:32-07:00.<br></footer></div>
|
1197 |
</div>
|
1198 |
</body>
|
1199 |
</html>
|
phpDocs/classes/MLA_Upload_List_Table.html
CHANGED
@@ -736,7 +736,7 @@ sorted by that column. This is computed each time the table is displayed.</p></p
|
|
736 |
<div class="row"><footer class="span12">
|
737 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
738 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
739 |
-
generated on 2014-
|
740 |
</div>
|
741 |
</body>
|
742 |
</html>
|
736 |
<div class="row"><footer class="span12">
|
737 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
738 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
739 |
+
generated on 2014-08-15T15:57:32-07:00.<br></footer></div>
|
740 |
</div>
|
741 |
</body>
|
742 |
</html>
|
phpDocs/classes/MLA_Upload_Optional_List_Table.html
CHANGED
@@ -554,7 +554,7 @@ sorted by that column. This is computed each time the table is displayed.</p></p
|
|
554 |
<div class="row"><footer class="span12">
|
555 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
556 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
557 |
-
generated on 2014-
|
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 2014-08-15T15:57:32-07:00.<br></footer></div>
|
558 |
</div>
|
559 |
</body>
|
560 |
</html>
|
phpDocs/classes/MLA_View_List_Table.html
CHANGED
@@ -633,7 +633,7 @@ sorted by that column. This is computed each time the table is displayed.</p></p
|
|
633 |
<div class="row"><footer class="span12">
|
634 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
635 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
636 |
-
generated on 2014-
|
637 |
</div>
|
638 |
</body>
|
639 |
</html>
|
633 |
<div class="row"><footer class="span12">
|
634 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
635 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
636 |
+
generated on 2014-08-15T15:57:32-07:00.<br></footer></div>
|
637 |
</div>
|
638 |
</body>
|
639 |
</html>
|
phpDocs/deprecated.html
CHANGED
@@ -67,7 +67,7 @@
|
|
67 |
<div class="row"><footer class="span12">
|
68 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
69 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
70 |
-
generated on 2014-
|
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 2014-08-15T15:57:33-07:00.<br></footer></div>
|
71 |
</div>
|
72 |
</body>
|
73 |
</html>
|
phpDocs/errors.html
CHANGED
@@ -96,12 +96,16 @@
|
|
96 |
<div class="package-contents"></div>
|
97 |
<div class="package-contents"></div>
|
98 |
<div class="package-contents"></div>
|
|
|
|
|
|
|
|
|
99 |
</div>
|
100 |
</div>
|
101 |
<div class="row"><footer class="span12">
|
102 |
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>
|
103 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
104 |
-
generated on 2014-
|
105 |
</div>
|
106 |
</body>
|
107 |
</html>
|
96 |
<div class="package-contents"></div>
|
97 |
<div class="package-contents"></div>
|
98 |
<div class="package-contents"></div>
|
99 |
+
<div class="package-contents"></div>
|
100 |
+
<div class="package-contents"></div>
|
101 |
+
<div class="package-contents"></div>
|
102 |
+
<div class="package-contents"></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 2014-08-15T15:57:33-07:00.<br></footer></div>
|
109 |
</div>
|
110 |
</body>
|
111 |
</html>
|
phpDocs/graph_class.html
CHANGED
@@ -64,7 +64,7 @@
|
|
64 |
</script><div class="row"><footer class="span12">
|
65 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
66 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
67 |
-
generated on 2014-
|
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 2014-08-15T15:57:33-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 2014-
|
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 2014-08-15T15:57:32-07:00.<br></footer></div>
|
90 |
</div>
|
91 |
</body>
|
92 |
</html>
|
phpDocs/markers.html
CHANGED
@@ -79,7 +79,7 @@
|
|
79 |
</tr>
|
80 |
<tr>
|
81 |
<td>todo</td>
|
82 |
-
<td>
|
83 |
<td>encode the rest</td>
|
84 |
</tr>
|
85 |
</table></div>
|
@@ -89,7 +89,7 @@
|
|
89 |
<div class="row"><footer class="span12">
|
90 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
91 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
92 |
-
generated on 2014-
|
93 |
</div>
|
94 |
</body>
|
95 |
</html>
|
79 |
</tr>
|
80 |
<tr>
|
81 |
<td>todo</td>
|
82 |
+
<td>3469</td>
|
83 |
<td>encode the rest</td>
|
84 |
</tr>
|
85 |
</table></div>
|
89 |
<div class="row"><footer class="span12">
|
90 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
91 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
92 |
+
generated on 2014-08-15T15:57:33-07:00.<br></footer></div>
|
93 |
</div>
|
94 |
</body>
|
95 |
</html>
|
phpDocs/namespaces/global.html
CHANGED
@@ -72,6 +72,83 @@
|
|
72 |
<div class="namespace-indent">
|
73 |
<h3>
|
74 |
<i class="icon-custom icon-function"></i> Functions</h3>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
<a name="mla_after_setup_theme_action" id="mla_after_setup_theme_action"></a><div class="element clickable function mla_after_setup_theme_action" data-toggle="collapse" data-target=".mla_after_setup_theme_action .collapse">
|
76 |
<h2>Loads the text domain(s) for the mla-child-theme, from the WordPress language directory
|
77 |
and/or from the theme's own directory.</h2>
|
@@ -348,7 +425,7 @@ searchable database of exension/type associations for the "Uploads" admin settin
|
|
348 |
<div class="row"><footer class="span12">
|
349 |
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>
|
350 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
351 |
-
generated on 2014-
|
352 |
</div>
|
353 |
</body>
|
354 |
</html>
|
72 |
<div class="namespace-indent">
|
73 |
<h3>
|
74 |
<i class="icon-custom icon-function"></i> Functions</h3>
|
75 |
+
<a name="custom_taxonomy_dropdown" id="custom_taxonomy_dropdown"></a><div class="element clickable function custom_taxonomy_dropdown" data-toggle="collapse" data-target=".custom_taxonomy_dropdown .collapse">
|
76 |
+
<h2>Custom Taxonomy Dropdown Control</h2>
|
77 |
+
<pre>custom_taxonomy_dropdown(string $taxonomy, string $orderby, string $order, string $limit, string $name, mixed $show_option_all, mixed $show_option_none) : void</pre>
|
78 |
+
<div class="labels"></div>
|
79 |
+
<div class="row collapse"><div class="detail-description">
|
80 |
+
<p class="long_description"></p>
|
81 |
+
<table class="table table-bordered"><tr>
|
82 |
+
<th>since</th>
|
83 |
+
<td>1.00</td>
|
84 |
+
</tr></table>
|
85 |
+
<h3>Parameters</h3>
|
86 |
+
<div class="subelement argument">
|
87 |
+
<h4>$taxonomy</h4>
|
88 |
+
<code>string</code><p>Taxonomy slug</p></div>
|
89 |
+
<div class="subelement argument">
|
90 |
+
<h4>$orderby</h4>
|
91 |
+
<code>string</code><p>Order by field</p></div>
|
92 |
+
<div class="subelement argument">
|
93 |
+
<h4>$order</h4>
|
94 |
+
<code>string</code><p>Sort order</p></div>
|
95 |
+
<div class="subelement argument">
|
96 |
+
<h4>$limit</h4>
|
97 |
+
<code>string</code><p>Not used</p></div>
|
98 |
+
<div class="subelement argument">
|
99 |
+
<h4>$name</h4>
|
100 |
+
<code>string</code><p>HTML name= value</p>
|
101 |
+
</div>
|
102 |
+
<div class="subelement argument">
|
103 |
+
<h4>$show_option_all</h4>
|
104 |
+
<code>mixed</code><p>NULL/"Select All" label</p>
|
105 |
+
</div>
|
106 |
+
<div class="subelement argument">
|
107 |
+
<h4>$show_option_none</h4>
|
108 |
+
<code>mixed</code><p>NULL/"Select None" label</p>
|
109 |
+
</div>
|
110 |
+
</div></div>
|
111 |
+
</div>
|
112 |
+
<a name="custom_taxonomy_dropdown" id="custom_taxonomy_dropdown"></a><div class="element clickable function custom_taxonomy_dropdown" data-toggle="collapse" data-target=".custom_taxonomy_dropdown .collapse">
|
113 |
+
<h2>Custom Taxonomy Dropdown Control</h2>
|
114 |
+
<pre>custom_taxonomy_dropdown(string $taxonomy, string $orderby, string $order, string $limit, string $name, mixed $show_option_all, mixed $show_option_none, integer $selected) : void</pre>
|
115 |
+
<div class="labels"></div>
|
116 |
+
<div class="row collapse"><div class="detail-description">
|
117 |
+
<p class="long_description"></p>
|
118 |
+
<table class="table table-bordered"><tr>
|
119 |
+
<th>since</th>
|
120 |
+
<td>1.00</td>
|
121 |
+
</tr></table>
|
122 |
+
<h3>Parameters</h3>
|
123 |
+
<div class="subelement argument">
|
124 |
+
<h4>$taxonomy</h4>
|
125 |
+
<code>string</code><p>Taxonomy slug</p></div>
|
126 |
+
<div class="subelement argument">
|
127 |
+
<h4>$orderby</h4>
|
128 |
+
<code>string</code><p>Order by field</p></div>
|
129 |
+
<div class="subelement argument">
|
130 |
+
<h4>$order</h4>
|
131 |
+
<code>string</code><p>Sort order</p></div>
|
132 |
+
<div class="subelement argument">
|
133 |
+
<h4>$limit</h4>
|
134 |
+
<code>string</code><p>Not used</p></div>
|
135 |
+
<div class="subelement argument">
|
136 |
+
<h4>$name</h4>
|
137 |
+
<code>string</code><p>HTML name= value</p>
|
138 |
+
</div>
|
139 |
+
<div class="subelement argument">
|
140 |
+
<h4>$show_option_all</h4>
|
141 |
+
<code>mixed</code><p>NULL/"Select All" label</p>
|
142 |
+
</div>
|
143 |
+
<div class="subelement argument">
|
144 |
+
<h4>$show_option_none</h4>
|
145 |
+
<code>mixed</code><p>NULL/"Select None" label</p>
|
146 |
+
</div>
|
147 |
+
<div class="subelement argument">
|
148 |
+
<h4>$selected</h4>
|
149 |
+
<code>integer</code><p>Index of the inital selection</p></div>
|
150 |
+
</div></div>
|
151 |
+
</div>
|
152 |
<a name="mla_after_setup_theme_action" id="mla_after_setup_theme_action"></a><div class="element clickable function mla_after_setup_theme_action" data-toggle="collapse" data-target=".mla_after_setup_theme_action .collapse">
|
153 |
<h2>Loads the text domain(s) for the mla-child-theme, from the WordPress language directory
|
154 |
and/or from the theme's own directory.</h2>
|
425 |
<div class="row"><footer class="span12">
|
426 |
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>
|
427 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
428 |
+
generated on 2014-08-15T15:57:32-07:00.<br></footer></div>
|
429 |
</div>
|
430 |
</body>
|
431 |
</html>
|
phpDocs/packages/Media Library Assistant.MLA.Child.Theme.html
CHANGED
@@ -62,6 +62,8 @@
|
|
62 |
</li>
|
63 |
<li class="nav-header">
|
64 |
<i class="icon-custom icon-function"></i> Functions</li>
|
|
|
|
|
65 |
<li class="function "><a href="#mla_after_setup_theme_action" title="mla_after_setup_theme_action :: Loads the text domain(s) for the mla-child-theme, from the WordPress language directory
|
66 |
and/or from the theme's own directory."><span class="description">Loads the text domain(s) for the mla-child-theme, from the WordPress language directory
|
67 |
and/or from the theme's own directory.</span><pre>mla_after_setup_theme_action</pre></a></li>
|
@@ -88,6 +90,83 @@ listing the terms assigned to a specific post or Media Library item.</span><pre>
|
|
88 |
<div class="package-indent">
|
89 |
<h3>
|
90 |
<i class="icon-custom icon-function"></i> Functions</h3>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
91 |
<a name="mla_after_setup_theme_action" id="mla_after_setup_theme_action"></a><div class="element clickable function mla_after_setup_theme_action" data-toggle="collapse" data-target=".mla_after_setup_theme_action .collapse">
|
92 |
<h2>Loads the text domain(s) for the mla-child-theme, from the WordPress language directory
|
93 |
and/or from the theme's own directory.</h2>
|
@@ -189,7 +268,7 @@ display an "accordian-style" list.</p></p>
|
|
189 |
<div class="row"><footer class="span12">
|
190 |
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>
|
191 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
192 |
-
generated on 2014-
|
193 |
</div>
|
194 |
</body>
|
195 |
</html>
|
62 |
</li>
|
63 |
<li class="nav-header">
|
64 |
<i class="icon-custom icon-function"></i> Functions</li>
|
65 |
+
<li class="function "><a href="#custom_taxonomy_dropdown" title="custom_taxonomy_dropdown :: Custom Taxonomy Dropdown Control"><span class="description">Custom Taxonomy Dropdown Control</span><pre>custom_taxonomy_dropdown</pre></a></li>
|
66 |
+
<li class="function "><a href="#custom_taxonomy_dropdown" title="custom_taxonomy_dropdown :: Custom Taxonomy Dropdown Control"><span class="description">Custom Taxonomy Dropdown Control</span><pre>custom_taxonomy_dropdown</pre></a></li>
|
67 |
<li class="function "><a href="#mla_after_setup_theme_action" title="mla_after_setup_theme_action :: Loads the text domain(s) for the mla-child-theme, from the WordPress language directory
|
68 |
and/or from the theme's own directory."><span class="description">Loads the text domain(s) for the mla-child-theme, from the WordPress language directory
|
69 |
and/or from the theme's own directory.</span><pre>mla_after_setup_theme_action</pre></a></li>
|
90 |
<div class="package-indent">
|
91 |
<h3>
|
92 |
<i class="icon-custom icon-function"></i> Functions</h3>
|
93 |
+
<a name="custom_taxonomy_dropdown" id="custom_taxonomy_dropdown"></a><div class="element clickable function custom_taxonomy_dropdown" data-toggle="collapse" data-target=".custom_taxonomy_dropdown .collapse">
|
94 |
+
<h2>Custom Taxonomy Dropdown Control</h2>
|
95 |
+
<pre>custom_taxonomy_dropdown(string $taxonomy, string $orderby, string $order, string $limit, string $name, mixed $show_option_all, mixed $show_option_none) : void</pre>
|
96 |
+
<div class="labels"></div>
|
97 |
+
<div class="row collapse"><div class="detail-description">
|
98 |
+
<p class="long_description"></p>
|
99 |
+
<table class="table table-bordered"><tr>
|
100 |
+
<th>since</th>
|
101 |
+
<td>1.00</td>
|
102 |
+
</tr></table>
|
103 |
+
<h3>Parameters</h3>
|
104 |
+
<div class="subelement argument">
|
105 |
+
<h4>$taxonomy</h4>
|
106 |
+
<code>string</code><p>Taxonomy slug</p></div>
|
107 |
+
<div class="subelement argument">
|
108 |
+
<h4>$orderby</h4>
|
109 |
+
<code>string</code><p>Order by field</p></div>
|
110 |
+
<div class="subelement argument">
|
111 |
+
<h4>$order</h4>
|
112 |
+
<code>string</code><p>Sort order</p></div>
|
113 |
+
<div class="subelement argument">
|
114 |
+
<h4>$limit</h4>
|
115 |
+
<code>string</code><p>Not used</p></div>
|
116 |
+
<div class="subelement argument">
|
117 |
+
<h4>$name</h4>
|
118 |
+
<code>string</code><p>HTML name= value</p>
|
119 |
+
</div>
|
120 |
+
<div class="subelement argument">
|
121 |
+
<h4>$show_option_all</h4>
|
122 |
+
<code>mixed</code><p>NULL/"Select All" label</p>
|
123 |
+
</div>
|
124 |
+
<div class="subelement argument">
|
125 |
+
<h4>$show_option_none</h4>
|
126 |
+
<code>mixed</code><p>NULL/"Select None" label</p>
|
127 |
+
</div>
|
128 |
+
</div></div>
|
129 |
+
</div>
|
130 |
+
<a name="custom_taxonomy_dropdown" id="custom_taxonomy_dropdown"></a><div class="element clickable function custom_taxonomy_dropdown" data-toggle="collapse" data-target=".custom_taxonomy_dropdown .collapse">
|
131 |
+
<h2>Custom Taxonomy Dropdown Control</h2>
|
132 |
+
<pre>custom_taxonomy_dropdown(string $taxonomy, string $orderby, string $order, string $limit, string $name, mixed $show_option_all, mixed $show_option_none, integer $selected) : void</pre>
|
133 |
+
<div class="labels"></div>
|
134 |
+
<div class="row collapse"><div class="detail-description">
|
135 |
+
<p class="long_description"></p>
|
136 |
+
<table class="table table-bordered"><tr>
|
137 |
+
<th>since</th>
|
138 |
+
<td>1.00</td>
|
139 |
+
</tr></table>
|
140 |
+
<h3>Parameters</h3>
|
141 |
+
<div class="subelement argument">
|
142 |
+
<h4>$taxonomy</h4>
|
143 |
+
<code>string</code><p>Taxonomy slug</p></div>
|
144 |
+
<div class="subelement argument">
|
145 |
+
<h4>$orderby</h4>
|
146 |
+
<code>string</code><p>Order by field</p></div>
|
147 |
+
<div class="subelement argument">
|
148 |
+
<h4>$order</h4>
|
149 |
+
<code>string</code><p>Sort order</p></div>
|
150 |
+
<div class="subelement argument">
|
151 |
+
<h4>$limit</h4>
|
152 |
+
<code>string</code><p>Not used</p></div>
|
153 |
+
<div class="subelement argument">
|
154 |
+
<h4>$name</h4>
|
155 |
+
<code>string</code><p>HTML name= value</p>
|
156 |
+
</div>
|
157 |
+
<div class="subelement argument">
|
158 |
+
<h4>$show_option_all</h4>
|
159 |
+
<code>mixed</code><p>NULL/"Select All" label</p>
|
160 |
+
</div>
|
161 |
+
<div class="subelement argument">
|
162 |
+
<h4>$show_option_none</h4>
|
163 |
+
<code>mixed</code><p>NULL/"Select None" label</p>
|
164 |
+
</div>
|
165 |
+
<div class="subelement argument">
|
166 |
+
<h4>$selected</h4>
|
167 |
+
<code>integer</code><p>Index of the inital selection</p></div>
|
168 |
+
</div></div>
|
169 |
+
</div>
|
170 |
<a name="mla_after_setup_theme_action" id="mla_after_setup_theme_action"></a><div class="element clickable function mla_after_setup_theme_action" data-toggle="collapse" data-target=".mla_after_setup_theme_action .collapse">
|
171 |
<h2>Loads the text domain(s) for the mla-child-theme, from the WordPress language directory
|
172 |
and/or from the theme's own directory.</h2>
|
268 |
<div class="row"><footer class="span12">
|
269 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
270 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
271 |
+
generated on 2014-08-15T15:57:32-07:00.<br></footer></div>
|
272 |
</div>
|
273 |
</body>
|
274 |
</html>
|
phpDocs/packages/Media Library Assistant.MLA.Child.html
CHANGED
@@ -86,6 +86,83 @@
|
|
86 |
<div class="package-indent">
|
87 |
<h3>
|
88 |
<i class="icon-custom icon-function"></i> Functions</h3>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
89 |
<a name="mla_after_setup_theme_action" id="mla_after_setup_theme_action"></a><div class="element clickable function mla_after_setup_theme_action" data-toggle="collapse" data-target=".mla_after_setup_theme_action .collapse">
|
90 |
<h2>Loads the text domain(s) for the mla-child-theme, from the WordPress language directory
|
91 |
and/or from the theme's own directory.</h2>
|
@@ -188,7 +265,7 @@ display an "accordian-style" list.</p></p>
|
|
188 |
<div class="row"><footer class="span12">
|
189 |
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>
|
190 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
191 |
-
generated on 2014-
|
192 |
</div>
|
193 |
</body>
|
194 |
</html>
|
86 |
<div class="package-indent">
|
87 |
<h3>
|
88 |
<i class="icon-custom icon-function"></i> Functions</h3>
|
89 |
+
<a name="custom_taxonomy_dropdown" id="custom_taxonomy_dropdown"></a><div class="element clickable function custom_taxonomy_dropdown" data-toggle="collapse" data-target=".custom_taxonomy_dropdown .collapse">
|
90 |
+
<h2>Custom Taxonomy Dropdown Control</h2>
|
91 |
+
<pre>custom_taxonomy_dropdown(string $taxonomy, string $orderby, string $order, string $limit, string $name, mixed $show_option_all, mixed $show_option_none) : void</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>1.00</td>
|
98 |
+
</tr></table>
|
99 |
+
<h3>Parameters</h3>
|
100 |
+
<div class="subelement argument">
|
101 |
+
<h4>$taxonomy</h4>
|
102 |
+
<code>string</code><p>Taxonomy slug</p></div>
|
103 |
+
<div class="subelement argument">
|
104 |
+
<h4>$orderby</h4>
|
105 |
+
<code>string</code><p>Order by field</p></div>
|
106 |
+
<div class="subelement argument">
|
107 |
+
<h4>$order</h4>
|
108 |
+
<code>string</code><p>Sort order</p></div>
|
109 |
+
<div class="subelement argument">
|
110 |
+
<h4>$limit</h4>
|
111 |
+
<code>string</code><p>Not used</p></div>
|
112 |
+
<div class="subelement argument">
|
113 |
+
<h4>$name</h4>
|
114 |
+
<code>string</code><p>HTML name= value</p>
|
115 |
+
</div>
|
116 |
+
<div class="subelement argument">
|
117 |
+
<h4>$show_option_all</h4>
|
118 |
+
<code>mixed</code><p>NULL/"Select All" label</p>
|
119 |
+
</div>
|
120 |
+
<div class="subelement argument">
|
121 |
+
<h4>$show_option_none</h4>
|
122 |
+
<code>mixed</code><p>NULL/"Select None" label</p>
|
123 |
+
</div>
|
124 |
+
</div></div>
|
125 |
+
</div>
|
126 |
+
<a name="custom_taxonomy_dropdown" id="custom_taxonomy_dropdown"></a><div class="element clickable function custom_taxonomy_dropdown" data-toggle="collapse" data-target=".custom_taxonomy_dropdown .collapse">
|
127 |
+
<h2>Custom Taxonomy Dropdown Control</h2>
|
128 |
+
<pre>custom_taxonomy_dropdown(string $taxonomy, string $orderby, string $order, string $limit, string $name, mixed $show_option_all, mixed $show_option_none, integer $selected) : void</pre>
|
129 |
+
<div class="labels"></div>
|
130 |
+
<div class="row collapse"><div class="detail-description">
|
131 |
+
<p class="long_description"></p>
|
132 |
+
<table class="table table-bordered"><tr>
|
133 |
+
<th>since</th>
|
134 |
+
<td>1.00</td>
|
135 |
+
</tr></table>
|
136 |
+
<h3>Parameters</h3>
|
137 |
+
<div class="subelement argument">
|
138 |
+
<h4>$taxonomy</h4>
|
139 |
+
<code>string</code><p>Taxonomy slug</p></div>
|
140 |
+
<div class="subelement argument">
|
141 |
+
<h4>$orderby</h4>
|
142 |
+
<code>string</code><p>Order by field</p></div>
|
143 |
+
<div class="subelement argument">
|
144 |
+
<h4>$order</h4>
|
145 |
+
<code>string</code><p>Sort order</p></div>
|
146 |
+
<div class="subelement argument">
|
147 |
+
<h4>$limit</h4>
|
148 |
+
<code>string</code><p>Not used</p></div>
|
149 |
+
<div class="subelement argument">
|
150 |
+
<h4>$name</h4>
|
151 |
+
<code>string</code><p>HTML name= value</p>
|
152 |
+
</div>
|
153 |
+
<div class="subelement argument">
|
154 |
+
<h4>$show_option_all</h4>
|
155 |
+
<code>mixed</code><p>NULL/"Select All" label</p>
|
156 |
+
</div>
|
157 |
+
<div class="subelement argument">
|
158 |
+
<h4>$show_option_none</h4>
|
159 |
+
<code>mixed</code><p>NULL/"Select None" label</p>
|
160 |
+
</div>
|
161 |
+
<div class="subelement argument">
|
162 |
+
<h4>$selected</h4>
|
163 |
+
<code>integer</code><p>Index of the inital selection</p></div>
|
164 |
+
</div></div>
|
165 |
+
</div>
|
166 |
<a name="mla_after_setup_theme_action" id="mla_after_setup_theme_action"></a><div class="element clickable function mla_after_setup_theme_action" data-toggle="collapse" data-target=".mla_after_setup_theme_action .collapse">
|
167 |
<h2>Loads the text domain(s) for the mla-child-theme, from the WordPress language directory
|
168 |
and/or from the theme's own directory.</h2>
|
265 |
<div class="row"><footer class="span12">
|
266 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
267 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
268 |
+
generated on 2014-08-15T15:57:32-07:00.<br></footer></div>
|
269 |
</div>
|
270 |
</body>
|
271 |
</html>
|
phpDocs/packages/Media Library Assistant.MLA.html
CHANGED
@@ -96,6 +96,83 @@
|
|
96 |
<div class="package-indent">
|
97 |
<h3>
|
98 |
<i class="icon-custom icon-function"></i> Functions</h3>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
99 |
<a name="mla_after_setup_theme_action" id="mla_after_setup_theme_action"></a><div class="element clickable function mla_after_setup_theme_action" data-toggle="collapse" data-target=".mla_after_setup_theme_action .collapse">
|
100 |
<h2>Loads the text domain(s) for the mla-child-theme, from the WordPress language directory
|
101 |
and/or from the theme's own directory.</h2>
|
@@ -199,7 +276,7 @@ display an "accordian-style" list.</p></p>
|
|
199 |
<div class="row"><footer class="span12">
|
200 |
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>
|
201 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
202 |
-
generated on 2014-
|
203 |
</div>
|
204 |
</body>
|
205 |
</html>
|
96 |
<div class="package-indent">
|
97 |
<h3>
|
98 |
<i class="icon-custom icon-function"></i> Functions</h3>
|
99 |
+
<a name="custom_taxonomy_dropdown" id="custom_taxonomy_dropdown"></a><div class="element clickable function custom_taxonomy_dropdown" data-toggle="collapse" data-target=".custom_taxonomy_dropdown .collapse">
|
100 |
+
<h2>Custom Taxonomy Dropdown Control</h2>
|
101 |
+
<pre>custom_taxonomy_dropdown(string $taxonomy, string $orderby, string $order, string $limit, string $name, mixed $show_option_all, mixed $show_option_none) : void</pre>
|
102 |
+
<div class="labels"></div>
|
103 |
+
<div class="row collapse"><div class="detail-description">
|
104 |
+
<p class="long_description"></p>
|
105 |
+
<table class="table table-bordered"><tr>
|
106 |
+
<th>since</th>
|
107 |
+
<td>1.00</td>
|
108 |
+
</tr></table>
|
109 |
+
<h3>Parameters</h3>
|
110 |
+
<div class="subelement argument">
|
111 |
+
<h4>$taxonomy</h4>
|
112 |
+
<code>string</code><p>Taxonomy slug</p></div>
|
113 |
+
<div class="subelement argument">
|
114 |
+
<h4>$orderby</h4>
|
115 |
+
<code>string</code><p>Order by field</p></div>
|
116 |
+
<div class="subelement argument">
|
117 |
+
<h4>$order</h4>
|
118 |
+
<code>string</code><p>Sort order</p></div>
|
119 |
+
<div class="subelement argument">
|
120 |
+
<h4>$limit</h4>
|
121 |
+
<code>string</code><p>Not used</p></div>
|
122 |
+
<div class="subelement argument">
|
123 |
+
<h4>$name</h4>
|
124 |
+
<code>string</code><p>HTML name= value</p>
|
125 |
+
</div>
|
126 |
+
<div class="subelement argument">
|
127 |
+
<h4>$show_option_all</h4>
|
128 |
+
<code>mixed</code><p>NULL/"Select All" label</p>
|
129 |
+
</div>
|
130 |
+
<div class="subelement argument">
|
131 |
+
<h4>$show_option_none</h4>
|
132 |
+
<code>mixed</code><p>NULL/"Select None" label</p>
|
133 |
+
</div>
|
134 |
+
</div></div>
|
135 |
+
</div>
|
136 |
+
<a name="custom_taxonomy_dropdown" id="custom_taxonomy_dropdown"></a><div class="element clickable function custom_taxonomy_dropdown" data-toggle="collapse" data-target=".custom_taxonomy_dropdown .collapse">
|
137 |
+
<h2>Custom Taxonomy Dropdown Control</h2>
|
138 |
+
<pre>custom_taxonomy_dropdown(string $taxonomy, string $orderby, string $order, string $limit, string $name, mixed $show_option_all, mixed $show_option_none, integer $selected) : void</pre>
|
139 |
+
<div class="labels"></div>
|
140 |
+
<div class="row collapse"><div class="detail-description">
|
141 |
+
<p class="long_description"></p>
|
142 |
+
<table class="table table-bordered"><tr>
|
143 |
+
<th>since</th>
|
144 |
+
<td>1.00</td>
|
145 |
+
</tr></table>
|
146 |
+
<h3>Parameters</h3>
|
147 |
+
<div class="subelement argument">
|
148 |
+
<h4>$taxonomy</h4>
|
149 |
+
<code>string</code><p>Taxonomy slug</p></div>
|
150 |
+
<div class="subelement argument">
|
151 |
+
<h4>$orderby</h4>
|
152 |
+
<code>string</code><p>Order by field</p></div>
|
153 |
+
<div class="subelement argument">
|
154 |
+
<h4>$order</h4>
|
155 |
+
<code>string</code><p>Sort order</p></div>
|
156 |
+
<div class="subelement argument">
|
157 |
+
<h4>$limit</h4>
|
158 |
+
<code>string</code><p>Not used</p></div>
|
159 |
+
<div class="subelement argument">
|
160 |
+
<h4>$name</h4>
|
161 |
+
<code>string</code><p>HTML name= value</p>
|
162 |
+
</div>
|
163 |
+
<div class="subelement argument">
|
164 |
+
<h4>$show_option_all</h4>
|
165 |
+
<code>mixed</code><p>NULL/"Select All" label</p>
|
166 |
+
</div>
|
167 |
+
<div class="subelement argument">
|
168 |
+
<h4>$show_option_none</h4>
|
169 |
+
<code>mixed</code><p>NULL/"Select None" label</p>
|
170 |
+
</div>
|
171 |
+
<div class="subelement argument">
|
172 |
+
<h4>$selected</h4>
|
173 |
+
<code>integer</code><p>Index of the inital selection</p></div>
|
174 |
+
</div></div>
|
175 |
+
</div>
|
176 |
<a name="mla_after_setup_theme_action" id="mla_after_setup_theme_action"></a><div class="element clickable function mla_after_setup_theme_action" data-toggle="collapse" data-target=".mla_after_setup_theme_action .collapse">
|
177 |
<h2>Loads the text domain(s) for the mla-child-theme, from the WordPress language directory
|
178 |
and/or from the theme's own directory.</h2>
|
276 |
<div class="row"><footer class="span12">
|
277 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
278 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
279 |
+
generated on 2014-08-15T15:57:32-07:00.<br></footer></div>
|
280 |
</div>
|
281 |
</body>
|
282 |
</html>
|
phpDocs/packages/Media Library Assistant.html
CHANGED
@@ -316,6 +316,83 @@ searchable database of exension/type associations for the "Uploads" admin settin
|
|
316 |
<div class="package-indent">
|
317 |
<h3>
|
318 |
<i class="icon-custom icon-function"></i> Functions</h3>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
319 |
<a name="mla_after_setup_theme_action" id="mla_after_setup_theme_action"></a><div class="element clickable function mla_after_setup_theme_action" data-toggle="collapse" data-target=".mla_after_setup_theme_action .collapse">
|
320 |
<h2>Loads the text domain(s) for the mla-child-theme, from the WordPress language directory
|
321 |
and/or from the theme's own directory.</h2>
|
@@ -420,7 +497,7 @@ display an "accordian-style" list.</p></p>
|
|
420 |
<div class="row"><footer class="span12">
|
421 |
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>
|
422 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
423 |
-
generated on 2014-
|
424 |
</div>
|
425 |
</body>
|
426 |
</html>
|
316 |
<div class="package-indent">
|
317 |
<h3>
|
318 |
<i class="icon-custom icon-function"></i> Functions</h3>
|
319 |
+
<a name="custom_taxonomy_dropdown" id="custom_taxonomy_dropdown"></a><div class="element clickable function custom_taxonomy_dropdown" data-toggle="collapse" data-target=".custom_taxonomy_dropdown .collapse">
|
320 |
+
<h2>Custom Taxonomy Dropdown Control</h2>
|
321 |
+
<pre>custom_taxonomy_dropdown(string $taxonomy, string $orderby, string $order, string $limit, string $name, mixed $show_option_all, mixed $show_option_none) : void</pre>
|
322 |
+
<div class="labels"></div>
|
323 |
+
<div class="row collapse"><div class="detail-description">
|
324 |
+
<p class="long_description"></p>
|
325 |
+
<table class="table table-bordered"><tr>
|
326 |
+
<th>since</th>
|
327 |
+
<td>1.00</td>
|
328 |
+
</tr></table>
|
329 |
+
<h3>Parameters</h3>
|
330 |
+
<div class="subelement argument">
|
331 |
+
<h4>$taxonomy</h4>
|
332 |
+
<code>string</code><p>Taxonomy slug</p></div>
|
333 |
+
<div class="subelement argument">
|
334 |
+
<h4>$orderby</h4>
|
335 |
+
<code>string</code><p>Order by field</p></div>
|
336 |
+
<div class="subelement argument">
|
337 |
+
<h4>$order</h4>
|
338 |
+
<code>string</code><p>Sort order</p></div>
|
339 |
+
<div class="subelement argument">
|
340 |
+
<h4>$limit</h4>
|
341 |
+
<code>string</code><p>Not used</p></div>
|
342 |
+
<div class="subelement argument">
|
343 |
+
<h4>$name</h4>
|
344 |
+
<code>string</code><p>HTML name= value</p>
|
345 |
+
</div>
|
346 |
+
<div class="subelement argument">
|
347 |
+
<h4>$show_option_all</h4>
|
348 |
+
<code>mixed</code><p>NULL/"Select All" label</p>
|
349 |
+
</div>
|
350 |
+
<div class="subelement argument">
|
351 |
+
<h4>$show_option_none</h4>
|
352 |
+
<code>mixed</code><p>NULL/"Select None" label</p>
|
353 |
+
</div>
|
354 |
+
</div></div>
|
355 |
+
</div>
|
356 |
+
<a name="custom_taxonomy_dropdown" id="custom_taxonomy_dropdown"></a><div class="element clickable function custom_taxonomy_dropdown" data-toggle="collapse" data-target=".custom_taxonomy_dropdown .collapse">
|
357 |
+
<h2>Custom Taxonomy Dropdown Control</h2>
|
358 |
+
<pre>custom_taxonomy_dropdown(string $taxonomy, string $orderby, string $order, string $limit, string $name, mixed $show_option_all, mixed $show_option_none, integer $selected) : void</pre>
|
359 |
+
<div class="labels"></div>
|
360 |
+
<div class="row collapse"><div class="detail-description">
|
361 |
+
<p class="long_description"></p>
|
362 |
+
<table class="table table-bordered"><tr>
|
363 |
+
<th>since</th>
|
364 |
+
<td>1.00</td>
|
365 |
+
</tr></table>
|
366 |
+
<h3>Parameters</h3>
|
367 |
+
<div class="subelement argument">
|
368 |
+
<h4>$taxonomy</h4>
|
369 |
+
<code>string</code><p>Taxonomy slug</p></div>
|
370 |
+
<div class="subelement argument">
|
371 |
+
<h4>$orderby</h4>
|
372 |
+
<code>string</code><p>Order by field</p></div>
|
373 |
+
<div class="subelement argument">
|
374 |
+
<h4>$order</h4>
|
375 |
+
<code>string</code><p>Sort order</p></div>
|
376 |
+
<div class="subelement argument">
|
377 |
+
<h4>$limit</h4>
|
378 |
+
<code>string</code><p>Not used</p></div>
|
379 |
+
<div class="subelement argument">
|
380 |
+
<h4>$name</h4>
|
381 |
+
<code>string</code><p>HTML name= value</p>
|
382 |
+
</div>
|
383 |
+
<div class="subelement argument">
|
384 |
+
<h4>$show_option_all</h4>
|
385 |
+
<code>mixed</code><p>NULL/"Select All" label</p>
|
386 |
+
</div>
|
387 |
+
<div class="subelement argument">
|
388 |
+
<h4>$show_option_none</h4>
|
389 |
+
<code>mixed</code><p>NULL/"Select None" label</p>
|
390 |
+
</div>
|
391 |
+
<div class="subelement argument">
|
392 |
+
<h4>$selected</h4>
|
393 |
+
<code>integer</code><p>Index of the inital selection</p></div>
|
394 |
+
</div></div>
|
395 |
+
</div>
|
396 |
<a name="mla_after_setup_theme_action" id="mla_after_setup_theme_action"></a><div class="element clickable function mla_after_setup_theme_action" data-toggle="collapse" data-target=".mla_after_setup_theme_action .collapse">
|
397 |
<h2>Loads the text domain(s) for the mla-child-theme, from the WordPress language directory
|
398 |
and/or from the theme's own directory.</h2>
|
497 |
<div class="row"><footer class="span12">
|
498 |
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>
|
499 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
500 |
+
generated on 2014-08-15T15:57:32-07:00.<br></footer></div>
|
501 |
</div>
|
502 |
</body>
|
503 |
</html>
|
phpDocs/structure.xml
CHANGED
@@ -13,6 +13,178 @@ a query parameter to the URL, e.g., "?taxonomy=attachment_category".</p>
|
|
13 |
<tag line="2" name="since" description="MLA 1.80"/>
|
14 |
</docblock>
|
15 |
</file>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
<file path="examples\twentytwelve-mla\content-latest-images.php" hash="3fefc5035d1752ba884c449a1f156a89" package="Media Library Assistant\MLA\Child\Theme">
|
17 |
<docblock line="2">
|
18 |
<description><![CDATA[The template used for displaying the "Latest Images" content in page-latest-images.php]]></description>
|
@@ -34,7 +206,18 @@ called from the taxonomy.php template.]]></description>
|
|
34 |
<tag line="2" name="since" description="MLA 1.80"/>
|
35 |
</docblock>
|
36 |
</file>
|
37 |
-
<file path="examples\twentytwelve-mla\content-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
<docblock line="2">
|
39 |
<description><![CDATA[The template used for displaying "attachment page" content in page-single-image.php]]></description>
|
40 |
<long-description><![CDATA[<p>You must select the attachment you want by adding a query parameter
|
@@ -250,6 +433,19 @@ a more specific alternative to the generic "attachment.php" template.]]></descri
|
|
250 |
must be defined as a static WordPress "Page" post type.]]></description>
|
251 |
<long-description><![CDATA[<p>Please note that this is the WordPress construct of pages
|
252 |
and that other 'pages' on your WordPress site will use a
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
253 |
different template.</p>]]></long-description>
|
254 |
<tag line="2" name="package" description="Media Library Assistant"/>
|
255 |
<tag line="2" name="subpackage" description="MLA_Child_Theme"/>
|
@@ -305,7 +501,7 @@ different template.</p>]]></long-description>
|
|
305 |
<tag line="2" name="since" description="MLA 1.80"/>
|
306 |
</docblock>
|
307 |
</file>
|
308 |
-
<file path="examples\twentytwelve-mla\taxonomy.php" hash="
|
309 |
<docblock line="2">
|
310 |
<description><![CDATA[The template for displaying Custom Taxonomy Archive pages]]></description>
|
311 |
<long-description><![CDATA[<p>Twenty Twelve already has tag.php for Tag archives and category.php for Category archives.</p>]]></long-description>
|
@@ -316,7 +512,7 @@ different template.</p>]]></long-description>
|
|
316 |
<tag line="2" name="since" description="MLA 1.80"/>
|
317 |
</docblock>
|
318 |
</file>
|
319 |
-
<file path="includes\class-mla-data.php" hash="
|
320 |
<docblock line="2">
|
321 |
<description><![CDATA[Database and template file access for MLA needs]]></description>
|
322 |
<long-description><![CDATA[]]></long-description>
|
@@ -385,10 +581,10 @@ any further logic required to translate those values is contained in the filters
|
|
385 |
</tag>
|
386 |
</docblock>
|
387 |
</property>
|
388 |
-
<property final="false" static="true" visibility="private" line="
|
389 |
<name>$galleries</name>
|
390 |
<default><![CDATA[null]]></default>
|
391 |
-
<docblock line="
|
392 |
<description><![CDATA[Objects containing [gallery] shortcodes]]></description>
|
393 |
<long-description><![CDATA[<p>This array contains all of the objects containing one or more [gallery] shortcodes
|
394 |
and array(s) of which attachments each [gallery] contains. The arrays are built once
|
@@ -401,126 +597,126 @@ each page load and cached for subsequent calls.</p>
|
|
401 |
['galleries'] array of [gallery] entries numbered from one (1), containing:
|
402 |
galleries[X]['query'] contains a string with the arguments of the [gallery],
|
403 |
galleries[X]['results'] contains an array ( ID ) of post_ids for the objects in the gallery.</p>]]></long-description>
|
404 |
-
<tag line="
|
405 |
-
<tag line="
|
406 |
<type by_reference="false">array</type>
|
407 |
</tag>
|
408 |
</docblock>
|
409 |
</property>
|
410 |
-
<property final="false" static="true" visibility="private" line="
|
411 |
<name>$mla_galleries</name>
|
412 |
<default><![CDATA[null]]></default>
|
413 |
-
<docblock line="
|
414 |
<description><![CDATA[Objects containing [mla_gallery] shortcodes]]></description>
|
415 |
<long-description><![CDATA[<p>This array contains all of the objects containing one or more [mla_gallery] shortcodes
|
416 |
and array(s) of which attachments each [mla_gallery] contains. The arrays are built once
|
417 |
each page load and cached for subsequent calls.</p>]]></long-description>
|
418 |
-
<tag line="
|
419 |
-
<tag line="
|
420 |
<type by_reference="false">array</type>
|
421 |
</tag>
|
422 |
</docblock>
|
423 |
</property>
|
424 |
-
<property final="false" static="true" visibility="private" line="
|
425 |
<name>$pdf_indirect_objects</name>
|
426 |
<default><![CDATA[NULL]]></default>
|
427 |
-
<docblock line="
|
428 |
<description><![CDATA[Array of PDF indirect objects]]></description>
|
429 |
<long-description><![CDATA[<p>This array contains all of the indirect object offsets and lengths.
|
430 |
The array key is ( object ID * 1000 ) + object generation.
|
431 |
The array value is array( number, generation, start, optional /length )</p>]]></long-description>
|
432 |
-
<tag line="
|
433 |
-
<tag line="
|
434 |
<type by_reference="false">array</type>
|
435 |
</tag>
|
436 |
</docblock>
|
437 |
</property>
|
438 |
-
<property final="false" static="true" visibility="private" line="
|
439 |
<name>$utf8_chars</name>
|
440 |
<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>
|
441 |
-
<docblock line="
|
442 |
<description><![CDATA[UTF-8 replacements for invalid SQL characters]]></description>
|
443 |
<long-description><![CDATA[]]></long-description>
|
444 |
-
<tag line="
|
445 |
-
<tag line="
|
446 |
<type by_reference="false">array</type>
|
447 |
</tag>
|
448 |
</docblock>
|
449 |
</property>
|
450 |
-
<property final="false" static="true" visibility="private" line="
|
451 |
<name>$mla_iptc_records</name>
|
452 |
<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>
|
453 |
-
<docblock line="
|
454 |
<description><![CDATA[IPTC Dataset identifiers and names]]></description>
|
455 |
<long-description><![CDATA[<p>This array contains the identifiers and names of Datasets defined in
|
456 |
the "IPTC-NAA Information Interchange Model Version No. 4.1".</p>]]></long-description>
|
457 |
-
<tag line="
|
458 |
-
<tag line="
|
459 |
<type by_reference="false">array</type>
|
460 |
</tag>
|
461 |
</docblock>
|
462 |
</property>
|
463 |
-
<property final="false" static="true" visibility="public" line="
|
464 |
<name>$mla_iptc_keys</name>
|
465 |
<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>
|
466 |
-
<docblock line="
|
467 |
<description><![CDATA[IPTC Dataset friendly name/slug and identifiers]]></description>
|
468 |
<long-description><![CDATA[<p>This array contains the sanitized names and identifiers of Datasets defined in
|
469 |
the "IPTC-NAA Information Interchange Model Version No. 4.1".</p>]]></long-description>
|
470 |
-
<tag line="
|
471 |
-
<tag line="
|
472 |
<type by_reference="false">array</type>
|
473 |
</tag>
|
474 |
</docblock>
|
475 |
</property>
|
476 |
-
<property final="false" static="true" visibility="private" line="
|
477 |
<name>$mla_iptc_descriptions</name>
|
478 |
<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>
|
479 |
-
<docblock line="
|
480 |
<description><![CDATA[IPTC Dataset descriptions]]></description>
|
481 |
<long-description><![CDATA[<p>This array contains the descriptions of Datasets defined in
|
482 |
the "IPTC-NAA Information Interchange Model Version No. 4.1".</p>]]></long-description>
|
483 |
-
<tag line="
|
484 |
-
<tag line="
|
485 |
<type by_reference="false">array</type>
|
486 |
</tag>
|
487 |
</docblock>
|
488 |
</property>
|
489 |
-
<property final="false" static="true" visibility="private" line="
|
490 |
<name>$mla_iptc_formats</name>
|
491 |
<default><![CDATA[array(0 => "No ObjectData", 1 => "IPTC-NAA Digital Newsphoto Parameter Record", 2 => "IPTC7901 Recommended Message Format", 3 => "Tagged Image File Format (Adobe/Aldus Image data)", 4 => "Illustrator (Adobe Graphics data)", 5 => "AppleSingle (Apple Computer Inc)", 6 => "NAA 89-3 (ANPA 1312)", 7 => "MacBinary II", 0 => "IPTC Unstructured Character Oriented File Format (UCOFF)", 0 => "United Press International ANPA 1312 variant", 10 => "United Press International Down-Load Message", 11 => "JPEG File Interchange (JFIF)", 12 => "Photo-CD Image-Pac (Eastman Kodak)", 13 => "Microsoft Bit Mapped Graphics File [*.BMP]", 14 => "Digital Audio File [*.WAV] (Microsoft & Creative Labs)", 15 => "Audio plus Moving Video [*.AVI] (Microsoft)", 16 => "PC DOS/Windows Executable Files [*.COM][*.EXE]", 17 => "Compressed Binary File [*.ZIP] (PKWare Inc)", 18 => "Audio Interchange File Format AIFF (Apple Computer Inc)", 19 => "RIFF Wave (Microsoft Corporation)", 20 => "Freehand (Macromedia/Aldus)", 21 => "Hypertext Markup Language - HTML (The Internet Society)", 22 => "MPEG 2 Audio Layer 2 (Musicom), ISO/IEC", 23 => "MPEG 2 Audio Layer 3, ISO/IEC", 24 => "Portable Document File (*.PDF) Adobe", 25 => "News Industry Text Format (NITF)", 26 => "Tape Archive (*.TAR)", 27 => "Tidningarnas Telegrambyrå NITF version (TTNITF DTD)", 28 => "Ritzaus Bureau NITF version (RBNITF DTD)", 29 => "Corel Draw [*.CDR]")]]></default>
|
492 |
-
<docblock line="
|
493 |
<description><![CDATA[IPTC file format identifiers and descriptions]]></description>
|
494 |
<long-description><![CDATA[<p>This array contains the file format identifiers and descriptions defined in
|
495 |
the "IPTC-NAA Information Interchange Model Version No. 4.1" for dataset 1#020.</p>]]></long-description>
|
496 |
-
<tag line="
|
497 |
-
<tag line="
|
498 |
<type by_reference="false">array</type>
|
499 |
</tag>
|
500 |
</docblock>
|
501 |
</property>
|
502 |
-
<property final="false" static="true" visibility="private" line="
|
503 |
<name>$mla_iptc_image_types</name>
|
504 |
<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>
|
505 |
-
<docblock line="
|
506 |
<description><![CDATA[IPTC image type identifiers and descriptions]]></description>
|
507 |
<long-description><![CDATA[<p>This array contains the image type identifiers and descriptions defined in
|
508 |
the "IPTC-NAA Information Interchange Model Version No. 4.1" for dataset 2#130, octet 2.</p>]]></long-description>
|
509 |
-
<tag line="
|
510 |
-
<tag line="
|
511 |
<type by_reference="false">array</type>
|
512 |
</tag>
|
513 |
</docblock>
|
514 |
</property>
|
515 |
-
<property final="false" static="true" visibility="private" line="
|
516 |
<name>$mla_IPTC_EXIF_errors</name>
|
517 |
<default><![CDATA[array()]]></default>
|
518 |
-
<docblock line="
|
519 |
<description><![CDATA[Passes IPTC/EXIF parse errors between mla_IPTC_EXIF_error_handler
|
520 |
and mla_fetch_attachment_image_metadata]]></description>
|
521 |
<long-description><![CDATA[]]></long-description>
|
522 |
-
<tag line="
|
523 |
-
<tag line="
|
524 |
<type by_reference="false">array</type>
|
525 |
</tag>
|
526 |
</docblock>
|
@@ -1115,1233 +1311,1233 @@ Modeled after wp_edit_attachments_query in wp-admin/post.php</p>]]></long-descri
|
|
1115 |
<type/>
|
1116 |
</argument>
|
1117 |
</method>
|
1118 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
1119 |
<name>mla_query_posts_where_filter</name>
|
1120 |
<full_name>mla_query_posts_where_filter</full_name>
|
1121 |
-
<docblock line="
|
1122 |
<description><![CDATA[Adds a WHERE clause for detached items]]></description>
|
1123 |
<long-description><![CDATA[<p>Modeled after _edit_attachments_query_helper in wp-admin/post.php.
|
1124 |
Defined as public because it's a filter.</p>]]></long-description>
|
1125 |
-
<tag line="
|
1126 |
-
<tag line="
|
1127 |
<type by_reference="false">string</type>
|
1128 |
</tag>
|
1129 |
-
<tag line="
|
1130 |
<type by_reference="false">string</type>
|
1131 |
</tag>
|
1132 |
</docblock>
|
1133 |
-
<argument line="
|
1134 |
<name>$where_clause</name>
|
1135 |
<default><![CDATA[]]></default>
|
1136 |
<type/>
|
1137 |
</argument>
|
1138 |
</method>
|
1139 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
1140 |
<name>mla_query_posts_join_filter</name>
|
1141 |
<full_name>mla_query_posts_join_filter</full_name>
|
1142 |
-
<docblock line="
|
1143 |
<description><![CDATA[Adds a JOIN clause, if required, to handle sorting/searching on custom fields or ALT Text]]></description>
|
1144 |
<long-description><![CDATA[<p>Defined as public because it's a filter.</p>]]></long-description>
|
1145 |
-
<tag line="
|
1146 |
-
<tag line="
|
1147 |
<type by_reference="false">string</type>
|
1148 |
</tag>
|
1149 |
-
<tag line="
|
1150 |
<type by_reference="false">string</type>
|
1151 |
</tag>
|
1152 |
</docblock>
|
1153 |
-
<argument line="
|
1154 |
<name>$join_clause</name>
|
1155 |
<default><![CDATA[]]></default>
|
1156 |
<type/>
|
1157 |
</argument>
|
1158 |
</method>
|
1159 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
1160 |
<name>mla_query_posts_groupby_filter</name>
|
1161 |
<full_name>mla_query_posts_groupby_filter</full_name>
|
1162 |
-
<docblock line="
|
1163 |
<description><![CDATA[Adds a GROUPBY clause, if required]]></description>
|
1164 |
<long-description><![CDATA[<p>Taxonomy text queries require a GROUPBY clause.
|
1165 |
Defined as public because it's a filter.</p>]]></long-description>
|
1166 |
-
<tag line="
|
1167 |
-
<tag line="
|
1168 |
<type by_reference="false">string</type>
|
1169 |
</tag>
|
1170 |
-
<tag line="
|
1171 |
<type by_reference="false">string</type>
|
1172 |
</tag>
|
1173 |
</docblock>
|
1174 |
-
<argument line="
|
1175 |
<name>$groupby_clause</name>
|
1176 |
<default><![CDATA[]]></default>
|
1177 |
<type/>
|
1178 |
</argument>
|
1179 |
</method>
|
1180 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
1181 |
<name>mla_query_posts_orderby_filter</name>
|
1182 |
<full_name>mla_query_posts_orderby_filter</full_name>
|
1183 |
-
<docblock line="
|
1184 |
<description><![CDATA[Adds a ORDERBY clause, if required]]></description>
|
1185 |
<long-description><![CDATA[<p>Expands the range of sort options because the logic in WP_Query is limited.
|
1186 |
Defined as public because it's a filter.</p>]]></long-description>
|
1187 |
-
<tag line="
|
1188 |
-
<tag line="
|
1189 |
<type by_reference="false">string</type>
|
1190 |
</tag>
|
1191 |
-
<tag line="
|
1192 |
<type by_reference="false">string</type>
|
1193 |
</tag>
|
1194 |
</docblock>
|
1195 |
-
<argument line="
|
1196 |
<name>$orderby_clause</name>
|
1197 |
<default><![CDATA[]]></default>
|
1198 |
<type/>
|
1199 |
</argument>
|
1200 |
</method>
|
1201 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
1202 |
<name>mla_query_relevanssi_admin_search_ok_filter</name>
|
1203 |
<full_name>mla_query_relevanssi_admin_search_ok_filter</full_name>
|
1204 |
-
<docblock line="
|
1205 |
<description><![CDATA[Disable Relevanssi - A Better Search, v3.2 by Mikko Saari
|
1206 |
Defined as public because it's a filter.]]></description>
|
1207 |
<long-description><![CDATA[]]></long-description>
|
1208 |
-
<tag line="
|
1209 |
-
<tag line="
|
1210 |
<type by_reference="false">boolean</type>
|
1211 |
</tag>
|
1212 |
-
<tag line="
|
1213 |
<type by_reference="false">boolean</type>
|
1214 |
</tag>
|
1215 |
</docblock>
|
1216 |
-
<argument line="
|
1217 |
<name>$admin_search_ok</name>
|
1218 |
<default><![CDATA[]]></default>
|
1219 |
<type/>
|
1220 |
</argument>
|
1221 |
</method>
|
1222 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
1223 |
<name>mla_query_posts_clauses_filter</name>
|
1224 |
<full_name>mla_query_posts_clauses_filter</full_name>
|
1225 |
-
<docblock line="
|
1226 |
<description><![CDATA[Filters all clauses for shortcode queries, pre caching plugins]]></description>
|
1227 |
<long-description><![CDATA[<p>This is for debug purposes only.
|
1228 |
Defined as public because it's a filter.</p>]]></long-description>
|
1229 |
-
<tag line="
|
1230 |
-
<tag line="
|
1231 |
<type by_reference="false">array</type>
|
1232 |
</tag>
|
1233 |
-
<tag line="
|
1234 |
<type by_reference="false">array</type>
|
1235 |
</tag>
|
1236 |
</docblock>
|
1237 |
-
<argument line="
|
1238 |
<name>$pieces</name>
|
1239 |
<default><![CDATA[]]></default>
|
1240 |
<type/>
|
1241 |
</argument>
|
1242 |
</method>
|
1243 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
1244 |
<name>mla_query_posts_clauses_request_filter</name>
|
1245 |
<full_name>mla_query_posts_clauses_request_filter</full_name>
|
1246 |
-
<docblock line="
|
1247 |
<description><![CDATA[Filters all clauses for shortcode queries, post caching plugins]]></description>
|
1248 |
<long-description><![CDATA[<p>This is for debug purposes only.
|
1249 |
Defined as public because it's a filter.</p>]]></long-description>
|
1250 |
-
<tag line="
|
1251 |
-
<tag line="
|
1252 |
<type by_reference="false">array</type>
|
1253 |
</tag>
|
1254 |
-
<tag line="
|
1255 |
<type by_reference="false">array</type>
|
1256 |
</tag>
|
1257 |
</docblock>
|
1258 |
-
<argument line="
|
1259 |
<name>$pieces</name>
|
1260 |
<default><![CDATA[]]></default>
|
1261 |
<type/>
|
1262 |
</argument>
|
1263 |
</method>
|
1264 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
1265 |
<name>mla_get_attachment_by_id</name>
|
1266 |
<full_name>mla_get_attachment_by_id</full_name>
|
1267 |
-
<docblock line="
|
1268 |
<description><![CDATA[Retrieve an Attachment array given a $post_id]]></description>
|
1269 |
<long-description><![CDATA[<p>The (associative) array will contain every field that can be found in
|
1270 |
the posts and postmeta tables, and all references to the attachment.</p>]]></long-description>
|
1271 |
-
<tag line="
|
1272 |
-
<tag line="
|
1273 |
-
<tag line="
|
1274 |
<type by_reference="false">int</type>
|
1275 |
</tag>
|
1276 |
-
<tag line="
|
1277 |
<type by_reference="false">NULL</type>
|
1278 |
<type by_reference="false">array</type>
|
1279 |
</tag>
|
1280 |
</docblock>
|
1281 |
-
<argument line="
|
1282 |
<name>$post_id</name>
|
1283 |
<default><![CDATA[]]></default>
|
1284 |
<type/>
|
1285 |
</argument>
|
1286 |
</method>
|
1287 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
1288 |
<name>mla_fetch_attachment_parent_data</name>
|
1289 |
<full_name>mla_fetch_attachment_parent_data</full_name>
|
1290 |
-
<docblock line="
|
1291 |
<description><![CDATA[Returns information about an attachment's parent, if found]]></description>
|
1292 |
<long-description><![CDATA[]]></long-description>
|
1293 |
-
<tag line="
|
1294 |
-
<tag line="
|
1295 |
<type by_reference="false">int</type>
|
1296 |
</tag>
|
1297 |
-
<tag line="
|
1298 |
<type by_reference="false">array</type>
|
1299 |
</tag>
|
1300 |
</docblock>
|
1301 |
-
<argument line="
|
1302 |
<name>$parent_id</name>
|
1303 |
<default><![CDATA[]]></default>
|
1304 |
<type/>
|
1305 |
</argument>
|
1306 |
</method>
|
1307 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
1308 |
<name>_set_array_element</name>
|
1309 |
<full_name>_set_array_element</full_name>
|
1310 |
-
<docblock line="
|
1311 |
<description><![CDATA[Adds or replaces the value of a key in a possibly nested array structure]]></description>
|
1312 |
<long-description><![CDATA[]]></long-description>
|
1313 |
-
<tag line="
|
1314 |
-
<tag line="
|
1315 |
<type by_reference="false">string</type>
|
1316 |
</tag>
|
1317 |
-
<tag line="
|
1318 |
<type by_reference="false">mixed</type>
|
1319 |
</tag>
|
1320 |
-
<tag line="
|
1321 |
<type by_reference="false">array</type>
|
1322 |
</tag>
|
1323 |
-
<tag line="
|
1324 |
<type by_reference="false">boolean</type>
|
1325 |
</tag>
|
1326 |
</docblock>
|
1327 |
-
<argument line="
|
1328 |
<name>$needle</name>
|
1329 |
<default><![CDATA[]]></default>
|
1330 |
<type/>
|
1331 |
</argument>
|
1332 |
-
<argument line="
|
1333 |
<name>$value</name>
|
1334 |
<default><![CDATA[]]></default>
|
1335 |
<type/>
|
1336 |
</argument>
|
1337 |
-
<argument line="
|
1338 |
<name>$haystack</name>
|
1339 |
<default><![CDATA[]]></default>
|
1340 |
<type/>
|
1341 |
</argument>
|
1342 |
</method>
|
1343 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
1344 |
<name>_unset_array_element</name>
|
1345 |
<full_name>_unset_array_element</full_name>
|
1346 |
-
<docblock line="
|
1347 |
<description><![CDATA[Deletes the value of a key in a possibly nested array structure]]></description>
|
1348 |
<long-description><![CDATA[]]></long-description>
|
1349 |
-
<tag line="
|
1350 |
-
<tag line="
|
1351 |
<type by_reference="false">string</type>
|
1352 |
</tag>
|
1353 |
-
<tag line="
|
1354 |
<type by_reference="false">array</type>
|
1355 |
</tag>
|
1356 |
-
<tag line="
|
1357 |
<type by_reference="false">boolean</type>
|
1358 |
</tag>
|
1359 |
</docblock>
|
1360 |
-
<argument line="
|
1361 |
<name>$needle</name>
|
1362 |
<default><![CDATA[]]></default>
|
1363 |
<type/>
|
1364 |
</argument>
|
1365 |
-
<argument line="
|
1366 |
<name>$haystack</name>
|
1367 |
<default><![CDATA[]]></default>
|
1368 |
<type/>
|
1369 |
</argument>
|
1370 |
</method>
|
1371 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
1372 |
<name>mla_find_array_element</name>
|
1373 |
<full_name>mla_find_array_element</full_name>
|
1374 |
-
<docblock line="
|
1375 |
<description><![CDATA[Finds the value of a key in a possibly nested array structure]]></description>
|
1376 |
<long-description><![CDATA[<p>Used primarily to extract fields from the _wp_attachment_metadata custom field.
|
1377 |
Could also be used with the ID3 metadata exposed in WordPress 3.6 and later.</p>]]></long-description>
|
1378 |
-
<tag line="
|
1379 |
-
<tag line="
|
1380 |
<type by_reference="false">string</type>
|
1381 |
</tag>
|
1382 |
-
<tag line="
|
1383 |
<type by_reference="false">array</type>
|
1384 |
</tag>
|
1385 |
-
<tag line="
|
1386 |
<type by_reference="false">string</type>
|
1387 |
</tag>
|
1388 |
-
<tag line="
|
1389 |
<type by_reference="false">boolean</type>
|
1390 |
</tag>
|
1391 |
-
<tag line="
|
1392 |
<type by_reference="false">mixed</type>
|
1393 |
</tag>
|
1394 |
</docblock>
|
1395 |
-
<argument line="
|
1396 |
<name>$needle</name>
|
1397 |
<default><![CDATA[]]></default>
|
1398 |
<type/>
|
1399 |
</argument>
|
1400 |
-
<argument line="
|
1401 |
<name>$haystack</name>
|
1402 |
<default><![CDATA[]]></default>
|
1403 |
<type/>
|
1404 |
</argument>
|
1405 |
-
<argument line="
|
1406 |
<name>$option</name>
|
1407 |
<default><![CDATA[]]></default>
|
1408 |
<type/>
|
1409 |
</argument>
|
1410 |
-
<argument line="
|
1411 |
<name>$keep_existing</name>
|
1412 |
<default><![CDATA[false]]></default>
|
1413 |
<type/>
|
1414 |
</argument>
|
1415 |
</method>
|
1416 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
1417 |
<name>mla_fetch_attachment_metadata</name>
|
1418 |
<full_name>mla_fetch_attachment_metadata</full_name>
|
1419 |
-
<docblock line="
|
1420 |
<description><![CDATA[Fetch and filter meta data for an attachment]]></description>
|
1421 |
<long-description><![CDATA[<p>Returns a filtered array of a post's meta data. Internal values beginning with '<em>'
|
1422 |
are stripped out or converted to an 'mla</em>' equivalent.</p>]]></long-description>
|
1423 |
-
<tag line="
|
1424 |
-
<tag line="
|
1425 |
<type by_reference="false">int</type>
|
1426 |
</tag>
|
1427 |
-
<tag line="
|
1428 |
<type by_reference="false">array</type>
|
1429 |
</tag>
|
1430 |
</docblock>
|
1431 |
-
<argument line="
|
1432 |
<name>$post_id</name>
|
1433 |
<default><![CDATA[]]></default>
|
1434 |
<type/>
|
1435 |
</argument>
|
1436 |
</method>
|
1437 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
1438 |
<name>mla_fetch_attachment_references</name>
|
1439 |
<full_name>mla_fetch_attachment_references</full_name>
|
1440 |
-
<docblock line="
|
1441 |
<description><![CDATA[Find Featured Image and inserted image/link references to an attachment]]></description>
|
1442 |
<long-description><![CDATA[<p>Searches all post and page content to see if the attachment is used
|
1443 |
as a Featured Image or inserted in the post as an image or link.</p>]]></long-description>
|
1444 |
-
<tag line="
|
1445 |
-
<tag line="
|
1446 |
<type by_reference="false">int</type>
|
1447 |
</tag>
|
1448 |
-
<tag line="
|
1449 |
<type by_reference="false">int</type>
|
1450 |
</tag>
|
1451 |
-
<tag line="
|
1452 |
<type by_reference="false">array</type>
|
1453 |
</tag>
|
1454 |
</docblock>
|
1455 |
-
<argument line="
|
1456 |
<name>$ID</name>
|
1457 |
<default><![CDATA[]]></default>
|
1458 |
<type/>
|
1459 |
</argument>
|
1460 |
-
<argument line="
|
1461 |
<name>$parent</name>
|
1462 |
<default><![CDATA[]]></default>
|
1463 |
<type/>
|
1464 |
</argument>
|
1465 |
</method>
|
1466 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
1467 |
<name>mla_flush_mla_galleries</name>
|
1468 |
<full_name>mla_flush_mla_galleries</full_name>
|
1469 |
-
<docblock line="
|
1470 |
<description><![CDATA[Invalidates the $mla_galleries or $galleries array and cached values]]></description>
|
1471 |
<long-description><![CDATA[]]></long-description>
|
1472 |
-
<tag line="
|
1473 |
-
<tag line="
|
1474 |
<type by_reference="false">string</type>
|
1475 |
</tag>
|
1476 |
-
<tag line="
|
1477 |
<type by_reference="false">void</type>
|
1478 |
</tag>
|
1479 |
</docblock>
|
1480 |
-
<argument line="
|
1481 |
<name>$option_name</name>
|
1482 |
<default><![CDATA[]]></default>
|
1483 |
<type/>
|
1484 |
</argument>
|
1485 |
</method>
|
1486 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
1487 |
<name>mla_save_post_action</name>
|
1488 |
<full_name>mla_save_post_action</full_name>
|
1489 |
-
<docblock line="
|
1490 |
<description><![CDATA[Invalidates $mla_galleries and $galleries arrays and cached values after post, page or attachment updates]]></description>
|
1491 |
<long-description><![CDATA[]]></long-description>
|
1492 |
-
<tag line="
|
1493 |
-
<tag line="
|
1494 |
<type by_reference="false">integer</type>
|
1495 |
</tag>
|
1496 |
-
<tag line="
|
1497 |
<type by_reference="false">void</type>
|
1498 |
</tag>
|
1499 |
</docblock>
|
1500 |
-
<argument line="
|
1501 |
<name>$post_id</name>
|
1502 |
<default><![CDATA[]]></default>
|
1503 |
<type/>
|
1504 |
</argument>
|
1505 |
</method>
|
1506 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
1507 |
<name>_build_mla_galleries</name>
|
1508 |
<full_name>_build_mla_galleries</full_name>
|
1509 |
-
<docblock line="
|
1510 |
<description><![CDATA[Builds the $mla_galleries or $galleries array]]></description>
|
1511 |
<long-description><![CDATA[]]></long-description>
|
1512 |
-
<tag line="
|
1513 |
-
<tag line="
|
1514 |
<type by_reference="false">string</type>
|
1515 |
</tag>
|
1516 |
-
<tag line="
|
1517 |
<type by_reference="false">array</type>
|
1518 |
</tag>
|
1519 |
-
<tag line="
|
1520 |
<type by_reference="false">string</type>
|
1521 |
</tag>
|
1522 |
-
<tag line="
|
1523 |
<type by_reference="false">boolean</type>
|
1524 |
</tag>
|
1525 |
-
<tag line="
|
1526 |
<type by_reference="false">boolean</type>
|
1527 |
</tag>
|
1528 |
</docblock>
|
1529 |
-
<argument line="
|
1530 |
<name>$option_name</name>
|
1531 |
<default><![CDATA[]]></default>
|
1532 |
<type/>
|
1533 |
</argument>
|
1534 |
-
<argument line="
|
1535 |
<name>$galleries_array</name>
|
1536 |
<default><![CDATA[]]></default>
|
1537 |
<type/>
|
1538 |
</argument>
|
1539 |
-
<argument line="
|
1540 |
<name>$shortcode</name>
|
1541 |
<default><![CDATA[]]></default>
|
1542 |
<type/>
|
1543 |
</argument>
|
1544 |
-
<argument line="
|
1545 |
<name>$exclude_revisions</name>
|
1546 |
<default><![CDATA[]]></default>
|
1547 |
<type/>
|
1548 |
</argument>
|
1549 |
</method>
|
1550 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
1551 |
<name>_search_mla_galleries</name>
|
1552 |
<full_name>_search_mla_galleries</full_name>
|
1553 |
-
<docblock line="
|
1554 |
<description><![CDATA[Search the $mla_galleries or $galleries array]]></description>
|
1555 |
<long-description><![CDATA[]]></long-description>
|
1556 |
-
<tag line="
|
1557 |
-
<tag line="
|
1558 |
<type by_reference="false">array</type>
|
1559 |
</tag>
|
1560 |
-
<tag line="
|
1561 |
<type by_reference="false">int</type>
|
1562 |
</tag>
|
1563 |
-
<tag line="
|
1564 |
<type by_reference="false">array</type>
|
1565 |
</tag>
|
1566 |
</docblock>
|
1567 |
-
<argument line="
|
1568 |
<name>$galleries_array</name>
|
1569 |
<default><![CDATA[]]></default>
|
1570 |
<type/>
|
1571 |
</argument>
|
1572 |
-
<argument line="
|
1573 |
<name>$attachment_id</name>
|
1574 |
<default><![CDATA[]]></default>
|
1575 |
<type/>
|
1576 |
</argument>
|
1577 |
</method>
|
1578 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
1579 |
<name>_parse_pdf_xref_subsection</name>
|
1580 |
<full_name>_parse_pdf_xref_subsection</full_name>
|
1581 |
-
<docblock line="
|
1582 |
<description><![CDATA[Parse a cross-reference table subsection into the array of indirect object definitions]]></description>
|
1583 |
<long-description><![CDATA[<p>A cross-reference subsection is a sequence of 20-byte entries, each with offset and generation values.</p>]]></long-description>
|
1584 |
-
<tag line="
|
1585 |
-
<tag line="
|
1586 |
<type by_reference="false">string</type>
|
1587 |
</tag>
|
1588 |
-
<tag line="
|
1589 |
<type by_reference="false">integer</type>
|
1590 |
</tag>
|
1591 |
-
<tag line="
|
1592 |
<type by_reference="false">integer</type>
|
1593 |
</tag>
|
1594 |
-
<tag line="
|
1595 |
<type by_reference="false">integer</type>
|
1596 |
</tag>
|
1597 |
-
<tag line="
|
1598 |
<type by_reference="false">void</type>
|
1599 |
</tag>
|
1600 |
</docblock>
|
1601 |
-
<argument line="
|
1602 |
<name>$xref_section</name>
|
1603 |
<default><![CDATA[]]></default>
|
1604 |
<type/>
|
1605 |
</argument>
|
1606 |
-
<argument line="
|
1607 |
<name>$offset</name>
|
1608 |
<default><![CDATA[]]></default>
|
1609 |
<type/>
|
1610 |
</argument>
|
1611 |
-
<argument line="
|
1612 |
<name>$object_id</name>
|
1613 |
<default><![CDATA[]]></default>
|
1614 |
<type/>
|
1615 |
</argument>
|
1616 |
-
<argument line="
|
1617 |
<name>$count</name>
|
1618 |
<default><![CDATA[]]></default>
|
1619 |
<type/>
|
1620 |
</argument>
|
1621 |
</method>
|
1622 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
1623 |
<name>_parse_pdf_xref_section</name>
|
1624 |
<full_name>_parse_pdf_xref_section</full_name>
|
1625 |
-
<docblock line="
|
1626 |
<description><![CDATA[Parse a cross-reference table section into the array of indirect object definitions]]></description>
|
1627 |
<long-description><![CDATA[<p>Creates the array of indirect object offsets and lengths</p>]]></long-description>
|
1628 |
-
<tag line="
|
1629 |
-
<tag line="
|
1630 |
<type by_reference="false">string</type>
|
1631 |
</tag>
|
1632 |
-
<tag line="
|
1633 |
<type by_reference="false">integer</type>
|
1634 |
</tag>
|
1635 |
-
<tag line="
|
1636 |
<type by_reference="false">integer</type>
|
1637 |
</tag>
|
1638 |
</docblock>
|
1639 |
-
<argument line="
|
1640 |
<name>$file_name</name>
|
1641 |
<default><![CDATA[]]></default>
|
1642 |
<type/>
|
1643 |
</argument>
|
1644 |
-
<argument line="
|
1645 |
<name>$file_offset</name>
|
1646 |
<default><![CDATA[]]></default>
|
1647 |
<type/>
|
1648 |
</argument>
|
1649 |
</method>
|
1650 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
1651 |
<name>_parse_pdf_xref_stream</name>
|
1652 |
<full_name>_parse_pdf_xref_stream</full_name>
|
1653 |
-
<docblock line="
|
1654 |
<description><![CDATA[Parse a cross-reference steam into the array of indirect object definitions]]></description>
|
1655 |
<long-description><![CDATA[<p>Creates the array of indirect object offsets and lengths</p>]]></long-description>
|
1656 |
-
<tag line="
|
1657 |
-
<tag line="
|
1658 |
<type by_reference="false">string</type>
|
1659 |
</tag>
|
1660 |
-
<tag line="
|
1661 |
<type by_reference="false">integer</type>
|
1662 |
</tag>
|
1663 |
-
<tag line="
|
1664 |
<type by_reference="false">string</type>
|
1665 |
</tag>
|
1666 |
-
<tag line="
|
1667 |
<type by_reference="false">integer</type>
|
1668 |
</tag>
|
1669 |
</docblock>
|
1670 |
-
<argument line="
|
1671 |
<name>$file_name</name>
|
1672 |
<default><![CDATA[]]></default>
|
1673 |
<type/>
|
1674 |
</argument>
|
1675 |
-
<argument line="
|
1676 |
<name>$file_offset</name>
|
1677 |
<default><![CDATA[]]></default>
|
1678 |
<type/>
|
1679 |
</argument>
|
1680 |
-
<argument line="
|
1681 |
<name>$entry_parms_string</name>
|
1682 |
<default><![CDATA[]]></default>
|
1683 |
<type/>
|
1684 |
</argument>
|
1685 |
</method>
|
1686 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
1687 |
<name>_build_pdf_indirect_objects</name>
|
1688 |
<full_name>_build_pdf_indirect_objects</full_name>
|
1689 |
-
<docblock line="
|
1690 |
<description><![CDATA[Build an array of indirect object definitions]]></description>
|
1691 |
<long-description><![CDATA[<p>Creates the array of indirect object offsets and lengths</p>]]></long-description>
|
1692 |
-
<tag line="
|
1693 |
-
<tag line="
|
1694 |
<type by_reference="false">string</type>
|
1695 |
</tag>
|
1696 |
-
<tag line="
|
1697 |
<type by_reference="false">void</type>
|
1698 |
</tag>
|
1699 |
</docblock>
|
1700 |
-
<argument line="
|
1701 |
<name>$string</name>
|
1702 |
<default><![CDATA[]]></default>
|
1703 |
<type/>
|
1704 |
</argument>
|
1705 |
</method>
|
1706 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
1707 |
<name>_find_pdf_indirect_dictionary</name>
|
1708 |
<full_name>_find_pdf_indirect_dictionary</full_name>
|
1709 |
-
<docblock line="
|
1710 |
<description><![CDATA[Find the offset, length and contents of an indirect object containing a dictionary]]></description>
|
1711 |
<long-description><![CDATA[<p>The function searches the entire file, if necessary, to find the last/most recent copy of the object.
|
1712 |
This is required because Adobe Acrobat does NOT increment the generation number when it reuses an object.</p>]]></long-description>
|
1713 |
-
<tag line="
|
1714 |
-
<tag line="
|
1715 |
<type by_reference="false">string</type>
|
1716 |
</tag>
|
1717 |
-
<tag line="
|
1718 |
<type by_reference="false">integer</type>
|
1719 |
</tag>
|
1720 |
-
<tag line="
|
1721 |
<type by_reference="false">integer</type>
|
1722 |
</tag>
|
1723 |
-
<tag line="
|
1724 |
<type by_reference="false">mixed</type>
|
1725 |
</tag>
|
1726 |
</docblock>
|
1727 |
-
<argument line="
|
1728 |
<name>$file_name</name>
|
1729 |
<default><![CDATA[]]></default>
|
1730 |
<type/>
|
1731 |
</argument>
|
1732 |
-
<argument line="
|
1733 |
<name>$object</name>
|
1734 |
<default><![CDATA[]]></default>
|
1735 |
<type/>
|
1736 |
</argument>
|
1737 |
-
<argument line="
|
1738 |
<name>$generation</name>
|
1739 |
<default><![CDATA[0]]></default>
|
1740 |
<type/>
|
1741 |
</argument>
|
1742 |
</method>
|
1743 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
1744 |
<name>_parse_iso8601_date</name>
|
1745 |
<full_name>_parse_iso8601_date</full_name>
|
1746 |
-
<docblock line="
|
1747 |
<description><![CDATA[Parse a ISO 8601 Timestamp]]></description>
|
1748 |
<long-description><![CDATA[]]></long-description>
|
1749 |
-
<tag line="
|
1750 |
-
<tag line="
|
1751 |
<type by_reference="false">string</type>
|
1752 |
</tag>
|
1753 |
-
<tag line="
|
1754 |
<type by_reference="false">string</type>
|
1755 |
</tag>
|
1756 |
</docblock>
|
1757 |
-
<argument line="
|
1758 |
<name>$source_string</name>
|
1759 |
<default><![CDATA[]]></default>
|
1760 |
<type/>
|
1761 |
</argument>
|
1762 |
</method>
|
1763 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
1764 |
<name>_parse_pdf_date</name>
|
1765 |
<full_name>_parse_pdf_date</full_name>
|
1766 |
-
<docblock line="
|
1767 |
<description><![CDATA[Parse a PDF date string]]></description>
|
1768 |
<long-description><![CDATA[]]></long-description>
|
1769 |
-
<tag line="
|
1770 |
-
<tag line="
|
1771 |
<type by_reference="false">string</type>
|
1772 |
</tag>
|
1773 |
-
<tag line="
|
1774 |
<type by_reference="false">string</type>
|
1775 |
</tag>
|
1776 |
</docblock>
|
1777 |
-
<argument line="
|
1778 |
<name>$source_string</name>
|
1779 |
<default><![CDATA[]]></default>
|
1780 |
<type/>
|
1781 |
</argument>
|
1782 |
</method>
|
1783 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
1784 |
<name>_parse_pdf_UTF16BE</name>
|
1785 |
<full_name>_parse_pdf_UTF16BE</full_name>
|
1786 |
-
<docblock line="
|
1787 |
<description><![CDATA[Parse a PDF Unicode (16-bit Big Endian) object]]></description>
|
1788 |
<long-description><![CDATA[]]></long-description>
|
1789 |
-
<tag line="
|
1790 |
-
<tag line="
|
1791 |
<type by_reference="false">string</type>
|
1792 |
</tag>
|
1793 |
-
<tag line="
|
1794 |
<type by_reference="false">string</type>
|
1795 |
</tag>
|
1796 |
</docblock>
|
1797 |
-
<argument line="
|
1798 |
<name>$source_string</name>
|
1799 |
<default><![CDATA[]]></default>
|
1800 |
<type/>
|
1801 |
</argument>
|
1802 |
</method>
|
1803 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
1804 |
<name>_parse_pdf_string</name>
|
1805 |
<full_name>_parse_pdf_string</full_name>
|
1806 |
-
<docblock line="
|
1807 |
<description><![CDATA[Parse a PDF string object]]></description>
|
1808 |
<long-description><![CDATA[<p>Returns an array with one dictionary entry. The array also has a '/length' element containing
|
1809 |
the number of bytes occupied by the string in the source string, including the enclosing parentheses.</p>]]></long-description>
|
1810 |
-
<tag line="
|
1811 |
-
<tag line="
|
1812 |
<type by_reference="false">string</type>
|
1813 |
</tag>
|
1814 |
-
<tag line="
|
1815 |
<type by_reference="false">integer</type>
|
1816 |
</tag>
|
1817 |
-
<tag line="
|
1818 |
<type by_reference="false">array</type>
|
1819 |
</tag>
|
1820 |
</docblock>
|
1821 |
-
<argument line="
|
1822 |
<name>$source_string</name>
|
1823 |
<default><![CDATA[]]></default>
|
1824 |
<type/>
|
1825 |
</argument>
|
1826 |
-
<argument line="
|
1827 |
<name>$offset</name>
|
1828 |
<default><![CDATA[]]></default>
|
1829 |
<type/>
|
1830 |
</argument>
|
1831 |
</method>
|
1832 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
1833 |
<name>_parse_pdf_LPD_dictionary</name>
|
1834 |
<full_name>_parse_pdf_LPD_dictionary</full_name>
|
1835 |
-
<docblock line="
|
1836 |
<description><![CDATA[Parse a PDF Linearization Parameter Dictionary object]]></description>
|
1837 |
<long-description><![CDATA[<p>Returns an array of dictionary contents, classified by object type: boolean, numeric, string, hex (string),
|
1838 |
indirect (object), name, array, dictionary, stream, and null.
|
1839 |
The array also has a '/length' element containing the number of bytes occupied by the
|
1840 |
dictionary in the source string, excluding the enclosing delimiters, if passed in.</p>]]></long-description>
|
1841 |
-
<tag line="
|
1842 |
-
<tag line="
|
1843 |
<type by_reference="false">string</type>
|
1844 |
</tag>
|
1845 |
-
<tag line="
|
1846 |
<type by_reference="false">integer</type>
|
1847 |
</tag>
|
1848 |
-
<tag line="
|
1849 |
<type by_reference="false">mixed</type>
|
1850 |
</tag>
|
1851 |
</docblock>
|
1852 |
-
<argument line="
|
1853 |
<name>$source_string</name>
|
1854 |
<default><![CDATA[]]></default>
|
1855 |
<type/>
|
1856 |
</argument>
|
1857 |
-
<argument line="
|
1858 |
<name>$filesize</name>
|
1859 |
<default><![CDATA[]]></default>
|
1860 |
<type/>
|
1861 |
</argument>
|
1862 |
</method>
|
1863 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
1864 |
<name>_parse_pdf_dictionary</name>
|
1865 |
<full_name>_parse_pdf_dictionary</full_name>
|
1866 |
-
<docblock line="
|
1867 |
<description><![CDATA[Parse a PDF dictionary object]]></description>
|
1868 |
<long-description><![CDATA[<p>Returns an array of dictionary contents, classified by object type: boolean, numeric, string, hex (string),
|
1869 |
indirect (object), name, array, dictionary, stream, and null.
|
1870 |
The array also has a '/length' element containing the number of bytes occupied by the
|
1871 |
dictionary in the source string, excluding the enclosing delimiters.</p>]]></long-description>
|
1872 |
-
<tag line="
|
1873 |
-
<tag line="
|
1874 |
<type by_reference="false">string</type>
|
1875 |
</tag>
|
1876 |
-
<tag line="
|
1877 |
<type by_reference="false">integer</type>
|
1878 |
</tag>
|
1879 |
-
<tag line="
|
1880 |
<type by_reference="false">array</type>
|
1881 |
</tag>
|
1882 |
</docblock>
|
1883 |
-
<argument line="
|
1884 |
<name>$source_string</name>
|
1885 |
<default><![CDATA[]]></default>
|
1886 |
<type/>
|
1887 |
</argument>
|
1888 |
-
<argument line="
|
1889 |
<name>$offset</name>
|
1890 |
<default><![CDATA[]]></default>
|
1891 |
<type/>
|
1892 |
</argument>
|
1893 |
</method>
|
1894 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
1895 |
<name>_parse_xmp_metadata</name>
|
1896 |
<full_name>_parse_xmp_metadata</full_name>
|
1897 |
-
<docblock line="
|
1898 |
<description><![CDATA[Parse an XMP object]]></description>
|
1899 |
<long-description><![CDATA[<p>Returns an array of dictionary contents, classified by object type: boolean, numeric, string, hex (string),
|
1900 |
indirect (object), name, array, dictionary, stream, and null.
|
1901 |
The array also has a '/length' element containing the number of bytes occupied by the
|
1902 |
dictionary in the source string, excluding the enclosing delimiters, if passed in.</p>]]></long-description>
|
1903 |
-
<tag line="
|
1904 |
-
<tag line="
|
1905 |
<type by_reference="false">string</type>
|
1906 |
</tag>
|
1907 |
-
<tag line="
|
1908 |
<type by_reference="false">integer</type>
|
1909 |
</tag>
|
1910 |
-
<tag line="
|
1911 |
<type by_reference="false">mixed</type>
|
1912 |
</tag>
|
1913 |
</docblock>
|
1914 |
-
<argument line="
|
1915 |
<name>$file_name</name>
|
1916 |
<default><![CDATA[]]></default>
|
1917 |
<type/>
|
1918 |
</argument>
|
1919 |
-
<argument line="
|
1920 |
<name>$file_offset</name>
|
1921 |
<default><![CDATA[]]></default>
|
1922 |
<type/>
|
1923 |
</argument>
|
1924 |
</method>
|
1925 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
1926 |
<name>_extract_pdf_trailer</name>
|
1927 |
<full_name>_extract_pdf_trailer</full_name>
|
1928 |
-
<docblock line="
|
1929 |
<description><![CDATA[Extract dictionary from traditional cross-reference + trailer documents]]></description>
|
1930 |
<long-description><![CDATA[]]></long-description>
|
1931 |
-
<tag line="
|
1932 |
-
<tag line="
|
1933 |
<type by_reference="false">string</type>
|
1934 |
</tag>
|
1935 |
-
<tag line="
|
1936 |
<type by_reference="false">integer</type>
|
1937 |
</tag>
|
1938 |
-
<tag line="
|
1939 |
<type by_reference="false">mixed</type>
|
1940 |
</tag>
|
1941 |
</docblock>
|
1942 |
-
<argument line="
|
1943 |
<name>$file_name</name>
|
1944 |
<default><![CDATA[]]></default>
|
1945 |
<type/>
|
1946 |
</argument>
|
1947 |
-
<argument line="
|
1948 |
<name>$file_offset</name>
|
1949 |
<default><![CDATA[]]></default>
|
1950 |
<type/>
|
1951 |
</argument>
|
1952 |
</method>
|
1953 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
1954 |
<name>_extract_pdf_metadata</name>
|
1955 |
<full_name>_extract_pdf_metadata</full_name>
|
1956 |
-
<docblock line="
|
1957 |
<description><![CDATA[Extract Metadata from a PDF file]]></description>
|
1958 |
<long-description><![CDATA[]]></long-description>
|
1959 |
-
<tag line="
|
1960 |
-
<tag line="
|
1961 |
<type by_reference="false">string</type>
|
1962 |
</tag>
|
1963 |
-
<tag line="
|
1964 |
<type by_reference="false">array</type>
|
1965 |
</tag>
|
1966 |
</docblock>
|
1967 |
-
<argument line="
|
1968 |
<name>$file_name</name>
|
1969 |
<default><![CDATA[]]></default>
|
1970 |
<type/>
|
1971 |
</argument>
|
1972 |
</method>
|
1973 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
1974 |
<name>_bin_to_utf8</name>
|
1975 |
<full_name>_bin_to_utf8</full_name>
|
1976 |
-
<docblock line="
|
1977 |
<description><![CDATA[Replace SQL incorrect characters (0x80 - 0xFF) with their UTF-8 equivalents]]></description>
|
1978 |
<long-description><![CDATA[]]></long-description>
|
1979 |
-
<tag line="
|
1980 |
-
<tag line="
|
1981 |
<type by_reference="false">string</type>
|
1982 |
</tag>
|
1983 |
-
<tag line="
|
1984 |
<type by_reference="false">string</type>
|
1985 |
</tag>
|
1986 |
</docblock>
|
1987 |
-
<argument line="
|
1988 |
<name>$string</name>
|
1989 |
<default><![CDATA[]]></default>
|
1990 |
<type/>
|
1991 |
</argument>
|
1992 |
</method>
|
1993 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
1994 |
<name>mla_iptc_metadata_value</name>
|
1995 |
<full_name>mla_iptc_metadata_value</full_name>
|
1996 |
-
<docblock line="
|
1997 |
<description><![CDATA[Parse one IPTC metadata field]]></description>
|
1998 |
<long-description><![CDATA[]]></long-description>
|
1999 |
-
<tag line="
|
2000 |
-
<tag line="
|
2001 |
<type by_reference="false">string</type>
|
2002 |
</tag>
|
2003 |
-
<tag line="
|
2004 |
<type by_reference="false">string</type>
|
2005 |
</tag>
|
2006 |
-
<tag line="
|
2007 |
<type by_reference="false">mixed</type>
|
2008 |
</tag>
|
2009 |
</docblock>
|
2010 |
-
<argument line="
|
2011 |
<name>$iptc_key</name>
|
2012 |
<default><![CDATA[]]></default>
|
2013 |
<type/>
|
2014 |
</argument>
|
2015 |
-
<argument line="
|
2016 |
<name>$item_metadata</name>
|
2017 |
<default><![CDATA[]]></default>
|
2018 |
<type/>
|
2019 |
</argument>
|
2020 |
</method>
|
2021 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
2022 |
<name>mla_exif_metadata_value</name>
|
2023 |
<full_name>mla_exif_metadata_value</full_name>
|
2024 |
-
<docblock line="
|
2025 |
<description><![CDATA[Parse one EXIF metadata field]]></description>
|
2026 |
<long-description><![CDATA[<p>Also handles the special pseudo-values 'ALL_EXIF' and 'ALL_IPTC'.</p>]]></long-description>
|
2027 |
-
<tag line="
|
2028 |
-
<tag line="
|
2029 |
<type by_reference="false">string</type>
|
2030 |
</tag>
|
2031 |
-
<tag line="
|
2032 |
<type by_reference="false">string</type>
|
2033 |
</tag>
|
2034 |
-
<tag line="
|
2035 |
<type by_reference="false">mixed</type>
|
2036 |
</tag>
|
2037 |
</docblock>
|
2038 |
-
<argument line="
|
2039 |
<name>$exif_key</name>
|
2040 |
<default><![CDATA[]]></default>
|
2041 |
<type/>
|
2042 |
</argument>
|
2043 |
-
<argument line="
|
2044 |
<name>$item_metadata</name>
|
2045 |
<default><![CDATA[]]></default>
|
2046 |
<type/>
|
2047 |
</argument>
|
2048 |
</method>
|
2049 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
2050 |
<name>mla_pdf_metadata_value</name>
|
2051 |
<full_name>mla_pdf_metadata_value</full_name>
|
2052 |
-
<docblock line="
|
2053 |
<description><![CDATA[Parse one PDF metadata field]]></description>
|
2054 |
<long-description><![CDATA[<p>Also handles the special pseudo-value 'ALL_PDF'.</p>]]></long-description>
|
2055 |
-
<tag line="
|
2056 |
-
<tag line="
|
2057 |
<type by_reference="false">string</type>
|
2058 |
</tag>
|
2059 |
-
<tag line="
|
2060 |
<type by_reference="false">string</type>
|
2061 |
</tag>
|
2062 |
-
<tag line="
|
2063 |
<type by_reference="false">mixed</type>
|
2064 |
</tag>
|
2065 |
</docblock>
|
2066 |
-
<argument line="
|
2067 |
<name>$pdf_key</name>
|
2068 |
<default><![CDATA[]]></default>
|
2069 |
<type/>
|
2070 |
</argument>
|
2071 |
-
<argument line="
|
2072 |
<name>$item_metadata</name>
|
2073 |
<default><![CDATA[]]></default>
|
2074 |
<type/>
|
2075 |
</argument>
|
2076 |
</method>
|
2077 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
2078 |
<name>_rational_to_decimal</name>
|
2079 |
<full_name>_rational_to_decimal</full_name>
|
2080 |
-
<docblock line="
|
2081 |
<description><![CDATA[Convert an EXIF GPS rational value to a PHP float value]]></description>
|
2082 |
<long-description><![CDATA[]]></long-description>
|
2083 |
-
<tag line="
|
2084 |
-
<tag line="
|
2085 |
<type by_reference="false">array</type>
|
2086 |
</tag>
|
2087 |
-
<tag line="
|
2088 |
<type by_reference="false">float</type>
|
2089 |
</tag>
|
2090 |
</docblock>
|
2091 |
-
<argument line="
|
2092 |
<name>$rational</name>
|
2093 |
<default><![CDATA[]]></default>
|
2094 |
<type/>
|
2095 |
</argument>
|
2096 |
</method>
|
2097 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
2098 |
<name>mla_IPTC_EXIF_error_handler</name>
|
2099 |
<full_name>mla_IPTC_EXIF_error_handler</full_name>
|
2100 |
-
<docblock line="
|
2101 |
<description><![CDATA[Intercept IPTC and EXIF parse errors]]></description>
|
2102 |
<long-description><![CDATA[]]></long-description>
|
2103 |
-
<tag line="
|
2104 |
-
<tag line="
|
2105 |
<type by_reference="false">int</type>
|
2106 |
</tag>
|
2107 |
-
<tag line="
|
2108 |
<type by_reference="false">string</type>
|
2109 |
</tag>
|
2110 |
-
<tag line="
|
2111 |
<type by_reference="false">string</type>
|
2112 |
</tag>
|
2113 |
-
<tag line="
|
2114 |
<type by_reference="false">int</type>
|
2115 |
</tag>
|
2116 |
-
<tag line="
|
2117 |
<type by_reference="false">boolean</type>
|
2118 |
</tag>
|
2119 |
</docblock>
|
2120 |
-
<argument line="
|
2121 |
<name>$type</name>
|
2122 |
<default><![CDATA[]]></default>
|
2123 |
<type/>
|
2124 |
</argument>
|
2125 |
-
<argument line="
|
2126 |
<name>$string</name>
|
2127 |
<default><![CDATA[]]></default>
|
2128 |
<type/>
|
2129 |
</argument>
|
2130 |
-
<argument line="
|
2131 |
<name>$file</name>
|
2132 |
<default><![CDATA[]]></default>
|
2133 |
<type/>
|
2134 |
</argument>
|
2135 |
-
<argument line="
|
2136 |
<name>$line</name>
|
2137 |
<default><![CDATA[]]></default>
|
2138 |
<type/>
|
2139 |
</argument>
|
2140 |
</method>
|
2141 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
2142 |
<name>mla_fetch_attachment_image_metadata</name>
|
2143 |
<full_name>mla_fetch_attachment_image_metadata</full_name>
|
2144 |
-
<docblock line="
|
2145 |
<description><![CDATA[Fetch and filter IPTC and EXIF or PDF metadata for an image attachment]]></description>
|
2146 |
<long-description><![CDATA[]]></long-description>
|
2147 |
-
<tag line="
|
2148 |
-
<tag line="
|
2149 |
<type by_reference="false">int</type>
|
2150 |
</tag>
|
2151 |
-
<tag line="
|
2152 |
<type by_reference="false">string</type>
|
2153 |
</tag>
|
2154 |
-
<tag line="
|
2155 |
<type by_reference="false">array</type>
|
2156 |
</tag>
|
2157 |
</docblock>
|
2158 |
-
<argument line="
|
2159 |
<name>$post_id</name>
|
2160 |
<default><![CDATA[]]></default>
|
2161 |
<type/>
|
2162 |
</argument>
|
2163 |
-
<argument line="
|
2164 |
<name>$path</name>
|
2165 |
<default><![CDATA['']]></default>
|
2166 |
<type/>
|
2167 |
</argument>
|
2168 |
</method>
|
2169 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
2170 |
<name>mla_update_wp_attachment_metadata</name>
|
2171 |
<full_name>mla_update_wp_attachment_metadata</full_name>
|
2172 |
-
<docblock line="
|
2173 |
<description><![CDATA[Update "meta:" data for a single attachment]]></description>
|
2174 |
<long-description><![CDATA[]]></long-description>
|
2175 |
-
<tag line="
|
2176 |
-
<tag line="
|
2177 |
<type by_reference="false">array</type>
|
2178 |
</tag>
|
2179 |
-
<tag line="
|
2180 |
<type by_reference="false">array</type>
|
2181 |
</tag>
|
2182 |
-
<tag line="
|
2183 |
<type by_reference="false">string</type>
|
2184 |
</tag>
|
2185 |
</docblock>
|
2186 |
-
<argument line="
|
2187 |
<name>$current_values</name>
|
2188 |
<default><![CDATA[]]></default>
|
2189 |
<type/>
|
2190 |
</argument>
|
2191 |
-
<argument line="
|
2192 |
<name>$new_meta</name>
|
2193 |
<default><![CDATA[]]></default>
|
2194 |
<type/>
|
2195 |
</argument>
|
2196 |
</method>
|
2197 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
2198 |
<name>mla_update_item_postmeta</name>
|
2199 |
<full_name>mla_update_item_postmeta</full_name>
|
2200 |
-
<docblock line="
|
2201 |
<description><![CDATA[Update custom field and "meta:" data for a single attachment]]></description>
|
2202 |
<long-description><![CDATA[]]></long-description>
|
2203 |
-
<tag line="
|
2204 |
-
<tag line="
|
2205 |
<type by_reference="false">int</type>
|
2206 |
</tag>
|
2207 |
-
<tag line="
|
2208 |
<type by_reference="false">array</type>
|
2209 |
</tag>
|
2210 |
-
<tag line="
|
2211 |
<type by_reference="false">string</type>
|
2212 |
</tag>
|
2213 |
</docblock>
|
2214 |
-
<argument line="
|
2215 |
<name>$post_id</name>
|
2216 |
<default><![CDATA[]]></default>
|
2217 |
<type/>
|
2218 |
</argument>
|
2219 |
-
<argument line="
|
2220 |
<name>$new_meta</name>
|
2221 |
<default><![CDATA[]]></default>
|
2222 |
<type/>
|
2223 |
</argument>
|
2224 |
</method>
|
2225 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
2226 |
<name>mla_update_single_item</name>
|
2227 |
<full_name>mla_update_single_item</full_name>
|
2228 |
-
<docblock line="
|
2229 |
<description><![CDATA[Update a single item; change the "post" data, taxonomy terms
|
2230 |
and meta data for a single attachment]]></description>
|
2231 |
<long-description><![CDATA[]]></long-description>
|
2232 |
-
<tag line="
|
2233 |
-
<tag line="
|
2234 |
<type by_reference="false">int</type>
|
2235 |
</tag>
|
2236 |
-
<tag line="
|
2237 |
<type by_reference="false">array</type>
|
2238 |
</tag>
|
2239 |
-
<tag line="
|
2240 |
<type by_reference="false">array</type>
|
2241 |
</tag>
|
2242 |
-
<tag line="
|
2243 |
<type by_reference="false">array</type>
|
2244 |
</tag>
|
2245 |
-
<tag line="
|
2246 |
<type by_reference="false">array</type>
|
2247 |
</tag>
|
2248 |
</docblock>
|
2249 |
-
<argument line="
|
2250 |
<name>$post_id</name>
|
2251 |
<default><![CDATA[]]></default>
|
2252 |
<type/>
|
2253 |
</argument>
|
2254 |
-
<argument line="
|
2255 |
<name>$new_data</name>
|
2256 |
<default><![CDATA[]]></default>
|
2257 |
<type/>
|
2258 |
</argument>
|
2259 |
-
<argument line="
|
2260 |
<name>$tax_input</name>
|
2261 |
<default><![CDATA[NULL]]></default>
|
2262 |
<type/>
|
2263 |
</argument>
|
2264 |
-
<argument line="
|
2265 |
<name>$tax_actions</name>
|
2266 |
<default><![CDATA[NULL]]></default>
|
2267 |
<type/>
|
2268 |
</argument>
|
2269 |
</method>
|
2270 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
2271 |
<name>_remove_tags</name>
|
2272 |
<full_name>_remove_tags</full_name>
|
2273 |
-
<docblock line="
|
2274 |
<description><![CDATA[Remove tags from a term ids list]]></description>
|
2275 |
<long-description><![CDATA[]]></long-description>
|
2276 |
-
<tag line="
|
2277 |
-
<tag line="
|
2278 |
<type by_reference="false">array</type>
|
2279 |
</tag>
|
2280 |
-
<tag line="
|
2281 |
<type by_reference="false">array</type>
|
2282 |
</tag>
|
2283 |
-
<tag line="
|
2284 |
<type by_reference="false">object</type>
|
2285 |
</tag>
|
2286 |
-
<tag line="
|
2287 |
<type by_reference="false">array</type>
|
2288 |
</tag>
|
2289 |
</docblock>
|
2290 |
-
<argument line="
|
2291 |
<name>$terms_before</name>
|
2292 |
<default><![CDATA[]]></default>
|
2293 |
<type/>
|
2294 |
</argument>
|
2295 |
-
<argument line="
|
2296 |
<name>$tags</name>
|
2297 |
<default><![CDATA[]]></default>
|
2298 |
<type/>
|
2299 |
</argument>
|
2300 |
-
<argument line="
|
2301 |
<name>$taxonomy_obj</name>
|
2302 |
<default><![CDATA[]]></default>
|
2303 |
<type/>
|
2304 |
</argument>
|
2305 |
</method>
|
2306 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
2307 |
<name>_hex_dump</name>
|
2308 |
<full_name>_hex_dump</full_name>
|
2309 |
-
<docblock line="
|
2310 |
<description><![CDATA[Format printable version of binary data]]></description>
|
2311 |
<long-description><![CDATA[]]></long-description>
|
2312 |
-
<tag line="
|
2313 |
-
<tag line="
|
2314 |
<type by_reference="false">string</type>
|
2315 |
</tag>
|
2316 |
-
<tag line="
|
2317 |
<type by_reference="false">integer</type>
|
2318 |
</tag>
|
2319 |
-
<tag line="
|
2320 |
<type by_reference="false">\intger</type>
|
2321 |
</tag>
|
2322 |
-
<tag line="
|
2323 |
<type by_reference="false">integer</type>
|
2324 |
</tag>
|
2325 |
-
<tag line="
|
2326 |
<type by_reference="false">string</type>
|
2327 |
</tag>
|
2328 |
</docblock>
|
2329 |
-
<argument line="
|
2330 |
<name>$data</name>
|
2331 |
<default><![CDATA[]]></default>
|
2332 |
<type/>
|
2333 |
</argument>
|
2334 |
-
<argument line="
|
2335 |
<name>$limit</name>
|
2336 |
<default><![CDATA[0]]></default>
|
2337 |
<type/>
|
2338 |
</argument>
|
2339 |
-
<argument line="
|
2340 |
<name>$bytes_per_row</name>
|
2341 |
<default><![CDATA[16]]></default>
|
2342 |
<type/>
|
2343 |
</argument>
|
2344 |
-
<argument line="
|
2345 |
<name>$offset</name>
|
2346 |
<default><![CDATA[-1]]></default>
|
2347 |
<type/>
|
@@ -2349,10 +2545,10 @@ and meta data for a single attachment]]></description>
|
|
2349 |
</method>
|
2350 |
</class>
|
2351 |
<markers>
|
2352 |
-
<todo line="
|
2353 |
</markers>
|
2354 |
</file>
|
2355 |
-
<file path="includes\class-mla-edit-media.php" hash="
|
2356 |
<docblock line="2">
|
2357 |
<description><![CDATA[Media Library Assistant Edit Media screen enhancements]]></description>
|
2358 |
<long-description><![CDATA[]]></long-description>
|
@@ -2408,15 +2604,15 @@ and meta data for a single attachment]]></description>
|
|
2408 |
</tag>
|
2409 |
</docblock>
|
2410 |
</constant>
|
2411 |
-
<property final="false" static="true" visibility="private" line="
|
2412 |
<name>$mla_references</name>
|
2413 |
<default><![CDATA[null]]></default>
|
2414 |
-
<docblock line="
|
2415 |
<description><![CDATA[Where-used values for the current item]]></description>
|
2416 |
<long-description><![CDATA[<p>This array contains the Featured/Inserted/Gallery/MLA Gallery references for the item.
|
2417 |
The array is built once each page load and cached for subsequent calls.</p>]]></long-description>
|
2418 |
-
<tag line="
|
2419 |
-
<tag line="
|
2420 |
<type by_reference="false">array</type>
|
2421 |
</tag>
|
2422 |
</docblock>
|
@@ -2465,405 +2661,405 @@ The array is built once each page load and cached for subsequent calls.</p>]]></
|
|
2465 |
<type/>
|
2466 |
</argument>
|
2467 |
</method>
|
2468 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
2469 |
<name>mla_post_updated_messages_filter</name>
|
2470 |
<full_name>mla_post_updated_messages_filter</full_name>
|
2471 |
-
<docblock line="
|
2472 |
<description><![CDATA[Adds mapping update messages for display at the top of the Edit Media screen.]]></description>
|
2473 |
<long-description><![CDATA[<p>Declared public because it is a filter.</p>]]></long-description>
|
2474 |
-
<tag line="
|
2475 |
-
<tag line="
|
2476 |
<type by_reference="false">array</type>
|
2477 |
</tag>
|
2478 |
-
<tag line="
|
2479 |
<type by_reference="false">array</type>
|
2480 |
</tag>
|
2481 |
</docblock>
|
2482 |
-
<argument line="
|
2483 |
<name>$messages</name>
|
2484 |
<default><![CDATA[]]></default>
|
2485 |
<type/>
|
2486 |
</argument>
|
2487 |
</method>
|
2488 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
2489 |
<name>mla_attachment_submitbox_action</name>
|
2490 |
<full_name>mla_attachment_submitbox_action</full_name>
|
2491 |
-
<docblock line="
|
2492 |
<description><![CDATA[Adds Last Modified date to the Submit box on the Edit Media screen.]]></description>
|
2493 |
<long-description><![CDATA[<p>Declared public because it is an action.</p>]]></long-description>
|
2494 |
-
<tag line="
|
2495 |
-
<tag line="
|
2496 |
<type by_reference="false">void</type>
|
2497 |
</tag>
|
2498 |
</docblock>
|
2499 |
</method>
|
2500 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
2501 |
<name>mla_add_meta_boxes_action</name>
|
2502 |
<full_name>mla_add_meta_boxes_action</full_name>
|
2503 |
-
<docblock line="
|
2504 |
<description><![CDATA[Registers meta boxes for the Edit Media screen.]]></description>
|
2505 |
<long-description><![CDATA[<p>Declared public because it is an action.</p>]]></long-description>
|
2506 |
-
<tag line="
|
2507 |
-
<tag line="
|
2508 |
<type by_reference="false">string</type>
|
2509 |
</tag>
|
2510 |
-
<tag line="
|
2511 |
<type by_reference="false">object</type>
|
2512 |
</tag>
|
2513 |
-
<tag line="
|
2514 |
<type by_reference="false">void</type>
|
2515 |
</tag>
|
2516 |
</docblock>
|
2517 |
-
<argument line="
|
2518 |
<name>$post_type</name>
|
2519 |
<default><![CDATA['unknown']]></default>
|
2520 |
<type/>
|
2521 |
</argument>
|
2522 |
-
<argument line="
|
2523 |
<name>$post</name>
|
2524 |
<default><![CDATA[NULL]]></default>
|
2525 |
<type/>
|
2526 |
</argument>
|
2527 |
</method>
|
2528 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
2529 |
<name>mla_edit_add_help_tab</name>
|
2530 |
<full_name>mla_edit_add_help_tab</full_name>
|
2531 |
-
<docblock line="
|
2532 |
<description><![CDATA[Add contextual help tabs to the WordPress Edit Media page]]></description>
|
2533 |
<long-description><![CDATA[]]></long-description>
|
2534 |
-
<tag line="
|
2535 |
-
<tag line="
|
2536 |
<type by_reference="false">string</type>
|
2537 |
</tag>
|
2538 |
-
<tag line="
|
2539 |
<type by_reference="false">string</type>
|
2540 |
</tag>
|
2541 |
-
<tag line="
|
2542 |
<type by_reference="false">void</type>
|
2543 |
</tag>
|
2544 |
</docblock>
|
2545 |
-
<argument line="
|
2546 |
<name>$admin_title</name>
|
2547 |
<default><![CDATA[]]></default>
|
2548 |
<type/>
|
2549 |
</argument>
|
2550 |
-
<argument line="
|
2551 |
<name>$title</name>
|
2552 |
<default><![CDATA[]]></default>
|
2553 |
<type/>
|
2554 |
</argument>
|
2555 |
</method>
|
2556 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
2557 |
<name>mla_parent_info_handler</name>
|
2558 |
<full_name>mla_parent_info_handler</full_name>
|
2559 |
-
<docblock line="
|
2560 |
<description><![CDATA[Renders the Parent Info meta box on the Edit Media page.]]></description>
|
2561 |
<long-description><![CDATA[<p>Declared public because it is a callback function.</p>]]></long-description>
|
2562 |
-
<tag line="
|
2563 |
-
<tag line="
|
2564 |
<type by_reference="false">object</type>
|
2565 |
</tag>
|
2566 |
-
<tag line="
|
2567 |
<type by_reference="false">void</type>
|
2568 |
</tag>
|
2569 |
</docblock>
|
2570 |
-
<argument line="
|
2571 |
<name>$post</name>
|
2572 |
<default><![CDATA[]]></default>
|
2573 |
<type/>
|
2574 |
</argument>
|
2575 |
</method>
|
2576 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
2577 |
<name>mla_menu_order_handler</name>
|
2578 |
<full_name>mla_menu_order_handler</full_name>
|
2579 |
-
<docblock line="
|
2580 |
<description><![CDATA[Renders the Menu Order meta box on the Edit Media page.]]></description>
|
2581 |
<long-description><![CDATA[<p>Declared public because it is a callback function.</p>]]></long-description>
|
2582 |
-
<tag line="
|
2583 |
-
<tag line="
|
2584 |
<type by_reference="false">object</type>
|
2585 |
</tag>
|
2586 |
-
<tag line="
|
2587 |
<type by_reference="false">void</type>
|
2588 |
</tag>
|
2589 |
</docblock>
|
2590 |
-
<argument line="
|
2591 |
<name>$post</name>
|
2592 |
<default><![CDATA[]]></default>
|
2593 |
<type/>
|
2594 |
</argument>
|
2595 |
</method>
|
2596 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
2597 |
<name>mla_image_metadata_handler</name>
|
2598 |
<full_name>mla_image_metadata_handler</full_name>
|
2599 |
-
<docblock line="
|
2600 |
<description><![CDATA[Renders the Image Metadata meta box on the Edit Media page.]]></description>
|
2601 |
<long-description><![CDATA[<p>Declared public because it is a callback function.</p>]]></long-description>
|
2602 |
-
<tag line="
|
2603 |
-
<tag line="
|
2604 |
<type by_reference="false">object</type>
|
2605 |
</tag>
|
2606 |
-
<tag line="
|
2607 |
<type by_reference="false">void</type>
|
2608 |
</tag>
|
2609 |
</docblock>
|
2610 |
-
<argument line="
|
2611 |
<name>$post</name>
|
2612 |
<default><![CDATA[]]></default>
|
2613 |
<type/>
|
2614 |
</argument>
|
2615 |
</method>
|
2616 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
2617 |
<name>mla_featured_in_handler</name>
|
2618 |
<full_name>mla_featured_in_handler</full_name>
|
2619 |
-
<docblock line="
|
2620 |
<description><![CDATA[Renders the Featured in meta box on the Edit Media page.]]></description>
|
2621 |
<long-description><![CDATA[<p>Declared public because it is a callback function.</p>]]></long-description>
|
2622 |
-
<tag line="
|
2623 |
-
<tag line="
|
2624 |
<type by_reference="false">object</type>
|
2625 |
</tag>
|
2626 |
-
<tag line="
|
2627 |
<type by_reference="false">void</type>
|
2628 |
</tag>
|
2629 |
</docblock>
|
2630 |
-
<argument line="
|
2631 |
<name>$post</name>
|
2632 |
<default><![CDATA[]]></default>
|
2633 |
<type/>
|
2634 |
</argument>
|
2635 |
</method>
|
2636 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
2637 |
<name>mla_inserted_in_handler</name>
|
2638 |
<full_name>mla_inserted_in_handler</full_name>
|
2639 |
-
<docblock line="
|
2640 |
<description><![CDATA[Renders the Inserted in meta box on the Edit Media page.]]></description>
|
2641 |
<long-description><![CDATA[<p>Declared public because it is a callback function.</p>]]></long-description>
|
2642 |
-
<tag line="
|
2643 |
-
<tag line="
|
2644 |
<type by_reference="false">object</type>
|
2645 |
</tag>
|
2646 |
-
<tag line="
|
2647 |
<type by_reference="false">void</type>
|
2648 |
</tag>
|
2649 |
</docblock>
|
2650 |
-
<argument line="
|
2651 |
<name>$post</name>
|
2652 |
<default><![CDATA[]]></default>
|
2653 |
<type/>
|
2654 |
</argument>
|
2655 |
</method>
|
2656 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
2657 |
<name>mla_gallery_in_handler</name>
|
2658 |
<full_name>mla_gallery_in_handler</full_name>
|
2659 |
-
<docblock line="
|
2660 |
<description><![CDATA[Renders the Gallery in meta box on the Edit Media page.]]></description>
|
2661 |
<long-description><![CDATA[<p>Declared public because it is a callback function.</p>]]></long-description>
|
2662 |
-
<tag line="
|
2663 |
-
<tag line="
|
2664 |
<type by_reference="false">object</type>
|
2665 |
</tag>
|
2666 |
-
<tag line="
|
2667 |
<type by_reference="false">void</type>
|
2668 |
</tag>
|
2669 |
</docblock>
|
2670 |
-
<argument line="
|
2671 |
<name>$post</name>
|
2672 |
<default><![CDATA[]]></default>
|
2673 |
<type/>
|
2674 |
</argument>
|
2675 |
</method>
|
2676 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
2677 |
<name>mla_mla_gallery_in_handler</name>
|
2678 |
<full_name>mla_mla_gallery_in_handler</full_name>
|
2679 |
-
<docblock line="
|
2680 |
-
<description><![CDATA[Renders the Gallery in meta box on the Edit Media page.]]></description>
|
2681 |
<long-description><![CDATA[<p>Declared public because it is a callback function.</p>]]></long-description>
|
2682 |
-
<tag line="
|
2683 |
-
<tag line="
|
2684 |
<type by_reference="false">object</type>
|
2685 |
</tag>
|
2686 |
-
<tag line="
|
2687 |
<type by_reference="false">void</type>
|
2688 |
</tag>
|
2689 |
</docblock>
|
2690 |
-
<argument line="
|
2691 |
<name>$post</name>
|
2692 |
<default><![CDATA[]]></default>
|
2693 |
<type/>
|
2694 |
</argument>
|
2695 |
</method>
|
2696 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
2697 |
<name>mla_edit_attachment_action</name>
|
2698 |
<full_name>mla_edit_attachment_action</full_name>
|
2699 |
-
<docblock line="
|
2700 |
<description><![CDATA[Saves updates from the Edit Media screen.]]></description>
|
2701 |
<long-description><![CDATA[<p>Declared public because it is an action.</p>]]></long-description>
|
2702 |
-
<tag line="
|
2703 |
-
<tag line="
|
2704 |
<type by_reference="false">integer</type>
|
2705 |
</tag>
|
2706 |
-
<tag line="
|
2707 |
<type by_reference="false">void</type>
|
2708 |
</tag>
|
2709 |
</docblock>
|
2710 |
-
<argument line="
|
2711 |
<name>$post_ID</name>
|
2712 |
<default><![CDATA[]]></default>
|
2713 |
<type/>
|
2714 |
</argument>
|
2715 |
</method>
|
2716 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
2717 |
<name>_mla_ajax_add_flat_term</name>
|
2718 |
<full_name>_mla_ajax_add_flat_term</full_name>
|
2719 |
-
<docblock line="
|
2720 |
<description><![CDATA[Add flat taxonomy term from "checklist" meta box on the Media Manager Modal Window]]></description>
|
2721 |
<long-description><![CDATA[<p>Adapted from the WordPress post_categories_meta_box() in /wp-admin/includes/meta-boxes.php.</p>]]></long-description>
|
2722 |
-
<tag line="
|
2723 |
-
<tag line="
|
2724 |
<type by_reference="false">string</type>
|
2725 |
</tag>
|
2726 |
-
<tag line="
|
2727 |
<type by_reference="false">void</type>
|
2728 |
</tag>
|
2729 |
</docblock>
|
2730 |
-
<argument line="
|
2731 |
<name>$key</name>
|
2732 |
<default><![CDATA[]]></default>
|
2733 |
<type/>
|
2734 |
</argument>
|
2735 |
</method>
|
2736 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
2737 |
<name>mla_checklist_meta_box</name>
|
2738 |
<full_name>mla_checklist_meta_box</full_name>
|
2739 |
-
<docblock line="
|
2740 |
<description><![CDATA[Display taxonomy "checklist" form fields]]></description>
|
2741 |
<long-description><![CDATA[<p>Adapted from /wp-admin/includes/ajax-actions.php function _wp_ajax_add_hierarchical_term().
|
2742 |
Includes the "? Search" area to filter the term checklist by entering part
|
2743 |
or all of a word/phrase in the term label.
|
2744 |
Output to the Media/Edit Media screen and to the Media Manager Modal Window.</p>]]></long-description>
|
2745 |
-
<tag line="
|
2746 |
-
<tag line="
|
2747 |
<type by_reference="false">object</type>
|
2748 |
</tag>
|
2749 |
-
<tag line="
|
2750 |
<type by_reference="false">array</type>
|
2751 |
</tag>
|
2752 |
-
<tag line="
|
2753 |
<type by_reference="false">void</type>
|
2754 |
</tag>
|
2755 |
</docblock>
|
2756 |
-
<argument line="
|
2757 |
<name>$target_post</name>
|
2758 |
<default><![CDATA[]]></default>
|
2759 |
<type/>
|
2760 |
</argument>
|
2761 |
-
<argument line="
|
2762 |
<name>$box</name>
|
2763 |
<default><![CDATA[]]></default>
|
2764 |
<type/>
|
2765 |
</argument>
|
2766 |
</method>
|
2767 |
</class>
|
2768 |
-
<class final="false" abstract="false" namespace="global" line="
|
2769 |
<extends>\Walker_Category</extends>
|
2770 |
<name>MLA_Checklist_Walker</name>
|
2771 |
<full_name>\MLA_Checklist_Walker</full_name>
|
2772 |
-
<docblock line="
|
2773 |
<description><![CDATA[Class MLA (Media Library Assistant) Checklist Walker replaces term_id with slug in checklist output]]></description>
|
2774 |
<long-description><![CDATA[<p>This walker is used to build the meta boxes for flat taxonomies, e.g., Tags, Att. Tags.
|
2775 |
Class Walker_Category is defined in /wp-includes/category-template.php.
|
2776 |
Class Walker is defined in /wp-includes/class-wp-walker.php.</p>]]></long-description>
|
2777 |
-
<tag line="
|
2778 |
-
<tag line="
|
2779 |
</docblock>
|
2780 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
2781 |
<name>start_el</name>
|
2782 |
<full_name>start_el</full_name>
|
2783 |
-
<docblock line="
|
2784 |
<description><![CDATA[Start the element output.]]></description>
|
2785 |
<long-description><![CDATA[]]></long-description>
|
2786 |
-
<tag line="
|
2787 |
-
<tag line="
|
2788 |
-
<tag line="
|
2789 |
<type by_reference="false">string</type>
|
2790 |
</tag>
|
2791 |
-
<tag line="
|
2792 |
<type by_reference="false">object</type>
|
2793 |
</tag>
|
2794 |
-
<tag line="
|
2795 |
<type by_reference="false">int</type>
|
2796 |
</tag>
|
2797 |
-
<tag line="
|
2798 |
<type by_reference="false">array</type>
|
2799 |
</tag>
|
2800 |
-
<tag line="
|
2801 |
<type by_reference="false">int</type>
|
2802 |
</tag>
|
2803 |
</docblock>
|
2804 |
-
<argument line="
|
2805 |
<name>$output</name>
|
2806 |
<default><![CDATA[]]></default>
|
2807 |
<type/>
|
2808 |
</argument>
|
2809 |
-
<argument line="
|
2810 |
<name>$taxonomy_object</name>
|
2811 |
<default><![CDATA[]]></default>
|
2812 |
<type/>
|
2813 |
</argument>
|
2814 |
-
<argument line="
|
2815 |
<name>$depth</name>
|
2816 |
<default><![CDATA[0]]></default>
|
2817 |
<type/>
|
2818 |
</argument>
|
2819 |
-
<argument line="
|
2820 |
<name>$args</name>
|
2821 |
<default><![CDATA[array()]]></default>
|
2822 |
<type/>
|
2823 |
</argument>
|
2824 |
-
<argument line="
|
2825 |
<name>$id</name>
|
2826 |
<default><![CDATA[0]]></default>
|
2827 |
<type/>
|
2828 |
</argument>
|
2829 |
</method>
|
2830 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
2831 |
<name>end_el</name>
|
2832 |
<full_name>end_el</full_name>
|
2833 |
-
<docblock line="
|
2834 |
<description><![CDATA[Ends the element output, if needed.]]></description>
|
2835 |
<long-description><![CDATA[]]></long-description>
|
2836 |
-
<tag line="
|
2837 |
-
<tag line="
|
2838 |
-
<tag line="
|
2839 |
<type by_reference="false">string</type>
|
2840 |
</tag>
|
2841 |
-
<tag line="
|
2842 |
<type by_reference="false">object</type>
|
2843 |
</tag>
|
2844 |
-
<tag line="
|
2845 |
<type by_reference="false">int</type>
|
2846 |
</tag>
|
2847 |
-
<tag line="
|
2848 |
<type by_reference="false">array</type>
|
2849 |
</tag>
|
2850 |
</docblock>
|
2851 |
-
<argument line="
|
2852 |
<name>$output</name>
|
2853 |
<default><![CDATA[]]></default>
|
2854 |
<type/>
|
2855 |
</argument>
|
2856 |
-
<argument line="
|
2857 |
<name>$category</name>
|
2858 |
<default><![CDATA[]]></default>
|
2859 |
<type/>
|
2860 |
</argument>
|
2861 |
-
<argument line="
|
2862 |
<name>$depth</name>
|
2863 |
<default><![CDATA[0]]></default>
|
2864 |
<type/>
|
2865 |
</argument>
|
2866 |
-
<argument line="
|
2867 |
<name>$args</name>
|
2868 |
<default><![CDATA[array()]]></default>
|
2869 |
<type/>
|
@@ -2871,7 +3067,7 @@ Class Walker is defined in /wp-includes/class-wp-walker.php.</p>]]></long-descri
|
|
2871 |
</method>
|
2872 |
</class>
|
2873 |
</file>
|
2874 |
-
<file path="includes\class-mla-list-table.php" hash="
|
2875 |
<docblock line="2">
|
2876 |
<description><![CDATA[Media Library Assistant extended List Table class]]></description>
|
2877 |
<long-description><![CDATA[]]></long-description>
|
@@ -3298,654 +3494,654 @@ is given special treatment when columns are processed.</p>]]></long-description>
|
|
3298 |
<type/>
|
3299 |
</argument>
|
3300 |
</method>
|
3301 |
-
<method final="false" abstract="false" static="false" visibility="private" namespace="global" line="
|
3302 |
<name>_build_rollover_actions</name>
|
3303 |
<full_name>_build_rollover_actions</full_name>
|
3304 |
-
<docblock line="
|
3305 |
<description><![CDATA[Add rollover actions to exactly one of the following displayed columns:
|
3306 |
'ID_parent', 'title_name', 'post_title', 'post_name']]></description>
|
3307 |
<long-description><![CDATA[]]></long-description>
|
3308 |
-
<tag line="
|
3309 |
-
<tag line="
|
3310 |
<type by_reference="false">object</type>
|
3311 |
</tag>
|
3312 |
-
<tag line="
|
3313 |
<type by_reference="false">string</type>
|
3314 |
</tag>
|
3315 |
-
<tag line="
|
3316 |
<type by_reference="false">array</type>
|
3317 |
</tag>
|
3318 |
</docblock>
|
3319 |
-
<argument line="
|
3320 |
<name>$item</name>
|
3321 |
<default><![CDATA[]]></default>
|
3322 |
<type/>
|
3323 |
</argument>
|
3324 |
-
<argument line="
|
3325 |
<name>$column</name>
|
3326 |
<default><![CDATA[]]></default>
|
3327 |
<type/>
|
3328 |
</argument>
|
3329 |
</method>
|
3330 |
-
<method final="false" abstract="false" static="false" visibility="private" namespace="global" line="
|
3331 |
<name>_build_inline_data</name>
|
3332 |
<full_name>_build_inline_data</full_name>
|
3333 |
-
<docblock line="
|
3334 |
<description><![CDATA[Add hidden fields with the data for use in the inline editor]]></description>
|
3335 |
<long-description><![CDATA[]]></long-description>
|
3336 |
-
<tag line="
|
3337 |
-
<tag line="
|
3338 |
<type by_reference="false">object</type>
|
3339 |
</tag>
|
3340 |
-
<tag line="
|
3341 |
<type by_reference="false">string</type>
|
3342 |
</tag>
|
3343 |
</docblock>
|
3344 |
-
<argument line="
|
3345 |
<name>$item</name>
|
3346 |
<default><![CDATA[]]></default>
|
3347 |
<type/>
|
3348 |
</argument>
|
3349 |
</method>
|
3350 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3351 |
<name>column_ID_parent</name>
|
3352 |
<full_name>column_ID_parent</full_name>
|
3353 |
-
<docblock line="
|
3354 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3355 |
<long-description><![CDATA[]]></long-description>
|
3356 |
-
<tag line="
|
3357 |
-
<tag line="
|
3358 |
<type by_reference="false">array</type>
|
3359 |
</tag>
|
3360 |
-
<tag line="
|
3361 |
<type by_reference="false">string</type>
|
3362 |
</tag>
|
3363 |
</docblock>
|
3364 |
-
<argument line="
|
3365 |
<name>$item</name>
|
3366 |
<default><![CDATA[]]></default>
|
3367 |
<type/>
|
3368 |
</argument>
|
3369 |
</method>
|
3370 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3371 |
<name>column_title_name</name>
|
3372 |
<full_name>column_title_name</full_name>
|
3373 |
-
<docblock line="
|
3374 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3375 |
<long-description><![CDATA[]]></long-description>
|
3376 |
-
<tag line="
|
3377 |
-
<tag line="
|
3378 |
<type by_reference="false">array</type>
|
3379 |
</tag>
|
3380 |
-
<tag line="
|
3381 |
<type by_reference="false">string</type>
|
3382 |
</tag>
|
3383 |
</docblock>
|
3384 |
-
<argument line="
|
3385 |
<name>$item</name>
|
3386 |
<default><![CDATA[]]></default>
|
3387 |
<type/>
|
3388 |
</argument>
|
3389 |
</method>
|
3390 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3391 |
<name>column_post_title</name>
|
3392 |
<full_name>column_post_title</full_name>
|
3393 |
-
<docblock line="
|
3394 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3395 |
<long-description><![CDATA[]]></long-description>
|
3396 |
-
<tag line="
|
3397 |
-
<tag line="
|
3398 |
<type by_reference="false">array</type>
|
3399 |
</tag>
|
3400 |
-
<tag line="
|
3401 |
<type by_reference="false">string</type>
|
3402 |
</tag>
|
3403 |
</docblock>
|
3404 |
-
<argument line="
|
3405 |
<name>$item</name>
|
3406 |
<default><![CDATA[]]></default>
|
3407 |
<type/>
|
3408 |
</argument>
|
3409 |
</method>
|
3410 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3411 |
<name>column_post_name</name>
|
3412 |
<full_name>column_post_name</full_name>
|
3413 |
-
<docblock line="
|
3414 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3415 |
<long-description><![CDATA[]]></long-description>
|
3416 |
-
<tag line="
|
3417 |
-
<tag line="
|
3418 |
<type by_reference="false">array</type>
|
3419 |
</tag>
|
3420 |
-
<tag line="
|
3421 |
<type by_reference="false">string</type>
|
3422 |
</tag>
|
3423 |
</docblock>
|
3424 |
-
<argument line="
|
3425 |
<name>$item</name>
|
3426 |
<default><![CDATA[]]></default>
|
3427 |
<type/>
|
3428 |
</argument>
|
3429 |
</method>
|
3430 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3431 |
<name>column_parent</name>
|
3432 |
<full_name>column_parent</full_name>
|
3433 |
-
<docblock line="
|
3434 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3435 |
<long-description><![CDATA[]]></long-description>
|
3436 |
-
<tag line="
|
3437 |
-
<tag line="
|
3438 |
<type by_reference="false">array</type>
|
3439 |
</tag>
|
3440 |
-
<tag line="
|
3441 |
<type by_reference="false">string</type>
|
3442 |
</tag>
|
3443 |
</docblock>
|
3444 |
-
<argument line="
|
3445 |
<name>$item</name>
|
3446 |
<default><![CDATA[]]></default>
|
3447 |
<type/>
|
3448 |
</argument>
|
3449 |
</method>
|
3450 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3451 |
<name>column_menu_order</name>
|
3452 |
<full_name>column_menu_order</full_name>
|
3453 |
-
<docblock line="
|
3454 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3455 |
<long-description><![CDATA[]]></long-description>
|
3456 |
-
<tag line="
|
3457 |
-
<tag line="
|
3458 |
<type by_reference="false">array</type>
|
3459 |
</tag>
|
3460 |
-
<tag line="
|
3461 |
<type by_reference="false">string</type>
|
3462 |
</tag>
|
3463 |
</docblock>
|
3464 |
-
<argument line="
|
3465 |
<name>$item</name>
|
3466 |
<default><![CDATA[]]></default>
|
3467 |
<type/>
|
3468 |
</argument>
|
3469 |
</method>
|
3470 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3471 |
<name>column_featured</name>
|
3472 |
<full_name>column_featured</full_name>
|
3473 |
-
<docblock line="
|
3474 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3475 |
<long-description><![CDATA[]]></long-description>
|
3476 |
-
<tag line="
|
3477 |
-
<tag line="
|
3478 |
<type by_reference="false">array</type>
|
3479 |
</tag>
|
3480 |
-
<tag line="
|
3481 |
<type by_reference="false">string</type>
|
3482 |
</tag>
|
3483 |
</docblock>
|
3484 |
-
<argument line="
|
3485 |
<name>$item</name>
|
3486 |
<default><![CDATA[]]></default>
|
3487 |
<type/>
|
3488 |
</argument>
|
3489 |
</method>
|
3490 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3491 |
<name>column_inserted</name>
|
3492 |
<full_name>column_inserted</full_name>
|
3493 |
-
<docblock line="
|
3494 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3495 |
<long-description><![CDATA[]]></long-description>
|
3496 |
-
<tag line="
|
3497 |
-
<tag line="
|
3498 |
<type by_reference="false">array</type>
|
3499 |
</tag>
|
3500 |
-
<tag line="
|
3501 |
<type by_reference="false">string</type>
|
3502 |
</tag>
|
3503 |
</docblock>
|
3504 |
-
<argument line="
|
3505 |
<name>$item</name>
|
3506 |
<default><![CDATA[]]></default>
|
3507 |
<type/>
|
3508 |
</argument>
|
3509 |
</method>
|
3510 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3511 |
<name>column_galleries</name>
|
3512 |
<full_name>column_galleries</full_name>
|
3513 |
-
<docblock line="
|
3514 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3515 |
<long-description><![CDATA[]]></long-description>
|
3516 |
-
<tag line="
|
3517 |
-
<tag line="
|
3518 |
<type by_reference="false">array</type>
|
3519 |
</tag>
|
3520 |
-
<tag line="
|
3521 |
<type by_reference="false">string</type>
|
3522 |
</tag>
|
3523 |
</docblock>
|
3524 |
-
<argument line="
|
3525 |
<name>$item</name>
|
3526 |
<default><![CDATA[]]></default>
|
3527 |
<type/>
|
3528 |
</argument>
|
3529 |
</method>
|
3530 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3531 |
<name>column_mla_galleries</name>
|
3532 |
<full_name>column_mla_galleries</full_name>
|
3533 |
-
<docblock line="
|
3534 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3535 |
<long-description><![CDATA[]]></long-description>
|
3536 |
-
<tag line="
|
3537 |
-
<tag line="
|
3538 |
<type by_reference="false">array</type>
|
3539 |
</tag>
|
3540 |
-
<tag line="
|
3541 |
<type by_reference="false">string</type>
|
3542 |
</tag>
|
3543 |
</docblock>
|
3544 |
-
<argument line="
|
3545 |
<name>$item</name>
|
3546 |
<default><![CDATA[]]></default>
|
3547 |
<type/>
|
3548 |
</argument>
|
3549 |
</method>
|
3550 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3551 |
<name>column_alt_text</name>
|
3552 |
<full_name>column_alt_text</full_name>
|
3553 |
-
<docblock line="
|
3554 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3555 |
<long-description><![CDATA[]]></long-description>
|
3556 |
-
<tag line="
|
3557 |
-
<tag line="
|
3558 |
<type by_reference="false">array</type>
|
3559 |
</tag>
|
3560 |
-
<tag line="
|
3561 |
<type by_reference="false">string</type>
|
3562 |
</tag>
|
3563 |
</docblock>
|
3564 |
-
<argument line="
|
3565 |
<name>$item</name>
|
3566 |
<default><![CDATA[]]></default>
|
3567 |
<type/>
|
3568 |
</argument>
|
3569 |
</method>
|
3570 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3571 |
<name>column_caption</name>
|
3572 |
<full_name>column_caption</full_name>
|
3573 |
-
<docblock line="
|
3574 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3575 |
<long-description><![CDATA[]]></long-description>
|
3576 |
-
<tag line="
|
3577 |
-
<tag line="
|
3578 |
<type by_reference="false">array</type>
|
3579 |
</tag>
|
3580 |
-
<tag line="
|
3581 |
<type by_reference="false">string</type>
|
3582 |
</tag>
|
3583 |
</docblock>
|
3584 |
-
<argument line="
|
3585 |
<name>$item</name>
|
3586 |
<default><![CDATA[]]></default>
|
3587 |
<type/>
|
3588 |
</argument>
|
3589 |
</method>
|
3590 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3591 |
<name>column_description</name>
|
3592 |
<full_name>column_description</full_name>
|
3593 |
-
<docblock line="
|
3594 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3595 |
<long-description><![CDATA[]]></long-description>
|
3596 |
-
<tag line="
|
3597 |
-
<tag line="
|
3598 |
<type by_reference="false">array</type>
|
3599 |
</tag>
|
3600 |
-
<tag line="
|
3601 |
<type by_reference="false">string</type>
|
3602 |
</tag>
|
3603 |
</docblock>
|
3604 |
-
<argument line="
|
3605 |
<name>$item</name>
|
3606 |
<default><![CDATA[]]></default>
|
3607 |
<type/>
|
3608 |
</argument>
|
3609 |
</method>
|
3610 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3611 |
<name>column_post_mime_type</name>
|
3612 |
<full_name>column_post_mime_type</full_name>
|
3613 |
-
<docblock line="
|
3614 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3615 |
<long-description><![CDATA[]]></long-description>
|
3616 |
-
<tag line="
|
3617 |
-
<tag line="
|
3618 |
<type by_reference="false">array</type>
|
3619 |
</tag>
|
3620 |
-
<tag line="
|
3621 |
<type by_reference="false">string</type>
|
3622 |
</tag>
|
3623 |
</docblock>
|
3624 |
-
<argument line="
|
3625 |
<name>$item</name>
|
3626 |
<default><![CDATA[]]></default>
|
3627 |
<type/>
|
3628 |
</argument>
|
3629 |
</method>
|
3630 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3631 |
<name>column_file_url</name>
|
3632 |
<full_name>column_file_url</full_name>
|
3633 |
-
<docblock line="
|
3634 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3635 |
<long-description><![CDATA[]]></long-description>
|
3636 |
-
<tag line="
|
3637 |
-
<tag line="
|
3638 |
<type by_reference="false">array</type>
|
3639 |
</tag>
|
3640 |
-
<tag line="
|
3641 |
<type by_reference="false">string</type>
|
3642 |
</tag>
|
3643 |
</docblock>
|
3644 |
-
<argument line="
|
3645 |
<name>$item</name>
|
3646 |
<default><![CDATA[]]></default>
|
3647 |
<type/>
|
3648 |
</argument>
|
3649 |
</method>
|
3650 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3651 |
<name>column_base_file</name>
|
3652 |
<full_name>column_base_file</full_name>
|
3653 |
-
<docblock line="
|
3654 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3655 |
<long-description><![CDATA[]]></long-description>
|
3656 |
-
<tag line="
|
3657 |
-
<tag line="
|
3658 |
<type by_reference="false">array</type>
|
3659 |
</tag>
|
3660 |
-
<tag line="
|
3661 |
<type by_reference="false">string</type>
|
3662 |
</tag>
|
3663 |
</docblock>
|
3664 |
-
<argument line="
|
3665 |
<name>$item</name>
|
3666 |
<default><![CDATA[]]></default>
|
3667 |
<type/>
|
3668 |
</argument>
|
3669 |
</method>
|
3670 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3671 |
<name>column_date</name>
|
3672 |
<full_name>column_date</full_name>
|
3673 |
-
<docblock line="
|
3674 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3675 |
<long-description><![CDATA[]]></long-description>
|
3676 |
-
<tag line="
|
3677 |
-
<tag line="
|
3678 |
<type by_reference="false">array</type>
|
3679 |
</tag>
|
3680 |
-
<tag line="
|
3681 |
<type by_reference="false">string</type>
|
3682 |
</tag>
|
3683 |
</docblock>
|
3684 |
-
<argument line="
|
3685 |
<name>$item</name>
|
3686 |
<default><![CDATA[]]></default>
|
3687 |
<type/>
|
3688 |
</argument>
|
3689 |
</method>
|
3690 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3691 |
<name>column_modified</name>
|
3692 |
<full_name>column_modified</full_name>
|
3693 |
-
<docblock line="
|
3694 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3695 |
<long-description><![CDATA[]]></long-description>
|
3696 |
-
<tag line="
|
3697 |
-
<tag line="
|
3698 |
<type by_reference="false">array</type>
|
3699 |
</tag>
|
3700 |
-
<tag line="
|
3701 |
<type by_reference="false">string</type>
|
3702 |
</tag>
|
3703 |
</docblock>
|
3704 |
-
<argument line="
|
3705 |
<name>$item</name>
|
3706 |
<default><![CDATA[]]></default>
|
3707 |
<type/>
|
3708 |
</argument>
|
3709 |
</method>
|
3710 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3711 |
<name>column_author</name>
|
3712 |
<full_name>column_author</full_name>
|
3713 |
-
<docblock line="
|
3714 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3715 |
<long-description><![CDATA[]]></long-description>
|
3716 |
-
<tag line="
|
3717 |
-
<tag line="
|
3718 |
<type by_reference="false">array</type>
|
3719 |
</tag>
|
3720 |
-
<tag line="
|
3721 |
<type by_reference="false">string</type>
|
3722 |
</tag>
|
3723 |
</docblock>
|
3724 |
-
<argument line="
|
3725 |
<name>$item</name>
|
3726 |
<default><![CDATA[]]></default>
|
3727 |
<type/>
|
3728 |
</argument>
|
3729 |
</method>
|
3730 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3731 |
<name>column_attached_to</name>
|
3732 |
<full_name>column_attached_to</full_name>
|
3733 |
-
<docblock line="
|
3734 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3735 |
<long-description><![CDATA[]]></long-description>
|
3736 |
-
<tag line="
|
3737 |
-
<tag line="
|
3738 |
<type by_reference="false">array</type>
|
3739 |
</tag>
|
3740 |
-
<tag line="
|
3741 |
<type by_reference="false">string</type>
|
3742 |
</tag>
|
3743 |
</docblock>
|
3744 |
-
<argument line="
|
3745 |
<name>$item</name>
|
3746 |
<default><![CDATA[]]></default>
|
3747 |
<type/>
|
3748 |
</argument>
|
3749 |
</method>
|
3750 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
3751 |
<name>mla_submenu_arguments</name>
|
3752 |
<full_name>mla_submenu_arguments</full_name>
|
3753 |
-
<docblock line="
|
3754 |
<description><![CDATA[Process $_REQUEST, building $submenu_arguments]]></description>
|
3755 |
<long-description><![CDATA[]]></long-description>
|
3756 |
-
<tag line="
|
3757 |
-
<tag line="
|
3758 |
<type by_reference="false">boolean</type>
|
3759 |
</tag>
|
3760 |
-
<tag line="
|
3761 |
<type by_reference="false">array</type>
|
3762 |
</tag>
|
3763 |
</docblock>
|
3764 |
-
<argument line="
|
3765 |
<name>$include_filters</name>
|
3766 |
<default><![CDATA[true]]></default>
|
3767 |
<type/>
|
3768 |
</argument>
|
3769 |
</method>
|
3770 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3771 |
<name>pagination</name>
|
3772 |
<full_name>pagination</full_name>
|
3773 |
-
<docblock line="
|
3774 |
<description><![CDATA[Display the pagination, adding view, search and filter arguments]]></description>
|
3775 |
<long-description><![CDATA[]]></long-description>
|
3776 |
-
<tag line="
|
3777 |
-
<tag line="
|
3778 |
<type by_reference="false">string</type>
|
3779 |
</tag>
|
3780 |
-
<tag line="
|
3781 |
<type by_reference="false">void</type>
|
3782 |
</tag>
|
3783 |
</docblock>
|
3784 |
-
<argument line="
|
3785 |
<name>$which</name>
|
3786 |
<default><![CDATA[]]></default>
|
3787 |
<type/>
|
3788 |
</argument>
|
3789 |
</method>
|
3790 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3791 |
<name>get_columns</name>
|
3792 |
<full_name>get_columns</full_name>
|
3793 |
-
<docblock line="
|
3794 |
<description><![CDATA[This method dictates the table's columns and titles]]></description>
|
3795 |
<long-description><![CDATA[]]></long-description>
|
3796 |
-
<tag line="
|
3797 |
-
<tag line="
|
3798 |
<type by_reference="false">array</type>
|
3799 |
</tag>
|
3800 |
</docblock>
|
3801 |
</method>
|
3802 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3803 |
<name>get_hidden_columns</name>
|
3804 |
<full_name>get_hidden_columns</full_name>
|
3805 |
-
<docblock line="
|
3806 |
<description><![CDATA[Returns the list of currently hidden columns from a user option or
|
3807 |
from default values if the option is not set]]></description>
|
3808 |
<long-description><![CDATA[]]></long-description>
|
3809 |
-
<tag line="
|
3810 |
-
<tag line="
|
3811 |
<type by_reference="false">array</type>
|
3812 |
</tag>
|
3813 |
</docblock>
|
3814 |
</method>
|
3815 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3816 |
<name>get_sortable_columns</name>
|
3817 |
<full_name>get_sortable_columns</full_name>
|
3818 |
-
<docblock line="
|
3819 |
<description><![CDATA[Returns an array where the key is the column that needs to be sortable
|
3820 |
and the value is db column to sort by.]]></description>
|
3821 |
<long-description><![CDATA[<p>Also notes the current sort column,
|
3822 |
if set.</p>]]></long-description>
|
3823 |
-
<tag line="
|
3824 |
-
<tag line="
|
3825 |
<type by_reference="false">array</type>
|
3826 |
</tag>
|
3827 |
</docblock>
|
3828 |
</method>
|
3829 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3830 |
<name>print_column_headers</name>
|
3831 |
<full_name>print_column_headers</full_name>
|
3832 |
-
<docblock line="
|
3833 |
<description><![CDATA[Print column headers, adding view, search and filter arguments]]></description>
|
3834 |
<long-description><![CDATA[]]></long-description>
|
3835 |
-
<tag line="
|
3836 |
-
<tag line="
|
3837 |
<type by_reference="false">bool</type>
|
3838 |
</tag>
|
3839 |
</docblock>
|
3840 |
-
<argument line="
|
3841 |
<name>$with_id</name>
|
3842 |
<default><![CDATA[true]]></default>
|
3843 |
<type/>
|
3844 |
</argument>
|
3845 |
</method>
|
3846 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3847 |
<name>_get_view</name>
|
3848 |
<full_name>_get_view</full_name>
|
3849 |
-
<docblock line="
|
3850 |
<description><![CDATA[Returns HTML markup for one view that can be used with this table]]></description>
|
3851 |
<long-description><![CDATA[]]></long-description>
|
3852 |
-
<tag line="
|
3853 |
-
<tag line="
|
3854 |
<type by_reference="false">string</type>
|
3855 |
</tag>
|
3856 |
-
<tag line="
|
3857 |
<type by_reference="false">string</type>
|
3858 |
</tag>
|
3859 |
-
<tag line="
|
3860 |
<type by_reference="false">string</type>
|
3861 |
</tag>
|
3862 |
</docblock>
|
3863 |
-
<argument line="
|
3864 |
<name>$view_slug</name>
|
3865 |
<default><![CDATA[]]></default>
|
3866 |
<type/>
|
3867 |
</argument>
|
3868 |
-
<argument line="
|
3869 |
<name>$current_view</name>
|
3870 |
<default><![CDATA[]]></default>
|
3871 |
<type/>
|
3872 |
</argument>
|
3873 |
</method>
|
3874 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3875 |
<name>get_views</name>
|
3876 |
<full_name>get_views</full_name>
|
3877 |
-
<docblock line="
|
3878 |
<description><![CDATA[Returns an associative array listing all the views that can be used with this table.]]></description>
|
3879 |
<long-description><![CDATA[<p>These are listed across the top of the page and managed by WordPress.</p>]]></long-description>
|
3880 |
-
<tag line="
|
3881 |
-
<tag line="
|
3882 |
<type by_reference="false">array</type>
|
3883 |
</tag>
|
3884 |
</docblock>
|
3885 |
</method>
|
3886 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3887 |
<name>get_bulk_actions</name>
|
3888 |
<full_name>get_bulk_actions</full_name>
|
3889 |
-
<docblock line="
|
3890 |
<description><![CDATA[Get an associative array ( option_name => option_title ) with the list
|
3891 |
of bulk actions available on this table.]]></description>
|
3892 |
<long-description><![CDATA[]]></long-description>
|
3893 |
-
<tag line="
|
3894 |
-
<tag line="
|
3895 |
<type by_reference="false">array</type>
|
3896 |
</tag>
|
3897 |
</docblock>
|
3898 |
</method>
|
3899 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3900 |
<name>extra_tablenav</name>
|
3901 |
<full_name>extra_tablenav</full_name>
|
3902 |
-
<docblock line="
|
3903 |
<description><![CDATA[Extra controls to be displayed between bulk actions and pagination]]></description>
|
3904 |
<long-description><![CDATA[<p>Modeled after class-wp-posts-list-table.php in wp-admin/includes.</p>]]></long-description>
|
3905 |
-
<tag line="
|
3906 |
-
<tag line="
|
3907 |
<type by_reference="false">string</type>
|
3908 |
</tag>
|
3909 |
-
<tag line="
|
3910 |
<type by_reference="false">array</type>
|
3911 |
</tag>
|
3912 |
</docblock>
|
3913 |
-
<argument line="
|
3914 |
<name>$which</name>
|
3915 |
<default><![CDATA[]]></default>
|
3916 |
<type/>
|
3917 |
</argument>
|
3918 |
</method>
|
3919 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3920 |
<name>prepare_items</name>
|
3921 |
<full_name>prepare_items</full_name>
|
3922 |
-
<docblock line="
|
3923 |
<description><![CDATA[Prepares the list of items for displaying]]></description>
|
3924 |
<long-description><![CDATA[<p>This is where you prepare your data for display. This method will usually
|
3925 |
be used to query the database, sort and filter the data, and generally
|
3926 |
get it ready to be displayed. At a minimum, we should set $this->items and
|
3927 |
$this->set_pagination_args().</p>]]></long-description>
|
3928 |
-
<tag line="
|
3929 |
-
<tag line="
|
3930 |
<type by_reference="false">void</type>
|
3931 |
</tag>
|
3932 |
</docblock>
|
3933 |
</method>
|
3934 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3935 |
<name>single_row</name>
|
3936 |
<full_name>single_row</full_name>
|
3937 |
-
<docblock line="
|
3938 |
<description><![CDATA[Generates (echoes) content for a single row of the table]]></description>
|
3939 |
<long-description><![CDATA[]]></long-description>
|
3940 |
-
<tag line="
|
3941 |
-
<tag line="
|
3942 |
<type by_reference="false">object</type>
|
3943 |
</tag>
|
3944 |
-
<tag line="
|
3945 |
<type by_reference="false">void</type>
|
3946 |
</tag>
|
3947 |
</docblock>
|
3948 |
-
<argument line="
|
3949 |
<name>$item</name>
|
3950 |
<default><![CDATA[]]></default>
|
3951 |
<type/>
|
@@ -3953,7 +4149,7 @@ $this->set_pagination_args().</p>]]></long-description>
|
|
3953 |
</method>
|
3954 |
</class>
|
3955 |
</file>
|
3956 |
-
<file path="includes\class-mla-main.php" hash="
|
3957 |
<docblock line="2">
|
3958 |
<description><![CDATA[Top-level functions for the Media Library Assistant]]></description>
|
3959 |
<long-description><![CDATA[]]></long-description>
|
@@ -3963,7 +4159,7 @@ $this->set_pagination_args().</p>]]></long-description>
|
|
3963 |
<include line="13" type="Require Once" package="Media Library Assistant">
|
3964 |
<name/>
|
3965 |
</include>
|
3966 |
-
<include line="
|
3967 |
<name/>
|
3968 |
</include>
|
3969 |
<class final="false" abstract="false" namespace="global" line="23" package="Media Library Assistant">
|
@@ -3980,7 +4176,7 @@ of images and files held in the WordPress Media Library.]]></description>
|
|
3980 |
<constant namespace="global" line="32" package="Media Library Assistant">
|
3981 |
<name>CURRENT_MLA_VERSION</name>
|
3982 |
<full_name>CURRENT_MLA_VERSION</full_name>
|
3983 |
-
<value><![CDATA['1.
|
3984 |
<docblock line="25">
|
3985 |
<description><![CDATA[Current version number]]></description>
|
3986 |
<long-description><![CDATA[]]></long-description>
|
@@ -4250,30 +4446,30 @@ Defined as public because it's an action.</p>]]></long-description>
|
|
4250 |
</tag>
|
4251 |
</docblock>
|
4252 |
</method>
|
4253 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
4254 |
<name>mla_admin_enqueue_scripts_action</name>
|
4255 |
<full_name>mla_admin_enqueue_scripts_action</full_name>
|
4256 |
-
<docblock line="
|
4257 |
<description><![CDATA[Load the plugin's Style Sheet and Javascript files]]></description>
|
4258 |
<long-description><![CDATA[]]></long-description>
|
4259 |
-
<tag line="
|
4260 |
-
<tag line="
|
4261 |
<type by_reference="false">string</type>
|
4262 |
</tag>
|
4263 |
-
<tag line="
|
4264 |
<type by_reference="false">void</type>
|
4265 |
</tag>
|
4266 |
</docblock>
|
4267 |
-
<argument line="
|
4268 |
<name>$page_hook</name>
|
4269 |
<default><![CDATA[]]></default>
|
4270 |
<type/>
|
4271 |
</argument>
|
4272 |
</method>
|
4273 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
4274 |
<name>mla_admin_menu_action</name>
|
4275 |
<full_name>mla_admin_menu_action</full_name>
|
4276 |
-
<docblock line="
|
4277 |
<description><![CDATA[Add the submenu pages]]></description>
|
4278 |
<long-description><![CDATA[<p>Add a submenu page in the "Media" section,
|
4279 |
add settings page in the "Settings" section.
|
@@ -4282,131 +4478,131 @@ add settings link in the Plugins section entry for MLA.</p>
|
|
4282 |
<p>For WordPress versions before 3.5,
|
4283 |
add submenu page(s) for attachment taxonomies,
|
4284 |
add filter to clean up taxonomy submenu labels.</p>]]></long-description>
|
4285 |
-
<tag line="
|
4286 |
-
<tag line="
|
4287 |
<type by_reference="false">void</type>
|
4288 |
</tag>
|
4289 |
</docblock>
|
4290 |
</method>
|
4291 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
4292 |
<name>mla_load_media_action</name>
|
4293 |
<full_name>mla_load_media_action</full_name>
|
4294 |
-
<docblock line="
|
4295 |
<description><![CDATA[Redirect to Media/Assistant if Media/Library is hidden]]></description>
|
4296 |
<long-description><![CDATA[]]></long-description>
|
4297 |
-
<tag line="
|
4298 |
-
<tag line="
|
4299 |
<type by_reference="false">void</type>
|
4300 |
</tag>
|
4301 |
</docblock>
|
4302 |
</method>
|
4303 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
4304 |
<name>mla_add_menu_options</name>
|
4305 |
<full_name>mla_add_menu_options</full_name>
|
4306 |
-
<docblock line="
|
4307 |
<description><![CDATA[Add the "XX Entries per page" filter to the Screen Options tab]]></description>
|
4308 |
<long-description><![CDATA[]]></long-description>
|
4309 |
-
<tag line="
|
4310 |
-
<tag line="
|
4311 |
<type by_reference="false">void</type>
|
4312 |
</tag>
|
4313 |
</docblock>
|
4314 |
</method>
|
4315 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
4316 |
<name>mla_add_help_tab</name>
|
4317 |
<full_name>mla_add_help_tab</full_name>
|
4318 |
-
<docblock line="
|
4319 |
<description><![CDATA[Add contextual help tabs to all the MLA pages]]></description>
|
4320 |
<long-description><![CDATA[]]></long-description>
|
4321 |
-
<tag line="
|
4322 |
-
<tag line="
|
4323 |
<type by_reference="false">void</type>
|
4324 |
</tag>
|
4325 |
</docblock>
|
4326 |
</method>
|
4327 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
4328 |
<name>mla_screen_options_show_screen_filter</name>
|
4329 |
<full_name>mla_screen_options_show_screen_filter</full_name>
|
4330 |
-
<docblock line="
|
4331 |
<description><![CDATA[Only show screen options on the table-list screen]]></description>
|
4332 |
<long-description><![CDATA[]]></long-description>
|
4333 |
-
<tag line="
|
4334 |
-
<tag line="
|
4335 |
<type by_reference="false">boolean</type>
|
4336 |
</tag>
|
4337 |
-
<tag line="
|
4338 |
<type by_reference="false">string</type>
|
4339 |
</tag>
|
4340 |
-
<tag line="
|
4341 |
<type by_reference="false">boolean</type>
|
4342 |
</tag>
|
4343 |
</docblock>
|
4344 |
-
<argument line="
|
4345 |
<name>$show_screen</name>
|
4346 |
<default><![CDATA[]]></default>
|
4347 |
<type/>
|
4348 |
</argument>
|
4349 |
-
<argument line="
|
4350 |
<name>$this_screen</name>
|
4351 |
<default><![CDATA[]]></default>
|
4352 |
<type/>
|
4353 |
</argument>
|
4354 |
</method>
|
4355 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
4356 |
<name>mla_set_screen_option_filter</name>
|
4357 |
<full_name>mla_set_screen_option_filter</full_name>
|
4358 |
-
<docblock line="
|
4359 |
<description><![CDATA[Save the "Entries per page" option set by this user]]></description>
|
4360 |
<long-description><![CDATA[]]></long-description>
|
4361 |
-
<tag line="
|
4362 |
-
<tag line="
|
4363 |
<type by_reference="false">mixed</type>
|
4364 |
</tag>
|
4365 |
-
<tag line="
|
4366 |
<type by_reference="false">string</type>
|
4367 |
</tag>
|
4368 |
-
<tag line="
|
4369 |
<type by_reference="false">string</type>
|
4370 |
</tag>
|
4371 |
-
<tag line="
|
4372 |
<type by_reference="false">string</type>
|
4373 |
<type by_reference="false">void</type>
|
4374 |
</tag>
|
4375 |
</docblock>
|
4376 |
-
<argument line="
|
4377 |
<name>$status</name>
|
4378 |
<default><![CDATA[]]></default>
|
4379 |
<type/>
|
4380 |
</argument>
|
4381 |
-
<argument line="
|
4382 |
<name>$option</name>
|
4383 |
<default><![CDATA[]]></default>
|
4384 |
<type/>
|
4385 |
</argument>
|
4386 |
-
<argument line="
|
4387 |
<name>$value</name>
|
4388 |
<default><![CDATA[]]></default>
|
4389 |
<type/>
|
4390 |
</argument>
|
4391 |
</method>
|
4392 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
4393 |
<name>mla_edit_tax_redirect</name>
|
4394 |
<full_name>mla_edit_tax_redirect</full_name>
|
4395 |
-
<docblock line="
|
4396 |
<description><![CDATA[Redirect to the Edit Tags/Categories page]]></description>
|
4397 |
<long-description><![CDATA[<p>The custom taxonomy add/edit submenu entries go to "upload.php" by default.
|
4398 |
This filter is the only way to redirect them to the correct WordPress page.
|
4399 |
The filter is not required for WordPress 3.5 and later.</p>]]></long-description>
|
4400 |
-
<tag line="
|
4401 |
-
<tag line="
|
4402 |
<type by_reference="false">void</type>
|
4403 |
</tag>
|
4404 |
</docblock>
|
4405 |
</method>
|
4406 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
4407 |
<name>mla_parent_file_filter</name>
|
4408 |
<full_name>mla_parent_file_filter</full_name>
|
4409 |
-
<docblock line="
|
4410 |
<description><![CDATA[Cleanup menus for Edit Tags/Categories page]]></description>
|
4411 |
<long-description><![CDATA[<p>For WordPress before 3.5, the submenu entries for custom taxonomies
|
4412 |
under the "Media" menu are not set up correctly by WordPress, so this
|
@@ -4414,292 +4610,292 @@ function cleans them up, redirecting the request to the right WordPress
|
|
4414 |
page for editing/adding taxonomy terms.
|
4415 |
For WordPress 3.5 and later, the function fixes the submenu bolding when
|
4416 |
going to the Edit Media screen.</p>]]></long-description>
|
4417 |
-
<tag line="
|
4418 |
-
<tag line="
|
4419 |
<type by_reference="false">array</type>
|
4420 |
</tag>
|
4421 |
-
<tag line="
|
4422 |
<type by_reference="false">string</type>
|
4423 |
</tag>
|
4424 |
</docblock>
|
4425 |
-
<argument line="
|
4426 |
<name>$parent_file</name>
|
4427 |
<default><![CDATA[]]></default>
|
4428 |
<type/>
|
4429 |
</argument>
|
4430 |
</method>
|
4431 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
4432 |
<name>_process_bulk_value</name>
|
4433 |
<full_name>_process_bulk_value</full_name>
|
4434 |
-
<docblock line="
|
4435 |
<description><![CDATA[Process bulk edit area fields, which may contain a Content Template]]></description>
|
4436 |
<long-description><![CDATA[]]></long-description>
|
4437 |
-
<tag line="
|
4438 |
-
<tag line="
|
4439 |
<type by_reference="false">integer</type>
|
4440 |
</tag>
|
4441 |
-
<tag line="
|
4442 |
<type by_reference="false">string</type>
|
4443 |
</tag>
|
4444 |
-
<tag line="
|
4445 |
<type by_reference="false">string</type>
|
4446 |
</tag>
|
4447 |
</docblock>
|
4448 |
-
<argument line="
|
4449 |
<name>$post_id</name>
|
4450 |
<default><![CDATA[]]></default>
|
4451 |
<type/>
|
4452 |
</argument>
|
4453 |
-
<argument line="
|
4454 |
<name>$bulk_value</name>
|
4455 |
<default><![CDATA[]]></default>
|
4456 |
<type/>
|
4457 |
</argument>
|
4458 |
</method>
|
4459 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
4460 |
<name>mla_render_admin_page</name>
|
4461 |
<full_name>mla_render_admin_page</full_name>
|
4462 |
-
<docblock line="
|
4463 |
<description><![CDATA[Render the "Assistant" subpage in the Media section, using the list_table package]]></description>
|
4464 |
<long-description><![CDATA[]]></long-description>
|
4465 |
-
<tag line="
|
4466 |
-
<tag line="
|
4467 |
<type by_reference="false">void</type>
|
4468 |
</tag>
|
4469 |
</docblock>
|
4470 |
</method>
|
4471 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
4472 |
<name>mla_find_posts_ajax_action</name>
|
4473 |
<full_name>mla_find_posts_ajax_action</full_name>
|
4474 |
-
<docblock line="
|
4475 |
<description><![CDATA[Ajax handler to fetch candidates for the "Set Parent" popup window]]></description>
|
4476 |
<long-description><![CDATA[<p>Adapted from wp_ajax_find_posts in /wp-admin/includes/ajax-actions.php.
|
4477 |
Adds filters for post type and pagination.</p>]]></long-description>
|
4478 |
-
<tag line="
|
4479 |
-
<tag line="
|
4480 |
<type by_reference="false">void</type>
|
4481 |
</tag>
|
4482 |
</docblock>
|
4483 |
</method>
|
4484 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
4485 |
<name>mla_set_parent_ajax_action</name>
|
4486 |
<full_name>mla_set_parent_ajax_action</full_name>
|
4487 |
-
<docblock line="
|
4488 |
<description><![CDATA[Ajax handler to set post_parent for a single attachment]]></description>
|
4489 |
<long-description><![CDATA[<p>Adapted from wp_ajax_inline_save in /wp-admin/includes/ajax-actions.php</p>]]></long-description>
|
4490 |
-
<tag line="
|
4491 |
-
<tag line="
|
4492 |
<type by_reference="false">void</type>
|
4493 |
</tag>
|
4494 |
</docblock>
|
4495 |
</method>
|
4496 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
4497 |
<name>mla_inline_edit_ajax_action</name>
|
4498 |
<full_name>mla_inline_edit_ajax_action</full_name>
|
4499 |
-
<docblock line="
|
4500 |
<description><![CDATA[Ajax handler for inline editing (quick and bulk edit)]]></description>
|
4501 |
<long-description><![CDATA[<p>Adapted from wp_ajax_inline_save in /wp-admin/includes/ajax-actions.php</p>]]></long-description>
|
4502 |
-
<tag line="
|
4503 |
-
<tag line="
|
4504 |
<type by_reference="false">void</type>
|
4505 |
</tag>
|
4506 |
</docblock>
|
4507 |
</method>
|
4508 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
4509 |
<name>_compose_post_type_select</name>
|
4510 |
<full_name>_compose_post_type_select</full_name>
|
4511 |
-
<docblock line="
|
4512 |
<description><![CDATA[Compose a Post Type Options list with current selection]]></description>
|
4513 |
<long-description><![CDATA[]]></long-description>
|
4514 |
-
<tag line="
|
4515 |
-
<tag line="
|
4516 |
-
<tag line="
|
4517 |
<type by_reference="false">array</type>
|
4518 |
</tag>
|
4519 |
-
<tag line="
|
4520 |
<type by_reference="false">string</type>
|
4521 |
</tag>
|
4522 |
-
<tag line="
|
4523 |
<type by_reference="false">string</type>
|
4524 |
</tag>
|
4525 |
</docblock>
|
4526 |
-
<argument line="
|
4527 |
<name>$templates</name>
|
4528 |
<default><![CDATA[]]></default>
|
4529 |
<type/>
|
4530 |
</argument>
|
4531 |
-
<argument line="
|
4532 |
<name>$selection</name>
|
4533 |
<default><![CDATA['all']]></default>
|
4534 |
<type/>
|
4535 |
</argument>
|
4536 |
</method>
|
4537 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
4538 |
<name>mla_set_parent_form</name>
|
4539 |
<full_name>mla_set_parent_form</full_name>
|
4540 |
-
<docblock line="
|
4541 |
<description><![CDATA[Build the hidden form for the "Set Parent" popup modal window]]></description>
|
4542 |
<long-description><![CDATA[]]></long-description>
|
4543 |
-
<tag line="
|
4544 |
-
<tag line="
|
4545 |
<type by_reference="false">boolean</type>
|
4546 |
</tag>
|
4547 |
-
<tag line="
|
4548 |
<type by_reference="false">string</type>
|
4549 |
</tag>
|
4550 |
</docblock>
|
4551 |
-
<argument line="
|
4552 |
<name>$return_form</name>
|
4553 |
<default><![CDATA[true]]></default>
|
4554 |
<type/>
|
4555 |
</argument>
|
4556 |
</method>
|
4557 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
4558 |
<name>_build_inline_edit_form</name>
|
4559 |
<full_name>_build_inline_edit_form</full_name>
|
4560 |
-
<docblock line="
|
4561 |
<description><![CDATA[Build the hidden row templates for inline editing (quick and bulk edit)]]></description>
|
4562 |
<long-description><![CDATA[<p>inspired by inline_edit() in wp-admin\includes\class-wp-posts-list-table.php.</p>]]></long-description>
|
4563 |
-
<tag line="
|
4564 |
-
<tag line="
|
4565 |
<type by_reference="false">object</type>
|
4566 |
</tag>
|
4567 |
-
<tag line="
|
4568 |
<type by_reference="false">string</type>
|
4569 |
</tag>
|
4570 |
</docblock>
|
4571 |
-
<argument line="
|
4572 |
<name>$MLAListTable</name>
|
4573 |
<default><![CDATA[]]></default>
|
4574 |
<type/>
|
4575 |
</argument>
|
4576 |
</method>
|
4577 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
4578 |
<name>_authors_dropdown</name>
|
4579 |
<full_name>_authors_dropdown</full_name>
|
4580 |
-
<docblock line="
|
4581 |
<description><![CDATA[Get the edit Authors dropdown box, if user has suitable permissions]]></description>
|
4582 |
<long-description><![CDATA[]]></long-description>
|
4583 |
-
<tag line="
|
4584 |
-
<tag line="
|
4585 |
<type by_reference="false">integer</type>
|
4586 |
</tag>
|
4587 |
-
<tag line="
|
4588 |
<type by_reference="false">string</type>
|
4589 |
</tag>
|
4590 |
-
<tag line="
|
4591 |
<type by_reference="false">string</type>
|
4592 |
</tag>
|
4593 |
-
<tag line="
|
4594 |
<type by_reference="false">string</type>
|
4595 |
<type by_reference="false">false</type>
|
4596 |
</tag>
|
4597 |
</docblock>
|
4598 |
-
<argument line="
|
4599 |
<name>$author</name>
|
4600 |
<default><![CDATA[0]]></default>
|
4601 |
<type/>
|
4602 |
</argument>
|
4603 |
-
<argument line="
|
4604 |
<name>$name</name>
|
4605 |
<default><![CDATA['post_author']]></default>
|
4606 |
<type/>
|
4607 |
</argument>
|
4608 |
-
<argument line="
|
4609 |
<name>$class</name>
|
4610 |
<default><![CDATA['authors']]></default>
|
4611 |
<type/>
|
4612 |
</argument>
|
4613 |
</method>
|
4614 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
4615 |
<name>_current_bulk_action</name>
|
4616 |
<full_name>_current_bulk_action</full_name>
|
4617 |
-
<docblock line="
|
4618 |
<description><![CDATA[Get the current action selected from the bulk actions dropdown]]></description>
|
4619 |
<long-description><![CDATA[]]></long-description>
|
4620 |
-
<tag line="
|
4621 |
-
<tag line="
|
4622 |
<type by_reference="false">string</type>
|
4623 |
<type by_reference="false">false</type>
|
4624 |
</tag>
|
4625 |
</docblock>
|
4626 |
</method>
|
4627 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
4628 |
<name>_delete_single_item</name>
|
4629 |
<full_name>_delete_single_item</full_name>
|
4630 |
-
<docblock line="
|
4631 |
<description><![CDATA[Delete a single item permanently]]></description>
|
4632 |
<long-description><![CDATA[]]></long-description>
|
4633 |
-
<tag line="
|
4634 |
-
<tag line="
|
4635 |
<type by_reference="false">array</type>
|
4636 |
</tag>
|
4637 |
-
<tag line="
|
4638 |
<type by_reference="false">array</type>
|
4639 |
</tag>
|
4640 |
</docblock>
|
4641 |
-
<argument line="
|
4642 |
<name>$post_id</name>
|
4643 |
<default><![CDATA[]]></default>
|
4644 |
<type/>
|
4645 |
</argument>
|
4646 |
</method>
|
4647 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
4648 |
<name>_display_single_item</name>
|
4649 |
<full_name>_display_single_item</full_name>
|
4650 |
-
<docblock line="
|
4651 |
<description><![CDATA[Display a single item sub page; prepare the form to
|
4652 |
change the meta data for a single attachment.]]></description>
|
4653 |
<long-description><![CDATA[<p>This function is not used in WordPress 3.5 and later.</p>]]></long-description>
|
4654 |
-
<tag line="
|
4655 |
-
<tag line="
|
4656 |
<type by_reference="false">int</type>
|
4657 |
</tag>
|
4658 |
-
<tag line="
|
4659 |
<type by_reference="false">array</type>
|
4660 |
</tag>
|
4661 |
</docblock>
|
4662 |
-
<argument line="
|
4663 |
<name>$post_id</name>
|
4664 |
<default><![CDATA[]]></default>
|
4665 |
<type/>
|
4666 |
</argument>
|
4667 |
</method>
|
4668 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
4669 |
<name>_restore_single_item</name>
|
4670 |
<full_name>_restore_single_item</full_name>
|
4671 |
-
<docblock line="
|
4672 |
<description><![CDATA[Restore a single item from the Trash]]></description>
|
4673 |
<long-description><![CDATA[]]></long-description>
|
4674 |
-
<tag line="
|
4675 |
-
<tag line="
|
4676 |
<type by_reference="false">array</type>
|
4677 |
</tag>
|
4678 |
-
<tag line="
|
4679 |
<type by_reference="false">array</type>
|
4680 |
</tag>
|
4681 |
</docblock>
|
4682 |
-
<argument line="
|
4683 |
<name>$post_id</name>
|
4684 |
<default><![CDATA[]]></default>
|
4685 |
<type/>
|
4686 |
</argument>
|
4687 |
</method>
|
4688 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
4689 |
<name>_trash_single_item</name>
|
4690 |
<full_name>_trash_single_item</full_name>
|
4691 |
-
<docblock line="
|
4692 |
<description><![CDATA[Move a single item to Trash]]></description>
|
4693 |
<long-description><![CDATA[]]></long-description>
|
4694 |
-
<tag line="
|
4695 |
-
<tag line="
|
4696 |
<type by_reference="false">array</type>
|
4697 |
</tag>
|
4698 |
-
<tag line="
|
4699 |
<type by_reference="false">array</type>
|
4700 |
</tag>
|
4701 |
</docblock>
|
4702 |
-
<argument line="
|
4703 |
<name>$post_id</name>
|
4704 |
<default><![CDATA[]]></default>
|
4705 |
<type/>
|
@@ -4707,14 +4903,14 @@ change the meta data for a single attachment.]]></description>
|
|
4707 |
</method>
|
4708 |
</class>
|
4709 |
</file>
|
4710 |
-
<file path="includes\class-mla-media-modal.php" hash="
|
4711 |
<docblock line="2">
|
4712 |
<description><![CDATA[Media Library Assistant Media Manager enhancements]]></description>
|
4713 |
<long-description><![CDATA[]]></long-description>
|
4714 |
<tag line="2" name="package" description="Media Library Assistant"/>
|
4715 |
<tag line="2" name="since" description="1.20"/>
|
4716 |
</docblock>
|
4717 |
-
<include line="
|
4718 |
<name/>
|
4719 |
</include>
|
4720 |
<class final="false" abstract="false" namespace="global" line="15" package="Media Library Assistant">
|
@@ -4818,31 +5014,45 @@ change the meta data for a single attachment.]]></description>
|
|
4818 |
</tag>
|
4819 |
</docblock>
|
4820 |
</constant>
|
4821 |
-
<property final="false" static="true" visibility="private" line="
|
4822 |
<name>$media_item_args</name>
|
4823 |
<default><![CDATA[array('errors' => null, 'in_modal' => false)]]></default>
|
4824 |
-
<docblock line="
|
4825 |
<description><![CDATA[The get_media_item_args array]]></description>
|
4826 |
<long-description><![CDATA[]]></long-description>
|
4827 |
-
<tag line="
|
4828 |
-
<tag line="
|
4829 |
<type by_reference="false">array</type>
|
4830 |
</tag>
|
4831 |
</docblock>
|
4832 |
</property>
|
4833 |
-
<property final="false" static="true" visibility="private" line="
|
4834 |
<name>$mla_media_modal_settings</name>
|
4835 |
-
<default><![CDATA[array('
|
4836 |
-
<docblock line="
|
4837 |
<description><![CDATA[Share the settings values between mla_media_view_settings_filter
|
4838 |
and mla_print_media_templates_action]]></description>
|
4839 |
<long-description><![CDATA[]]></long-description>
|
4840 |
-
<tag line="
|
4841 |
-
<tag line="
|
4842 |
<type by_reference="false">array</type>
|
4843 |
</tag>
|
4844 |
</docblock>
|
4845 |
</property>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4846 |
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="86" package="Media Library Assistant">
|
4847 |
<name>initialize</name>
|
4848 |
<full_name>initialize</full_name>
|
@@ -4855,30 +5065,30 @@ and mla_print_media_templates_action]]></description>
|
|
4855 |
</tag>
|
4856 |
</docblock>
|
4857 |
</method>
|
4858 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
4859 |
<name>mla_get_media_item_args_filter</name>
|
4860 |
<full_name>mla_get_media_item_args_filter</full_name>
|
4861 |
-
<docblock line="
|
4862 |
<description><![CDATA[Saves the get_media_item_args array for the attachment_fields_to_edit filter]]></description>
|
4863 |
<long-description><![CDATA[<p>Declared public because it is a filter.</p>]]></long-description>
|
4864 |
-
<tag line="
|
4865 |
-
<tag line="
|
4866 |
<type by_reference="false">array</type>
|
4867 |
</tag>
|
4868 |
-
<tag line="
|
4869 |
<type by_reference="false">array</type>
|
4870 |
</tag>
|
4871 |
</docblock>
|
4872 |
-
<argument line="
|
4873 |
<name>$args</name>
|
4874 |
<default><![CDATA[]]></default>
|
4875 |
<type/>
|
4876 |
</argument>
|
4877 |
</method>
|
4878 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
4879 |
<name>mla_attachment_fields_to_edit_filter</name>
|
4880 |
<full_name>mla_attachment_fields_to_edit_filter</full_name>
|
4881 |
-
<docblock line="
|
4882 |
<description><![CDATA[Add/change custom fields to the Edit Media screen and Modal Window]]></description>
|
4883 |
<long-description><![CDATA[<p>Called from /wp-admin/includes/media.php, function get_compat_media_markup();
|
4884 |
If "get_media_item_args"['in_modal'] => false ) its the Edit Media screen.
|
@@ -4886,250 +5096,250 @@ If "get_media_item_args"['in_modal'] => true ) its the Media Manager Modal Windo
|
|
4886 |
For the Modal Window, $form_fields contains all the "compat-attachment-fields"
|
4887 |
including the taxonomies, which we want to enhance.
|
4888 |
Declared public because it is a filter.</p>]]></long-description>
|
4889 |
-
<tag line="
|
4890 |
-
<tag line="
|
4891 |
<type by_reference="false">array</type>
|
4892 |
</tag>
|
4893 |
-
<tag line="
|
4894 |
<type by_reference="false">object</type>
|
4895 |
</tag>
|
4896 |
-
<tag line="
|
4897 |
<type by_reference="false">array</type>
|
4898 |
</tag>
|
4899 |
</docblock>
|
4900 |
-
<argument line="
|
4901 |
<name>$form_fields</name>
|
4902 |
<default><![CDATA[]]></default>
|
4903 |
<type/>
|
4904 |
</argument>
|
4905 |
-
<argument line="
|
4906 |
<name>$post</name>
|
4907 |
<default><![CDATA[]]></default>
|
4908 |
<type/>
|
4909 |
</argument>
|
4910 |
</method>
|
4911 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
4912 |
<name>_months_dropdown</name>
|
4913 |
<full_name>_months_dropdown</full_name>
|
4914 |
-
<docblock line="
|
4915 |
<description><![CDATA[Display a monthly dropdown for filtering items]]></description>
|
4916 |
<long-description><![CDATA[<p>Adapted from /wp-admin/includes/class-wp-list-table.php function months_dropdown()</p>]]></long-description>
|
4917 |
-
<tag line="
|
4918 |
-
<tag line="
|
4919 |
<type by_reference="false">string</type>
|
4920 |
</tag>
|
4921 |
-
<tag line="
|
4922 |
<type by_reference="false">array</type>
|
4923 |
</tag>
|
4924 |
</docblock>
|
4925 |
-
<argument line="
|
4926 |
<name>$post_type</name>
|
4927 |
<default><![CDATA[]]></default>
|
4928 |
<type/>
|
4929 |
</argument>
|
4930 |
</method>
|
4931 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
4932 |
<name>_terms_options</name>
|
4933 |
<full_name>_terms_options</full_name>
|
4934 |
-
<docblock line="
|
4935 |
<description><![CDATA[Extract value and text elements from Dropdown HTML option tags]]></description>
|
4936 |
<long-description><![CDATA[]]></long-description>
|
4937 |
-
<tag line="
|
4938 |
-
<tag line="
|
4939 |
<type by_reference="false">string</type>
|
4940 |
</tag>
|
4941 |
-
<tag line="
|
4942 |
<type by_reference="false">array</type>
|
4943 |
</tag>
|
4944 |
</docblock>
|
4945 |
-
<argument line="
|
4946 |
<name>$markup</name>
|
4947 |
<default><![CDATA[]]></default>
|
4948 |
<type/>
|
4949 |
</argument>
|
4950 |
</method>
|
4951 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
4952 |
<name>mla_media_view_settings_filter</name>
|
4953 |
<full_name>mla_media_view_settings_filter</full_name>
|
4954 |
-
<docblock line="
|
4955 |
<description><![CDATA[Adds settings values to be passed to the Media Manager in /wp-includes/js/media-views.js.]]></description>
|
4956 |
<long-description><![CDATA[<p>Declared public because it is a filter.</p>]]></long-description>
|
4957 |
-
<tag line="
|
4958 |
-
<tag line="
|
4959 |
<type by_reference="false">array</type>
|
4960 |
</tag>
|
4961 |
-
<tag line="
|
4962 |
<type by_reference="false">object</type>
|
4963 |
</tag>
|
4964 |
-
<tag line="
|
4965 |
<type by_reference="false">array</type>
|
4966 |
</tag>
|
4967 |
</docblock>
|
4968 |
-
<argument line="
|
4969 |
<name>$settings</name>
|
4970 |
<default><![CDATA[]]></default>
|
4971 |
<type/>
|
4972 |
</argument>
|
4973 |
-
<argument line="
|
4974 |
<name>$post</name>
|
4975 |
<default><![CDATA[]]></default>
|
4976 |
<type/>
|
4977 |
</argument>
|
4978 |
</method>
|
4979 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
4980 |
<name>mla_media_view_strings_filter</name>
|
4981 |
<full_name>mla_media_view_strings_filter</full_name>
|
4982 |
-
<docblock line="
|
4983 |
<description><![CDATA[Adds strings values to be passed to the Media Manager in /wp-includes/js/media-views.js.]]></description>
|
4984 |
<long-description><![CDATA[<p>Declared public because it is a filter.</p>]]></long-description>
|
4985 |
-
<tag line="
|
4986 |
-
<tag line="
|
4987 |
<type by_reference="false">array</type>
|
4988 |
</tag>
|
4989 |
-
<tag line="
|
4990 |
<type by_reference="false">object</type>
|
4991 |
</tag>
|
4992 |
-
<tag line="
|
4993 |
<type by_reference="false">array</type>
|
4994 |
</tag>
|
4995 |
</docblock>
|
4996 |
-
<argument line="
|
4997 |
<name>$strings</name>
|
4998 |
<default><![CDATA[]]></default>
|
4999 |
<type/>
|
5000 |
</argument>
|
5001 |
-
<argument line="
|
5002 |
<name>$post</name>
|
5003 |
<default><![CDATA[]]></default>
|
5004 |
<type/>
|
5005 |
</argument>
|
5006 |
</method>
|
5007 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
5008 |
<name>mla_wp_enqueue_media_action</name>
|
5009 |
<full_name>mla_wp_enqueue_media_action</full_name>
|
5010 |
-
<docblock line="
|
5011 |
<description><![CDATA[Enqueues the mla-media-modal-scripts.js file, adding it to the Media Manager scripts.]]></description>
|
5012 |
<long-description><![CDATA[<p>Declared public because it is an action.</p>]]></long-description>
|
5013 |
-
<tag line="
|
5014 |
-
<tag line="
|
5015 |
<type by_reference="false">void</type>
|
5016 |
</tag>
|
5017 |
</docblock>
|
5018 |
</method>
|
5019 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
5020 |
<name>mla_print_media_templates_action</name>
|
5021 |
<full_name>mla_print_media_templates_action</full_name>
|
5022 |
-
<docblock line="
|
5023 |
<description><![CDATA[Prints the templates used in the MLA Media Manager enhancements.]]></description>
|
5024 |
<long-description><![CDATA[<p>Declared public because it is an action.</p>]]></long-description>
|
5025 |
-
<tag line="
|
5026 |
-
<tag line="
|
5027 |
<type by_reference="false">void</type>
|
5028 |
</tag>
|
5029 |
</docblock>
|
5030 |
</method>
|
5031 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
5032 |
<name>mla_admin_init_action</name>
|
5033 |
<full_name>mla_admin_init_action</full_name>
|
5034 |
-
<docblock line="
|
5035 |
<description><![CDATA[Adjust ajax handler for Media Manager queries]]></description>
|
5036 |
<long-description><![CDATA[<p>Replace 'query-attachments' with our own handler if the request is coming from the "Assistant" tab.
|
5037 |
Clean up the 'save-attachment-compat' values, removing the taxonomy updates MLS already handled.</p>]]></long-description>
|
5038 |
-
<tag line="
|
5039 |
-
<tag line="
|
5040 |
<type by_reference="false">void</type>
|
5041 |
</tag>
|
5042 |
</docblock>
|
5043 |
</method>
|
5044 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
5045 |
<name>mla_fill_compat_fields_action</name>
|
5046 |
<full_name>mla_fill_compat_fields_action</full_name>
|
5047 |
-
<docblock line="
|
5048 |
<description><![CDATA[Ajax handler for Media Manager "fill compat-attachment-fields" queries]]></description>
|
5049 |
<long-description><![CDATA[<p>Prepares an array of (HTML) taxonomy meta boxes with attachment-specific values.</p>]]></long-description>
|
5050 |
-
<tag line="
|
5051 |
-
<tag line="
|
5052 |
<type by_reference="false">void</type>
|
5053 |
</tag>
|
5054 |
</docblock>
|
5055 |
</method>
|
5056 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
5057 |
<name>mla_update_compat_fields_action</name>
|
5058 |
<full_name>mla_update_compat_fields_action</full_name>
|
5059 |
-
<docblock line="
|
5060 |
<description><![CDATA[Ajax handler for Media Manager "update compat-attachment-fields" queries]]></description>
|
5061 |
<long-description><![CDATA[<p>Updates one (or more) supported taxonomy and returns updated checkbox or tag/term lists</p>]]></long-description>
|
5062 |
-
<tag line="
|
5063 |
-
<tag line="
|
5064 |
<type by_reference="false">void</type>
|
5065 |
</tag>
|
5066 |
</docblock>
|
5067 |
</method>
|
5068 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
5069 |
<name>mla_query_attachments_action</name>
|
5070 |
<full_name>mla_query_attachments_action</full_name>
|
5071 |
-
<docblock line="
|
5072 |
<description><![CDATA[Ajax handler for Media Manager "Query Attachments" queries]]></description>
|
5073 |
<long-description><![CDATA[<p>Adapted from wp_ajax_query_attachments in /wp-admin/includes/ajax-actions.php</p>]]></long-description>
|
5074 |
-
<tag line="
|
5075 |
-
<tag line="
|
5076 |
<type by_reference="false">void</type>
|
5077 |
</tag>
|
5078 |
</docblock>
|
5079 |
</method>
|
5080 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
5081 |
<name>mla_add_terms_search_scripts</name>
|
5082 |
<full_name>mla_add_terms_search_scripts</full_name>
|
5083 |
-
<docblock line="
|
5084 |
<description><![CDATA[Add the styles and scripts for the "Search Terms" popup modal window,
|
5085 |
but only once per page load]]></description>
|
5086 |
<long-description><![CDATA[]]></long-description>
|
5087 |
-
<tag line="
|
5088 |
-
<tag line="
|
5089 |
<type by_reference="false">void</type>
|
5090 |
</tag>
|
5091 |
</docblock>
|
5092 |
</method>
|
5093 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
5094 |
<name>mla_add_terms_search_form</name>
|
5095 |
<full_name>mla_add_terms_search_form</full_name>
|
5096 |
-
<docblock line="
|
5097 |
<description><![CDATA[Add the hidden form for the "Search Terms" popup modal window,
|
5098 |
but only once per page load]]></description>
|
5099 |
<long-description><![CDATA[]]></long-description>
|
5100 |
-
<tag line="
|
5101 |
-
<tag line="
|
5102 |
<type by_reference="false">void</type>
|
5103 |
</tag>
|
5104 |
</docblock>
|
5105 |
</method>
|
5106 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
5107 |
<name>mla_echo_terms_search_form</name>
|
5108 |
<full_name>mla_echo_terms_search_form</full_name>
|
5109 |
-
<docblock line="
|
5110 |
<description><![CDATA[Echo the hidden form for the "Search Terms" popup modal window]]></description>
|
5111 |
<long-description><![CDATA[]]></long-description>
|
5112 |
-
<tag line="
|
5113 |
-
<tag line="
|
5114 |
<type by_reference="false">void</type>
|
5115 |
</tag>
|
5116 |
</docblock>
|
5117 |
</method>
|
5118 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
5119 |
<name>mla_terms_search_form</name>
|
5120 |
<full_name>mla_terms_search_form</full_name>
|
5121 |
-
<docblock line="
|
5122 |
<description><![CDATA[Build the hidden form for the "Search Terms" popup modal window]]></description>
|
5123 |
<long-description><![CDATA[]]></long-description>
|
5124 |
-
<tag line="
|
5125 |
-
<tag line="
|
5126 |
<type by_reference="false">string</type>
|
5127 |
</tag>
|
5128 |
</docblock>
|
5129 |
</method>
|
5130 |
</class>
|
5131 |
</file>
|
5132 |
-
<file path="includes\class-mla-mime-types.php" hash="
|
5133 |
<docblock line="2">
|
5134 |
<description><![CDATA[Media Library Assistant MIME Type Support]]></description>
|
5135 |
<long-description><![CDATA[]]></long-description>
|
@@ -5255,14 +5465,14 @@ the Views and Uploads Settings tabs]]></description>
|
|
5255 |
</tag>
|
5256 |
</docblock>
|
5257 |
</property>
|
5258 |
-
<property final="false" static="true" visibility="private" line="
|
5259 |
<name>$mla_optional_upload_mime_templates</name>
|
5260 |
<default><![CDATA[NULL]]></default>
|
5261 |
-
<docblock line="
|
5262 |
<description><![CDATA[In-memory representation of the (read-only) Optional Upload MIME Types]]></description>
|
5263 |
<long-description><![CDATA[]]></long-description>
|
5264 |
-
<tag line="
|
5265 |
-
<tag line="
|
5266 |
<type by_reference="false">array</type>
|
5267 |
</tag>
|
5268 |
</docblock>
|
@@ -6117,257 +6327,257 @@ Defined as public because it's a filter.</p>]]></long-description>
|
|
6117 |
<type/>
|
6118 |
</argument>
|
6119 |
</method>
|
6120 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
6121 |
<name>_put_upload_mime_templates</name>
|
6122 |
<full_name>_put_upload_mime_templates</full_name>
|
6123 |
-
<docblock line="
|
6124 |
<description><![CDATA[Store the options portion of the Upload MIME Types]]></description>
|
6125 |
<long-description><![CDATA[]]></long-description>
|
6126 |
-
<tag line="
|
6127 |
-
<tag line="
|
6128 |
<type by_reference="false">boolean</type>
|
6129 |
</tag>
|
6130 |
</docblock>
|
6131 |
</method>
|
6132 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
6133 |
<name>mla_add_upload_mime</name>
|
6134 |
<full_name>mla_add_upload_mime</full_name>
|
6135 |
-
<docblock line="
|
6136 |
<description><![CDATA[Add an MLA Upload MIME Type object]]></description>
|
6137 |
<long-description><![CDATA[]]></long-description>
|
6138 |
-
<tag line="
|
6139 |
-
<tag line="
|
6140 |
<type by_reference="false">array</type>
|
6141 |
</tag>
|
6142 |
-
<tag line="
|
6143 |
<type by_reference="false">array</type>
|
6144 |
</tag>
|
6145 |
</docblock>
|
6146 |
-
<argument line="
|
6147 |
<name>$request</name>
|
6148 |
<default><![CDATA[]]></default>
|
6149 |
<type/>
|
6150 |
</argument>
|
6151 |
</method>
|
6152 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
6153 |
<name>mla_update_upload_mime</name>
|
6154 |
<full_name>mla_update_upload_mime</full_name>
|
6155 |
-
<docblock line="
|
6156 |
<description><![CDATA[Update an MLA Upload MIME Type object]]></description>
|
6157 |
<long-description><![CDATA[]]></long-description>
|
6158 |
-
<tag line="
|
6159 |
-
<tag line="
|
6160 |
<type by_reference="false">array</type>
|
6161 |
</tag>
|
6162 |
-
<tag line="
|
6163 |
<type by_reference="false">array</type>
|
6164 |
</tag>
|
6165 |
</docblock>
|
6166 |
-
<argument line="
|
6167 |
<name>$request</name>
|
6168 |
<default><![CDATA[NULL]]></default>
|
6169 |
<type/>
|
6170 |
</argument>
|
6171 |
</method>
|
6172 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
6173 |
<name>mla_get_upload_mime_slug</name>
|
6174 |
<full_name>mla_get_upload_mime_slug</full_name>
|
6175 |
-
<docblock line="
|
6176 |
<description><![CDATA[Retrieve an MLA Upload MIME Type slug given a post_ID]]></description>
|
6177 |
<long-description><![CDATA[]]></long-description>
|
6178 |
-
<tag line="
|
6179 |
-
<tag line="
|
6180 |
<type by_reference="false">integer</type>
|
6181 |
</tag>
|
6182 |
-
<tag line="
|
6183 |
<type by_reference="false">mixed</type>
|
6184 |
</tag>
|
6185 |
</docblock>
|
6186 |
-
<argument line="
|
6187 |
<name>$post_ID</name>
|
6188 |
<default><![CDATA[]]></default>
|
6189 |
<type/>
|
6190 |
</argument>
|
6191 |
</method>
|
6192 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
6193 |
<name>mla_get_upload_mime</name>
|
6194 |
<full_name>mla_get_upload_mime</full_name>
|
6195 |
-
<docblock line="
|
6196 |
<description><![CDATA[Retrieve an MLA Upload MIME Type object]]></description>
|
6197 |
<long-description><![CDATA[]]></long-description>
|
6198 |
-
<tag line="
|
6199 |
-
<tag line="
|
6200 |
<type by_reference="false">string</type>
|
6201 |
</tag>
|
6202 |
-
<tag line="
|
6203 |
<type by_reference="false">mixed</type>
|
6204 |
</tag>
|
6205 |
</docblock>
|
6206 |
-
<argument line="
|
6207 |
<name>$slug</name>
|
6208 |
<default><![CDATA[]]></default>
|
6209 |
<type/>
|
6210 |
</argument>
|
6211 |
</method>
|
6212 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
6213 |
<name>mla_delete_upload_mime</name>
|
6214 |
<full_name>mla_delete_upload_mime</full_name>
|
6215 |
-
<docblock line="
|
6216 |
<description><![CDATA[Delete an MLA Upload MIME Type object]]></description>
|
6217 |
<long-description><![CDATA[]]></long-description>
|
6218 |
-
<tag line="
|
6219 |
-
<tag line="
|
6220 |
<type by_reference="false">string</type>
|
6221 |
</tag>
|
6222 |
-
<tag line="
|
6223 |
<type by_reference="false">array</type>
|
6224 |
</tag>
|
6225 |
</docblock>
|
6226 |
-
<argument line="
|
6227 |
<name>$slug</name>
|
6228 |
<default><![CDATA[]]></default>
|
6229 |
<type/>
|
6230 |
</argument>
|
6231 |
</method>
|
6232 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
6233 |
<name>_prepare_optional_upload_items_query</name>
|
6234 |
<full_name>_prepare_optional_upload_items_query</full_name>
|
6235 |
-
<docblock line="
|
6236 |
<description><![CDATA[Sanitize and expand Optional Upload MIME Type query arguments from request variables]]></description>
|
6237 |
<long-description><![CDATA[]]></long-description>
|
6238 |
-
<tag line="
|
6239 |
-
<tag line="
|
6240 |
<type by_reference="false">array</type>
|
6241 |
</tag>
|
6242 |
-
<tag line="
|
6243 |
<type by_reference="false">int</type>
|
6244 |
</tag>
|
6245 |
-
<tag line="
|
6246 |
<type by_reference="false">int</type>
|
6247 |
</tag>
|
6248 |
-
<tag line="
|
6249 |
<type by_reference="false">array</type>
|
6250 |
</tag>
|
6251 |
</docblock>
|
6252 |
-
<argument line="
|
6253 |
<name>$raw_request</name>
|
6254 |
<default><![CDATA[]]></default>
|
6255 |
<type/>
|
6256 |
</argument>
|
6257 |
-
<argument line="
|
6258 |
<name>$offset</name>
|
6259 |
<default><![CDATA[0]]></default>
|
6260 |
<type/>
|
6261 |
</argument>
|
6262 |
-
<argument line="
|
6263 |
<name>$count</name>
|
6264 |
<default><![CDATA[0]]></default>
|
6265 |
<type/>
|
6266 |
</argument>
|
6267 |
</method>
|
6268 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
6269 |
<name>_execute_optional_upload_items_query</name>
|
6270 |
<full_name>_execute_optional_upload_items_query</full_name>
|
6271 |
-
<docblock line="
|
6272 |
<description><![CDATA[Execute an Optional Upload MIME Types query]]></description>
|
6273 |
<long-description><![CDATA[]]></long-description>
|
6274 |
-
<tag line="
|
6275 |
-
<tag line="
|
6276 |
<type by_reference="false">array</type>
|
6277 |
</tag>
|
6278 |
-
<tag line="
|
6279 |
<type by_reference="false">array</type>
|
6280 |
</tag>
|
6281 |
</docblock>
|
6282 |
-
<argument line="
|
6283 |
<name>$request</name>
|
6284 |
<default><![CDATA[]]></default>
|
6285 |
<type/>
|
6286 |
</argument>
|
6287 |
</method>
|
6288 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
6289 |
<name>mla_count_optional_upload_items</name>
|
6290 |
<full_name>mla_count_optional_upload_items</full_name>
|
6291 |
-
<docblock line="
|
6292 |
<description><![CDATA[Get the total number of MLA Upload MIME Type objects]]></description>
|
6293 |
<long-description><![CDATA[]]></long-description>
|
6294 |
-
<tag line="
|
6295 |
-
<tag line="
|
6296 |
<type by_reference="false">array</type>
|
6297 |
</tag>
|
6298 |
-
<tag line="
|
6299 |
<type by_reference="false">integer</type>
|
6300 |
</tag>
|
6301 |
</docblock>
|
6302 |
-
<argument line="
|
6303 |
<name>$request</name>
|
6304 |
<default><![CDATA[]]></default>
|
6305 |
<type/>
|
6306 |
</argument>
|
6307 |
</method>
|
6308 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
6309 |
<name>mla_query_optional_upload_items</name>
|
6310 |
<full_name>mla_query_optional_upload_items</full_name>
|
6311 |
-
<docblock line="
|
6312 |
<description><![CDATA[Retrieve MLA Upload MIME Type objects for list table display]]></description>
|
6313 |
<long-description><![CDATA[]]></long-description>
|
6314 |
-
<tag line="
|
6315 |
-
<tag line="
|
6316 |
<type by_reference="false">array</type>
|
6317 |
</tag>
|
6318 |
-
<tag line="
|
6319 |
<type by_reference="false">int</type>
|
6320 |
</tag>
|
6321 |
-
<tag line="
|
6322 |
<type by_reference="false">int</type>
|
6323 |
</tag>
|
6324 |
-
<tag line="
|
6325 |
<type by_reference="false">array</type>
|
6326 |
</tag>
|
6327 |
</docblock>
|
6328 |
-
<argument line="
|
6329 |
<name>$request</name>
|
6330 |
<default><![CDATA[]]></default>
|
6331 |
<type/>
|
6332 |
</argument>
|
6333 |
-
<argument line="
|
6334 |
<name>$offset</name>
|
6335 |
<default><![CDATA[]]></default>
|
6336 |
<type/>
|
6337 |
</argument>
|
6338 |
-
<argument line="
|
6339 |
<name>$count</name>
|
6340 |
<default><![CDATA[]]></default>
|
6341 |
<type/>
|
6342 |
</argument>
|
6343 |
</method>
|
6344 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
6345 |
<name>_get_optional_upload_mime_templates</name>
|
6346 |
<full_name>_get_optional_upload_mime_templates</full_name>
|
6347 |
-
<docblock line="
|
6348 |
<description><![CDATA[Assemble the in-memory representation of the (read-only) Optional Upload MIME Types]]></description>
|
6349 |
<long-description><![CDATA[]]></long-description>
|
6350 |
-
<tag line="
|
6351 |
-
<tag line="
|
6352 |
<type by_reference="false">boolean</type>
|
6353 |
</tag>
|
6354 |
</docblock>
|
6355 |
</method>
|
6356 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
6357 |
<name>mla_get_optional_upload_mime</name>
|
6358 |
<full_name>mla_get_optional_upload_mime</full_name>
|
6359 |
-
<docblock line="
|
6360 |
<description><![CDATA[Retrieve an MLA Optional Upload MIME Type given an ID]]></description>
|
6361 |
<long-description><![CDATA[]]></long-description>
|
6362 |
-
<tag line="
|
6363 |
-
<tag line="
|
6364 |
<type by_reference="false">integer</type>
|
6365 |
</tag>
|
6366 |
-
<tag line="
|
6367 |
<type by_reference="false">mixed</type>
|
6368 |
</tag>
|
6369 |
</docblock>
|
6370 |
-
<argument line="
|
6371 |
<name>$ID</name>
|
6372 |
<default><![CDATA[]]></default>
|
6373 |
<type/>
|
@@ -6375,7 +6585,7 @@ Defined as public because it's a filter.</p>]]></long-description>
|
|
6375 |
</method>
|
6376 |
</class>
|
6377 |
</file>
|
6378 |
-
<file path="includes\class-mla-objects.php" hash="
|
6379 |
<docblock line="2">
|
6380 |
<description><![CDATA[Media Library Assistant Custom Taxonomy and Widget objects]]></description>
|
6381 |
<long-description><![CDATA[]]></long-description>
|
@@ -6587,14 +6797,17 @@ which returns a count of the attachments assigned a given term]]></description>
|
|
6587 |
</method>
|
6588 |
</class>
|
6589 |
</file>
|
6590 |
-
<file path="includes\class-mla-options.php" hash="
|
6591 |
<docblock line="2">
|
6592 |
<description><![CDATA[Manages the plugin option settings]]></description>
|
6593 |
<long-description><![CDATA[]]></long-description>
|
6594 |
<tag line="2" name="package" description="Media Library Assistant"/>
|
6595 |
<tag line="2" name="since" description="1.00"/>
|
6596 |
</docblock>
|
6597 |
-
<include line="
|
|
|
|
|
|
|
6598 |
<name/>
|
6599 |
</include>
|
6600 |
<class final="false" abstract="false" namespace="global" line="18" package="Media Library Assistant">
|
@@ -7072,27 +7285,27 @@ reset => reset function for 'custom' options; returns nothing. Usage:
|
|
7072 |
</tag>
|
7073 |
</docblock>
|
7074 |
</property>
|
7075 |
-
<property final="false" static="true" visibility="private" line="
|
7076 |
<name>$add_attachment_id</name>
|
7077 |
<default><![CDATA[0]]></default>
|
7078 |
-
<docblock line="
|
7079 |
<description><![CDATA[Attachment ID passed from mla_add_attachment_action to mla_update_attachment_metadata_filter]]></description>
|
7080 |
<long-description><![CDATA[<p>Ensures that IPTC/EXIF and Custom Field mapping is only performed when the attachment is first
|
7081 |
added to the Media Library.</p>]]></long-description>
|
7082 |
-
<tag line="
|
7083 |
-
<tag line="
|
7084 |
<type by_reference="false">integer</type>
|
7085 |
</tag>
|
7086 |
</docblock>
|
7087 |
</property>
|
7088 |
-
<property final="false" static="true" visibility="private" line="
|
7089 |
<name>$custom_field_data_sources</name>
|
7090 |
<default><![CDATA[array('post_id', 'post_author', 'post_date', 'post_date_gmt', 'post_content', 'post_title', 'post_excerpt', 'post_status', 'comment_status', 'ping_status', 'post_name', 'post_modified', 'post_modified_gmt', 'post_content_filtered', 'parent', 'post_parent', 'guid', 'menu_order', 'mime_type', 'post_mime_type', 'comment_count', 'absolute_path', 'absolute_file_name', 'base_file', 'path', 'file_name', 'name_only', 'extension', 'file_size', 'upload_date', 'dimensions', 'pixels', 'width', 'height', 'orientation', 'hwstring_small', 'size_keys', 'size_names', 'size_bytes', 'size_pixels', 'size_dimensions', 'size_name[size]', 'size_bytes[size]', 'size_pixels[size]', 'size_dimensions[size]', 'parent_date', 'parent_type', 'parent_title', 'parent_issues', 'reference_issues', 'featured_in', 'featured_in_title', 'inserted_in', 'inserted_in_title', 'gallery_in', 'gallery_in_title', 'mla_gallery_in', 'mla_gallery_in_title', 'aperture', 'credit', 'camera', 'caption', 'created_timestamp', 'copyright', 'focal_length', 'iso', 'shutter_speed', 'title')]]></default>
|
7091 |
-
<docblock line="
|
7092 |
<description><![CDATA[Array of Data Source names for custom field mapping]]></description>
|
7093 |
<long-description><![CDATA[]]></long-description>
|
7094 |
-
<tag line="
|
7095 |
-
<tag line="
|
7096 |
<type by_reference="false">array</type>
|
7097 |
</tag>
|
7098 |
</docblock>
|
@@ -7134,1154 +7347,1154 @@ in the "public static" array definition itself.</p>]]></long-description>
|
|
7134 |
</tag>
|
7135 |
</docblock>
|
7136 |
</method>
|
7137 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
7138 |
<name>mla_fetch_gallery_template</name>
|
7139 |
<full_name>mla_fetch_gallery_template</full_name>
|
7140 |
-
<docblock line="
|
7141 |
<description><![CDATA[Fetch style or markup template from $mla_templates]]></description>
|
7142 |
<long-description><![CDATA[]]></long-description>
|
7143 |
-
<tag line="
|
7144 |
-
<tag line="
|
7145 |
<type by_reference="false">string</type>
|
7146 |
</tag>
|
7147 |
-
<tag line="
|
7148 |
<type by_reference="false">string</type>
|
7149 |
</tag>
|
7150 |
-
<tag line="
|
7151 |
<type by_reference="false">string</type>
|
7152 |
<type by_reference="false">boolean</type>
|
7153 |
<type by_reference="false">null</type>
|
7154 |
</tag>
|
7155 |
</docblock>
|
7156 |
-
<argument line="
|
7157 |
<name>$key</name>
|
7158 |
<default><![CDATA[]]></default>
|
7159 |
<type/>
|
7160 |
</argument>
|
7161 |
-
<argument line="
|
7162 |
<name>$type</name>
|
7163 |
<default><![CDATA['style']]></default>
|
7164 |
<type/>
|
7165 |
</argument>
|
7166 |
</method>
|
7167 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
7168 |
<name>mla_get_style_templates</name>
|
7169 |
<full_name>mla_get_style_templates</full_name>
|
7170 |
-
<docblock line="
|
7171 |
<description><![CDATA[Get ALL style templates from $mla_templates, including 'default']]></description>
|
7172 |
<long-description><![CDATA[]]></long-description>
|
7173 |
-
<tag line="
|
7174 |
-
<tag line="
|
7175 |
<type by_reference="false">array</type>
|
7176 |
<type by_reference="false">null</type>
|
7177 |
</tag>
|
7178 |
</docblock>
|
7179 |
</method>
|
7180 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
7181 |
<name>mla_put_style_templates</name>
|
7182 |
<full_name>mla_put_style_templates</full_name>
|
7183 |
-
<docblock line="
|
7184 |
<description><![CDATA[Put user-defined style templates to $mla_templates and database]]></description>
|
7185 |
<long-description><![CDATA[]]></long-description>
|
7186 |
-
<tag line="
|
7187 |
-
<tag line="
|
7188 |
<type by_reference="false">array</type>
|
7189 |
</tag>
|
7190 |
-
<tag line="
|
7191 |
<type by_reference="false">boolean</type>
|
7192 |
</tag>
|
7193 |
</docblock>
|
7194 |
-
<argument line="
|
7195 |
<name>$templates</name>
|
7196 |
<default><![CDATA[]]></default>
|
7197 |
<type/>
|
7198 |
</argument>
|
7199 |
</method>
|
7200 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
7201 |
<name>mla_get_markup_templates</name>
|
7202 |
<full_name>mla_get_markup_templates</full_name>
|
7203 |
-
<docblock line="
|
7204 |
<description><![CDATA[Get ALL markup templates from $mla_templates, including 'default']]></description>
|
7205 |
<long-description><![CDATA[]]></long-description>
|
7206 |
-
<tag line="
|
7207 |
-
<tag line="
|
7208 |
<type by_reference="false">array</type>
|
7209 |
<type by_reference="false">null</type>
|
7210 |
</tag>
|
7211 |
</docblock>
|
7212 |
</method>
|
7213 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
7214 |
<name>mla_put_markup_templates</name>
|
7215 |
<full_name>mla_put_markup_templates</full_name>
|
7216 |
-
<docblock line="
|
7217 |
<description><![CDATA[Put user-defined markup templates to $mla_templates and database]]></description>
|
7218 |
<long-description><![CDATA[]]></long-description>
|
7219 |
-
<tag line="
|
7220 |
-
<tag line="
|
7221 |
<type by_reference="false">array</type>
|
7222 |
</tag>
|
7223 |
-
<tag line="
|
7224 |
<type by_reference="false">boolean</type>
|
7225 |
</tag>
|
7226 |
</docblock>
|
7227 |
-
<argument line="
|
7228 |
<name>$templates</name>
|
7229 |
<default><![CDATA[]]></default>
|
7230 |
<type/>
|
7231 |
</argument>
|
7232 |
</method>
|
7233 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
7234 |
<name>mla_get_option</name>
|
7235 |
<full_name>mla_get_option</full_name>
|
7236 |
-
<docblock line="
|
7237 |
<description><![CDATA[Return the stored value or default value of a defined MLA option]]></description>
|
7238 |
<long-description><![CDATA[]]></long-description>
|
7239 |
-
<tag line="
|
7240 |
-
<tag line="
|
7241 |
<type by_reference="false">string</type>
|
7242 |
</tag>
|
7243 |
-
<tag line="
|
7244 |
<type by_reference="false">boolean</type>
|
7245 |
</tag>
|
7246 |
-
<tag line="
|
7247 |
<type by_reference="false">boolean</type>
|
7248 |
</tag>
|
7249 |
-
<tag line="
|
7250 |
<type by_reference="false">mixed</type>
|
7251 |
</tag>
|
7252 |
</docblock>
|
7253 |
-
<argument line="
|
7254 |
<name>$option</name>
|
7255 |
<default><![CDATA[]]></default>
|
7256 |
<type/>
|
7257 |
</argument>
|
7258 |
-
<argument line="
|
7259 |
<name>$get_default</name>
|
7260 |
<default><![CDATA[false]]></default>
|
7261 |
<type/>
|
7262 |
</argument>
|
7263 |
-
<argument line="
|
7264 |
<name>$get_stored</name>
|
7265 |
<default><![CDATA[false]]></default>
|
7266 |
<type/>
|
7267 |
</argument>
|
7268 |
</method>
|
7269 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
7270 |
<name>mla_update_option</name>
|
7271 |
<full_name>mla_update_option</full_name>
|
7272 |
-
<docblock line="
|
7273 |
<description><![CDATA[Add or update the stored value of a defined MLA option]]></description>
|
7274 |
<long-description><![CDATA[]]></long-description>
|
7275 |
-
<tag line="
|
7276 |
-
<tag line="
|
7277 |
<type by_reference="false">string</type>
|
7278 |
</tag>
|
7279 |
-
<tag line="
|
7280 |
<type by_reference="false">mixed</type>
|
7281 |
</tag>
|
7282 |
-
<tag line="
|
7283 |
<type by_reference="false">boolean</type>
|
7284 |
</tag>
|
7285 |
</docblock>
|
7286 |
-
<argument line="
|
7287 |
<name>$option</name>
|
7288 |
<default><![CDATA[]]></default>
|
7289 |
<type/>
|
7290 |
</argument>
|
7291 |
-
<argument line="
|
7292 |
<name>$newvalue</name>
|
7293 |
<default><![CDATA[]]></default>
|
7294 |
<type/>
|
7295 |
</argument>
|
7296 |
</method>
|
7297 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
7298 |
<name>mla_delete_option</name>
|
7299 |
<full_name>mla_delete_option</full_name>
|
7300 |
-
<docblock line="
|
7301 |
<description><![CDATA[Delete the stored value of a defined MLA option]]></description>
|
7302 |
<long-description><![CDATA[]]></long-description>
|
7303 |
-
<tag line="
|
7304 |
-
<tag line="
|
7305 |
<type by_reference="false">string</type>
|
7306 |
</tag>
|
7307 |
-
<tag line="
|
7308 |
<type by_reference="false">boolean</type>
|
7309 |
</tag>
|
7310 |
</docblock>
|
7311 |
-
<argument line="
|
7312 |
<name>$option</name>
|
7313 |
<default><![CDATA[]]></default>
|
7314 |
<type/>
|
7315 |
</argument>
|
7316 |
</method>
|
7317 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
7318 |
<name>mla_taxonomy_support</name>
|
7319 |
<full_name>mla_taxonomy_support</full_name>
|
7320 |
-
<docblock line="
|
7321 |
<description><![CDATA[Determine MLA support for a taxonomy, handling the special case where the
|
7322 |
settings are being updated or reset.]]></description>
|
7323 |
<long-description><![CDATA[]]></long-description>
|
7324 |
-
<tag line="
|
7325 |
-
<tag line="
|
7326 |
<type by_reference="false">string</type>
|
7327 |
</tag>
|
7328 |
-
<tag line="
|
7329 |
<type by_reference="false">string</type>
|
7330 |
</tag>
|
7331 |
-
<tag line="
|
7332 |
<type by_reference="false">boolean</type>
|
7333 |
<type by_reference="false">string</type>
|
7334 |
</tag>
|
7335 |
</docblock>
|
7336 |
-
<argument line="
|
7337 |
<name>$tax_name</name>
|
7338 |
<default><![CDATA[]]></default>
|
7339 |
<type/>
|
7340 |
</argument>
|
7341 |
-
<argument line="
|
7342 |
<name>$support_type</name>
|
7343 |
<default><![CDATA['support']]></default>
|
7344 |
<type/>
|
7345 |
</argument>
|
7346 |
</method>
|
7347 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
7348 |
<name>mla_supported_taxonomies</name>
|
7349 |
<full_name>mla_supported_taxonomies</full_name>
|
7350 |
-
<docblock line="
|
7351 |
<description><![CDATA[Returns an array of taxonomy names assigned to $support_type]]></description>
|
7352 |
<long-description><![CDATA[]]></long-description>
|
7353 |
-
<tag line="
|
7354 |
-
<tag line="
|
7355 |
<type by_reference="false">string</type>
|
7356 |
</tag>
|
7357 |
-
<tag line="
|
7358 |
<type by_reference="false">array</type>
|
7359 |
</tag>
|
7360 |
</docblock>
|
7361 |
-
<argument line="
|
7362 |
<name>$support_type</name>
|
7363 |
<default><![CDATA['support']]></default>
|
7364 |
<type/>
|
7365 |
</argument>
|
7366 |
</method>
|
7367 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
7368 |
<name>mla_attachment_display_settings_option_handler</name>
|
7369 |
<full_name>mla_attachment_display_settings_option_handler</full_name>
|
7370 |
-
<docblock line="
|
7371 |
<description><![CDATA[Render and manage Attachment Display Settings options; alignment, link type and size]]></description>
|
7372 |
<long-description><![CDATA[]]></long-description>
|
7373 |
-
<tag line="
|
7374 |
-
<tag line="
|
7375 |
-
<tag line="
|
7376 |
<type by_reference="false">string</type>
|
7377 |
</tag>
|
7378 |
-
<tag line="
|
7379 |
<type by_reference="false">string</type>
|
7380 |
</tag>
|
7381 |
-
<tag line="
|
7382 |
<type by_reference="false">array</type>
|
7383 |
</tag>
|
7384 |
-
<tag line="
|
7385 |
<type by_reference="false">array</type>
|
7386 |
</tag>
|
7387 |
-
<tag line="
|
7388 |
<type by_reference="false">string</type>
|
7389 |
</tag>
|
7390 |
</docblock>
|
7391 |
-
<argument line="
|
7392 |
<name>$action</name>
|
7393 |
<default><![CDATA[]]></default>
|
7394 |
<type/>
|
7395 |
</argument>
|
7396 |
-
<argument line="
|
7397 |
<name>$key</name>
|
7398 |
<default><![CDATA[]]></default>
|
7399 |
<type/>
|
7400 |
</argument>
|
7401 |
-
<argument line="
|
7402 |
<name>$value</name>
|
7403 |
<default><![CDATA[]]></default>
|
7404 |
<type/>
|
7405 |
</argument>
|
7406 |
-
<argument line="
|
7407 |
<name>$args</name>
|
7408 |
<default><![CDATA[null]]></default>
|
7409 |
<type/>
|
7410 |
</argument>
|
7411 |
</method>
|
7412 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
7413 |
<name>mla_taxonomy_option_handler</name>
|
7414 |
<full_name>mla_taxonomy_option_handler</full_name>
|
7415 |
-
<docblock line="
|
7416 |
<description><![CDATA[Render and manage taxonomy support options, e.g., Categories and Post Tags]]></description>
|
7417 |
<long-description><![CDATA[]]></long-description>
|
7418 |
-
<tag line="
|
7419 |
-
<tag line="
|
7420 |
-
<tag line="
|
7421 |
<type by_reference="false">string</type>
|
7422 |
</tag>
|
7423 |
-
<tag line="
|
7424 |
<type by_reference="false">string</type>
|
7425 |
</tag>
|
7426 |
-
<tag line="
|
7427 |
<type by_reference="false">array</type>
|
7428 |
</tag>
|
7429 |
-
<tag line="
|
7430 |
<type by_reference="false">array</type>
|
7431 |
</tag>
|
7432 |
-
<tag line="
|
7433 |
<type by_reference="false">string</type>
|
7434 |
</tag>
|
7435 |
</docblock>
|
7436 |
-
<argument line="
|
7437 |
<name>$action</name>
|
7438 |
<default><![CDATA[]]></default>
|
7439 |
<type/>
|
7440 |
</argument>
|
7441 |
-
<argument line="
|
7442 |
<name>$key</name>
|
7443 |
<default><![CDATA[]]></default>
|
7444 |
<type/>
|
7445 |
</argument>
|
7446 |
-
<argument line="
|
7447 |
<name>$value</name>
|
7448 |
<default><![CDATA[]]></default>
|
7449 |
<type/>
|
7450 |
</argument>
|
7451 |
-
<argument line="
|
7452 |
<name>$args</name>
|
7453 |
<default><![CDATA[null]]></default>
|
7454 |
<type/>
|
7455 |
</argument>
|
7456 |
</method>
|
7457 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
7458 |
<name>mla_search_option_handler</name>
|
7459 |
<full_name>mla_search_option_handler</full_name>
|
7460 |
-
<docblock line="
|
7461 |
<description><![CDATA[Render and manage Search box options, e.g., connector and search fields]]></description>
|
7462 |
<long-description><![CDATA[]]></long-description>
|
7463 |
-
<tag line="
|
7464 |
-
<tag line="
|
7465 |
-
<tag line="
|
7466 |
<type by_reference="false">string</type>
|
7467 |
</tag>
|
7468 |
-
<tag line="
|
7469 |
<type by_reference="false">string</type>
|
7470 |
</tag>
|
7471 |
-
<tag line="
|
7472 |
<type by_reference="false">array</type>
|
7473 |
</tag>
|
7474 |
-
<tag line="
|
7475 |
<type by_reference="false">array</type>
|
7476 |
</tag>
|
7477 |
-
<tag line="
|
7478 |
<type by_reference="false">string</type>
|
7479 |
</tag>
|
7480 |
</docblock>
|
7481 |
-
<argument line="
|
7482 |
<name>$action</name>
|
7483 |
<default><![CDATA[]]></default>
|
7484 |
<type/>
|
7485 |
</argument>
|
7486 |
-
<argument line="
|
7487 |
<name>$key</name>
|
7488 |
<default><![CDATA[]]></default>
|
7489 |
<type/>
|
7490 |
</argument>
|
7491 |
-
<argument line="
|
7492 |
<name>$value</name>
|
7493 |
<default><![CDATA[]]></default>
|
7494 |
<type/>
|
7495 |
</argument>
|
7496 |
-
<argument line="
|
7497 |
<name>$args</name>
|
7498 |
<default><![CDATA[null]]></default>
|
7499 |
<type/>
|
7500 |
</argument>
|
7501 |
</method>
|
7502 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
7503 |
<name>mla_wp_handle_upload_prefilter_filter</name>
|
7504 |
<full_name>mla_wp_handle_upload_prefilter_filter</full_name>
|
7505 |
-
<docblock line="
|
7506 |
<description><![CDATA[Examine or alter the filename before the file is made permanent]]></description>
|
7507 |
<long-description><![CDATA[]]></long-description>
|
7508 |
-
<tag line="
|
7509 |
-
<tag line="
|
7510 |
<type by_reference="false">array</type>
|
7511 |
</tag>
|
7512 |
-
<tag line="
|
7513 |
<type by_reference="false">array</type>
|
7514 |
</tag>
|
7515 |
</docblock>
|
7516 |
-
<argument line="
|
7517 |
<name>$file</name>
|
7518 |
<default><![CDATA[]]></default>
|
7519 |
<type/>
|
7520 |
</argument>
|
7521 |
</method>
|
7522 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
7523 |
<name>mla_wp_handle_upload_filter</name>
|
7524 |
<full_name>mla_wp_handle_upload_filter</full_name>
|
7525 |
-
<docblock line="
|
7526 |
<description><![CDATA[Called once for each file uploaded]]></description>
|
7527 |
<long-description><![CDATA[]]></long-description>
|
7528 |
-
<tag line="
|
7529 |
-
<tag line="
|
7530 |
<type by_reference="false">array</type>
|
7531 |
</tag>
|
7532 |
-
<tag line="
|
7533 |
<type by_reference="false">array</type>
|
7534 |
</tag>
|
7535 |
</docblock>
|
7536 |
-
<argument line="
|
7537 |
<name>$file</name>
|
7538 |
<default><![CDATA[]]></default>
|
7539 |
<type/>
|
7540 |
</argument>
|
7541 |
</method>
|
7542 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
7543 |
<name>mla_add_attachment_action</name>
|
7544 |
<full_name>mla_add_attachment_action</full_name>
|
7545 |
-
<docblock line="
|
7546 |
<description><![CDATA[Set $add_attachment_id to just-inserted attachment]]></description>
|
7547 |
<long-description><![CDATA[<p>All of the actual processing is done later, in mla_update_attachment_metadata_filter.</p>]]></long-description>
|
7548 |
-
<tag line="
|
7549 |
-
<tag line="
|
7550 |
<type by_reference="false">integer</type>
|
7551 |
</tag>
|
7552 |
-
<tag line="
|
7553 |
<type by_reference="false">void</type>
|
7554 |
</tag>
|
7555 |
</docblock>
|
7556 |
-
<argument line="
|
7557 |
<name>$post_ID</name>
|
7558 |
<default><![CDATA[]]></default>
|
7559 |
<type/>
|
7560 |
</argument>
|
7561 |
</method>
|
7562 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
7563 |
<name>_update_attachment_metadata</name>
|
7564 |
<full_name>_update_attachment_metadata</full_name>
|
7565 |
-
<docblock line="
|
7566 |
<description><![CDATA[Update _wp_attachment_metadata for just-inserted attachment]]></description>
|
7567 |
<long-description><![CDATA[]]></long-description>
|
7568 |
-
<tag line="
|
7569 |
-
<tag line="
|
7570 |
<type by_reference="false">array</type>
|
7571 |
</tag>
|
7572 |
-
<tag line="
|
7573 |
<type by_reference="false">array</type>
|
7574 |
</tag>
|
7575 |
-
<tag line="
|
7576 |
<type by_reference="false">array</type>
|
7577 |
</tag>
|
7578 |
</docblock>
|
7579 |
-
<argument line="
|
7580 |
<name>$updates</name>
|
7581 |
<default><![CDATA[]]></default>
|
7582 |
<type/>
|
7583 |
</argument>
|
7584 |
-
<argument line="
|
7585 |
<name>$data</name>
|
7586 |
<default><![CDATA[]]></default>
|
7587 |
<type/>
|
7588 |
</argument>
|
7589 |
</method>
|
7590 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
7591 |
<name>mla_update_attachment_metadata_filter</name>
|
7592 |
<full_name>mla_update_attachment_metadata_filter</full_name>
|
7593 |
-
<docblock line="
|
7594 |
<description><![CDATA[Perform IPTC/EXIF and Custom Field mapping on just-inserted attachment]]></description>
|
7595 |
<long-description><![CDATA[<p>This filter tests the $add_attachment_id variable set by the mla_add_attachment_action
|
7596 |
to ensure that mapping is only performed for new additions, not metadata updates.</p>]]></long-description>
|
7597 |
-
<tag line="
|
7598 |
-
<tag line="
|
7599 |
<type by_reference="false">array</type>
|
7600 |
</tag>
|
7601 |
-
<tag line="
|
7602 |
<type by_reference="false">integer</type>
|
7603 |
</tag>
|
7604 |
-
<tag line="
|
7605 |
-
<type by_reference="false">
|
7606 |
</tag>
|
7607 |
</docblock>
|
7608 |
-
<argument line="
|
7609 |
<name>$data</name>
|
7610 |
<default><![CDATA[]]></default>
|
7611 |
<type/>
|
7612 |
</argument>
|
7613 |
-
<argument line="
|
7614 |
<name>$post_id</name>
|
7615 |
<default><![CDATA[]]></default>
|
7616 |
<type/>
|
7617 |
</argument>
|
7618 |
</method>
|
7619 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
7620 |
<name>mla_custom_field_option_value</name>
|
7621 |
<full_name>mla_custom_field_option_value</full_name>
|
7622 |
-
<docblock line="
|
7623 |
<description><![CDATA[Fetch custom field option value given a slug]]></description>
|
7624 |
<long-description><![CDATA[]]></long-description>
|
7625 |
-
<tag line="
|
7626 |
-
<tag line="
|
7627 |
<type by_reference="false">string</type>
|
7628 |
</tag>
|
7629 |
-
<tag line="
|
7630 |
<type by_reference="false">array</type>
|
7631 |
</tag>
|
7632 |
</docblock>
|
7633 |
-
<argument line="
|
7634 |
<name>$slug</name>
|
7635 |
<default><![CDATA[]]></default>
|
7636 |
<type/>
|
7637 |
</argument>
|
7638 |
</method>
|
7639 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
7640 |
<name>mla_custom_field_support</name>
|
7641 |
<full_name>mla_custom_field_support</full_name>
|
7642 |
-
<docblock line="
|
7643 |
<description><![CDATA[Evaluate file information for custom field mapping]]></description>
|
7644 |
<long-description><![CDATA[]]></long-description>
|
7645 |
-
<tag line="
|
7646 |
-
<tag line="
|
7647 |
<type by_reference="false">string</type>
|
7648 |
</tag>
|
7649 |
-
<tag line="
|
7650 |
<type by_reference="false">array</type>
|
7651 |
</tag>
|
7652 |
</docblock>
|
7653 |
-
<argument line="
|
7654 |
<name>$support_type</name>
|
7655 |
<default><![CDATA['default_columns']]></default>
|
7656 |
<type/>
|
7657 |
</argument>
|
7658 |
</method>
|
7659 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
7660 |
<name>_evaluate_file_information</name>
|
7661 |
<full_name>_evaluate_file_information</full_name>
|
7662 |
-
<docblock line="
|
7663 |
<description><![CDATA[Evaluate file information for custom field mapping]]></description>
|
7664 |
<long-description><![CDATA[]]></long-description>
|
7665 |
-
<tag line="
|
7666 |
-
<tag line="
|
7667 |
<type by_reference="false">string</type>
|
7668 |
</tag>
|
7669 |
-
<tag line="
|
7670 |
<type by_reference="false">array</type>
|
7671 |
</tag>
|
7672 |
-
<tag line="
|
7673 |
<type by_reference="false">array</type>
|
7674 |
</tag>
|
7675 |
-
<tag line="
|
7676 |
<type by_reference="false">integer</type>
|
7677 |
</tag>
|
7678 |
-
<tag line="
|
7679 |
<type by_reference="false">array</type>
|
7680 |
</tag>
|
7681 |
</docblock>
|
7682 |
-
<argument line="
|
7683 |
<name>$upload_dir</name>
|
7684 |
<default><![CDATA[]]></default>
|
7685 |
<type/>
|
7686 |
</argument>
|
7687 |
-
<argument line="
|
7688 |
<name>$wp_attached_files</name>
|
7689 |
<default><![CDATA[]]></default>
|
7690 |
<type/>
|
7691 |
</argument>
|
7692 |
-
<argument line="
|
7693 |
<name>$wp_attachment_metadata</name>
|
7694 |
<default><![CDATA[]]></default>
|
7695 |
<type/>
|
7696 |
</argument>
|
7697 |
-
<argument line="
|
7698 |
<name>$post_id</name>
|
7699 |
<default><![CDATA[]]></default>
|
7700 |
<type/>
|
7701 |
</argument>
|
7702 |
</method>
|
7703 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
7704 |
<name>_evaluate_post_information</name>
|
7705 |
<full_name>_evaluate_post_information</full_name>
|
7706 |
-
<docblock line="
|
7707 |
<description><![CDATA[Evaluate post information for custom field mapping]]></description>
|
7708 |
<long-description><![CDATA[]]></long-description>
|
7709 |
-
<tag line="
|
7710 |
-
<tag line="
|
7711 |
<type by_reference="false">integer</type>
|
7712 |
</tag>
|
7713 |
-
<tag line="
|
7714 |
<type by_reference="false">string</type>
|
7715 |
</tag>
|
7716 |
-
<tag line="
|
7717 |
<type by_reference="false">string</type>
|
7718 |
</tag>
|
7719 |
-
<tag line="
|
7720 |
<type by_reference="false">mixed</type>
|
7721 |
</tag>
|
7722 |
</docblock>
|
7723 |
-
<argument line="
|
7724 |
<name>$post_id</name>
|
7725 |
<default><![CDATA[]]></default>
|
7726 |
<type/>
|
7727 |
</argument>
|
7728 |
-
<argument line="
|
7729 |
<name>$category</name>
|
7730 |
<default><![CDATA[]]></default>
|
7731 |
<type/>
|
7732 |
</argument>
|
7733 |
-
<argument line="
|
7734 |
<name>$data_source</name>
|
7735 |
<default><![CDATA[]]></default>
|
7736 |
<type/>
|
7737 |
</argument>
|
7738 |
</method>
|
7739 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
7740 |
<name>_evaluate_array_result</name>
|
7741 |
<full_name>_evaluate_array_result</full_name>
|
7742 |
-
<docblock line="
|
7743 |
<description><![CDATA[Evaluate post information for custom field mapping]]></description>
|
7744 |
<long-description><![CDATA[]]></long-description>
|
7745 |
-
<tag line="
|
7746 |
-
<tag line="
|
7747 |
<type by_reference="false">array</type>
|
7748 |
</tag>
|
7749 |
-
<tag line="
|
7750 |
<type by_reference="false">string</type>
|
7751 |
</tag>
|
7752 |
-
<tag line="
|
7753 |
<type by_reference="false">boolean</type>
|
7754 |
</tag>
|
7755 |
-
<tag line="
|
7756 |
<type by_reference="false">mixed</type>
|
7757 |
</tag>
|
7758 |
</docblock>
|
7759 |
-
<argument line="
|
7760 |
<name>$value</name>
|
7761 |
<default><![CDATA[]]></default>
|
7762 |
<type/>
|
7763 |
</argument>
|
7764 |
-
<argument line="
|
7765 |
<name>$option</name>
|
7766 |
<default><![CDATA[]]></default>
|
7767 |
<type/>
|
7768 |
</argument>
|
7769 |
-
<argument line="
|
7770 |
<name>$keep_existing</name>
|
7771 |
<default><![CDATA[]]></default>
|
7772 |
<type/>
|
7773 |
</argument>
|
7774 |
</method>
|
7775 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
7776 |
<name>mla_get_data_source</name>
|
7777 |
<full_name>mla_get_data_source</full_name>
|
7778 |
-
<docblock line="
|
7779 |
<description><![CDATA[Get IPTC/EXIF or custom field mapping data source]]></description>
|
7780 |
<long-description><![CDATA[<p>Defined as public so MLA Mapping Hooks clients can call it.
|
7781 |
Isolates clients from changes to _evaluate_data_source().</p>]]></long-description>
|
7782 |
-
<tag line="
|
7783 |
-
<tag line="
|
7784 |
<type by_reference="false">integer</type>
|
7785 |
</tag>
|
7786 |
-
<tag line="
|
7787 |
<type by_reference="false">string</type>
|
7788 |
</tag>
|
7789 |
-
<tag line="
|
7790 |
<type by_reference="false">array</type>
|
7791 |
</tag>
|
7792 |
-
<tag line="
|
7793 |
<type by_reference="false">array</type>
|
7794 |
</tag>
|
7795 |
-
<tag line="
|
7796 |
<type by_reference="false">string</type>
|
7797 |
<type by_reference="false">array</type>
|
7798 |
</tag>
|
7799 |
</docblock>
|
7800 |
-
<argument line="
|
7801 |
<name>$post_id</name>
|
7802 |
<default><![CDATA[]]></default>
|
7803 |
<type/>
|
7804 |
</argument>
|
7805 |
-
<argument line="
|
7806 |
<name>$category</name>
|
7807 |
<default><![CDATA[]]></default>
|
7808 |
<type/>
|
7809 |
</argument>
|
7810 |
-
<argument line="
|
7811 |
<name>$data_value</name>
|
7812 |
<default><![CDATA[]]></default>
|
7813 |
<type/>
|
7814 |
</argument>
|
7815 |
-
<argument line="
|
7816 |
<name>$attachment_metadata</name>
|
7817 |
<default><![CDATA[NULL]]></default>
|
7818 |
<type/>
|
7819 |
</argument>
|
7820 |
</method>
|
7821 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
7822 |
<name>mla_is_data_source</name>
|
7823 |
<full_name>mla_is_data_source</full_name>
|
7824 |
-
<docblock line="
|
7825 |
<description><![CDATA[Identify custom field mapping data source]]></description>
|
7826 |
<long-description><![CDATA[<p>Determines whether a name matches any of the element-level data source dropdown options, i.e.,
|
7827 |
excludes "template:" and "meta:" values.</p>]]></long-description>
|
7828 |
-
<tag line="
|
7829 |
-
<tag line="
|
7830 |
<type by_reference="false">string</type>
|
7831 |
</tag>
|
7832 |
-
<tag line="
|
7833 |
<type by_reference="false">boolean</type>
|
7834 |
</tag>
|
7835 |
</docblock>
|
7836 |
-
<argument line="
|
7837 |
<name>$candidate_name</name>
|
7838 |
<default><![CDATA[]]></default>
|
7839 |
<type/>
|
7840 |
</argument>
|
7841 |
</method>
|
7842 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
7843 |
<name>_evaluate_data_source</name>
|
7844 |
<full_name>_evaluate_data_source</full_name>
|
7845 |
-
<docblock line="
|
7846 |
<description><![CDATA[Evaluate custom field mapping data source]]></description>
|
7847 |
<long-description><![CDATA[]]></long-description>
|
7848 |
-
<tag line="
|
7849 |
-
<tag line="
|
7850 |
<type by_reference="false">integer</type>
|
7851 |
</tag>
|
7852 |
-
<tag line="
|
7853 |
<type by_reference="false">string</type>
|
7854 |
</tag>
|
7855 |
-
<tag line="
|
7856 |
<type by_reference="false">array</type>
|
7857 |
</tag>
|
7858 |
-
<tag line="
|
7859 |
<type by_reference="false">array</type>
|
7860 |
</tag>
|
7861 |
-
<tag line="
|
7862 |
<type by_reference="false">string</type>
|
7863 |
<type by_reference="false">array</type>
|
7864 |
</tag>
|
7865 |
</docblock>
|
7866 |
-
<argument line="
|
7867 |
<name>$post_id</name>
|
7868 |
<default><![CDATA[]]></default>
|
7869 |
<type/>
|
7870 |
</argument>
|
7871 |
-
<argument line="
|
7872 |
<name>$category</name>
|
7873 |
<default><![CDATA[]]></default>
|
7874 |
<type/>
|
7875 |
</argument>
|
7876 |
-
<argument line="
|
7877 |
<name>$data_value</name>
|
7878 |
<default><![CDATA[]]></default>
|
7879 |
<type/>
|
7880 |
</argument>
|
7881 |
-
<argument line="
|
7882 |
<name>$attachment_metadata</name>
|
7883 |
<default><![CDATA[NULL]]></default>
|
7884 |
<type/>
|
7885 |
</argument>
|
7886 |
</method>
|
7887 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
7888 |
<name>mla_evaluate_custom_field_mapping</name>
|
7889 |
<full_name>mla_evaluate_custom_field_mapping</full_name>
|
7890 |
-
<docblock line="
|
7891 |
<description><![CDATA[Evaluate custom field mapping updates for a post]]></description>
|
7892 |
<long-description><![CDATA[]]></long-description>
|
7893 |
-
<tag line="
|
7894 |
-
<tag line="
|
7895 |
<type by_reference="false">integer</type>
|
7896 |
</tag>
|
7897 |
-
<tag line="
|
7898 |
<type by_reference="false">string</type>
|
7899 |
</tag>
|
7900 |
-
<tag line="
|
7901 |
<type by_reference="false">array</type>
|
7902 |
</tag>
|
7903 |
-
<tag line="
|
7904 |
<type by_reference="false">array</type>
|
7905 |
</tag>
|
7906 |
-
<tag line="
|
7907 |
<type by_reference="false">array</type>
|
7908 |
</tag>
|
7909 |
</docblock>
|
7910 |
-
<argument line="
|
7911 |
<name>$post_id</name>
|
7912 |
<default><![CDATA[]]></default>
|
7913 |
<type/>
|
7914 |
</argument>
|
7915 |
-
<argument line="
|
7916 |
<name>$category</name>
|
7917 |
<default><![CDATA[]]></default>
|
7918 |
<type/>
|
7919 |
</argument>
|
7920 |
-
<argument line="
|
7921 |
<name>$settings</name>
|
7922 |
<default><![CDATA[NULL]]></default>
|
7923 |
<type/>
|
7924 |
</argument>
|
7925 |
-
<argument line="
|
7926 |
<name>$attachment_metadata</name>
|
7927 |
<default><![CDATA[NULL]]></default>
|
7928 |
<type/>
|
7929 |
</argument>
|
7930 |
</method>
|
7931 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
7932 |
<name>_compose_custom_field_option_list</name>
|
7933 |
<full_name>_compose_custom_field_option_list</full_name>
|
7934 |
-
<docblock line="
|
7935 |
<description><![CDATA[Compose a Custom Field Options list with current selection]]></description>
|
7936 |
<long-description><![CDATA[]]></long-description>
|
7937 |
-
<tag line="
|
7938 |
-
<tag line="
|
7939 |
-
<tag line="
|
7940 |
<type by_reference="false">string</type>
|
7941 |
</tag>
|
7942 |
-
<tag line="
|
7943 |
<type by_reference="false">array</type>
|
7944 |
</tag>
|
7945 |
-
<tag line="
|
7946 |
<type by_reference="false">string</type>
|
7947 |
</tag>
|
7948 |
</docblock>
|
7949 |
-
<argument line="
|
7950 |
<name>$selection</name>
|
7951 |
<default><![CDATA['none']]></default>
|
7952 |
<type/>
|
7953 |
</argument>
|
7954 |
-
<argument line="
|
7955 |
<name>$blacklist</name>
|
7956 |
<default><![CDATA[array()]]></default>
|
7957 |
<type/>
|
7958 |
</argument>
|
7959 |
</method>
|
7960 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
7961 |
<name>_compose_data_source_option_list</name>
|
7962 |
<full_name>_compose_data_source_option_list</full_name>
|
7963 |
-
<docblock line="
|
7964 |
<description><![CDATA[Compose a (Custom Field) Data Source Options list with current selection]]></description>
|
7965 |
<long-description><![CDATA[]]></long-description>
|
7966 |
-
<tag line="
|
7967 |
-
<tag line="
|
7968 |
-
<tag line="
|
7969 |
<type by_reference="false">string</type>
|
7970 |
</tag>
|
7971 |
-
<tag line="
|
7972 |
<type by_reference="false">string</type>
|
7973 |
</tag>
|
7974 |
</docblock>
|
7975 |
-
<argument line="
|
7976 |
<name>$selection</name>
|
7977 |
<default><![CDATA['none']]></default>
|
7978 |
<type/>
|
7979 |
</argument>
|
7980 |
</method>
|
7981 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
7982 |
<name>_update_custom_field_mapping</name>
|
7983 |
<full_name>_update_custom_field_mapping</full_name>
|
7984 |
-
<docblock line="
|
7985 |
<description><![CDATA[Update custom field mappings]]></description>
|
7986 |
<long-description><![CDATA[]]></long-description>
|
7987 |
-
<tag line="
|
7988 |
-
<tag line="
|
7989 |
<type by_reference="false">array</type>
|
7990 |
</tag>
|
7991 |
-
<tag line="
|
7992 |
<type by_reference="false">array</type>
|
7993 |
</tag>
|
7994 |
-
<tag line="
|
7995 |
<type by_reference="false">array</type>
|
7996 |
</tag>
|
7997 |
</docblock>
|
7998 |
-
<argument line="
|
7999 |
<name>$current_values</name>
|
8000 |
<default><![CDATA[]]></default>
|
8001 |
<type/>
|
8002 |
</argument>
|
8003 |
-
<argument line="
|
8004 |
<name>$new_values</name>
|
8005 |
<default><![CDATA[]]></default>
|
8006 |
<type/>
|
8007 |
</argument>
|
8008 |
</method>
|
8009 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
8010 |
<name>mla_custom_field_option_handler</name>
|
8011 |
<full_name>mla_custom_field_option_handler</full_name>
|
8012 |
-
<docblock line="
|
8013 |
<description><![CDATA[Render and manage custom field mapping options]]></description>
|
8014 |
<long-description><![CDATA[]]></long-description>
|
8015 |
-
<tag line="
|
8016 |
-
<tag line="
|
8017 |
-
<tag line="
|
8018 |
<type by_reference="false">string</type>
|
8019 |
</tag>
|
8020 |
-
<tag line="
|
8021 |
<type by_reference="false">string</type>
|
8022 |
</tag>
|
8023 |
-
<tag line="
|
8024 |
<type by_reference="false">array</type>
|
8025 |
</tag>
|
8026 |
-
<tag line="
|
8027 |
<type by_reference="false">array</type>
|
8028 |
</tag>
|
8029 |
-
<tag line="
|
8030 |
<type by_reference="false">string</type>
|
8031 |
</tag>
|
8032 |
</docblock>
|
8033 |
-
<argument line="
|
8034 |
<name>$action</name>
|
8035 |
<default><![CDATA[]]></default>
|
8036 |
<type/>
|
8037 |
</argument>
|
8038 |
-
<argument line="
|
8039 |
<name>$key</name>
|
8040 |
<default><![CDATA[]]></default>
|
8041 |
<type/>
|
8042 |
</argument>
|
8043 |
-
<argument line="
|
8044 |
<name>$value</name>
|
8045 |
<default><![CDATA[]]></default>
|
8046 |
<type/>
|
8047 |
</argument>
|
8048 |
-
<argument line="
|
8049 |
<name>$args</name>
|
8050 |
<default><![CDATA[null]]></default>
|
8051 |
<type/>
|
8052 |
</argument>
|
8053 |
</method>
|
8054 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
8055 |
<name>mla_evaluate_iptc_exif_mapping</name>
|
8056 |
<full_name>mla_evaluate_iptc_exif_mapping</full_name>
|
8057 |
-
<docblock line="
|
8058 |
<description><![CDATA[Evaluate IPTC/EXIF mapping updates for a post]]></description>
|
8059 |
<long-description><![CDATA[]]></long-description>
|
8060 |
-
<tag line="
|
8061 |
-
<tag line="
|
8062 |
<type by_reference="false">object</type>
|
8063 |
</tag>
|
8064 |
-
<tag line="
|
8065 |
<type by_reference="false">string</type>
|
8066 |
</tag>
|
8067 |
-
<tag line="
|
8068 |
<type by_reference="false">array</type>
|
8069 |
</tag>
|
8070 |
-
<tag line="
|
8071 |
<type by_reference="false">array</type>
|
8072 |
</tag>
|
8073 |
-
<tag line="
|
8074 |
<type by_reference="false">array</type>
|
8075 |
</tag>
|
8076 |
</docblock>
|
8077 |
-
<argument line="
|
8078 |
<name>$post</name>
|
8079 |
<default><![CDATA[]]></default>
|
8080 |
<type/>
|
8081 |
</argument>
|
8082 |
-
<argument line="
|
8083 |
<name>$category</name>
|
8084 |
<default><![CDATA[]]></default>
|
8085 |
<type/>
|
8086 |
</argument>
|
8087 |
-
<argument line="
|
8088 |
<name>$settings</name>
|
8089 |
<default><![CDATA[NULL]]></default>
|
8090 |
<type/>
|
8091 |
</argument>
|
8092 |
-
<argument line="
|
8093 |
<name>$attachment_metadata</name>
|
8094 |
<default><![CDATA[NULL]]></default>
|
8095 |
<type/>
|
8096 |
</argument>
|
8097 |
</method>
|
8098 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
8099 |
<name>_compose_iptc_option_list</name>
|
8100 |
<full_name>_compose_iptc_option_list</full_name>
|
8101 |
-
<docblock line="
|
8102 |
<description><![CDATA[Compose an IPTC Options list with current selection]]></description>
|
8103 |
<long-description><![CDATA[]]></long-description>
|
8104 |
-
<tag line="
|
8105 |
-
<tag line="
|
8106 |
-
<tag line="
|
8107 |
<type by_reference="false">string</type>
|
8108 |
</tag>
|
8109 |
-
<tag line="
|
8110 |
<type by_reference="false">string</type>
|
8111 |
</tag>
|
8112 |
</docblock>
|
8113 |
-
<argument line="
|
8114 |
<name>$selection</name>
|
8115 |
<default><![CDATA['none']]></default>
|
8116 |
<type/>
|
8117 |
</argument>
|
8118 |
</method>
|
8119 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
8120 |
<name>_compose_parent_option_list</name>
|
8121 |
<full_name>_compose_parent_option_list</full_name>
|
8122 |
-
<docblock line="
|
8123 |
<description><![CDATA[Compose an hierarchical taxonomy Parent options list with current selection]]></description>
|
8124 |
<long-description><![CDATA[]]></long-description>
|
8125 |
-
<tag line="
|
8126 |
-
<tag line="
|
8127 |
-
<tag line="
|
8128 |
<type by_reference="false">string</type>
|
8129 |
</tag>
|
8130 |
-
<tag line="
|
8131 |
<type by_reference="false">integer</type>
|
8132 |
</tag>
|
8133 |
-
<tag line="
|
8134 |
<type by_reference="false">string</type>
|
8135 |
</tag>
|
8136 |
</docblock>
|
8137 |
-
<argument line="
|
8138 |
<name>$taxonomy</name>
|
8139 |
<default><![CDATA[]]></default>
|
8140 |
<type/>
|
8141 |
</argument>
|
8142 |
-
<argument line="
|
8143 |
<name>$selection</name>
|
8144 |
<default><![CDATA[0]]></default>
|
8145 |
<type/>
|
8146 |
</argument>
|
8147 |
</method>
|
8148 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
8149 |
<name>_update_iptc_exif_standard_mapping</name>
|
8150 |
<full_name>_update_iptc_exif_standard_mapping</full_name>
|
8151 |
-
<docblock line="
|
8152 |
<description><![CDATA[Update Standard field portion of IPTC/EXIF mappings]]></description>
|
8153 |
<long-description><![CDATA[]]></long-description>
|
8154 |
-
<tag line="
|
8155 |
-
<tag line="
|
8156 |
<type by_reference="false">array</type>
|
8157 |
</tag>
|
8158 |
-
<tag line="
|
8159 |
<type by_reference="false">array</type>
|
8160 |
</tag>
|
8161 |
-
<tag line="
|
8162 |
<type by_reference="false">array</type>
|
8163 |
</tag>
|
8164 |
</docblock>
|
8165 |
-
<argument line="
|
8166 |
<name>$current_values</name>
|
8167 |
<default><![CDATA[]]></default>
|
8168 |
<type/>
|
8169 |
</argument>
|
8170 |
-
<argument line="
|
8171 |
<name>$new_values</name>
|
8172 |
<default><![CDATA[]]></default>
|
8173 |
<type/>
|
8174 |
</argument>
|
8175 |
</method>
|
8176 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
8177 |
<name>_update_iptc_exif_taxonomy_mapping</name>
|
8178 |
<full_name>_update_iptc_exif_taxonomy_mapping</full_name>
|
8179 |
-
<docblock line="
|
8180 |
<description><![CDATA[Update Taxonomy term portion of IPTC/EXIF mappings]]></description>
|
8181 |
<long-description><![CDATA[]]></long-description>
|
8182 |
-
<tag line="
|
8183 |
-
<tag line="
|
8184 |
<type by_reference="false">array</type>
|
8185 |
</tag>
|
8186 |
-
<tag line="
|
8187 |
<type by_reference="false">array</type>
|
8188 |
</tag>
|
8189 |
-
<tag line="
|
8190 |
<type by_reference="false">array</type>
|
8191 |
</tag>
|
8192 |
</docblock>
|
8193 |
-
<argument line="
|
8194 |
<name>$current_values</name>
|
8195 |
<default><![CDATA[]]></default>
|
8196 |
<type/>
|
8197 |
</argument>
|
8198 |
-
<argument line="
|
8199 |
<name>$new_values</name>
|
8200 |
<default><![CDATA[]]></default>
|
8201 |
<type/>
|
8202 |
</argument>
|
8203 |
</method>
|
8204 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
8205 |
<name>_update_iptc_exif_custom_mapping</name>
|
8206 |
<full_name>_update_iptc_exif_custom_mapping</full_name>
|
8207 |
-
<docblock line="
|
8208 |
<description><![CDATA[Update Custom field portion of IPTC/EXIF mappings]]></description>
|
8209 |
<long-description><![CDATA[]]></long-description>
|
8210 |
-
<tag line="
|
8211 |
-
<tag line="
|
8212 |
<type by_reference="false">array</type>
|
8213 |
</tag>
|
8214 |
-
<tag line="
|
8215 |
<type by_reference="false">array</type>
|
8216 |
</tag>
|
8217 |
-
<tag line="
|
8218 |
<type by_reference="false">array</type>
|
8219 |
</tag>
|
8220 |
</docblock>
|
8221 |
-
<argument line="
|
8222 |
<name>$current_values</name>
|
8223 |
<default><![CDATA[]]></default>
|
8224 |
<type/>
|
8225 |
</argument>
|
8226 |
-
<argument line="
|
8227 |
<name>$new_values</name>
|
8228 |
<default><![CDATA[]]></default>
|
8229 |
<type/>
|
8230 |
</argument>
|
8231 |
</method>
|
8232 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
8233 |
<name>_get_custom_field_names</name>
|
8234 |
<full_name>_get_custom_field_names</full_name>
|
8235 |
-
<docblock line="
|
8236 |
<description><![CDATA[Generate a list of all (post) Custom Field names]]></description>
|
8237 |
<long-description><![CDATA[<p>The list will include any Custom Field and IPTC/EXIF rules that
|
8238 |
haven't been mapped to any attachments, yet.</p>]]></long-description>
|
8239 |
-
<tag line="
|
8240 |
-
<tag line="
|
8241 |
<type by_reference="false">array</type>
|
8242 |
</tag>
|
8243 |
</docblock>
|
8244 |
</method>
|
8245 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
8246 |
<name>mla_iptc_exif_option_handler</name>
|
8247 |
<full_name>mla_iptc_exif_option_handler</full_name>
|
8248 |
-
<docblock line="
|
8249 |
<description><![CDATA[Render and manage iptc/exif support options]]></description>
|
8250 |
<long-description><![CDATA[]]></long-description>
|
8251 |
-
<tag line="
|
8252 |
-
<tag line="
|
8253 |
-
<tag line="
|
8254 |
<type by_reference="false">string</type>
|
8255 |
</tag>
|
8256 |
-
<tag line="
|
8257 |
<type by_reference="false">string</type>
|
8258 |
</tag>
|
8259 |
-
<tag line="
|
8260 |
<type by_reference="false">array</type>
|
8261 |
</tag>
|
8262 |
-
<tag line="
|
8263 |
<type by_reference="false">array</type>
|
8264 |
</tag>
|
8265 |
-
<tag line="
|
8266 |
<type by_reference="false">string</type>
|
8267 |
</tag>
|
8268 |
</docblock>
|
8269 |
-
<argument line="
|
8270 |
<name>$action</name>
|
8271 |
<default><![CDATA[]]></default>
|
8272 |
<type/>
|
8273 |
</argument>
|
8274 |
-
<argument line="
|
8275 |
<name>$key</name>
|
8276 |
<default><![CDATA[]]></default>
|
8277 |
<type/>
|
8278 |
</argument>
|
8279 |
-
<argument line="
|
8280 |
<name>$value</name>
|
8281 |
<default><![CDATA[]]></default>
|
8282 |
<type/>
|
8283 |
</argument>
|
8284 |
-
<argument line="
|
8285 |
<name>$args</name>
|
8286 |
<default><![CDATA[null]]></default>
|
8287 |
<type/>
|
@@ -8289,7 +8502,7 @@ haven't been mapped to any attachments, yet.</p>]]></long-description>
|
|
8289 |
</method>
|
8290 |
</class>
|
8291 |
</file>
|
8292 |
-
<file path="includes\class-mla-settings.php" hash="
|
8293 |
<docblock line="2">
|
8294 |
<description><![CDATA[Manages the settings page to edit the plugin option settings]]></description>
|
8295 |
<long-description><![CDATA[]]></long-description>
|
@@ -8358,44 +8571,48 @@ haven't been mapped to any attachments, yet.</p>]]></long-description>
|
|
8358 |
</tag>
|
8359 |
</docblock>
|
8360 |
</constant>
|
8361 |
-
<constant namespace="global" line="
|
8362 |
<name>MLA_SETTINGS_SLUG</name>
|
8363 |
<full_name>MLA_SETTINGS_SLUG</full_name>
|
8364 |
<value><![CDATA['mla-settings-menu']]></value>
|
8365 |
<docblock line="52">
|
8366 |
<description><![CDATA[Provides a unique name for the settings page]]></description>
|
8367 |
<long-description><![CDATA[]]></long-description>
|
|
|
|
|
|
|
|
|
8368 |
</docblock>
|
8369 |
</constant>
|
8370 |
-
<property final="false" static="true" visibility="private" line="
|
8371 |
<name>$current_page_hook</name>
|
8372 |
<default><![CDATA['']]></default>
|
8373 |
-
<docblock line="
|
8374 |
<description><![CDATA[Holds screen id to match help text to corresponding screen]]></description>
|
8375 |
<long-description><![CDATA[]]></long-description>
|
8376 |
-
<tag line="
|
8377 |
-
<tag line="
|
8378 |
<type by_reference="false">array</type>
|
8379 |
</tag>
|
8380 |
</docblock>
|
8381 |
</property>
|
8382 |
-
<property final="false" static="true" visibility="public" line="
|
8383 |
<name>$page_template_array</name>
|
8384 |
<default><![CDATA[null]]></default>
|
8385 |
-
<docblock line="
|
8386 |
<description><![CDATA[Template file for the Settings page(s) and parts]]></description>
|
8387 |
<long-description><![CDATA[<p>This array contains all of the template parts for the Settings page(s). The array is built once
|
8388 |
each page load and cached for subsequent use.</p>]]></long-description>
|
8389 |
-
<tag line="
|
8390 |
-
<tag line="
|
8391 |
<type by_reference="false">array</type>
|
8392 |
</tag>
|
8393 |
</docblock>
|
8394 |
</property>
|
8395 |
-
<property final="false" static="true" visibility="private" line="
|
8396 |
<name>$mla_tablist</name>
|
8397 |
<default><![CDATA[array()]]></default>
|
8398 |
-
<docblock line="
|
8399 |
<description><![CDATA[Definitions for Settings page tab ids, titles and handlers
|
8400 |
Each tab is defined by an array with the following elements:]]></description>
|
8401 |
<long-description><![CDATA[<p>array key => HTML id/name attribute and option database key (OMIT MLA_OPTION_PREFIX)</p>
|
@@ -8406,856 +8623,856 @@ render => rendering function for tab messages and content. Usage:
|
|
8406 |
|
8407 |
<p>The array must be populated at runtime in MLASettings::mla_localize_tablist(),
|
8408 |
because Localization calls cannot be placed in the "public static" array definition itself.</p>]]></long-description>
|
8409 |
-
<tag line="
|
8410 |
-
<tag line="
|
8411 |
<type by_reference="false">array</type>
|
8412 |
</tag>
|
8413 |
</docblock>
|
8414 |
</property>
|
8415 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
8416 |
<name>initialize</name>
|
8417 |
<full_name>initialize</full_name>
|
8418 |
-
<docblock line="
|
8419 |
<description><![CDATA[Initialization function, similar to __construct()]]></description>
|
8420 |
<long-description><![CDATA[]]></long-description>
|
8421 |
-
<tag line="
|
8422 |
-
<tag line="
|
8423 |
<type by_reference="false">void</type>
|
8424 |
</tag>
|
8425 |
</docblock>
|
8426 |
</method>
|
8427 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
8428 |
<name>_version_upgrade</name>
|
8429 |
<full_name>_version_upgrade</full_name>
|
8430 |
-
<docblock line="
|
8431 |
<description><![CDATA[Database and option update check, for installing new versions]]></description>
|
8432 |
<long-description><![CDATA[]]></long-description>
|
8433 |
-
<tag line="
|
8434 |
-
<tag line="
|
8435 |
<type by_reference="false">void</type>
|
8436 |
</tag>
|
8437 |
</docblock>
|
8438 |
</method>
|
8439 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
8440 |
<name>mla_activation_hook</name>
|
8441 |
<full_name>mla_activation_hook</full_name>
|
8442 |
-
<docblock line="
|
8443 |
<description><![CDATA[Perform one-time actions on plugin activation]]></description>
|
8444 |
<long-description><![CDATA[<p>Adds a view to the database to support sorting the listing on 'ALT Text'.</p>]]></long-description>
|
8445 |
-
<tag line="
|
8446 |
-
<tag line="
|
8447 |
<type by_reference="false">void</type>
|
8448 |
</tag>
|
8449 |
</docblock>
|
8450 |
</method>
|
8451 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
8452 |
<name>mla_deactivation_hook</name>
|
8453 |
<full_name>mla_deactivation_hook</full_name>
|
8454 |
-
<docblock line="
|
8455 |
<description><![CDATA[Perform one-time actions on plugin deactivation]]></description>
|
8456 |
<long-description><![CDATA[<p>Removes (if present) a view from the database that supports sorting the listing on 'ALT Text'.</p>]]></long-description>
|
8457 |
-
<tag line="
|
8458 |
-
<tag line="
|
8459 |
<type by_reference="false">void</type>
|
8460 |
</tag>
|
8461 |
</docblock>
|
8462 |
</method>
|
8463 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
8464 |
<name>mla_admin_init_action</name>
|
8465 |
<full_name>mla_admin_init_action</full_name>
|
8466 |
-
<docblock line="
|
8467 |
<description><![CDATA[Load the plugin's Ajax handler]]></description>
|
8468 |
<long-description><![CDATA[]]></long-description>
|
8469 |
-
<tag line="
|
8470 |
-
<tag line="
|
8471 |
<type by_reference="false">void</type>
|
8472 |
</tag>
|
8473 |
</docblock>
|
8474 |
</method>
|
8475 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
8476 |
<name>mla_admin_enqueue_scripts_action</name>
|
8477 |
<full_name>mla_admin_enqueue_scripts_action</full_name>
|
8478 |
-
<docblock line="
|
8479 |
<description><![CDATA[Load the plugin's Style Sheet and Javascript files]]></description>
|
8480 |
<long-description><![CDATA[]]></long-description>
|
8481 |
-
<tag line="
|
8482 |
-
<tag line="
|
8483 |
<type by_reference="false">string</type>
|
8484 |
</tag>
|
8485 |
-
<tag line="
|
8486 |
<type by_reference="false">void</type>
|
8487 |
</tag>
|
8488 |
</docblock>
|
8489 |
-
<argument line="
|
8490 |
<name>$page_hook</name>
|
8491 |
<default><![CDATA[]]></default>
|
8492 |
<type/>
|
8493 |
</argument>
|
8494 |
</method>
|
8495 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
8496 |
<name>mla_admin_menu_action</name>
|
8497 |
<full_name>mla_admin_menu_action</full_name>
|
8498 |
-
<docblock line="
|
8499 |
<description><![CDATA[Add settings page in the "Settings" section,
|
8500 |
add screen options and help tabs,
|
8501 |
add settings link in the Plugins section entry for MLA.]]></description>
|
8502 |
<long-description><![CDATA[]]></long-description>
|
8503 |
-
<tag line="
|
8504 |
-
<tag line="
|
8505 |
<type by_reference="false">void</type>
|
8506 |
</tag>
|
8507 |
</docblock>
|
8508 |
</method>
|
8509 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
8510 |
<name>mla_add_menu_options_action</name>
|
8511 |
<full_name>mla_add_menu_options_action</full_name>
|
8512 |
-
<docblock line="
|
8513 |
<description><![CDATA[Add the "XX Entries per page" filter to the Screen Options tab]]></description>
|
8514 |
<long-description><![CDATA[]]></long-description>
|
8515 |
-
<tag line="
|
8516 |
-
<tag line="
|
8517 |
<type by_reference="false">void</type>
|
8518 |
</tag>
|
8519 |
</docblock>
|
8520 |
</method>
|
8521 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
8522 |
<name>mla_add_help_tab_action</name>
|
8523 |
<full_name>mla_add_help_tab_action</full_name>
|
8524 |
-
<docblock line="
|
8525 |
<description><![CDATA[Add contextual help tabs to all the MLA pages]]></description>
|
8526 |
<long-description><![CDATA[]]></long-description>
|
8527 |
-
<tag line="
|
8528 |
-
<tag line="
|
8529 |
<type by_reference="false">void</type>
|
8530 |
</tag>
|
8531 |
</docblock>
|
8532 |
</method>
|
8533 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
8534 |
<name>mla_screen_options_show_screen_filter</name>
|
8535 |
<full_name>mla_screen_options_show_screen_filter</full_name>
|
8536 |
-
<docblock line="
|
8537 |
<description><![CDATA[Only show screen options on the View and Upload tabs]]></description>
|
8538 |
<long-description><![CDATA[]]></long-description>
|
8539 |
-
<tag line="
|
8540 |
-
<tag line="
|
8541 |
<type by_reference="false">boolean</type>
|
8542 |
</tag>
|
8543 |
-
<tag line="
|
8544 |
<type by_reference="false">string</type>
|
8545 |
</tag>
|
8546 |
-
<tag line="
|
8547 |
<type by_reference="false">boolean</type>
|
8548 |
</tag>
|
8549 |
</docblock>
|
8550 |
-
<argument line="
|
8551 |
<name>$show_screen</name>
|
8552 |
<default><![CDATA[]]></default>
|
8553 |
<type/>
|
8554 |
</argument>
|
8555 |
-
<argument line="
|
8556 |
<name>$this_screen</name>
|
8557 |
<default><![CDATA[]]></default>
|
8558 |
<type/>
|
8559 |
</argument>
|
8560 |
</method>
|
8561 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
8562 |
<name>mla_set_screen_option_filter</name>
|
8563 |
<full_name>mla_set_screen_option_filter</full_name>
|
8564 |
-
<docblock line="
|
8565 |
<description><![CDATA[Save the "Views/Uploads per page" option set by this user]]></description>
|
8566 |
<long-description><![CDATA[]]></long-description>
|
8567 |
-
<tag line="
|
8568 |
-
<tag line="
|
8569 |
<type by_reference="false">mixed</type>
|
8570 |
</tag>
|
8571 |
-
<tag line="
|
8572 |
<type by_reference="false">string</type>
|
8573 |
</tag>
|
8574 |
-
<tag line="
|
8575 |
<type by_reference="false">string</type>
|
8576 |
</tag>
|
8577 |
-
<tag line="
|
8578 |
<type by_reference="false">string</type>
|
8579 |
<type by_reference="false">void</type>
|
8580 |
</tag>
|
8581 |
</docblock>
|
8582 |
-
<argument line="
|
8583 |
<name>$status</name>
|
8584 |
<default><![CDATA[]]></default>
|
8585 |
<type/>
|
8586 |
</argument>
|
8587 |
-
<argument line="
|
8588 |
<name>$option</name>
|
8589 |
<default><![CDATA[]]></default>
|
8590 |
<type/>
|
8591 |
</argument>
|
8592 |
-
<argument line="
|
8593 |
<name>$value</name>
|
8594 |
<default><![CDATA[]]></default>
|
8595 |
<type/>
|
8596 |
</argument>
|
8597 |
</method>
|
8598 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
8599 |
<name>mla_inline_edit_view_action</name>
|
8600 |
<full_name>mla_inline_edit_view_action</full_name>
|
8601 |
-
<docblock line="
|
8602 |
<description><![CDATA[Ajax handler for Post MIME Types inline editing (quick and bulk edit)]]></description>
|
8603 |
<long-description><![CDATA[<p>Adapted from wp_ajax_inline_save in /wp-admin/includes/ajax-actions.php</p>]]></long-description>
|
8604 |
-
<tag line="
|
8605 |
-
<tag line="
|
8606 |
<type by_reference="false">void</type>
|
8607 |
</tag>
|
8608 |
</docblock>
|
8609 |
</method>
|
8610 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
8611 |
<name>mla_inline_edit_upload_action</name>
|
8612 |
<full_name>mla_inline_edit_upload_action</full_name>
|
8613 |
-
<docblock line="
|
8614 |
<description><![CDATA[Ajax handler for Upload MIME Types inline editing (quick and bulk edit)]]></description>
|
8615 |
<long-description><![CDATA[<p>Adapted from wp_ajax_inline_save in /wp-admin/includes/ajax-actions.php</p>]]></long-description>
|
8616 |
-
<tag line="
|
8617 |
-
<tag line="
|
8618 |
<type by_reference="false">void</type>
|
8619 |
</tag>
|
8620 |
</docblock>
|
8621 |
</method>
|
8622 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
8623 |
<name>mla_add_plugin_settings_link_filter</name>
|
8624 |
<full_name>mla_add_plugin_settings_link_filter</full_name>
|
8625 |
-
<docblock line="
|
8626 |
<description><![CDATA[Add the "Settings" link to the MLA entry in the Plugins section]]></description>
|
8627 |
<long-description><![CDATA[]]></long-description>
|
8628 |
-
<tag line="
|
8629 |
-
<tag line="
|
8630 |
<type by_reference="false">array</type>
|
8631 |
</tag>
|
8632 |
-
<tag line="
|
8633 |
<type by_reference="false">string</type>
|
8634 |
</tag>
|
8635 |
-
<tag line="
|
8636 |
<type by_reference="false">array</type>
|
8637 |
</tag>
|
8638 |
</docblock>
|
8639 |
-
<argument line="
|
8640 |
<name>$links</name>
|
8641 |
<default><![CDATA[]]></default>
|
8642 |
<type/>
|
8643 |
</argument>
|
8644 |
-
<argument line="
|
8645 |
<name>$file</name>
|
8646 |
<default><![CDATA[]]></default>
|
8647 |
<type/>
|
8648 |
</argument>
|
8649 |
</method>
|
8650 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
8651 |
<name>_update_option_row</name>
|
8652 |
<full_name>_update_option_row</full_name>
|
8653 |
-
<docblock line="
|
8654 |
<description><![CDATA[Update or delete a single MLA option value]]></description>
|
8655 |
<long-description><![CDATA[]]></long-description>
|
8656 |
-
<tag line="
|
8657 |
-
<tag line="
|
8658 |
-
<tag line="
|
8659 |
<type by_reference="false">string</type>
|
8660 |
</tag>
|
8661 |
-
<tag line="
|
8662 |
<type by_reference="false">array</type>
|
8663 |
</tag>
|
8664 |
-
<tag line="
|
8665 |
<type by_reference="false">string</type>
|
8666 |
</tag>
|
8667 |
</docblock>
|
8668 |
-
<argument line="
|
8669 |
<name>$key</name>
|
8670 |
<default><![CDATA[]]></default>
|
8671 |
<type/>
|
8672 |
</argument>
|
8673 |
-
<argument line="
|
8674 |
<name>$value</name>
|
8675 |
<default><![CDATA[]]></default>
|
8676 |
<type/>
|
8677 |
</argument>
|
8678 |
</method>
|
8679 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
8680 |
<name>_compose_option_row</name>
|
8681 |
<full_name>_compose_option_row</full_name>
|
8682 |
-
<docblock line="
|
8683 |
<description><![CDATA[Compose the table row for a single MLA option]]></description>
|
8684 |
<long-description><![CDATA[]]></long-description>
|
8685 |
-
<tag line="
|
8686 |
-
<tag line="
|
8687 |
-
<tag line="
|
8688 |
<type by_reference="false">string</type>
|
8689 |
</tag>
|
8690 |
-
<tag line="
|
8691 |
<type by_reference="false">array</type>
|
8692 |
</tag>
|
8693 |
-
<tag line="
|
8694 |
<type by_reference="false">string</type>
|
8695 |
</tag>
|
8696 |
</docblock>
|
8697 |
-
<argument line="
|
8698 |
<name>$key</name>
|
8699 |
<default><![CDATA[]]></default>
|
8700 |
<type/>
|
8701 |
</argument>
|
8702 |
-
<argument line="
|
8703 |
<name>$value</name>
|
8704 |
<default><![CDATA[]]></default>
|
8705 |
<type/>
|
8706 |
</argument>
|
8707 |
</method>
|
8708 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
8709 |
<name>mla_localize_tablist</name>
|
8710 |
<full_name>mla_localize_tablist</full_name>
|
8711 |
-
<docblock line="
|
8712 |
<description><![CDATA[Localize $mla_option_definitions array]]></description>
|
8713 |
<long-description><![CDATA[<p>Localization must be done at runtime, and these calls cannot be placed
|
8714 |
in the "public static" array definition itself.</p>]]></long-description>
|
8715 |
-
<tag line="
|
8716 |
-
<tag line="
|
8717 |
<type by_reference="false">void</type>
|
8718 |
</tag>
|
8719 |
</docblock>
|
8720 |
</method>
|
8721 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
8722 |
<name>mla_get_options_tablist</name>
|
8723 |
<full_name>mla_get_options_tablist</full_name>
|
8724 |
-
<docblock line="
|
8725 |
<description><![CDATA[Localize $mla_option_definitions array]]></description>
|
8726 |
<long-description><![CDATA[<p>Localization must be done at runtime, and these calls cannot be placed
|
8727 |
in the "public static" array definition itself.</p>]]></long-description>
|
8728 |
-
<tag line="
|
8729 |
-
<tag line="
|
8730 |
<type by_reference="false">string</type>
|
8731 |
</tag>
|
8732 |
-
<tag line="
|
8733 |
<type by_reference="false">array</type>
|
8734 |
<type by_reference="false">false</type>
|
8735 |
</tag>
|
8736 |
</docblock>
|
8737 |
-
<argument line="
|
8738 |
<name>$tab</name>
|
8739 |
<default><![CDATA[NULL]]></default>
|
8740 |
<type/>
|
8741 |
</argument>
|
8742 |
</method>
|
8743 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
8744 |
<name>_compose_settings_tabs</name>
|
8745 |
<full_name>_compose_settings_tabs</full_name>
|
8746 |
-
<docblock line="
|
8747 |
<description><![CDATA[Compose the navigation tabs for the Settings subpage]]></description>
|
8748 |
<long-description><![CDATA[]]></long-description>
|
8749 |
-
<tag line="
|
8750 |
-
<tag line="
|
8751 |
-
<tag line="
|
8752 |
<type by_reference="false">string</type>
|
8753 |
</tag>
|
8754 |
-
<tag line="
|
8755 |
<type by_reference="false">string</type>
|
8756 |
</tag>
|
8757 |
</docblock>
|
8758 |
-
<argument line="
|
8759 |
<name>$active_tab</name>
|
8760 |
<default><![CDATA['general']]></default>
|
8761 |
<type/>
|
8762 |
</argument>
|
8763 |
</method>
|
8764 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
8765 |
<name>_compose_general_tab</name>
|
8766 |
<full_name>_compose_general_tab</full_name>
|
8767 |
-
<docblock line="
|
8768 |
<description><![CDATA[Compose the General tab content for the Settings subpage]]></description>
|
8769 |
<long-description><![CDATA[]]></long-description>
|
8770 |
-
<tag line="
|
8771 |
-
<tag line="
|
8772 |
-
<tag line="
|
8773 |
<type by_reference="false">array</type>
|
8774 |
</tag>
|
8775 |
</docblock>
|
8776 |
</method>
|
8777 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
8778 |
<name>_current_bulk_action</name>
|
8779 |
<full_name>_current_bulk_action</full_name>
|
8780 |
-
<docblock line="
|
8781 |
<description><![CDATA[Get the current action selected from the bulk actions dropdown]]></description>
|
8782 |
<long-description><![CDATA[]]></long-description>
|
8783 |
-
<tag line="
|
8784 |
-
<tag line="
|
8785 |
<type by_reference="false">string</type>
|
8786 |
<type by_reference="false">false</type>
|
8787 |
</tag>
|
8788 |
</docblock>
|
8789 |
</method>
|
8790 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
8791 |
<name>_compose_edit_view_tab</name>
|
8792 |
<full_name>_compose_edit_view_tab</full_name>
|
8793 |
-
<docblock line="
|
8794 |
<description><![CDATA[Compose the Edit View tab content for the Settings subpage]]></description>
|
8795 |
<long-description><![CDATA[]]></long-description>
|
8796 |
-
<tag line="
|
8797 |
-
<tag line="
|
8798 |
<type by_reference="false">array</type>
|
8799 |
</tag>
|
8800 |
-
<tag line="
|
8801 |
<type by_reference="false">string</type>
|
8802 |
</tag>
|
8803 |
-
<tag line="
|
8804 |
<type by_reference="false">array</type>
|
8805 |
</tag>
|
8806 |
</docblock>
|
8807 |
-
<argument line="
|
8808 |
<name>$view</name>
|
8809 |
<default><![CDATA[]]></default>
|
8810 |
<type/>
|
8811 |
</argument>
|
8812 |
-
<argument line="
|
8813 |
<name>$template</name>
|
8814 |
<default><![CDATA[]]></default>
|
8815 |
<type/>
|
8816 |
</argument>
|
8817 |
</method>
|
8818 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
8819 |
<name>_compose_view_tab</name>
|
8820 |
<full_name>_compose_view_tab</full_name>
|
8821 |
-
<docblock line="
|
8822 |
<description><![CDATA[Compose the Post MIME Type Views tab content for the Settings subpage]]></description>
|
8823 |
<long-description><![CDATA[]]></long-description>
|
8824 |
-
<tag line="
|
8825 |
-
<tag line="
|
8826 |
<type by_reference="false">array</type>
|
8827 |
</tag>
|
8828 |
</docblock>
|
8829 |
</method>
|
8830 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
8831 |
<name>mla_get_icon_type_dropdown</name>
|
8832 |
<full_name>mla_get_icon_type_dropdown</full_name>
|
8833 |
-
<docblock line="
|
8834 |
<description><![CDATA[Get an HTML select element representing a list of icon types]]></description>
|
8835 |
<long-description><![CDATA[]]></long-description>
|
8836 |
-
<tag line="
|
8837 |
-
<tag line="
|
8838 |
<type by_reference="false">array</type>
|
8839 |
</tag>
|
8840 |
-
<tag line="
|
8841 |
<type by_reference="false">string</type>
|
8842 |
</tag>
|
8843 |
-
<tag line="
|
8844 |
<type by_reference="false">string</type>
|
8845 |
</tag>
|
8846 |
-
<tag line="
|
8847 |
<type by_reference="false">string</type>
|
8848 |
</tag>
|
8849 |
</docblock>
|
8850 |
-
<argument line="
|
8851 |
<name>$templates</name>
|
8852 |
<default><![CDATA[]]></default>
|
8853 |
<type/>
|
8854 |
</argument>
|
8855 |
-
<argument line="
|
8856 |
<name>$name</name>
|
8857 |
<default><![CDATA[]]></default>
|
8858 |
<type/>
|
8859 |
</argument>
|
8860 |
-
<argument line="
|
8861 |
<name>$selection</name>
|
8862 |
<default><![CDATA['.none.']]></default>
|
8863 |
<type/>
|
8864 |
</argument>
|
8865 |
</method>
|
8866 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
8867 |
<name>_compose_edit_upload_tab</name>
|
8868 |
<full_name>_compose_edit_upload_tab</full_name>
|
8869 |
-
<docblock line="
|
8870 |
<description><![CDATA[Compose the Edit Upload type tab content for the Settings subpage]]></description>
|
8871 |
<long-description><![CDATA[]]></long-description>
|
8872 |
-
<tag line="
|
8873 |
-
<tag line="
|
8874 |
<type by_reference="false">array</type>
|
8875 |
</tag>
|
8876 |
-
<tag line="
|
8877 |
<type by_reference="false">string</type>
|
8878 |
</tag>
|
8879 |
-
<tag line="
|
8880 |
<type by_reference="false">array</type>
|
8881 |
</tag>
|
8882 |
</docblock>
|
8883 |
-
<argument line="
|
8884 |
<name>$item</name>
|
8885 |
<default><![CDATA[]]></default>
|
8886 |
<type/>
|
8887 |
</argument>
|
8888 |
-
<argument line="
|
8889 |
<name>$templates</name>
|
8890 |
<default><![CDATA[]]></default>
|
8891 |
<type/>
|
8892 |
</argument>
|
8893 |
</method>
|
8894 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
8895 |
<name>_compose_optional_upload_tab</name>
|
8896 |
<full_name>_compose_optional_upload_tab</full_name>
|
8897 |
-
<docblock line="
|
8898 |
<description><![CDATA[Compose the Optional File Upload MIME Types tab content for the Settings subpage]]></description>
|
8899 |
<long-description><![CDATA[]]></long-description>
|
8900 |
-
<tag line="
|
8901 |
-
<tag line="
|
8902 |
<type by_reference="false">string</type>
|
8903 |
</tag>
|
8904 |
-
<tag line="
|
8905 |
<type by_reference="false">array</type>
|
8906 |
</tag>
|
8907 |
</docblock>
|
8908 |
-
<argument line="
|
8909 |
<name>$page_template_array</name>
|
8910 |
<default><![CDATA[]]></default>
|
8911 |
<type/>
|
8912 |
</argument>
|
8913 |
</method>
|
8914 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
8915 |
<name>_process_optional_upload_mime</name>
|
8916 |
<full_name>_process_optional_upload_mime</full_name>
|
8917 |
-
<docblock line="
|
8918 |
<description><![CDATA[Process an Optional Upload MIME Type selection]]></description>
|
8919 |
<long-description><![CDATA[]]></long-description>
|
8920 |
-
<tag line="
|
8921 |
-
<tag line="
|
8922 |
<type by_reference="false">\intger</type>
|
8923 |
</tag>
|
8924 |
-
<tag line="
|
8925 |
<type by_reference="false">array</type>
|
8926 |
</tag>
|
8927 |
</docblock>
|
8928 |
-
<argument line="
|
8929 |
<name>$ID</name>
|
8930 |
<default><![CDATA[]]></default>
|
8931 |
<type/>
|
8932 |
</argument>
|
8933 |
</method>
|
8934 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
8935 |
<name>_compose_upload_tab</name>
|
8936 |
<full_name>_compose_upload_tab</full_name>
|
8937 |
-
<docblock line="
|
8938 |
<description><![CDATA[Compose the File Upload MIME Types tab content for the Settings subpage]]></description>
|
8939 |
<long-description><![CDATA[]]></long-description>
|
8940 |
-
<tag line="
|
8941 |
-
<tag line="
|
8942 |
<type by_reference="false">array</type>
|
8943 |
</tag>
|
8944 |
</docblock>
|
8945 |
</method>
|
8946 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
8947 |
<name>_compose_mla_gallery_tab</name>
|
8948 |
<full_name>_compose_mla_gallery_tab</full_name>
|
8949 |
-
<docblock line="
|
8950 |
<description><![CDATA[Compose the MLA Gallery tab content for the Settings subpage]]></description>
|
8951 |
<long-description><![CDATA[]]></long-description>
|
8952 |
-
<tag line="
|
8953 |
-
<tag line="
|
8954 |
-
<tag line="
|
8955 |
<type by_reference="false">array</type>
|
8956 |
</tag>
|
8957 |
</docblock>
|
8958 |
</method>
|
8959 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
8960 |
<name>_compose_custom_field_tab</name>
|
8961 |
<full_name>_compose_custom_field_tab</full_name>
|
8962 |
-
<docblock line="
|
8963 |
<description><![CDATA[Compose the Custom Field tab content for the Settings subpage]]></description>
|
8964 |
<long-description><![CDATA[]]></long-description>
|
8965 |
-
<tag line="
|
8966 |
-
<tag line="
|
8967 |
-
<tag line="
|
8968 |
<type by_reference="false">array</type>
|
8969 |
</tag>
|
8970 |
</docblock>
|
8971 |
</method>
|
8972 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
8973 |
<name>_compose_iptc_exif_tab</name>
|
8974 |
<full_name>_compose_iptc_exif_tab</full_name>
|
8975 |
-
<docblock line="
|
8976 |
<description><![CDATA[Compose the IPTC/EXIF tab content for the Settings subpage]]></description>
|
8977 |
<long-description><![CDATA[]]></long-description>
|
8978 |
-
<tag line="
|
8979 |
-
<tag line="
|
8980 |
-
<tag line="
|
8981 |
<type by_reference="false">array</type>
|
8982 |
</tag>
|
8983 |
</docblock>
|
8984 |
</method>
|
8985 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
8986 |
<name>_compose_documentation_tab</name>
|
8987 |
<full_name>_compose_documentation_tab</full_name>
|
8988 |
-
<docblock line="
|
8989 |
<description><![CDATA[Compose the Documentation tab content for the Settings subpage]]></description>
|
8990 |
<long-description><![CDATA[]]></long-description>
|
8991 |
-
<tag line="
|
8992 |
-
<tag line="
|
8993 |
-
<tag line="
|
8994 |
<type by_reference="false">array</type>
|
8995 |
</tag>
|
8996 |
</docblock>
|
8997 |
</method>
|
8998 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
8999 |
<name>mla_render_settings_page</name>
|
9000 |
<full_name>mla_render_settings_page</full_name>
|
9001 |
-
<docblock line="
|
9002 |
<description><![CDATA[Render (echo) the "Media Library Assistant" subpage in the Settings section]]></description>
|
9003 |
<long-description><![CDATA[]]></long-description>
|
9004 |
-
<tag line="
|
9005 |
-
<tag line="
|
9006 |
<type by_reference="false">void</type>
|
9007 |
</tag>
|
9008 |
</docblock>
|
9009 |
</method>
|
9010 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
9011 |
<name>_save_gallery_settings</name>
|
9012 |
<full_name>_save_gallery_settings</full_name>
|
9013 |
-
<docblock line="
|
9014 |
<description><![CDATA[Save MLA Gallery settings to the options table]]></description>
|
9015 |
<long-description><![CDATA[]]></long-description>
|
9016 |
-
<tag line="
|
9017 |
-
<tag line="
|
9018 |
-
<tag line="
|
9019 |
<type by_reference="false">array</type>
|
9020 |
</tag>
|
9021 |
</docblock>
|
9022 |
</method>
|
9023 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
9024 |
<name>_save_view_settings</name>
|
9025 |
<full_name>_save_view_settings</full_name>
|
9026 |
-
<docblock line="
|
9027 |
<description><![CDATA[Save View settings to the options table]]></description>
|
9028 |
<long-description><![CDATA[]]></long-description>
|
9029 |
-
<tag line="
|
9030 |
-
<tag line="
|
9031 |
-
<tag line="
|
9032 |
<type by_reference="false">array</type>
|
9033 |
</tag>
|
9034 |
</docblock>
|
9035 |
</method>
|
9036 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
9037 |
<name>_save_upload_settings</name>
|
9038 |
<full_name>_save_upload_settings</full_name>
|
9039 |
-
<docblock line="
|
9040 |
<description><![CDATA[Save Upload settings to the options table]]></description>
|
9041 |
<long-description><![CDATA[]]></long-description>
|
9042 |
-
<tag line="
|
9043 |
-
<tag line="
|
9044 |
-
<tag line="
|
9045 |
<type by_reference="false">array</type>
|
9046 |
</tag>
|
9047 |
</docblock>
|
9048 |
</method>
|
9049 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
9050 |
<name>_process_custom_field_mapping</name>
|
9051 |
<full_name>_process_custom_field_mapping</full_name>
|
9052 |
-
<docblock line="
|
9053 |
<description><![CDATA[Process custom field settings against all image attachments
|
9054 |
without saving the settings to the mla_option]]></description>
|
9055 |
<long-description><![CDATA[]]></long-description>
|
9056 |
-
<tag line="
|
9057 |
-
<tag line="
|
9058 |
-
<tag line="
|
9059 |
<type by_reference="false">array</type>
|
9060 |
</tag>
|
9061 |
-
<tag line="
|
9062 |
<type by_reference="false">array</type>
|
9063 |
</tag>
|
9064 |
</docblock>
|
9065 |
-
<argument line="
|
9066 |
<name>$settings</name>
|
9067 |
<default><![CDATA[NULL]]></default>
|
9068 |
<type/>
|
9069 |
</argument>
|
9070 |
</method>
|
9071 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
9072 |
<name>_delete_custom_field</name>
|
9073 |
<full_name>_delete_custom_field</full_name>
|
9074 |
-
<docblock line="
|
9075 |
<description><![CDATA[Delete a custom field from the wp_postmeta table]]></description>
|
9076 |
<long-description><![CDATA[]]></long-description>
|
9077 |
-
<tag line="
|
9078 |
-
<tag line="
|
9079 |
<type by_reference="false">array</type>
|
9080 |
</tag>
|
9081 |
-
<tag line="
|
9082 |
<type by_reference="false">array</type>
|
9083 |
</tag>
|
9084 |
</docblock>
|
9085 |
-
<argument line="
|
9086 |
<name>$value</name>
|
9087 |
<default><![CDATA[]]></default>
|
9088 |
<type/>
|
9089 |
</argument>
|
9090 |
</method>
|
9091 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
9092 |
<name>_save_custom_field_settings</name>
|
9093 |
<full_name>_save_custom_field_settings</full_name>
|
9094 |
-
<docblock line="
|
9095 |
<description><![CDATA[Save custom field settings to the options table]]></description>
|
9096 |
<long-description><![CDATA[]]></long-description>
|
9097 |
-
<tag line="
|
9098 |
-
<tag line="
|
9099 |
-
<tag line="
|
9100 |
<type by_reference="false">array</type>
|
9101 |
</tag>
|
9102 |
-
<tag line="
|
9103 |
<type by_reference="false">array</type>
|
9104 |
</tag>
|
9105 |
</docblock>
|
9106 |
-
<argument line="
|
9107 |
<name>$new_values</name>
|
9108 |
<default><![CDATA[NULL]]></default>
|
9109 |
<type/>
|
9110 |
</argument>
|
9111 |
</method>
|
9112 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
9113 |
<name>_process_iptc_exif_standard</name>
|
9114 |
<full_name>_process_iptc_exif_standard</full_name>
|
9115 |
-
<docblock line="
|
9116 |
<description><![CDATA[Process IPTC/EXIF standard field settings against all image attachments
|
9117 |
without saving the settings to the mla_option]]></description>
|
9118 |
<long-description><![CDATA[]]></long-description>
|
9119 |
-
<tag line="
|
9120 |
-
<tag line="
|
9121 |
-
<tag line="
|
9122 |
<type by_reference="false">array</type>
|
9123 |
</tag>
|
9124 |
</docblock>
|
9125 |
</method>
|
9126 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
9127 |
<name>_process_iptc_exif_taxonomy</name>
|
9128 |
<full_name>_process_iptc_exif_taxonomy</full_name>
|
9129 |
-
<docblock line="
|
9130 |
<description><![CDATA[Process IPTC/EXIF taxonomy term settings against all image attachments
|
9131 |
without saving the settings to the mla_option]]></description>
|
9132 |
<long-description><![CDATA[]]></long-description>
|
9133 |
-
<tag line="
|
9134 |
-
<tag line="
|
9135 |
-
<tag line="
|
9136 |
<type by_reference="false">array</type>
|
9137 |
</tag>
|
9138 |
</docblock>
|
9139 |
</method>
|
9140 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
9141 |
<name>_process_iptc_exif_custom</name>
|
9142 |
<full_name>_process_iptc_exif_custom</full_name>
|
9143 |
-
<docblock line="
|
9144 |
<description><![CDATA[Process IPTC/EXIF custom field settings against all image attachments
|
9145 |
without saving the settings to the mla_option]]></description>
|
9146 |
<long-description><![CDATA[]]></long-description>
|
9147 |
-
<tag line="
|
9148 |
-
<tag line="
|
9149 |
-
<tag line="
|
9150 |
<type by_reference="false">array</type>
|
9151 |
</tag>
|
9152 |
-
<tag line="
|
9153 |
<type by_reference="false">array</type>
|
9154 |
</tag>
|
9155 |
</docblock>
|
9156 |
-
<argument line="
|
9157 |
<name>$settings</name>
|
9158 |
<default><![CDATA[NULL]]></default>
|
9159 |
<type/>
|
9160 |
</argument>
|
9161 |
</method>
|
9162 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
9163 |
<name>_save_iptc_exif_custom_settings</name>
|
9164 |
<full_name>_save_iptc_exif_custom_settings</full_name>
|
9165 |
-
<docblock line="
|
9166 |
<description><![CDATA[Save IPTC/EXIF custom field settings to the options table]]></description>
|
9167 |
<long-description><![CDATA[]]></long-description>
|
9168 |
-
<tag line="
|
9169 |
-
<tag line="
|
9170 |
<type by_reference="false">array</type>
|
9171 |
</tag>
|
9172 |
-
<tag line="
|
9173 |
<type by_reference="false">array</type>
|
9174 |
</tag>
|
9175 |
</docblock>
|
9176 |
-
<argument line="
|
9177 |
<name>$new_values</name>
|
9178 |
<default><![CDATA[]]></default>
|
9179 |
<type/>
|
9180 |
</argument>
|
9181 |
</method>
|
9182 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
9183 |
<name>_save_iptc_exif_settings</name>
|
9184 |
<full_name>_save_iptc_exif_settings</full_name>
|
9185 |
-
<docblock line="
|
9186 |
<description><![CDATA[Save IPTC/EXIF settings to the options table]]></description>
|
9187 |
<long-description><![CDATA[]]></long-description>
|
9188 |
-
<tag line="
|
9189 |
-
<tag line="
|
9190 |
-
<tag line="
|
9191 |
<type by_reference="false">array</type>
|
9192 |
</tag>
|
9193 |
</docblock>
|
9194 |
</method>
|
9195 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
9196 |
<name>_save_general_settings</name>
|
9197 |
<full_name>_save_general_settings</full_name>
|
9198 |
-
<docblock line="
|
9199 |
<description><![CDATA[Save General settings to the options table]]></description>
|
9200 |
<long-description><![CDATA[]]></long-description>
|
9201 |
-
<tag line="
|
9202 |
-
<tag line="
|
9203 |
-
<tag line="
|
9204 |
<type by_reference="false">array</type>
|
9205 |
</tag>
|
9206 |
</docblock>
|
9207 |
</method>
|
9208 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
9209 |
<name>_reset_general_settings</name>
|
9210 |
<full_name>_reset_general_settings</full_name>
|
9211 |
-
<docblock line="
|
9212 |
<description><![CDATA[Delete saved settings, restoring default values]]></description>
|
9213 |
<long-description><![CDATA[]]></long-description>
|
9214 |
-
<tag line="
|
9215 |
-
<tag line="
|
9216 |
<type by_reference="false">array</type>
|
9217 |
</tag>
|
9218 |
</docblock>
|
9219 |
</method>
|
9220 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
9221 |
<name>_compose_import_settings</name>
|
9222 |
<full_name>_compose_import_settings</full_name>
|
9223 |
-
<docblock line="
|
9224 |
<description><![CDATA[Compose HTML markup for the import settings if any settings files exist]]></description>
|
9225 |
<long-description><![CDATA[]]></long-description>
|
9226 |
-
<tag line="
|
9227 |
-
<tag line="
|
9228 |
<type by_reference="false">string</type>
|
9229 |
</tag>
|
9230 |
</docblock>
|
9231 |
</method>
|
9232 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
9233 |
<name>_export_settings</name>
|
9234 |
<full_name>_export_settings</full_name>
|
9235 |
-
<docblock line="
|
9236 |
<description><![CDATA[Serialize option settings and write them to a file]]></description>
|
9237 |
<long-description><![CDATA[<p>Options with a default value, i.e., not stored in the database are NOT written to the file.</p>]]></long-description>
|
9238 |
-
<tag line="
|
9239 |
-
<tag line="
|
9240 |
<type by_reference="false">array</type>
|
9241 |
</tag>
|
9242 |
</docblock>
|
9243 |
</method>
|
9244 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
9245 |
<name>_import_settings</name>
|
9246 |
<full_name>_import_settings</full_name>
|
9247 |
-
<docblock line="
|
9248 |
<description><![CDATA[Read a serialized file of option settings and write them to the database]]></description>
|
9249 |
<long-description><![CDATA[]]></long-description>
|
9250 |
-
<tag line="
|
9251 |
-
<tag line="
|
9252 |
<type by_reference="false">array</type>
|
9253 |
</tag>
|
9254 |
</docblock>
|
9255 |
</method>
|
9256 |
</class>
|
9257 |
</file>
|
9258 |
-
<file path="includes\class-mla-shortcodes.php" hash="
|
9259 |
<docblock line="2">
|
9260 |
<description><![CDATA[Media Library Assistant Shortcode handler(s)]]></description>
|
9261 |
<long-description><![CDATA[]]></long-description>
|
@@ -9337,14 +9554,14 @@ any further logic required to translate those values is contained in the filter.
|
|
9337 |
</tag>
|
9338 |
</docblock>
|
9339 |
</property>
|
9340 |
-
<property final="false" static="true" visibility="private" line="
|
9341 |
<name>$mla_get_terms_parameters</name>
|
9342 |
<default><![CDATA[array('taxonomy' => 'post_tag', 'post_mime_type' => 'all', 'post_type' => 'attachment', 'post_status' => 'inherit', 'ids' => array(), 'fields' => 't.term_id, t.name, t.slug, t.term_group, tt.term_taxonomy_id, tt.taxonomy, tt.description, tt.parent, COUNT(p.ID) AS `count`', 'include' => '', 'exclude' => '', 'parent' => '', 'minimum' => 0, 'no_count' => false, 'number' => 0, 'orderby' => 'name', 'order' => 'ASC', 'no_orderby' => false, 'preserve_case' => false, 'pad_counts' => false, 'limit' => 0, 'offset' => 0)]]></default>
|
9343 |
-
<docblock line="
|
9344 |
<description><![CDATA[Data selection parameters for [mla_tag_cloud]]]></description>
|
9345 |
<long-description><![CDATA[]]></long-description>
|
9346 |
-
<tag line="
|
9347 |
-
<tag line="
|
9348 |
<type by_reference="false">array</type>
|
9349 |
</tag>
|
9350 |
</docblock>
|
@@ -9674,116 +9891,116 @@ Enhanced version of /wp-includes/formatting.php function sanitize_sql_orderby().
|
|
9674 |
<type/>
|
9675 |
</argument>
|
9676 |
</method>
|
9677 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
9678 |
<name>mla_shortcode_query_posts_join_filter</name>
|
9679 |
<full_name>mla_shortcode_query_posts_join_filter</full_name>
|
9680 |
-
<docblock line="
|
9681 |
<description><![CDATA[Filters the JOIN clause for shortcode queries]]></description>
|
9682 |
<long-description><![CDATA[<p>Defined as public because it's a filter.</p>]]></long-description>
|
9683 |
-
<tag line="
|
9684 |
-
<tag line="
|
9685 |
<type by_reference="false">string</type>
|
9686 |
</tag>
|
9687 |
-
<tag line="
|
9688 |
<type by_reference="false">string</type>
|
9689 |
</tag>
|
9690 |
</docblock>
|
9691 |
-
<argument line="
|
9692 |
<name>$join_clause</name>
|
9693 |
<default><![CDATA[]]></default>
|
9694 |
<type/>
|
9695 |
</argument>
|
9696 |
</method>
|
9697 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
9698 |
<name>mla_shortcode_query_posts_where_filter</name>
|
9699 |
<full_name>mla_shortcode_query_posts_where_filter</full_name>
|
9700 |
-
<docblock line="
|
9701 |
<description><![CDATA[Filters the WHERE clause for shortcode queries]]></description>
|
9702 |
<long-description><![CDATA[<p>Captures debug information. Adds whitespace to the post_type = 'attachment'
|
9703 |
phrase to circumvent subsequent Role Scoper modification of the clause.
|
9704 |
Handles post_parent "any" and "none" cases.
|
9705 |
Defined as public because it's a filter.</p>]]></long-description>
|
9706 |
-
<tag line="
|
9707 |
-
<tag line="
|
9708 |
<type by_reference="false">string</type>
|
9709 |
</tag>
|
9710 |
-
<tag line="
|
9711 |
<type by_reference="false">string</type>
|
9712 |
</tag>
|
9713 |
</docblock>
|
9714 |
-
<argument line="
|
9715 |
<name>$where_clause</name>
|
9716 |
<default><![CDATA[]]></default>
|
9717 |
<type/>
|
9718 |
</argument>
|
9719 |
</method>
|
9720 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
9721 |
<name>mla_shortcode_query_posts_orderby_filter</name>
|
9722 |
<full_name>mla_shortcode_query_posts_orderby_filter</full_name>
|
9723 |
-
<docblock line="
|
9724 |
<description><![CDATA[Filters the ORDERBY clause for shortcode queries]]></description>
|
9725 |
<long-description><![CDATA[<p>This is an enhanced version of the code found in wp-includes/query.php, function get_posts.
|
9726 |
Defined as public because it's a filter.</p>]]></long-description>
|
9727 |
-
<tag line="
|
9728 |
-
<tag line="
|
9729 |
<type by_reference="false">string</type>
|
9730 |
</tag>
|
9731 |
-
<tag line="
|
9732 |
<type by_reference="false">string</type>
|
9733 |
</tag>
|
9734 |
</docblock>
|
9735 |
-
<argument line="
|
9736 |
<name>$orderby_clause</name>
|
9737 |
<default><![CDATA[]]></default>
|
9738 |
<type/>
|
9739 |
</argument>
|
9740 |
</method>
|
9741 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
9742 |
<name>mla_shortcode_query_posts_clauses_filter</name>
|
9743 |
<full_name>mla_shortcode_query_posts_clauses_filter</full_name>
|
9744 |
-
<docblock line="
|
9745 |
<description><![CDATA[Filters all clauses for shortcode queries, pre caching plugins]]></description>
|
9746 |
<long-description><![CDATA[<p>This is for debug purposes only.
|
9747 |
Defined as public because it's a filter.</p>]]></long-description>
|
9748 |
-
<tag line="
|
9749 |
-
<tag line="
|
9750 |
<type by_reference="false">array</type>
|
9751 |
</tag>
|
9752 |
-
<tag line="
|
9753 |
<type by_reference="false">array</type>
|
9754 |
</tag>
|
9755 |
</docblock>
|
9756 |
-
<argument line="
|
9757 |
<name>$pieces</name>
|
9758 |
<default><![CDATA[]]></default>
|
9759 |
<type/>
|
9760 |
</argument>
|
9761 |
</method>
|
9762 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
9763 |
<name>mla_shortcode_query_posts_clauses_request_filter</name>
|
9764 |
<full_name>mla_shortcode_query_posts_clauses_request_filter</full_name>
|
9765 |
-
<docblock line="
|
9766 |
<description><![CDATA[Filters all clauses for shortcode queries, post caching plugins]]></description>
|
9767 |
<long-description><![CDATA[<p>This is for debug purposes only.
|
9768 |
Defined as public because it's a filter.</p>]]></long-description>
|
9769 |
-
<tag line="
|
9770 |
-
<tag line="
|
9771 |
<type by_reference="false">array</type>
|
9772 |
</tag>
|
9773 |
-
<tag line="
|
9774 |
<type by_reference="false">array</type>
|
9775 |
</tag>
|
9776 |
</docblock>
|
9777 |
-
<argument line="
|
9778 |
<name>$pieces</name>
|
9779 |
<default><![CDATA[]]></default>
|
9780 |
<type/>
|
9781 |
</argument>
|
9782 |
</method>
|
9783 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
9784 |
<name>mla_get_terms</name>
|
9785 |
<full_name>mla_get_terms</full_name>
|
9786 |
-
<docblock line="
|
9787 |
<description><![CDATA[Retrieve the terms in one or more taxonomies.]]></description>
|
9788 |
<long-description><![CDATA[<p>Alternative to WordPress get_terms() function that provides
|
9789 |
an accurate count of attachments associated with each term.</p>
|
@@ -9827,60 +10044,60 @@ descending and then by term_id before this value is applied. Default 45.</p>
|
|
9827 |
<p>limit - final number of term objects to return, for pagination. Default 0.</p>
|
9828 |
|
9829 |
<p>offset - number of term objects to skip, for pagination. Default 0.</p>]]></long-description>
|
9830 |
-
<tag line="
|
9831 |
-
<tag line="
|
9832 |
<type by_reference="false">array</type>
|
9833 |
</tag>
|
9834 |
-
<tag line="
|
9835 |
<type by_reference="false">array</type>
|
9836 |
</tag>
|
9837 |
</docblock>
|
9838 |
-
<argument line="
|
9839 |
<name>$attr</name>
|
9840 |
<default><![CDATA[]]></default>
|
9841 |
<type/>
|
9842 |
</argument>
|
9843 |
</method>
|
9844 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
9845 |
<name>_pad_term_counts</name>
|
9846 |
<full_name>_pad_term_counts</full_name>
|
9847 |
-
<docblock line="
|
9848 |
<description><![CDATA[Add count of children to parent count.]]></description>
|
9849 |
<long-description><![CDATA[<p>Recalculates term counts by including items from child terms. Assumes all
|
9850 |
relevant children are already in the $terms argument.</p>]]></long-description>
|
9851 |
-
<tag line="
|
9852 |
-
<tag line="
|
9853 |
<type by_reference="false">array</type>
|
9854 |
</tag>
|
9855 |
-
<tag line="
|
9856 |
<type by_reference="false">string</type>
|
9857 |
</tag>
|
9858 |
-
<tag line="
|
9859 |
<type by_reference="false">array</type>
|
9860 |
</tag>
|
9861 |
-
<tag line="
|
9862 |
<type by_reference="false">array</type>
|
9863 |
</tag>
|
9864 |
-
<tag line="
|
9865 |
<type by_reference="false">null</type>
|
9866 |
</tag>
|
9867 |
</docblock>
|
9868 |
-
<argument line="
|
9869 |
<name>$terms</name>
|
9870 |
<default><![CDATA[]]></default>
|
9871 |
<type/>
|
9872 |
</argument>
|
9873 |
-
<argument line="
|
9874 |
<name>$taxonomy</name>
|
9875 |
<default><![CDATA[]]></default>
|
9876 |
<type/>
|
9877 |
</argument>
|
9878 |
-
<argument line="
|
9879 |
<name>$post_types</name>
|
9880 |
<default><![CDATA[NULL]]></default>
|
9881 |
<type/>
|
9882 |
</argument>
|
9883 |
-
<argument line="
|
9884 |
<name>$post_stati</name>
|
9885 |
<default><![CDATA[NULL]]></default>
|
9886 |
<type/>
|
@@ -11513,7 +11730,7 @@ $this->set_pagination_args().</p>]]></long-description>
|
|
11513 |
</method>
|
11514 |
</class>
|
11515 |
</file>
|
11516 |
-
<file path="includes\mla-main-search-box-template.php" hash="
|
11517 |
<docblock line="2">
|
11518 |
<description><![CDATA[PHP "template" for Media/Assistant submenu table Search Media box]]></description>
|
11519 |
<long-description><![CDATA[]]></long-description>
|
@@ -11598,13 +11815,13 @@ This file is only loaded if the naming conflict tests in index.php are passed.</
|
|
11598 |
</docblock>
|
11599 |
</function>
|
11600 |
</file>
|
11601 |
-
<file path="index.php" hash="
|
11602 |
<docblock line="2">
|
11603 |
<description><![CDATA[Provides several enhancements to the handling of images and files held in the WordPress Media Library]]></description>
|
11604 |
<long-description><![CDATA[<p>This file contains several tests for name conflicts with other plugins. Only if the tests are passed
|
11605 |
will the rest of the plugin be loaded and run.</p>]]></long-description>
|
11606 |
<tag line="2" name="package" description="Media Library Assistant"/>
|
11607 |
-
<tag line="2" name="version" description="1.
|
11608 |
</docblock>
|
11609 |
<include line="148" type="Require Once" package="Media Library Assistant">
|
11610 |
<name>includes/mla-plugin-loader.php</name>
|
13 |
<tag line="2" name="since" description="MLA 1.80"/>
|
14 |
</docblock>
|
15 |
</file>
|
16 |
+
<file path="examples\twentytwelve-mla\content-jkeast-dropdown-simple.php" hash="9b44e61967d729aec01fa57ee951ebef" package="Media Library Assistant\MLA\Child\Theme">
|
17 |
+
<docblock line="2">
|
18 |
+
<description><![CDATA[The template used for displaying "JKEast Dropdown" content in page-jkeast-dropdown.php]]></description>
|
19 |
+
<long-description><![CDATA[<p>The default taxonomy slug is "attachment_tag". You can select the taxonomy you want by adding
|
20 |
+
a query parameter to the URL, e.g., "?my_taxonomy=attachment_category".</p>
|
21 |
+
|
22 |
+
<p>The default taxonomy term is empty. You must select the term you want by adding
|
23 |
+
a query parameter to the URL, e.g., "?my_term=yellow".</p>]]></long-description>
|
24 |
+
<tag line="2" name="package" description="Media Library Assistant"/>
|
25 |
+
<tag line="2" name="subpackage" description="MLA_Child_Theme"/>
|
26 |
+
<tag line="2" name="version" description="1.00"/>
|
27 |
+
<tag line="2" name="since" description="MLA 1.80"/>
|
28 |
+
</docblock>
|
29 |
+
<function namespace="global" line="71" package="Media Library Assistant\MLA\Child\Theme">
|
30 |
+
<name>custom_taxonomy_dropdown</name>
|
31 |
+
<full_name>\custom_taxonomy_dropdown</full_name>
|
32 |
+
<docblock line="56">
|
33 |
+
<description><![CDATA[Custom Taxonomy Dropdown Control]]></description>
|
34 |
+
<long-description><![CDATA[]]></long-description>
|
35 |
+
<tag line="56" name="since" description="1.00"/>
|
36 |
+
<tag line="56" name="param" description="Taxonomy slug" type="string" variable="$taxonomy">
|
37 |
+
<type by_reference="false">string</type>
|
38 |
+
</tag>
|
39 |
+
<tag line="56" name="param" description="Order by field" type="string" variable="$orderby">
|
40 |
+
<type by_reference="false">string</type>
|
41 |
+
</tag>
|
42 |
+
<tag line="56" name="param" description="Sort order" type="string" variable="$order">
|
43 |
+
<type by_reference="false">string</type>
|
44 |
+
</tag>
|
45 |
+
<tag line="56" name="param" description="Not used" type="string" variable="$limit">
|
46 |
+
<type by_reference="false">string</type>
|
47 |
+
</tag>
|
48 |
+
<tag line="56" name="param" description="HTML name= value" type="string" variable="$name">
|
49 |
+
<type by_reference="false">string</type>
|
50 |
+
</tag>
|
51 |
+
<tag line="56" name="param" description="NULL/"Select All" label" type="mixed" variable="$show_option_all">
|
52 |
+
<type by_reference="false">mixed</type>
|
53 |
+
</tag>
|
54 |
+
<tag line="56" name="param" description="NULL/"Select None" label" type="mixed" variable="$show_option_none">
|
55 |
+
<type by_reference="false">mixed</type>
|
56 |
+
</tag>
|
57 |
+
<tag line="56" name="return" description="Echoes HTML for the dropdown control" type="void">
|
58 |
+
<type by_reference="false">void</type>
|
59 |
+
</tag>
|
60 |
+
</docblock>
|
61 |
+
<argument line="71">
|
62 |
+
<name>$taxonomy</name>
|
63 |
+
<default><![CDATA[]]></default>
|
64 |
+
<type/>
|
65 |
+
</argument>
|
66 |
+
<argument line="71">
|
67 |
+
<name>$orderby</name>
|
68 |
+
<default><![CDATA['date']]></default>
|
69 |
+
<type/>
|
70 |
+
</argument>
|
71 |
+
<argument line="71">
|
72 |
+
<name>$order</name>
|
73 |
+
<default><![CDATA['DESC']]></default>
|
74 |
+
<type/>
|
75 |
+
</argument>
|
76 |
+
<argument line="71">
|
77 |
+
<name>$limit</name>
|
78 |
+
<default><![CDATA['-1']]></default>
|
79 |
+
<type/>
|
80 |
+
</argument>
|
81 |
+
<argument line="71">
|
82 |
+
<name>$name</name>
|
83 |
+
<default><![CDATA[]]></default>
|
84 |
+
<type/>
|
85 |
+
</argument>
|
86 |
+
<argument line="71">
|
87 |
+
<name>$show_option_all</name>
|
88 |
+
<default><![CDATA[null]]></default>
|
89 |
+
<type/>
|
90 |
+
</argument>
|
91 |
+
<argument line="71">
|
92 |
+
<name>$show_option_none</name>
|
93 |
+
<default><![CDATA[null]]></default>
|
94 |
+
<type/>
|
95 |
+
</argument>
|
96 |
+
</function>
|
97 |
+
</file>
|
98 |
+
<file path="examples\twentytwelve-mla\content-jkeast-dropdown.php" hash="d2483928cea467246478ff4a7c8f7af9" package="Media Library Assistant\MLA\Child\Theme">
|
99 |
+
<docblock line="2">
|
100 |
+
<description><![CDATA[The template used for displaying "JKEast Dropdown" content in page-jkeast-dropdown.php]]></description>
|
101 |
+
<long-description><![CDATA[<p>The default taxonomy slug is "attachment_tag". You can select the taxonomy you want by adding
|
102 |
+
a query parameter to the URL, e.g., "?my_taxonomy=attachment_category".</p>
|
103 |
+
|
104 |
+
<p>The default taxonomy term is empty. You must select the term you want by adding
|
105 |
+
a query parameter to the URL, e.g., "?my_term=yellow".</p>]]></long-description>
|
106 |
+
<tag line="2" name="package" description="Media Library Assistant"/>
|
107 |
+
<tag line="2" name="subpackage" description="MLA_Child_Theme"/>
|
108 |
+
<tag line="2" name="version" description="1.00"/>
|
109 |
+
<tag line="2" name="since" description="MLA 1.80"/>
|
110 |
+
</docblock>
|
111 |
+
<function namespace="global" line="70" package="Media Library Assistant\MLA\Child\Theme">
|
112 |
+
<name>custom_taxonomy_dropdown</name>
|
113 |
+
<full_name>\custom_taxonomy_dropdown</full_name>
|
114 |
+
<docblock line="54">
|
115 |
+
<description><![CDATA[Custom Taxonomy Dropdown Control]]></description>
|
116 |
+
<long-description><![CDATA[]]></long-description>
|
117 |
+
<tag line="54" name="since" description="1.00"/>
|
118 |
+
<tag line="54" name="param" description="Taxonomy slug" type="string" variable="$taxonomy">
|
119 |
+
<type by_reference="false">string</type>
|
120 |
+
</tag>
|
121 |
+
<tag line="54" name="param" description="Order by field" type="string" variable="$orderby">
|
122 |
+
<type by_reference="false">string</type>
|
123 |
+
</tag>
|
124 |
+
<tag line="54" name="param" description="Sort order" type="string" variable="$order">
|
125 |
+
<type by_reference="false">string</type>
|
126 |
+
</tag>
|
127 |
+
<tag line="54" name="param" description="Not used" type="string" variable="$limit">
|
128 |
+
<type by_reference="false">string</type>
|
129 |
+
</tag>
|
130 |
+
<tag line="54" name="param" description="HTML name= value" type="string" variable="$name">
|
131 |
+
<type by_reference="false">string</type>
|
132 |
+
</tag>
|
133 |
+
<tag line="54" name="param" description="NULL/"Select All" label" type="mixed" variable="$show_option_all">
|
134 |
+
<type by_reference="false">mixed</type>
|
135 |
+
</tag>
|
136 |
+
<tag line="54" name="param" description="NULL/"Select None" label" type="mixed" variable="$show_option_none">
|
137 |
+
<type by_reference="false">mixed</type>
|
138 |
+
</tag>
|
139 |
+
<tag line="54" name="param" description="Index of the inital selection" type="integer" variable="$selected">
|
140 |
+
<type by_reference="false">integer</type>
|
141 |
+
</tag>
|
142 |
+
<tag line="54" name="return" description="Echoes HTML for the dropdown control" type="void">
|
143 |
+
<type by_reference="false">void</type>
|
144 |
+
</tag>
|
145 |
+
</docblock>
|
146 |
+
<argument line="70">
|
147 |
+
<name>$taxonomy</name>
|
148 |
+
<default><![CDATA[]]></default>
|
149 |
+
<type/>
|
150 |
+
</argument>
|
151 |
+
<argument line="70">
|
152 |
+
<name>$orderby</name>
|
153 |
+
<default><![CDATA['date']]></default>
|
154 |
+
<type/>
|
155 |
+
</argument>
|
156 |
+
<argument line="70">
|
157 |
+
<name>$order</name>
|
158 |
+
<default><![CDATA['DESC']]></default>
|
159 |
+
<type/>
|
160 |
+
</argument>
|
161 |
+
<argument line="70">
|
162 |
+
<name>$limit</name>
|
163 |
+
<default><![CDATA['-1']]></default>
|
164 |
+
<type/>
|
165 |
+
</argument>
|
166 |
+
<argument line="70">
|
167 |
+
<name>$name</name>
|
168 |
+
<default><![CDATA[]]></default>
|
169 |
+
<type/>
|
170 |
+
</argument>
|
171 |
+
<argument line="70">
|
172 |
+
<name>$show_option_all</name>
|
173 |
+
<default><![CDATA[null]]></default>
|
174 |
+
<type/>
|
175 |
+
</argument>
|
176 |
+
<argument line="70">
|
177 |
+
<name>$show_option_none</name>
|
178 |
+
<default><![CDATA[null]]></default>
|
179 |
+
<type/>
|
180 |
+
</argument>
|
181 |
+
<argument line="70">
|
182 |
+
<name>$selected</name>
|
183 |
+
<default><![CDATA[0]]></default>
|
184 |
+
<type/>
|
185 |
+
</argument>
|
186 |
+
</function>
|
187 |
+
</file>
|
188 |
<file path="examples\twentytwelve-mla\content-latest-images.php" hash="3fefc5035d1752ba884c449a1f156a89" package="Media Library Assistant\MLA\Child\Theme">
|
189 |
<docblock line="2">
|
190 |
<description><![CDATA[The template used for displaying the "Latest Images" content in page-latest-images.php]]></description>
|
206 |
<tag line="2" name="since" description="MLA 1.80"/>
|
207 |
</docblock>
|
208 |
</file>
|
209 |
+
<file path="examples\twentytwelve-mla\content-mla-gallery.php" hash="489b929ab461b7197058f2133f15b5a4" package="Media Library Assistant\MLA\Child\Theme">
|
210 |
+
<docblock line="2">
|
211 |
+
<description><![CDATA[The template for displaying posts in the Image post format,
|
212 |
+
called from the taxonomy.php template.]]></description>
|
213 |
+
<long-description><![CDATA[]]></long-description>
|
214 |
+
<tag line="2" name="package" description="Media Library Assistant"/>
|
215 |
+
<tag line="2" name="subpackage" description="MLA_Child_Theme"/>
|
216 |
+
<tag line="2" name="version" description="1.00"/>
|
217 |
+
<tag line="2" name="since" description="MLA 1.91"/>
|
218 |
+
</docblock>
|
219 |
+
</file>
|
220 |
+
<file path="examples\twentytwelve-mla\content-single-image.php" hash="dfd5f7b193ae05aa7ff7504a0b37c05b" package="Media Library Assistant\MLA\Child\Theme">
|
221 |
<docblock line="2">
|
222 |
<description><![CDATA[The template used for displaying "attachment page" content in page-single-image.php]]></description>
|
223 |
<long-description><![CDATA[<p>You must select the attachment you want by adding a query parameter
|
433 |
must be defined as a static WordPress "Page" post type.]]></description>
|
434 |
<long-description><![CDATA[<p>Please note that this is the WordPress construct of pages
|
435 |
and that other 'pages' on your WordPress site will use a
|
436 |
+
different template.</p>]]></long-description>
|
437 |
+
<tag line="2" name="package" description="Media Library Assistant"/>
|
438 |
+
<tag line="2" name="subpackage" description="MLA_Child_Theme"/>
|
439 |
+
<tag line="2" name="version" description="1.00"/>
|
440 |
+
<tag line="2" name="since" description="MLA 1.80"/>
|
441 |
+
</docblock>
|
442 |
+
</file>
|
443 |
+
<file path="examples\twentytwelve-mla\page-jkeast-dropdown.php" hash="ad9340d4d493471f63f32f50e8dd267c" package="Media Library Assistant\MLA\Child\Theme">
|
444 |
+
<docblock line="2">
|
445 |
+
<description><![CDATA[The template for displaying the "JKEast Dropdown" page, which
|
446 |
+
must be defined as a static WordPress "Page" post type.]]></description>
|
447 |
+
<long-description><![CDATA[<p>Please note that this is the WordPress construct of pages
|
448 |
+
and that other 'pages' on your WordPress site will use a
|
449 |
different template.</p>]]></long-description>
|
450 |
<tag line="2" name="package" description="Media Library Assistant"/>
|
451 |
<tag line="2" name="subpackage" description="MLA_Child_Theme"/>
|
501 |
<tag line="2" name="since" description="MLA 1.80"/>
|
502 |
</docblock>
|
503 |
</file>
|
504 |
+
<file path="examples\twentytwelve-mla\taxonomy.php" hash="74bf1d4072ed199f590fa5a937f51713" package="Media Library Assistant\MLA\Child\Theme">
|
505 |
<docblock line="2">
|
506 |
<description><![CDATA[The template for displaying Custom Taxonomy Archive pages]]></description>
|
507 |
<long-description><![CDATA[<p>Twenty Twelve already has tag.php for Tag archives and category.php for Category archives.</p>]]></long-description>
|
512 |
<tag line="2" name="since" description="MLA 1.80"/>
|
513 |
</docblock>
|
514 |
</file>
|
515 |
+
<file path="includes\class-mla-data.php" hash="41112c47c9d340ad605ed6318b3ab7b7" package="Media Library Assistant">
|
516 |
<docblock line="2">
|
517 |
<description><![CDATA[Database and template file access for MLA needs]]></description>
|
518 |
<long-description><![CDATA[]]></long-description>
|
581 |
</tag>
|
582 |
</docblock>
|
583 |
</property>
|
584 |
+
<property final="false" static="true" visibility="private" line="2899" namespace="global" package="Media Library Assistant">
|
585 |
<name>$galleries</name>
|
586 |
<default><![CDATA[null]]></default>
|
587 |
+
<docblock line="2880">
|
588 |
<description><![CDATA[Objects containing [gallery] shortcodes]]></description>
|
589 |
<long-description><![CDATA[<p>This array contains all of the objects containing one or more [gallery] shortcodes
|
590 |
and array(s) of which attachments each [gallery] contains. The arrays are built once
|
597 |
['galleries'] array of [gallery] entries numbered from one (1), containing:
|
598 |
galleries[X]['query'] contains a string with the arguments of the [gallery],
|
599 |
galleries[X]['results'] contains an array ( ID ) of post_ids for the objects in the gallery.</p>]]></long-description>
|
600 |
+
<tag line="2880" name="since" description="0.70"/>
|
601 |
+
<tag line="2880" name="var" description="" type="array">
|
602 |
<type by_reference="false">array</type>
|
603 |
</tag>
|
604 |
</docblock>
|
605 |
</property>
|
606 |
+
<property final="false" static="true" visibility="private" line="2912" namespace="global" package="Media Library Assistant">
|
607 |
<name>$mla_galleries</name>
|
608 |
<default><![CDATA[null]]></default>
|
609 |
+
<docblock line="2901">
|
610 |
<description><![CDATA[Objects containing [mla_gallery] shortcodes]]></description>
|
611 |
<long-description><![CDATA[<p>This array contains all of the objects containing one or more [mla_gallery] shortcodes
|
612 |
and array(s) of which attachments each [mla_gallery] contains. The arrays are built once
|
613 |
each page load and cached for subsequent calls.</p>]]></long-description>
|
614 |
+
<tag line="2901" name="since" description="0.70"/>
|
615 |
+
<tag line="2901" name="var" description="" type="array">
|
616 |
<type by_reference="false">array</type>
|
617 |
</tag>
|
618 |
</docblock>
|
619 |
</property>
|
620 |
+
<property final="false" static="true" visibility="private" line="3109" namespace="global" package="Media Library Assistant">
|
621 |
<name>$pdf_indirect_objects</name>
|
622 |
<default><![CDATA[NULL]]></default>
|
623 |
+
<docblock line="3098">
|
624 |
<description><![CDATA[Array of PDF indirect objects]]></description>
|
625 |
<long-description><![CDATA[<p>This array contains all of the indirect object offsets and lengths.
|
626 |
The array key is ( object ID * 1000 ) + object generation.
|
627 |
The array value is array( number, generation, start, optional /length )</p>]]></long-description>
|
628 |
+
<tag line="3098" name="since" description="1.50"/>
|
629 |
+
<tag line="3098" name="var" description="" type="array">
|
630 |
<type by_reference="false">array</type>
|
631 |
</tag>
|
632 |
</docblock>
|
633 |
</property>
|
634 |
+
<property final="false" static="true" visibility="private" line="4220" namespace="global" package="Media Library Assistant">
|
635 |
<name>$utf8_chars</name>
|
636 |
<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>
|
637 |
+
<docblock line="4213">
|
638 |
<description><![CDATA[UTF-8 replacements for invalid SQL characters]]></description>
|
639 |
<long-description><![CDATA[]]></long-description>
|
640 |
+
<tag line="4213" name="since" description="1.41"/>
|
641 |
+
<tag line="4213" name="var" description="" type="array">
|
642 |
<type by_reference="false">array</type>
|
643 |
</tag>
|
644 |
</docblock>
|
645 |
</property>
|
646 |
+
<property final="false" static="true" visibility="private" line="4280" namespace="global" package="Media Library Assistant">
|
647 |
<name>$mla_iptc_records</name>
|
648 |
<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>
|
649 |
+
<docblock line="4270">
|
650 |
<description><![CDATA[IPTC Dataset identifiers and names]]></description>
|
651 |
<long-description><![CDATA[<p>This array contains the identifiers and names of Datasets defined in
|
652 |
the "IPTC-NAA Information Interchange Model Version No. 4.1".</p>]]></long-description>
|
653 |
+
<tag line="4270" name="since" description="0.90"/>
|
654 |
+
<tag line="4270" name="var" description="" type="array">
|
655 |
<type by_reference="false">array</type>
|
656 |
</tag>
|
657 |
</docblock>
|
658 |
</property>
|
659 |
+
<property final="false" static="true" visibility="public" line="4379" namespace="global" package="Media Library Assistant">
|
660 |
<name>$mla_iptc_keys</name>
|
661 |
<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>
|
662 |
+
<docblock line="4369">
|
663 |
<description><![CDATA[IPTC Dataset friendly name/slug and identifiers]]></description>
|
664 |
<long-description><![CDATA[<p>This array contains the sanitized names and identifiers of Datasets defined in
|
665 |
the "IPTC-NAA Information Interchange Model Version No. 4.1".</p>]]></long-description>
|
666 |
+
<tag line="4369" name="since" description="0.90"/>
|
667 |
+
<tag line="4369" name="var" description="" type="array">
|
668 |
<type by_reference="false">array</type>
|
669 |
</tag>
|
670 |
</docblock>
|
671 |
</property>
|
672 |
+
<property final="false" static="true" visibility="private" line="4478" namespace="global" package="Media Library Assistant">
|
673 |
<name>$mla_iptc_descriptions</name>
|
674 |
<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>
|
675 |
+
<docblock line="4468">
|
676 |
<description><![CDATA[IPTC Dataset descriptions]]></description>
|
677 |
<long-description><![CDATA[<p>This array contains the descriptions of Datasets defined in
|
678 |
the "IPTC-NAA Information Interchange Model Version No. 4.1".</p>]]></long-description>
|
679 |
+
<tag line="4468" name="since" description="0.90"/>
|
680 |
+
<tag line="4468" name="var" description="" type="array">
|
681 |
<type by_reference="false">array</type>
|
682 |
</tag>
|
683 |
</docblock>
|
684 |
</property>
|
685 |
+
<property final="false" static="true" visibility="private" line="4577" namespace="global" package="Media Library Assistant">
|
686 |
<name>$mla_iptc_formats</name>
|
687 |
<default><![CDATA[array(0 => "No ObjectData", 1 => "IPTC-NAA Digital Newsphoto Parameter Record", 2 => "IPTC7901 Recommended Message Format", 3 => "Tagged Image File Format (Adobe/Aldus Image data)", 4 => "Illustrator (Adobe Graphics data)", 5 => "AppleSingle (Apple Computer Inc)", 6 => "NAA 89-3 (ANPA 1312)", 7 => "MacBinary II", 0 => "IPTC Unstructured Character Oriented File Format (UCOFF)", 0 => "United Press International ANPA 1312 variant", 10 => "United Press International Down-Load Message", 11 => "JPEG File Interchange (JFIF)", 12 => "Photo-CD Image-Pac (Eastman Kodak)", 13 => "Microsoft Bit Mapped Graphics File [*.BMP]", 14 => "Digital Audio File [*.WAV] (Microsoft & Creative Labs)", 15 => "Audio plus Moving Video [*.AVI] (Microsoft)", 16 => "PC DOS/Windows Executable Files [*.COM][*.EXE]", 17 => "Compressed Binary File [*.ZIP] (PKWare Inc)", 18 => "Audio Interchange File Format AIFF (Apple Computer Inc)", 19 => "RIFF Wave (Microsoft Corporation)", 20 => "Freehand (Macromedia/Aldus)", 21 => "Hypertext Markup Language - HTML (The Internet Society)", 22 => "MPEG 2 Audio Layer 2 (Musicom), ISO/IEC", 23 => "MPEG 2 Audio Layer 3, ISO/IEC", 24 => "Portable Document File (*.PDF) Adobe", 25 => "News Industry Text Format (NITF)", 26 => "Tape Archive (*.TAR)", 27 => "Tidningarnas Telegrambyrå NITF version (TTNITF DTD)", 28 => "Ritzaus Bureau NITF version (RBNITF DTD)", 29 => "Corel Draw [*.CDR]")]]></default>
|
688 |
+
<docblock line="4567">
|
689 |
<description><![CDATA[IPTC file format identifiers and descriptions]]></description>
|
690 |
<long-description><![CDATA[<p>This array contains the file format identifiers and descriptions defined in
|
691 |
the "IPTC-NAA Information Interchange Model Version No. 4.1" for dataset 1#020.</p>]]></long-description>
|
692 |
+
<tag line="4567" name="since" description="0.90"/>
|
693 |
+
<tag line="4567" name="var" description="" type="array">
|
694 |
<type by_reference="false">array</type>
|
695 |
</tag>
|
696 |
</docblock>
|
697 |
</property>
|
698 |
+
<property final="false" static="true" visibility="private" line="4620" namespace="global" package="Media Library Assistant">
|
699 |
<name>$mla_iptc_image_types</name>
|
700 |
<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>
|
701 |
+
<docblock line="4610">
|
702 |
<description><![CDATA[IPTC image type identifiers and descriptions]]></description>
|
703 |
<long-description><![CDATA[<p>This array contains the image type identifiers and descriptions defined in
|
704 |
the "IPTC-NAA Information Interchange Model Version No. 4.1" for dataset 2#130, octet 2.</p>]]></long-description>
|
705 |
+
<tag line="4610" name="since" description="0.90"/>
|
706 |
+
<tag line="4610" name="var" description="" type="array">
|
707 |
<type by_reference="false">array</type>
|
708 |
</tag>
|
709 |
</docblock>
|
710 |
</property>
|
711 |
+
<property final="false" static="true" visibility="private" line="4794" namespace="global" package="Media Library Assistant">
|
712 |
<name>$mla_IPTC_EXIF_errors</name>
|
713 |
<default><![CDATA[array()]]></default>
|
714 |
+
<docblock line="4786">
|
715 |
<description><![CDATA[Passes IPTC/EXIF parse errors between mla_IPTC_EXIF_error_handler
|
716 |
and mla_fetch_attachment_image_metadata]]></description>
|
717 |
<long-description><![CDATA[]]></long-description>
|
718 |
+
<tag line="4786" name="since" description="1.81"/>
|
719 |
+
<tag line="4786" name="var" description="" type="array">
|
720 |
<type by_reference="false">array</type>
|
721 |
</tag>
|
722 |
</docblock>
|
1311 |
<type/>
|
1312 |
</argument>
|
1313 |
</method>
|
1314 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1998" package="Media Library Assistant">
|
1315 |
<name>mla_query_posts_where_filter</name>
|
1316 |
<full_name>mla_query_posts_where_filter</full_name>
|
1317 |
+
<docblock line="1986">
|
1318 |
<description><![CDATA[Adds a WHERE clause for detached items]]></description>
|
1319 |
<long-description><![CDATA[<p>Modeled after _edit_attachments_query_helper in wp-admin/post.php.
|
1320 |
Defined as public because it's a filter.</p>]]></long-description>
|
1321 |
+
<tag line="1986" name="since" description="0.1"/>
|
1322 |
+
<tag line="1986" name="param" description="query clause before modification" type="string" variable="$where_clause">
|
1323 |
<type by_reference="false">string</type>
|
1324 |
</tag>
|
1325 |
+
<tag line="1986" name="return" description="query clause after "detached" item modification" type="string">
|
1326 |
<type by_reference="false">string</type>
|
1327 |
</tag>
|
1328 |
</docblock>
|
1329 |
+
<argument line="1998">
|
1330 |
<name>$where_clause</name>
|
1331 |
<default><![CDATA[]]></default>
|
1332 |
<type/>
|
1333 |
</argument>
|
1334 |
</method>
|
1335 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2062" package="Media Library Assistant">
|
1336 |
<name>mla_query_posts_join_filter</name>
|
1337 |
<full_name>mla_query_posts_join_filter</full_name>
|
1338 |
+
<docblock line="2051">
|
1339 |
<description><![CDATA[Adds a JOIN clause, if required, to handle sorting/searching on custom fields or ALT Text]]></description>
|
1340 |
<long-description><![CDATA[<p>Defined as public because it's a filter.</p>]]></long-description>
|
1341 |
+
<tag line="2051" name="since" description="0.30"/>
|
1342 |
+
<tag line="2051" name="param" description="query clause before modification" type="string" variable="$join_clause">
|
1343 |
<type by_reference="false">string</type>
|
1344 |
</tag>
|
1345 |
+
<tag line="2051" name="return" description="query clause after "LEFT JOIN view ON post_id" item modification" type="string">
|
1346 |
<type by_reference="false">string</type>
|
1347 |
</tag>
|
1348 |
</docblock>
|
1349 |
+
<argument line="2062">
|
1350 |
<name>$join_clause</name>
|
1351 |
<default><![CDATA[]]></default>
|
1352 |
<type/>
|
1353 |
</argument>
|
1354 |
</method>
|
1355 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2117" package="Media Library Assistant">
|
1356 |
<name>mla_query_posts_groupby_filter</name>
|
1357 |
<full_name>mla_query_posts_groupby_filter</full_name>
|
1358 |
+
<docblock line="2105">
|
1359 |
<description><![CDATA[Adds a GROUPBY clause, if required]]></description>
|
1360 |
<long-description><![CDATA[<p>Taxonomy text queries require a GROUPBY clause.
|
1361 |
Defined as public because it's a filter.</p>]]></long-description>
|
1362 |
+
<tag line="2105" name="since" description="1.90"/>
|
1363 |
+
<tag line="2105" name="param" description="query clause before modification" type="string" variable="$groupby_clause">
|
1364 |
<type by_reference="false">string</type>
|
1365 |
</tag>
|
1366 |
+
<tag line="2105" name="return" description="updated query clause" type="string">
|
1367 |
<type by_reference="false">string</type>
|
1368 |
</tag>
|
1369 |
</docblock>
|
1370 |
+
<argument line="2117">
|
1371 |
<name>$groupby_clause</name>
|
1372 |
<default><![CDATA[]]></default>
|
1373 |
<type/>
|
1374 |
</argument>
|
1375 |
</method>
|
1376 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2139" package="Media Library Assistant">
|
1377 |
<name>mla_query_posts_orderby_filter</name>
|
1378 |
<full_name>mla_query_posts_orderby_filter</full_name>
|
1379 |
+
<docblock line="2127">
|
1380 |
<description><![CDATA[Adds a ORDERBY clause, if required]]></description>
|
1381 |
<long-description><![CDATA[<p>Expands the range of sort options because the logic in WP_Query is limited.
|
1382 |
Defined as public because it's a filter.</p>]]></long-description>
|
1383 |
+
<tag line="2127" name="since" description="0.30"/>
|
1384 |
+
<tag line="2127" name="param" description="query clause before modification" type="string" variable="$orderby_clause">
|
1385 |
<type by_reference="false">string</type>
|
1386 |
</tag>
|
1387 |
+
<tag line="2127" name="return" description="updated query clause" type="string">
|
1388 |
<type by_reference="false">string</type>
|
1389 |
</tag>
|
1390 |
</docblock>
|
1391 |
+
<argument line="2139">
|
1392 |
<name>$orderby_clause</name>
|
1393 |
<default><![CDATA[]]></default>
|
1394 |
<type/>
|
1395 |
</argument>
|
1396 |
</method>
|
1397 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2217" package="Media Library Assistant">
|
1398 |
<name>mla_query_relevanssi_admin_search_ok_filter</name>
|
1399 |
<full_name>mla_query_relevanssi_admin_search_ok_filter</full_name>
|
1400 |
+
<docblock line="2207">
|
1401 |
<description><![CDATA[Disable Relevanssi - A Better Search, v3.2 by Mikko Saari
|
1402 |
Defined as public because it's a filter.]]></description>
|
1403 |
<long-description><![CDATA[]]></long-description>
|
1404 |
+
<tag line="2207" name="since" description="1.80"/>
|
1405 |
+
<tag line="2207" name="param" description="Default setting" type="boolean" variable="$admin_search_ok">
|
1406 |
<type by_reference="false">boolean</type>
|
1407 |
</tag>
|
1408 |
+
<tag line="2207" name="return" description="Updated setting" type="boolean">
|
1409 |
<type by_reference="false">boolean</type>
|
1410 |
</tag>
|
1411 |
</docblock>
|
1412 |
+
<argument line="2217">
|
1413 |
<name>$admin_search_ok</name>
|
1414 |
<default><![CDATA[]]></default>
|
1415 |
<type/>
|
1416 |
</argument>
|
1417 |
</method>
|
1418 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2233" package="Media Library Assistant">
|
1419 |
<name>mla_query_posts_clauses_filter</name>
|
1420 |
<full_name>mla_query_posts_clauses_filter</full_name>
|
1421 |
+
<docblock line="2221">
|
1422 |
<description><![CDATA[Filters all clauses for shortcode queries, pre caching plugins]]></description>
|
1423 |
<long-description><![CDATA[<p>This is for debug purposes only.
|
1424 |
Defined as public because it's a filter.</p>]]></long-description>
|
1425 |
+
<tag line="2221" name="since" description="1.80"/>
|
1426 |
+
<tag line="2221" name="param" description="query clauses before modification" type="array" variable="$pieces">
|
1427 |
<type by_reference="false">array</type>
|
1428 |
</tag>
|
1429 |
+
<tag line="2221" name="return" description="query clauses after modification (none)" type="array">
|
1430 |
<type by_reference="false">array</type>
|
1431 |
</tag>
|
1432 |
</docblock>
|
1433 |
+
<argument line="2233">
|
1434 |
<name>$pieces</name>
|
1435 |
<default><![CDATA[]]></default>
|
1436 |
<type/>
|
1437 |
</argument>
|
1438 |
</method>
|
1439 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2257" package="Media Library Assistant">
|
1440 |
<name>mla_query_posts_clauses_request_filter</name>
|
1441 |
<full_name>mla_query_posts_clauses_request_filter</full_name>
|
1442 |
+
<docblock line="2245">
|
1443 |
<description><![CDATA[Filters all clauses for shortcode queries, post caching plugins]]></description>
|
1444 |
<long-description><![CDATA[<p>This is for debug purposes only.
|
1445 |
Defined as public because it's a filter.</p>]]></long-description>
|
1446 |
+
<tag line="2245" name="since" description="1.80"/>
|
1447 |
+
<tag line="2245" name="param" description="query clauses before modification" type="array" variable="$pieces">
|
1448 |
<type by_reference="false">array</type>
|
1449 |
</tag>
|
1450 |
+
<tag line="2245" name="return" description="query clauses after modification (none)" type="array">
|
1451 |
<type by_reference="false">array</type>
|
1452 |
</tag>
|
1453 |
</docblock>
|
1454 |
+
<argument line="2257">
|
1455 |
<name>$pieces</name>
|
1456 |
<default><![CDATA[]]></default>
|
1457 |
<type/>
|
1458 |
</argument>
|
1459 |
</method>
|
1460 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2281" package="Media Library Assistant">
|
1461 |
<name>mla_get_attachment_by_id</name>
|
1462 |
<full_name>mla_get_attachment_by_id</full_name>
|
1463 |
+
<docblock line="2269">
|
1464 |
<description><![CDATA[Retrieve an Attachment array given a $post_id]]></description>
|
1465 |
<long-description><![CDATA[<p>The (associative) array will contain every field that can be found in
|
1466 |
the posts and postmeta tables, and all references to the attachment.</p>]]></long-description>
|
1467 |
+
<tag line="2269" name="since" description="0.1"/>
|
1468 |
+
<tag line="2269" name="uses" description="\global\$post" refers="\global\$post"/>
|
1469 |
+
<tag line="2269" name="param" description="The ID of the attachment post" type="int" variable="$post_id">
|
1470 |
<type by_reference="false">int</type>
|
1471 |
</tag>
|
1472 |
+
<tag line="2269" name="return" description="NULL on failure else associative array" type="NULL|array">
|
1473 |
<type by_reference="false">NULL</type>
|
1474 |
<type by_reference="false">array</type>
|
1475 |
</tag>
|
1476 |
</docblock>
|
1477 |
+
<argument line="2281">
|
1478 |
<name>$post_id</name>
|
1479 |
<default><![CDATA[]]></default>
|
1480 |
<type/>
|
1481 |
</argument>
|
1482 |
</method>
|
1483 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2337" package="Media Library Assistant">
|
1484 |
<name>mla_fetch_attachment_parent_data</name>
|
1485 |
<full_name>mla_fetch_attachment_parent_data</full_name>
|
1486 |
+
<docblock line="2328">
|
1487 |
<description><![CDATA[Returns information about an attachment's parent, if found]]></description>
|
1488 |
<long-description><![CDATA[]]></long-description>
|
1489 |
+
<tag line="2328" name="since" description="0.1"/>
|
1490 |
+
<tag line="2328" name="param" description="post ID of attachment's parent, if any" type="int" variable="$parent_id">
|
1491 |
<type by_reference="false">int</type>
|
1492 |
</tag>
|
1493 |
+
<tag line="2328" name="return" description="Parent information; post_date, post_title and post_type" type="array">
|
1494 |
<type by_reference="false">array</type>
|
1495 |
</tag>
|
1496 |
</docblock>
|
1497 |
+
<argument line="2337">
|
1498 |
<name>$parent_id</name>
|
1499 |
<default><![CDATA[]]></default>
|
1500 |
<type/>
|
1501 |
</argument>
|
1502 |
</method>
|
1503 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2379" package="Media Library Assistant">
|
1504 |
<name>_set_array_element</name>
|
1505 |
<full_name>_set_array_element</full_name>
|
1506 |
+
<docblock line="2368">
|
1507 |
<description><![CDATA[Adds or replaces the value of a key in a possibly nested array structure]]></description>
|
1508 |
<long-description><![CDATA[]]></long-description>
|
1509 |
+
<tag line="2368" name="since" description="1.51"/>
|
1510 |
+
<tag line="2368" name="param" description="key value, e.g. array1.array2.element" type="string" variable="$needle">
|
1511 |
<type by_reference="false">string</type>
|
1512 |
</tag>
|
1513 |
+
<tag line="2368" name="param" description="replacement value, string or array, by reference" type="mixed" variable="$value">
|
1514 |
<type by_reference="false">mixed</type>
|
1515 |
</tag>
|
1516 |
+
<tag line="2368" name="param" description="PHP nested arrays, by reference" type="array" variable="$haystack">
|
1517 |
<type by_reference="false">array</type>
|
1518 |
</tag>
|
1519 |
+
<tag line="2368" name="return" description="true if $needle element set, false if not" type="boolean">
|
1520 |
<type by_reference="false">boolean</type>
|
1521 |
</tag>
|
1522 |
</docblock>
|
1523 |
+
<argument line="2379">
|
1524 |
<name>$needle</name>
|
1525 |
<default><![CDATA[]]></default>
|
1526 |
<type/>
|
1527 |
</argument>
|
1528 |
+
<argument line="2379">
|
1529 |
<name>$value</name>
|
1530 |
<default><![CDATA[]]></default>
|
1531 |
<type/>
|
1532 |
</argument>
|
1533 |
+
<argument line="2379">
|
1534 |
<name>$haystack</name>
|
1535 |
<default><![CDATA[]]></default>
|
1536 |
<type/>
|
1537 |
</argument>
|
1538 |
</method>
|
1539 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2413" package="Media Library Assistant">
|
1540 |
<name>_unset_array_element</name>
|
1541 |
<full_name>_unset_array_element</full_name>
|
1542 |
+
<docblock line="2403">
|
1543 |
<description><![CDATA[Deletes the value of a key in a possibly nested array structure]]></description>
|
1544 |
<long-description><![CDATA[]]></long-description>
|
1545 |
+
<tag line="2403" name="since" description="1.51"/>
|
1546 |
+
<tag line="2403" name="param" description="key value, e.g. array1.array2.element" type="string" variable="$needle">
|
1547 |
<type by_reference="false">string</type>
|
1548 |
</tag>
|
1549 |
+
<tag line="2403" name="param" description="PHP nested arrays, by reference" type="array" variable="$haystack">
|
1550 |
<type by_reference="false">array</type>
|
1551 |
</tag>
|
1552 |
+
<tag line="2403" name="return" description="true if $needle element found, false if not" type="boolean">
|
1553 |
<type by_reference="false">boolean</type>
|
1554 |
</tag>
|
1555 |
</docblock>
|
1556 |
+
<argument line="2413">
|
1557 |
<name>$needle</name>
|
1558 |
<default><![CDATA[]]></default>
|
1559 |
<type/>
|
1560 |
</argument>
|
1561 |
+
<argument line="2413">
|
1562 |
<name>$haystack</name>
|
1563 |
<default><![CDATA[]]></default>
|
1564 |
<type/>
|
1565 |
</argument>
|
1566 |
</method>
|
1567 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2448" package="Media Library Assistant">
|
1568 |
<name>mla_find_array_element</name>
|
1569 |
<full_name>mla_find_array_element</full_name>
|
1570 |
+
<docblock line="2433">
|
1571 |
<description><![CDATA[Finds the value of a key in a possibly nested array structure]]></description>
|
1572 |
<long-description><![CDATA[<p>Used primarily to extract fields from the _wp_attachment_metadata custom field.
|
1573 |
Could also be used with the ID3 metadata exposed in WordPress 3.6 and later.</p>]]></long-description>
|
1574 |
+
<tag line="2433" name="since" description="1.30"/>
|
1575 |
+
<tag line="2433" name="param" description="key value, e.g. array1.array2.element" type="string" variable="$needle">
|
1576 |
<type by_reference="false">string</type>
|
1577 |
</tag>
|
1578 |
+
<tag line="2433" name="param" description="PHP nested arrays" type="array" variable="$haystack">
|
1579 |
<type by_reference="false">array</type>
|
1580 |
</tag>
|
1581 |
+
<tag line="2433" name="param" description="data option 'text'|'single'|'export'|'array'|'multi'" type="string" variable="$option">
|
1582 |
<type by_reference="false">string</type>
|
1583 |
</tag>
|
1584 |
+
<tag line="2433" name="param" description="keep existing values - for 'multi' option" type="boolean" variable="$keep_existing">
|
1585 |
<type by_reference="false">boolean</type>
|
1586 |
</tag>
|
1587 |
+
<tag line="2433" name="return" description="string or array value matching key(.key ...) or ''" type="mixed">
|
1588 |
<type by_reference="false">mixed</type>
|
1589 |
</tag>
|
1590 |
</docblock>
|
1591 |
+
<argument line="2448">
|
1592 |
<name>$needle</name>
|
1593 |
<default><![CDATA[]]></default>
|
1594 |
<type/>
|
1595 |
</argument>
|
1596 |
+
<argument line="2448">
|
1597 |
<name>$haystack</name>
|
1598 |
<default><![CDATA[]]></default>
|
1599 |
<type/>
|
1600 |
</argument>
|
1601 |
+
<argument line="2448">
|
1602 |
<name>$option</name>
|
1603 |
<default><![CDATA[]]></default>
|
1604 |
<type/>
|
1605 |
</argument>
|
1606 |
+
<argument line="2448">
|
1607 |
<name>$keep_existing</name>
|
1608 |
<default><![CDATA[false]]></default>
|
1609 |
<type/>
|
1610 |
</argument>
|
1611 |
</method>
|
1612 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2501" package="Media Library Assistant">
|
1613 |
<name>mla_fetch_attachment_metadata</name>
|
1614 |
<full_name>mla_fetch_attachment_metadata</full_name>
|
1615 |
+
<docblock line="2489">
|
1616 |
<description><![CDATA[Fetch and filter meta data for an attachment]]></description>
|
1617 |
<long-description><![CDATA[<p>Returns a filtered array of a post's meta data. Internal values beginning with '<em>'
|
1618 |
are stripped out or converted to an 'mla</em>' equivalent.</p>]]></long-description>
|
1619 |
+
<tag line="2489" name="since" description="0.1"/>
|
1620 |
+
<tag line="2489" name="param" description="post ID of attachment" type="int" variable="$post_id">
|
1621 |
<type by_reference="false">int</type>
|
1622 |
</tag>
|
1623 |
+
<tag line="2489" name="return" description="Meta data variables" type="array">
|
1624 |
<type by_reference="false">array</type>
|
1625 |
</tag>
|
1626 |
</docblock>
|
1627 |
+
<argument line="2501">
|
1628 |
<name>$post_id</name>
|
1629 |
<default><![CDATA[]]></default>
|
1630 |
<type/>
|
1631 |
</argument>
|
1632 |
</method>
|
1633 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2586" package="Media Library Assistant">
|
1634 |
<name>mla_fetch_attachment_references</name>
|
1635 |
<full_name>mla_fetch_attachment_references</full_name>
|
1636 |
+
<docblock line="2573">
|
1637 |
<description><![CDATA[Find Featured Image and inserted image/link references to an attachment]]></description>
|
1638 |
<long-description><![CDATA[<p>Searches all post and page content to see if the attachment is used
|
1639 |
as a Featured Image or inserted in the post as an image or link.</p>]]></long-description>
|
1640 |
+
<tag line="2573" name="since" description="0.1"/>
|
1641 |
+
<tag line="2573" name="param" description="post ID of attachment" type="int" variable="$ID">
|
1642 |
<type by_reference="false">int</type>
|
1643 |
</tag>
|
1644 |
+
<tag line="2573" name="param" description="post ID of attachment's parent, if any" type="int" variable="$parent">
|
1645 |
<type by_reference="false">int</type>
|
1646 |
</tag>
|
1647 |
+
<tag line="2573" name="return" description="Reference information; see $references array comments" type="array">
|
1648 |
<type by_reference="false">array</type>
|
1649 |
</tag>
|
1650 |
</docblock>
|
1651 |
+
<argument line="2586">
|
1652 |
<name>$ID</name>
|
1653 |
<default><![CDATA[]]></default>
|
1654 |
<type/>
|
1655 |
</argument>
|
1656 |
+
<argument line="2586">
|
1657 |
<name>$parent</name>
|
1658 |
<default><![CDATA[]]></default>
|
1659 |
<type/>
|
1660 |
</argument>
|
1661 |
</method>
|
1662 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2923" package="Media Library Assistant">
|
1663 |
<name>mla_flush_mla_galleries</name>
|
1664 |
<full_name>mla_flush_mla_galleries</full_name>
|
1665 |
+
<docblock line="2914">
|
1666 |
<description><![CDATA[Invalidates the $mla_galleries or $galleries array and cached values]]></description>
|
1667 |
<long-description><![CDATA[]]></long-description>
|
1668 |
+
<tag line="2914" name="since" description="1.00"/>
|
1669 |
+
<tag line="2914" name="param" description="name of the gallery's cache/option variable" type="string" variable="$option_name">
|
1670 |
<type by_reference="false">string</type>
|
1671 |
</tag>
|
1672 |
+
<tag line="2914" name="return" description="" type="void">
|
1673 |
<type by_reference="false">void</type>
|
1674 |
</tag>
|
1675 |
</docblock>
|
1676 |
+
<argument line="2923">
|
1677 |
<name>$option_name</name>
|
1678 |
<default><![CDATA[]]></default>
|
1679 |
<type/>
|
1680 |
</argument>
|
1681 |
</method>
|
1682 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2947" package="Media Library Assistant">
|
1683 |
<name>mla_save_post_action</name>
|
1684 |
<full_name>mla_save_post_action</full_name>
|
1685 |
+
<docblock line="2938">
|
1686 |
<description><![CDATA[Invalidates $mla_galleries and $galleries arrays and cached values after post, page or attachment updates]]></description>
|
1687 |
<long-description><![CDATA[]]></long-description>
|
1688 |
+
<tag line="2938" name="since" description="1.00"/>
|
1689 |
+
<tag line="2938" name="param" description="ID of post/page/attachment; not used at this time" type="integer" variable="$post_id">
|
1690 |
<type by_reference="false">integer</type>
|
1691 |
</tag>
|
1692 |
+
<tag line="2938" name="return" description="" type="void">
|
1693 |
<type by_reference="false">void</type>
|
1694 |
</tag>
|
1695 |
</docblock>
|
1696 |
+
<argument line="2947">
|
1697 |
<name>$post_id</name>
|
1698 |
<default><![CDATA[]]></default>
|
1699 |
<type/>
|
1700 |
</argument>
|
1701 |
</method>
|
1702 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2964" package="Media Library Assistant">
|
1703 |
<name>_build_mla_galleries</name>
|
1704 |
<full_name>_build_mla_galleries</full_name>
|
1705 |
+
<docblock line="2952">
|
1706 |
<description><![CDATA[Builds the $mla_galleries or $galleries array]]></description>
|
1707 |
<long-description><![CDATA[]]></long-description>
|
1708 |
+
<tag line="2952" name="since" description="0.70"/>
|
1709 |
+
<tag line="2952" name="param" description="name of the gallery's cache/option variable" type="string" variable="$option_name">
|
1710 |
<type by_reference="false">string</type>
|
1711 |
</tag>
|
1712 |
+
<tag line="2952" name="param" description="by reference to the private static galleries array variable" type="array" variable="$galleries_array">
|
1713 |
<type by_reference="false">array</type>
|
1714 |
</tag>
|
1715 |
+
<tag line="2952" name="param" description="the shortcode to be searched for and processed" type="string" variable="$shortcode">
|
1716 |
<type by_reference="false">string</type>
|
1717 |
</tag>
|
1718 |
+
<tag line="2952" name="param" description="true to exclude revisions from the search" type="boolean" variable="$exclude_revisions">
|
1719 |
<type by_reference="false">boolean</type>
|
1720 |
</tag>
|
1721 |
+
<tag line="2952" name="return" description="true if the galleries array is not empty" type="boolean">
|
1722 |
<type by_reference="false">boolean</type>
|
1723 |
</tag>
|
1724 |
</docblock>
|
1725 |
+
<argument line="2964">
|
1726 |
<name>$option_name</name>
|
1727 |
<default><![CDATA[]]></default>
|
1728 |
<type/>
|
1729 |
</argument>
|
1730 |
+
<argument line="2964">
|
1731 |
<name>$galleries_array</name>
|
1732 |
<default><![CDATA[]]></default>
|
1733 |
<type/>
|
1734 |
</argument>
|
1735 |
+
<argument line="2964">
|
1736 |
<name>$shortcode</name>
|
1737 |
<default><![CDATA[]]></default>
|
1738 |
<type/>
|
1739 |
</argument>
|
1740 |
+
<argument line="2964">
|
1741 |
<name>$exclude_revisions</name>
|
1742 |
<default><![CDATA[]]></default>
|
1743 |
<type/>
|
1744 |
</argument>
|
1745 |
</method>
|
1746 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3085" package="Media Library Assistant">
|
1747 |
<name>_search_mla_galleries</name>
|
1748 |
<full_name>_search_mla_galleries</full_name>
|
1749 |
+
<docblock line="3074">
|
1750 |
<description><![CDATA[Search the $mla_galleries or $galleries array]]></description>
|
1751 |
<long-description><![CDATA[]]></long-description>
|
1752 |
+
<tag line="3074" name="since" description="0.70"/>
|
1753 |
+
<tag line="3074" name="param" description="by reference to the private static galleries array variable" type="array" variable="$galleries_array">
|
1754 |
<type by_reference="false">array</type>
|
1755 |
</tag>
|
1756 |
+
<tag line="3074" name="param" description="the attachment ID to be searched for and processed" type="int" variable="$attachment_id">
|
1757 |
<type by_reference="false">int</type>
|
1758 |
</tag>
|
1759 |
+
<tag line="3074" name="return" description="All posts/pages with one or more galleries that include the attachment. The array key is the parent_post ID; each entry contains post_title and post_type." type="array">
|
1760 |
<type by_reference="false">array</type>
|
1761 |
</tag>
|
1762 |
</docblock>
|
1763 |
+
<argument line="3085">
|
1764 |
<name>$galleries_array</name>
|
1765 |
<default><![CDATA[]]></default>
|
1766 |
<type/>
|
1767 |
</argument>
|
1768 |
+
<argument line="3085">
|
1769 |
<name>$attachment_id</name>
|
1770 |
<default><![CDATA[]]></default>
|
1771 |
<type/>
|
1772 |
</argument>
|
1773 |
</method>
|
1774 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3124" package="Media Library Assistant">
|
1775 |
<name>_parse_pdf_xref_subsection</name>
|
1776 |
<full_name>_parse_pdf_xref_subsection</full_name>
|
1777 |
+
<docblock line="3111">
|
1778 |
<description><![CDATA[Parse a cross-reference table subsection into the array of indirect object definitions]]></description>
|
1779 |
<long-description><![CDATA[<p>A cross-reference subsection is a sequence of 20-byte entries, each with offset and generation values.</p>]]></long-description>
|
1780 |
+
<tag line="3111" name="since" description="1.50"/>
|
1781 |
+
<tag line="3111" name="param" description="buffer containing the subsection" type="string" variable="$xref_section">
|
1782 |
<type by_reference="false">string</type>
|
1783 |
</tag>
|
1784 |
+
<tag line="3111" name="param" description="offset within the buffer of the first entry" type="integer" variable="$offset">
|
1785 |
<type by_reference="false">integer</type>
|
1786 |
</tag>
|
1787 |
+
<tag line="3111" name="param" description="number of the first object in the subsection" type="integer" variable="$object_id">
|
1788 |
<type by_reference="false">integer</type>
|
1789 |
</tag>
|
1790 |
+
<tag line="3111" name="param" description="number of entries in the subsection" type="integer" variable="$count">
|
1791 |
<type by_reference="false">integer</type>
|
1792 |
</tag>
|
1793 |
+
<tag line="3111" name="return" description="" type="void">
|
1794 |
<type by_reference="false">void</type>
|
1795 |
</tag>
|
1796 |
</docblock>
|
1797 |
+
<argument line="3124">
|
1798 |
<name>$xref_section</name>
|
1799 |
<default><![CDATA[]]></default>
|
1800 |
<type/>
|
1801 |
</argument>
|
1802 |
+
<argument line="3124">
|
1803 |
<name>$offset</name>
|
1804 |
<default><![CDATA[]]></default>
|
1805 |
<type/>
|
1806 |
</argument>
|
1807 |
+
<argument line="3124">
|
1808 |
<name>$object_id</name>
|
1809 |
<default><![CDATA[]]></default>
|
1810 |
<type/>
|
1811 |
</argument>
|
1812 |
+
<argument line="3124">
|
1813 |
<name>$count</name>
|
1814 |
<default><![CDATA[]]></default>
|
1815 |
<type/>
|
1816 |
</argument>
|
1817 |
</method>
|
1818 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3156" package="Media Library Assistant">
|
1819 |
<name>_parse_pdf_xref_section</name>
|
1820 |
<full_name>_parse_pdf_xref_section</full_name>
|
1821 |
+
<docblock line="3145">
|
1822 |
<description><![CDATA[Parse a cross-reference table section into the array of indirect object definitions]]></description>
|
1823 |
<long-description><![CDATA[<p>Creates the array of indirect object offsets and lengths</p>]]></long-description>
|
1824 |
+
<tag line="3145" name="since" description="1.50"/>
|
1825 |
+
<tag line="3145" name="param" description="full path and file name" type="string" variable="$file_name">
|
1826 |
<type by_reference="false">string</type>
|
1827 |
</tag>
|
1828 |
+
<tag line="3145" name="param" description="offset within the file of the xref id and count entry" type="integer" variable="$file_offset">
|
1829 |
<type by_reference="false">integer</type>
|
1830 |
</tag>
|
1831 |
+
<tag line="3145" name="return" description="length of the section" type="integer">
|
1832 |
<type by_reference="false">integer</type>
|
1833 |
</tag>
|
1834 |
</docblock>
|
1835 |
+
<argument line="3156">
|
1836 |
<name>$file_name</name>
|
1837 |
<default><![CDATA[]]></default>
|
1838 |
<type/>
|
1839 |
</argument>
|
1840 |
+
<argument line="3156">
|
1841 |
<name>$file_offset</name>
|
1842 |
<default><![CDATA[]]></default>
|
1843 |
<type/>
|
1844 |
</argument>
|
1845 |
</method>
|
1846 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3190" package="Media Library Assistant">
|
1847 |
<name>_parse_pdf_xref_stream</name>
|
1848 |
<full_name>_parse_pdf_xref_stream</full_name>
|
1849 |
+
<docblock line="3178">
|
1850 |
<description><![CDATA[Parse a cross-reference steam into the array of indirect object definitions]]></description>
|
1851 |
<long-description><![CDATA[<p>Creates the array of indirect object offsets and lengths</p>]]></long-description>
|
1852 |
+
<tag line="3178" name="since" description="1.50"/>
|
1853 |
+
<tag line="3178" name="param" description="full path and file name" type="string" variable="$file_name">
|
1854 |
<type by_reference="false">string</type>
|
1855 |
</tag>
|
1856 |
+
<tag line="3178" name="param" description="offset within the file of the xref id and count entry" type="integer" variable="$file_offset">
|
1857 |
<type by_reference="false">integer</type>
|
1858 |
</tag>
|
1859 |
+
<tag line="3178" name="param" description=""/W" entry, representing the size of the fields in a single entry" type="string" variable="$entry_parms_string">
|
1860 |
<type by_reference="false">string</type>
|
1861 |
</tag>
|
1862 |
+
<tag line="3178" name="return" description="length of the stream" type="integer">
|
1863 |
<type by_reference="false">integer</type>
|
1864 |
</tag>
|
1865 |
</docblock>
|
1866 |
+
<argument line="3190">
|
1867 |
<name>$file_name</name>
|
1868 |
<default><![CDATA[]]></default>
|
1869 |
<type/>
|
1870 |
</argument>
|
1871 |
+
<argument line="3190">
|
1872 |
<name>$file_offset</name>
|
1873 |
<default><![CDATA[]]></default>
|
1874 |
<type/>
|
1875 |
</argument>
|
1876 |
+
<argument line="3190">
|
1877 |
<name>$entry_parms_string</name>
|
1878 |
<default><![CDATA[]]></default>
|
1879 |
<type/>
|
1880 |
</argument>
|
1881 |
</method>
|
1882 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3269" package="Media Library Assistant">
|
1883 |
<name>_build_pdf_indirect_objects</name>
|
1884 |
<full_name>_build_pdf_indirect_objects</full_name>
|
1885 |
+
<docblock line="3259">
|
1886 |
<description><![CDATA[Build an array of indirect object definitions]]></description>
|
1887 |
<long-description><![CDATA[<p>Creates the array of indirect object offsets and lengths</p>]]></long-description>
|
1888 |
+
<tag line="3259" name="since" description="1.50"/>
|
1889 |
+
<tag line="3259" name="param" description="The entire PDF document, passsed by reference" type="string" variable="$string">
|
1890 |
<type by_reference="false">string</type>
|
1891 |
</tag>
|
1892 |
+
<tag line="3259" name="return" description="" type="void">
|
1893 |
<type by_reference="false">void</type>
|
1894 |
</tag>
|
1895 |
</docblock>
|
1896 |
+
<argument line="3269">
|
1897 |
<name>$string</name>
|
1898 |
<default><![CDATA[]]></default>
|
1899 |
<type/>
|
1900 |
</argument>
|
1901 |
</method>
|
1902 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3317" package="Media Library Assistant">
|
1903 |
<name>_find_pdf_indirect_dictionary</name>
|
1904 |
<full_name>_find_pdf_indirect_dictionary</full_name>
|
1905 |
+
<docblock line="3303">
|
1906 |
<description><![CDATA[Find the offset, length and contents of an indirect object containing a dictionary]]></description>
|
1907 |
<long-description><![CDATA[<p>The function searches the entire file, if necessary, to find the last/most recent copy of the object.
|
1908 |
This is required because Adobe Acrobat does NOT increment the generation number when it reuses an object.</p>]]></long-description>
|
1909 |
+
<tag line="3303" name="since" description="1.50"/>
|
1910 |
+
<tag line="3303" name="param" description="full path and file name" type="string" variable="$file_name">
|
1911 |
<type by_reference="false">string</type>
|
1912 |
</tag>
|
1913 |
+
<tag line="3303" name="param" description="The object number" type="integer" variable="$object">
|
1914 |
<type by_reference="false">integer</type>
|
1915 |
</tag>
|
1916 |
+
<tag line="3303" name="param" description="The object generation number; default zero (0)" type="integer" variable="$generation">
|
1917 |
<type by_reference="false">integer</type>
|
1918 |
</tag>
|
1919 |
+
<tag line="3303" name="return" description="NULL on failure else array( 'start' => offset in the file, 'length' => object length, 'content' => dictionary contents )" type="mixed">
|
1920 |
<type by_reference="false">mixed</type>
|
1921 |
</tag>
|
1922 |
</docblock>
|
1923 |
+
<argument line="3317">
|
1924 |
<name>$file_name</name>
|
1925 |
<default><![CDATA[]]></default>
|
1926 |
<type/>
|
1927 |
</argument>
|
1928 |
+
<argument line="3317">
|
1929 |
<name>$object</name>
|
1930 |
<default><![CDATA[]]></default>
|
1931 |
<type/>
|
1932 |
</argument>
|
1933 |
+
<argument line="3317">
|
1934 |
<name>$generation</name>
|
1935 |
<default><![CDATA[0]]></default>
|
1936 |
<type/>
|
1937 |
</argument>
|
1938 |
</method>
|
1939 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3414" package="Media Library Assistant">
|
1940 |
<name>_parse_iso8601_date</name>
|
1941 |
<full_name>_parse_iso8601_date</full_name>
|
1942 |
+
<docblock line="3405">
|
1943 |
<description><![CDATA[Parse a ISO 8601 Timestamp]]></description>
|
1944 |
<long-description><![CDATA[]]></long-description>
|
1945 |
+
<tag line="3405" name="since" description="1.50"/>
|
1946 |
+
<tag line="3405" name="param" description="ISO string of the form YYYY-MM-DDTHH:MM:SS-HH:MM (inc time zone)" type="string" variable="$source_string">
|
1947 |
<type by_reference="false">string</type>
|
1948 |
</tag>
|
1949 |
+
<tag line="3405" name="return" description="formatted date string YYYY-MM-DD HH:mm:SS" type="string">
|
1950 |
<type by_reference="false">string</type>
|
1951 |
</tag>
|
1952 |
</docblock>
|
1953 |
+
<argument line="3414">
|
1954 |
<name>$source_string</name>
|
1955 |
<default><![CDATA[]]></default>
|
1956 |
<type/>
|
1957 |
</argument>
|
1958 |
</method>
|
1959 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3437" package="Media Library Assistant">
|
1960 |
<name>_parse_pdf_date</name>
|
1961 |
<full_name>_parse_pdf_date</full_name>
|
1962 |
+
<docblock line="3428">
|
1963 |
<description><![CDATA[Parse a PDF date string]]></description>
|
1964 |
<long-description><![CDATA[]]></long-description>
|
1965 |
+
<tag line="3428" name="since" description="1.50"/>
|
1966 |
+
<tag line="3428" name="param" description="PDF date string of the form D:YYYYMMDDHHmmSSOHH'mm" type="string" variable="$source_string">
|
1967 |
<type by_reference="false">string</type>
|
1968 |
</tag>
|
1969 |
+
<tag line="3428" name="return" description="formatted date string YYYY-MM-DD HH:mm:SS" type="string">
|
1970 |
<type by_reference="false">string</type>
|
1971 |
</tag>
|
1972 |
</docblock>
|
1973 |
+
<argument line="3437">
|
1974 |
<name>$source_string</name>
|
1975 |
<default><![CDATA[]]></default>
|
1976 |
<type/>
|
1977 |
</argument>
|
1978 |
</method>
|
1979 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3460" package="Media Library Assistant">
|
1980 |
<name>_parse_pdf_UTF16BE</name>
|
1981 |
<full_name>_parse_pdf_UTF16BE</full_name>
|
1982 |
+
<docblock line="3451">
|
1983 |
<description><![CDATA[Parse a PDF Unicode (16-bit Big Endian) object]]></description>
|
1984 |
<long-description><![CDATA[]]></long-description>
|
1985 |
+
<tag line="3451" name="since" description="1.50"/>
|
1986 |
+
<tag line="3451" name="param" description="PDF string of 16-bit characters" type="string" variable="$source_string">
|
1987 |
<type by_reference="false">string</type>
|
1988 |
</tag>
|
1989 |
+
<tag line="3451" name="return" description="UTF-8 encoded string" type="string">
|
1990 |
<type by_reference="false">string</type>
|
1991 |
</tag>
|
1992 |
</docblock>
|
1993 |
+
<argument line="3460">
|
1994 |
<name>$source_string</name>
|
1995 |
<default><![CDATA[]]></default>
|
1996 |
<type/>
|
1997 |
</argument>
|
1998 |
</method>
|
1999 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3489" package="Media Library Assistant">
|
2000 |
<name>_parse_pdf_string</name>
|
2001 |
<full_name>_parse_pdf_string</full_name>
|
2002 |
+
<docblock line="3476">
|
2003 |
<description><![CDATA[Parse a PDF string object]]></description>
|
2004 |
<long-description><![CDATA[<p>Returns an array with one dictionary entry. The array also has a '/length' element containing
|
2005 |
the number of bytes occupied by the string in the source string, including the enclosing parentheses.</p>]]></long-description>
|
2006 |
+
<tag line="3476" name="since" description="1.50"/>
|
2007 |
+
<tag line="3476" name="param" description="data within which the string occurs" type="string" variable="$source_string">
|
2008 |
<type by_reference="false">string</type>
|
2009 |
</tag>
|
2010 |
+
<tag line="3476" name="param" description="offset within the source string of the opening '(' character." type="integer" variable="$offset">
|
2011 |
<type by_reference="false">integer</type>
|
2012 |
</tag>
|
2013 |
+
<tag line="3476" name="return" description="( key => array( 'type' => type, 'value' => value, '/length' => length ) ) for the string" type="array">
|
2014 |
<type by_reference="false">array</type>
|
2015 |
</tag>
|
2016 |
</docblock>
|
2017 |
+
<argument line="3489">
|
2018 |
<name>$source_string</name>
|
2019 |
<default><![CDATA[]]></default>
|
2020 |
<type/>
|
2021 |
</argument>
|
2022 |
+
<argument line="3489">
|
2023 |
<name>$offset</name>
|
2024 |
<default><![CDATA[]]></default>
|
2025 |
<type/>
|
2026 |
</argument>
|
2027 |
</method>
|
2028 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3583" package="Media Library Assistant">
|
2029 |
<name>_parse_pdf_LPD_dictionary</name>
|
2030 |
<full_name>_parse_pdf_LPD_dictionary</full_name>
|
2031 |
+
<docblock line="3569">
|
2032 |
<description><![CDATA[Parse a PDF Linearization Parameter Dictionary object]]></description>
|
2033 |
<long-description><![CDATA[<p>Returns an array of dictionary contents, classified by object type: boolean, numeric, string, hex (string),
|
2034 |
indirect (object), name, array, dictionary, stream, and null.
|
2035 |
The array also has a '/length' element containing the number of bytes occupied by the
|
2036 |
dictionary in the source string, excluding the enclosing delimiters, if passed in.</p>]]></long-description>
|
2037 |
+
<tag line="3569" name="since" description="1.50"/>
|
2038 |
+
<tag line="3569" name="param" description="data within which the object occurs, typically the start of a PDF document" type="string" variable="$source_string">
|
2039 |
<type by_reference="false">string</type>
|
2040 |
</tag>
|
2041 |
+
<tag line="3569" name="param" description="filesize of the PDF document, for validation purposes, or zero (0) to ignore filesize" type="integer" variable="$filesize">
|
2042 |
<type by_reference="false">integer</type>
|
2043 |
</tag>
|
2044 |
+
<tag line="3569" name="return" description="array of dictionary objects on success, false on failure" type="mixed">
|
2045 |
<type by_reference="false">mixed</type>
|
2046 |
</tag>
|
2047 |
</docblock>
|
2048 |
+
<argument line="3583">
|
2049 |
<name>$source_string</name>
|
2050 |
<default><![CDATA[]]></default>
|
2051 |
<type/>
|
2052 |
</argument>
|
2053 |
+
<argument line="3583">
|
2054 |
<name>$filesize</name>
|
2055 |
<default><![CDATA[]]></default>
|
2056 |
<type/>
|
2057 |
</argument>
|
2058 |
</method>
|
2059 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3608" package="Media Library Assistant">
|
2060 |
<name>_parse_pdf_dictionary</name>
|
2061 |
<full_name>_parse_pdf_dictionary</full_name>
|
2062 |
+
<docblock line="3594">
|
2063 |
<description><![CDATA[Parse a PDF dictionary object]]></description>
|
2064 |
<long-description><![CDATA[<p>Returns an array of dictionary contents, classified by object type: boolean, numeric, string, hex (string),
|
2065 |
indirect (object), name, array, dictionary, stream, and null.
|
2066 |
The array also has a '/length' element containing the number of bytes occupied by the
|
2067 |
dictionary in the source string, excluding the enclosing delimiters.</p>]]></long-description>
|
2068 |
+
<tag line="3594" name="since" description="1.50"/>
|
2069 |
+
<tag line="3594" name="param" description="data within which the string occurs" type="string" variable="$source_string">
|
2070 |
<type by_reference="false">string</type>
|
2071 |
</tag>
|
2072 |
+
<tag line="3594" name="param" description="offset within the source string of the opening '<<' characters or the first content character." type="integer" variable="$offset">
|
2073 |
<type by_reference="false">integer</type>
|
2074 |
</tag>
|
2075 |
+
<tag line="3594" name="return" description="( '/length' => length, key => array( 'type' => type, 'value' => value ) ) for each dictionary field" type="array">
|
2076 |
<type by_reference="false">array</type>
|
2077 |
</tag>
|
2078 |
</docblock>
|
2079 |
+
<argument line="3608">
|
2080 |
<name>$source_string</name>
|
2081 |
<default><![CDATA[]]></default>
|
2082 |
<type/>
|
2083 |
</argument>
|
2084 |
+
<argument line="3608">
|
2085 |
<name>$offset</name>
|
2086 |
<default><![CDATA[]]></default>
|
2087 |
<type/>
|
2088 |
</argument>
|
2089 |
</method>
|
2090 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3740" package="Media Library Assistant">
|
2091 |
<name>_parse_xmp_metadata</name>
|
2092 |
<full_name>_parse_xmp_metadata</full_name>
|
2093 |
+
<docblock line="3726">
|
2094 |
<description><![CDATA[Parse an XMP object]]></description>
|
2095 |
<long-description><![CDATA[<p>Returns an array of dictionary contents, classified by object type: boolean, numeric, string, hex (string),
|
2096 |
indirect (object), name, array, dictionary, stream, and null.
|
2097 |
The array also has a '/length' element containing the number of bytes occupied by the
|
2098 |
dictionary in the source string, excluding the enclosing delimiters, if passed in.</p>]]></long-description>
|
2099 |
+
<tag line="3726" name="since" description="1.50"/>
|
2100 |
+
<tag line="3726" name="param" description="full path and file name" type="string" variable="$file_name">
|
2101 |
<type by_reference="false">string</type>
|
2102 |
</tag>
|
2103 |
+
<tag line="3726" name="param" description="offset within the file of the search start point" type="integer" variable="$file_offset">
|
2104 |
<type by_reference="false">integer</type>
|
2105 |
</tag>
|
2106 |
+
<tag line="3726" name="return" description="array of metadata values or NULL on failure" type="mixed">
|
2107 |
<type by_reference="false">mixed</type>
|
2108 |
</tag>
|
2109 |
</docblock>
|
2110 |
+
<argument line="3740">
|
2111 |
<name>$file_name</name>
|
2112 |
<default><![CDATA[]]></default>
|
2113 |
<type/>
|
2114 |
</argument>
|
2115 |
+
<argument line="3740">
|
2116 |
<name>$file_offset</name>
|
2117 |
<default><![CDATA[]]></default>
|
2118 |
<type/>
|
2119 |
</argument>
|
2120 |
</method>
|
2121 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="4029" package="Media Library Assistant">
|
2122 |
<name>_extract_pdf_trailer</name>
|
2123 |
<full_name>_extract_pdf_trailer</full_name>
|
2124 |
+
<docblock line="4019">
|
2125 |
<description><![CDATA[Extract dictionary from traditional cross-reference + trailer documents]]></description>
|
2126 |
<long-description><![CDATA[]]></long-description>
|
2127 |
+
<tag line="4019" name="since" description="1.50"/>
|
2128 |
+
<tag line="4019" name="param" description="full path to the desired file" type="string" variable="$file_name">
|
2129 |
<type by_reference="false">string</type>
|
2130 |
</tag>
|
2131 |
+
<tag line="4019" name="param" description="offset within file of the cross-reference table" type="integer" variable="$file_offset">
|
2132 |
<type by_reference="false">integer</type>
|
2133 |
</tag>
|
2134 |
+
<tag line="4019" name="return" description="array of "PDF dictionary arrays", newest first, or NULL on failure" type="mixed">
|
2135 |
<type by_reference="false">mixed</type>
|
2136 |
</tag>
|
2137 |
</docblock>
|
2138 |
+
<argument line="4029">
|
2139 |
<name>$file_name</name>
|
2140 |
<default><![CDATA[]]></default>
|
2141 |
<type/>
|
2142 |
</argument>
|
2143 |
+
<argument line="4029">
|
2144 |
<name>$file_offset</name>
|
2145 |
<default><![CDATA[]]></default>
|
2146 |
<type/>
|
2147 |
</argument>
|
2148 |
</method>
|
2149 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="4115" package="Media Library Assistant">
|
2150 |
<name>_extract_pdf_metadata</name>
|
2151 |
<full_name>_extract_pdf_metadata</full_name>
|
2152 |
+
<docblock line="4106">
|
2153 |
<description><![CDATA[Extract Metadata from a PDF file]]></description>
|
2154 |
<long-description><![CDATA[]]></long-description>
|
2155 |
+
<tag line="4106" name="since" description="1.50"/>
|
2156 |
+
<tag line="4106" name="param" description="full path to the desired file" type="string" variable="$file_name">
|
2157 |
<type by_reference="false">string</type>
|
2158 |
</tag>
|
2159 |
+
<tag line="4106" name="return" description="( key => value ) for each metadata field, in string format" type="array">
|
2160 |
<type by_reference="false">array</type>
|
2161 |
</tag>
|
2162 |
</docblock>
|
2163 |
+
<argument line="4115">
|
2164 |
<name>$file_name</name>
|
2165 |
<default><![CDATA[]]></default>
|
2166 |
<type/>
|
2167 |
</argument>
|
2168 |
</method>
|
2169 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="4248" package="Media Library Assistant">
|
2170 |
<name>_bin_to_utf8</name>
|
2171 |
<full_name>_bin_to_utf8</full_name>
|
2172 |
+
<docblock line="4239">
|
2173 |
<description><![CDATA[Replace SQL incorrect characters (0x80 - 0xFF) with their UTF-8 equivalents]]></description>
|
2174 |
<long-description><![CDATA[]]></long-description>
|
2175 |
+
<tag line="4239" name="since" description="1.41"/>
|
2176 |
+
<tag line="4239" name="param" description="unencoded string" type="string" variable="$string">
|
2177 |
<type by_reference="false">string</type>
|
2178 |
</tag>
|
2179 |
+
<tag line="4239" name="return" description="UTF-8 encoded string" type="string">
|
2180 |
<type by_reference="false">string</type>
|
2181 |
</tag>
|
2182 |
</docblock>
|
2183 |
+
<argument line="4248">
|
2184 |
<name>$string</name>
|
2185 |
<default><![CDATA[]]></default>
|
2186 |
<type/>
|
2187 |
</argument>
|
2188 |
</method>
|
2189 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="4646" package="Media Library Assistant">
|
2190 |
<name>mla_iptc_metadata_value</name>
|
2191 |
<full_name>mla_iptc_metadata_value</full_name>
|
2192 |
+
<docblock line="4636">
|
2193 |
<description><![CDATA[Parse one IPTC metadata field]]></description>
|
2194 |
<long-description><![CDATA[]]></long-description>
|
2195 |
+
<tag line="4636" name="since" description="1.41"/>
|
2196 |
+
<tag line="4636" name="param" description="field name - IPTC Identifier or friendly name/slug" type="string" variable="$iptc_key">
|
2197 |
<type by_reference="false">string</type>
|
2198 |
</tag>
|
2199 |
+
<tag line="4636" name="param" description="metadata array containing iptc, exif, and pdf metadata arrays" type="string" variable="$item_metadata">
|
2200 |
<type by_reference="false">string</type>
|
2201 |
</tag>
|
2202 |
+
<tag line="4636" name="return" description="string/array representation of metadata value or an empty string" type="mixed">
|
2203 |
<type by_reference="false">mixed</type>
|
2204 |
</tag>
|
2205 |
</docblock>
|
2206 |
+
<argument line="4646">
|
2207 |
<name>$iptc_key</name>
|
2208 |
<default><![CDATA[]]></default>
|
2209 |
<type/>
|
2210 |
</argument>
|
2211 |
+
<argument line="4646">
|
2212 |
<name>$item_metadata</name>
|
2213 |
<default><![CDATA[]]></default>
|
2214 |
<type/>
|
2215 |
</argument>
|
2216 |
</method>
|
2217 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="4678" package="Media Library Assistant">
|
2218 |
<name>mla_exif_metadata_value</name>
|
2219 |
<full_name>mla_exif_metadata_value</full_name>
|
2220 |
+
<docblock line="4666">
|
2221 |
<description><![CDATA[Parse one EXIF metadata field]]></description>
|
2222 |
<long-description><![CDATA[<p>Also handles the special pseudo-values 'ALL_EXIF' and 'ALL_IPTC'.</p>]]></long-description>
|
2223 |
+
<tag line="4666" name="since" description="1.13"/>
|
2224 |
+
<tag line="4666" name="param" description="field name" type="string" variable="$exif_key">
|
2225 |
<type by_reference="false">string</type>
|
2226 |
</tag>
|
2227 |
+
<tag line="4666" name="param" description="metadata array containing iptc, exif, and pdf metadata arrays" type="string" variable="$item_metadata">
|
2228 |
<type by_reference="false">string</type>
|
2229 |
</tag>
|
2230 |
+
<tag line="4666" name="return" description="string/array representation of metadata value or an empty string" type="mixed">
|
2231 |
<type by_reference="false">mixed</type>
|
2232 |
</tag>
|
2233 |
</docblock>
|
2234 |
+
<argument line="4678">
|
2235 |
<name>$exif_key</name>
|
2236 |
<default><![CDATA[]]></default>
|
2237 |
<type/>
|
2238 |
</argument>
|
2239 |
+
<argument line="4678">
|
2240 |
<name>$item_metadata</name>
|
2241 |
<default><![CDATA[]]></default>
|
2242 |
<type/>
|
2243 |
</argument>
|
2244 |
</method>
|
2245 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="4739" package="Media Library Assistant">
|
2246 |
<name>mla_pdf_metadata_value</name>
|
2247 |
<full_name>mla_pdf_metadata_value</full_name>
|
2248 |
+
<docblock line="4727">
|
2249 |
<description><![CDATA[Parse one PDF metadata field]]></description>
|
2250 |
<long-description><![CDATA[<p>Also handles the special pseudo-value 'ALL_PDF'.</p>]]></long-description>
|
2251 |
+
<tag line="4727" name="since" description="1.50"/>
|
2252 |
+
<tag line="4727" name="param" description="field name" type="string" variable="$pdf_key">
|
2253 |
<type by_reference="false">string</type>
|
2254 |
</tag>
|
2255 |
+
<tag line="4727" name="param" description="metadata array containing iptc, exif, and pdf metadata arrays" type="string" variable="$item_metadata">
|
2256 |
<type by_reference="false">string</type>
|
2257 |
</tag>
|
2258 |
+
<tag line="4727" name="return" description="string/array representation of metadata value or an empty string" type="mixed">
|
2259 |
<type by_reference="false">mixed</type>
|
2260 |
</tag>
|
2261 |
</docblock>
|
2262 |
+
<argument line="4739">
|
2263 |
<name>$pdf_key</name>
|
2264 |
<default><![CDATA[]]></default>
|
2265 |
<type/>
|
2266 |
</argument>
|
2267 |
+
<argument line="4739">
|
2268 |
<name>$item_metadata</name>
|
2269 |
<default><![CDATA[]]></default>
|
2270 |
<type/>
|
2271 |
</argument>
|
2272 |
</method>
|
2273 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="4781" package="Media Library Assistant">
|
2274 |
<name>_rational_to_decimal</name>
|
2275 |
<full_name>_rational_to_decimal</full_name>
|
2276 |
+
<docblock line="4772">
|
2277 |
<description><![CDATA[Convert an EXIF GPS rational value to a PHP float value]]></description>
|
2278 |
<long-description><![CDATA[]]></long-description>
|
2279 |
+
<tag line="4772" name="since" description="1.50"/>
|
2280 |
+
<tag line="4772" name="param" description="array( 0 => numerator, 1 => denominator )" type="array" variable="$rational">
|
2281 |
<type by_reference="false">array</type>
|
2282 |
</tag>
|
2283 |
+
<tag line="4772" name="return" description="numerator/denominator" type="float">
|
2284 |
<type by_reference="false">float</type>
|
2285 |
</tag>
|
2286 |
</docblock>
|
2287 |
+
<argument line="4781">
|
2288 |
<name>$rational</name>
|
2289 |
<default><![CDATA[]]></default>
|
2290 |
<type/>
|
2291 |
</argument>
|
2292 |
</method>
|
2293 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="4808" package="Media Library Assistant">
|
2294 |
<name>mla_IPTC_EXIF_error_handler</name>
|
2295 |
<full_name>mla_IPTC_EXIF_error_handler</full_name>
|
2296 |
+
<docblock line="4796">
|
2297 |
<description><![CDATA[Intercept IPTC and EXIF parse errors]]></description>
|
2298 |
<long-description><![CDATA[]]></long-description>
|
2299 |
+
<tag line="4796" name="since" description="1.81"/>
|
2300 |
+
<tag line="4796" name="param" description="the level of the error raised" type="int" variable="$type">
|
2301 |
<type by_reference="false">int</type>
|
2302 |
</tag>
|
2303 |
+
<tag line="4796" name="param" description="the error message" type="string" variable="$string">
|
2304 |
<type by_reference="false">string</type>
|
2305 |
</tag>
|
2306 |
+
<tag line="4796" name="param" description="the filename that the error was raised in" type="string" variable="$file">
|
2307 |
<type by_reference="false">string</type>
|
2308 |
</tag>
|
2309 |
+
<tag line="4796" name="param" description="the line number the error was raised at" type="int" variable="$line">
|
2310 |
<type by_reference="false">int</type>
|
2311 |
</tag>
|
2312 |
+
<tag line="4796" name="return" description="true, to bypass PHP error handler" type="boolean">
|
2313 |
<type by_reference="false">boolean</type>
|
2314 |
</tag>
|
2315 |
</docblock>
|
2316 |
+
<argument line="4808">
|
2317 |
<name>$type</name>
|
2318 |
<default><![CDATA[]]></default>
|
2319 |
<type/>
|
2320 |
</argument>
|
2321 |
+
<argument line="4808">
|
2322 |
<name>$string</name>
|
2323 |
<default><![CDATA[]]></default>
|
2324 |
<type/>
|
2325 |
</argument>
|
2326 |
+
<argument line="4808">
|
2327 |
<name>$file</name>
|
2328 |
<default><![CDATA[]]></default>
|
2329 |
<type/>
|
2330 |
</argument>
|
2331 |
+
<argument line="4808">
|
2332 |
<name>$line</name>
|
2333 |
<default><![CDATA[]]></default>
|
2334 |
<type/>
|
2335 |
</argument>
|
2336 |
</method>
|
2337 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="4846" package="Media Library Assistant">
|
2338 |
<name>mla_fetch_attachment_image_metadata</name>
|
2339 |
<full_name>mla_fetch_attachment_image_metadata</full_name>
|
2340 |
+
<docblock line="4836">
|
2341 |
<description><![CDATA[Fetch and filter IPTC and EXIF or PDF metadata for an image attachment]]></description>
|
2342 |
<long-description><![CDATA[]]></long-description>
|
2343 |
+
<tag line="4836" name="since" description="0.90"/>
|
2344 |
+
<tag line="4836" name="param" description="post ID of attachment" type="int" variable="$post_id">
|
2345 |
<type by_reference="false">int</type>
|
2346 |
</tag>
|
2347 |
+
<tag line="4836" name="param" description="optional; if $post_id is zero, path to the image file." type="string" variable="$path">
|
2348 |
<type by_reference="false">string</type>
|
2349 |
</tag>
|
2350 |
+
<tag line="4836" name="return" description="Meta data variables, IPTC and EXIF or PDF" type="array">
|
2351 |
<type by_reference="false">array</type>
|
2352 |
</tag>
|
2353 |
</docblock>
|
2354 |
+
<argument line="4846">
|
2355 |
<name>$post_id</name>
|
2356 |
<default><![CDATA[]]></default>
|
2357 |
<type/>
|
2358 |
</argument>
|
2359 |
+
<argument line="4846">
|
2360 |
<name>$path</name>
|
2361 |
<default><![CDATA['']]></default>
|
2362 |
<type/>
|
2363 |
</argument>
|
2364 |
</method>
|
2365 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="5035" package="Media Library Assistant">
|
2366 |
<name>mla_update_wp_attachment_metadata</name>
|
2367 |
<full_name>mla_update_wp_attachment_metadata</full_name>
|
2368 |
+
<docblock line="5025">
|
2369 |
<description><![CDATA[Update "meta:" data for a single attachment]]></description>
|
2370 |
<long-description><![CDATA[]]></long-description>
|
2371 |
+
<tag line="5025" name="since" description="1.51"/>
|
2372 |
+
<tag line="5025" name="param" description="The current wp_attachment_metadata value" type="array" variable="$current_values">
|
2373 |
<type by_reference="false">array</type>
|
2374 |
</tag>
|
2375 |
+
<tag line="5025" name="param" description="Field name => value pairs" type="array" variable="$new_meta">
|
2376 |
<type by_reference="false">array</type>
|
2377 |
</tag>
|
2378 |
+
<tag line="5025" name="return" description="success/failure message(s); empty string if no changes." type="string">
|
2379 |
<type by_reference="false">string</type>
|
2380 |
</tag>
|
2381 |
</docblock>
|
2382 |
+
<argument line="5035">
|
2383 |
<name>$current_values</name>
|
2384 |
<default><![CDATA[]]></default>
|
2385 |
<type/>
|
2386 |
</argument>
|
2387 |
+
<argument line="5035">
|
2388 |
<name>$new_meta</name>
|
2389 |
<default><![CDATA[]]></default>
|
2390 |
<type/>
|
2391 |
</argument>
|
2392 |
</method>
|
2393 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="5118" package="Media Library Assistant">
|
2394 |
<name>mla_update_item_postmeta</name>
|
2395 |
<full_name>mla_update_item_postmeta</full_name>
|
2396 |
+
<docblock line="5108">
|
2397 |
<description><![CDATA[Update custom field and "meta:" data for a single attachment]]></description>
|
2398 |
<long-description><![CDATA[]]></long-description>
|
2399 |
+
<tag line="5108" name="since" description="1.40"/>
|
2400 |
+
<tag line="5108" name="param" description="The ID of the attachment to be updated" type="int" variable="$post_id">
|
2401 |
<type by_reference="false">int</type>
|
2402 |
</tag>
|
2403 |
+
<tag line="5108" name="param" description="Field name => value pairs" type="array" variable="$new_meta">
|
2404 |
<type by_reference="false">array</type>
|
2405 |
</tag>
|
2406 |
+
<tag line="5108" name="return" description="success/failure message(s)" type="string">
|
2407 |
<type by_reference="false">string</type>
|
2408 |
</tag>
|
2409 |
</docblock>
|
2410 |
+
<argument line="5118">
|
2411 |
<name>$post_id</name>
|
2412 |
<default><![CDATA[]]></default>
|
2413 |
<type/>
|
2414 |
</argument>
|
2415 |
+
<argument line="5118">
|
2416 |
<name>$new_meta</name>
|
2417 |
<default><![CDATA[]]></default>
|
2418 |
<type/>
|
2419 |
</argument>
|
2420 |
</method>
|
2421 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="5285" package="Media Library Assistant">
|
2422 |
<name>mla_update_single_item</name>
|
2423 |
<full_name>mla_update_single_item</full_name>
|
2424 |
+
<docblock line="5272">
|
2425 |
<description><![CDATA[Update a single item; change the "post" data, taxonomy terms
|
2426 |
and meta data for a single attachment]]></description>
|
2427 |
<long-description><![CDATA[]]></long-description>
|
2428 |
+
<tag line="5272" name="since" description="0.1"/>
|
2429 |
+
<tag line="5272" name="param" description="The ID of the attachment to be updated" type="int" variable="$post_id">
|
2430 |
<type by_reference="false">int</type>
|
2431 |
</tag>
|
2432 |
+
<tag line="5272" name="param" description="Field name => value pairs" type="array" variable="$new_data">
|
2433 |
<type by_reference="false">array</type>
|
2434 |
</tag>
|
2435 |
+
<tag line="5272" name="param" description="Optional taxonomy term values, default null" type="array" variable="$tax_input">
|
2436 |
<type by_reference="false">array</type>
|
2437 |
</tag>
|
2438 |
+
<tag line="5272" name="param" description="Optional taxonomy actions (add, remove, replace), default null" type="array" variable="$tax_actions">
|
2439 |
<type by_reference="false">array</type>
|
2440 |
</tag>
|
2441 |
+
<tag line="5272" name="return" description="success/failure message and NULL content" type="array">
|
2442 |
<type by_reference="false">array</type>
|
2443 |
</tag>
|
2444 |
</docblock>
|
2445 |
+
<argument line="5285">
|
2446 |
<name>$post_id</name>
|
2447 |
<default><![CDATA[]]></default>
|
2448 |
<type/>
|
2449 |
</argument>
|
2450 |
+
<argument line="5285">
|
2451 |
<name>$new_data</name>
|
2452 |
<default><![CDATA[]]></default>
|
2453 |
<type/>
|
2454 |
</argument>
|
2455 |
+
<argument line="5285">
|
2456 |
<name>$tax_input</name>
|
2457 |
<default><![CDATA[NULL]]></default>
|
2458 |
<type/>
|
2459 |
</argument>
|
2460 |
+
<argument line="5285">
|
2461 |
<name>$tax_actions</name>
|
2462 |
<default><![CDATA[NULL]]></default>
|
2463 |
<type/>
|
2464 |
</argument>
|
2465 |
</method>
|
2466 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="5561" package="Media Library Assistant">
|
2467 |
<name>_remove_tags</name>
|
2468 |
<full_name>_remove_tags</full_name>
|
2469 |
+
<docblock line="5550">
|
2470 |
<description><![CDATA[Remove tags from a term ids list]]></description>
|
2471 |
<long-description><![CDATA[]]></long-description>
|
2472 |
+
<tag line="5550" name="since" description="0.40"/>
|
2473 |
+
<tag line="5550" name="param" description="The term ids currently assigned" type="array" variable="$terms_before">
|
2474 |
<type by_reference="false">array</type>
|
2475 |
</tag>
|
2476 |
+
<tag line="5550" name="param" description="| string The term ids (array) or names (string) to remove" type="array" variable="$tags">
|
2477 |
<type by_reference="false">array</type>
|
2478 |
</tag>
|
2479 |
+
<tag line="5550" name="param" description="The taxonomy object" type="object" variable="$taxonomy_obj">
|
2480 |
<type by_reference="false">object</type>
|
2481 |
</tag>
|
2482 |
+
<tag line="5550" name="return" description="Term ids of the surviving tags" type="array">
|
2483 |
<type by_reference="false">array</type>
|
2484 |
</tag>
|
2485 |
</docblock>
|
2486 |
+
<argument line="5561">
|
2487 |
<name>$terms_before</name>
|
2488 |
<default><![CDATA[]]></default>
|
2489 |
<type/>
|
2490 |
</argument>
|
2491 |
+
<argument line="5561">
|
2492 |
<name>$tags</name>
|
2493 |
<default><![CDATA[]]></default>
|
2494 |
<type/>
|
2495 |
</argument>
|
2496 |
+
<argument line="5561">
|
2497 |
<name>$taxonomy_obj</name>
|
2498 |
<default><![CDATA[]]></default>
|
2499 |
<type/>
|
2500 |
</argument>
|
2501 |
</method>
|
2502 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="5610" package="Media Library Assistant">
|
2503 |
<name>_hex_dump</name>
|
2504 |
<full_name>_hex_dump</full_name>
|
2505 |
+
<docblock line="5598">
|
2506 |
<description><![CDATA[Format printable version of binary data]]></description>
|
2507 |
<long-description><![CDATA[]]></long-description>
|
2508 |
+
<tag line="5598" name="since" description="0.90"/>
|
2509 |
+
<tag line="5598" name="param" description="Binary data" type="string" variable="$data">
|
2510 |
<type by_reference="false">string</type>
|
2511 |
</tag>
|
2512 |
+
<tag line="5598" name="param" description="Bytes to format, default = 0 (all bytes)" type="integer" variable="$limit">
|
2513 |
<type by_reference="false">integer</type>
|
2514 |
</tag>
|
2515 |
+
<tag line="5598" name="param" description="Bytes to format on each line" type="\intger" variable="$bytes_per_row">
|
2516 |
<type by_reference="false">\intger</type>
|
2517 |
</tag>
|
2518 |
+
<tag line="5598" name="param" description="offset of initial byte, or -1 to suppress printing offset information" type="integer" variable="$offset">
|
2519 |
<type by_reference="false">integer</type>
|
2520 |
</tag>
|
2521 |
+
<tag line="5598" name="return" description="Printable representation of $data" type="string">
|
2522 |
<type by_reference="false">string</type>
|
2523 |
</tag>
|
2524 |
</docblock>
|
2525 |
+
<argument line="5610">
|
2526 |
<name>$data</name>
|
2527 |
<default><![CDATA[]]></default>
|
2528 |
<type/>
|
2529 |
</argument>
|
2530 |
+
<argument line="5610">
|
2531 |
<name>$limit</name>
|
2532 |
<default><![CDATA[0]]></default>
|
2533 |
<type/>
|
2534 |
</argument>
|
2535 |
+
<argument line="5610">
|
2536 |
<name>$bytes_per_row</name>
|
2537 |
<default><![CDATA[16]]></default>
|
2538 |
<type/>
|
2539 |
</argument>
|
2540 |
+
<argument line="5610">
|
2541 |
<name>$offset</name>
|
2542 |
<default><![CDATA[-1]]></default>
|
2543 |
<type/>
|
2545 |
</method>
|
2546 |
</class>
|
2547 |
<markers>
|
2548 |
+
<todo line="3469">encode the rest</todo>
|
2549 |
</markers>
|
2550 |
</file>
|
2551 |
+
<file path="includes\class-mla-edit-media.php" hash="75c542ede2570895091b3ac839d4248b" package="Media Library Assistant">
|
2552 |
<docblock line="2">
|
2553 |
<description><![CDATA[Media Library Assistant Edit Media screen enhancements]]></description>
|
2554 |
<long-description><![CDATA[]]></long-description>
|
2604 |
</tag>
|
2605 |
</docblock>
|
2606 |
</constant>
|
2607 |
+
<property final="false" static="true" visibility="private" line="395" namespace="global" package="Media Library Assistant">
|
2608 |
<name>$mla_references</name>
|
2609 |
<default><![CDATA[null]]></default>
|
2610 |
+
<docblock line="385">
|
2611 |
<description><![CDATA[Where-used values for the current item]]></description>
|
2612 |
<long-description><![CDATA[<p>This array contains the Featured/Inserted/Gallery/MLA Gallery references for the item.
|
2613 |
The array is built once each page load and cached for subsequent calls.</p>]]></long-description>
|
2614 |
+
<tag line="385" name="since" description="0.80"/>
|
2615 |
+
<tag line="385" name="var" description="" type="array">
|
2616 |
<type by_reference="false">array</type>
|
2617 |
</tag>
|
2618 |
</docblock>
|
2661 |
<type/>
|
2662 |
</argument>
|
2663 |
</method>
|
2664 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="195" package="Media Library Assistant">
|
2665 |
<name>mla_post_updated_messages_filter</name>
|
2666 |
<full_name>mla_post_updated_messages_filter</full_name>
|
2667 |
+
<docblock line="185">
|
2668 |
<description><![CDATA[Adds mapping update messages for display at the top of the Edit Media screen.]]></description>
|
2669 |
<long-description><![CDATA[<p>Declared public because it is a filter.</p>]]></long-description>
|
2670 |
+
<tag line="185" name="since" description="1.10"/>
|
2671 |
+
<tag line="185" name="param" description="messages for the Edit screen" type="array" variable="$messages">
|
2672 |
<type by_reference="false">array</type>
|
2673 |
</tag>
|
2674 |
+
<tag line="185" name="return" description="updated messages" type="array">
|
2675 |
<type by_reference="false">array</type>
|
2676 |
</tag>
|
2677 |
</docblock>
|
2678 |
+
<argument line="195">
|
2679 |
<name>$messages</name>
|
2680 |
<default><![CDATA[]]></default>
|
2681 |
<type/>
|
2682 |
</argument>
|
2683 |
</method>
|
2684 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="212" package="Media Library Assistant">
|
2685 |
<name>mla_attachment_submitbox_action</name>
|
2686 |
<full_name>mla_attachment_submitbox_action</full_name>
|
2687 |
+
<docblock line="204">
|
2688 |
<description><![CDATA[Adds Last Modified date to the Submit box on the Edit Media screen.]]></description>
|
2689 |
<long-description><![CDATA[<p>Declared public because it is an action.</p>]]></long-description>
|
2690 |
+
<tag line="204" name="since" description="0.80"/>
|
2691 |
+
<tag line="204" name="return" description="echoes the HTML markup for the label and value" type="void">
|
2692 |
<type by_reference="false">void</type>
|
2693 |
</tag>
|
2694 |
</docblock>
|
2695 |
</method>
|
2696 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="248" package="Media Library Assistant">
|
2697 |
<name>mla_add_meta_boxes_action</name>
|
2698 |
<full_name>mla_add_meta_boxes_action</full_name>
|
2699 |
+
<docblock line="237">
|
2700 |
<description><![CDATA[Registers meta boxes for the Edit Media screen.]]></description>
|
2701 |
<long-description><![CDATA[<p>Declared public because it is an action.</p>]]></long-description>
|
2702 |
+
<tag line="237" name="since" description="0.80"/>
|
2703 |
+
<tag line="237" name="param" description="type of the current post, e.g., 'attachment' (optional, default 'unknown')" type="string" variable="$post_type">
|
2704 |
<type by_reference="false">string</type>
|
2705 |
</tag>
|
2706 |
+
<tag line="237" name="param" description="current post (optional, default (object) array ( 'ID' => 0 ))" type="object" variable="$post">
|
2707 |
<type by_reference="false">object</type>
|
2708 |
</tag>
|
2709 |
+
<tag line="237" name="return" description="" type="void">
|
2710 |
<type by_reference="false">void</type>
|
2711 |
</tag>
|
2712 |
</docblock>
|
2713 |
+
<argument line="248">
|
2714 |
<name>$post_type</name>
|
2715 |
<default><![CDATA['unknown']]></default>
|
2716 |
<type/>
|
2717 |
</argument>
|
2718 |
+
<argument line="248">
|
2719 |
<name>$post</name>
|
2720 |
<default><![CDATA[NULL]]></default>
|
2721 |
<type/>
|
2722 |
</argument>
|
2723 |
</method>
|
2724 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="345" package="Media Library Assistant">
|
2725 |
<name>mla_edit_add_help_tab</name>
|
2726 |
<full_name>mla_edit_add_help_tab</full_name>
|
2727 |
+
<docblock line="335">
|
2728 |
<description><![CDATA[Add contextual help tabs to the WordPress Edit Media page]]></description>
|
2729 |
<long-description><![CDATA[]]></long-description>
|
2730 |
+
<tag line="335" name="since" description="0.90"/>
|
2731 |
+
<tag line="335" name="param" description="title as shown on the screen" type="string" variable="$admin_title">
|
2732 |
<type by_reference="false">string</type>
|
2733 |
</tag>
|
2734 |
+
<tag line="335" name="param" description="title as shown in the HTML header" type="string" variable="$title">
|
2735 |
<type by_reference="false">string</type>
|
2736 |
</tag>
|
2737 |
+
<tag line="335" name="return" description="" type="void">
|
2738 |
<type by_reference="false">void</type>
|
2739 |
</tag>
|
2740 |
</docblock>
|
2741 |
+
<argument line="345">
|
2742 |
<name>$admin_title</name>
|
2743 |
<default><![CDATA[]]></default>
|
2744 |
<type/>
|
2745 |
</argument>
|
2746 |
+
<argument line="345">
|
2747 |
<name>$title</name>
|
2748 |
<default><![CDATA[]]></default>
|
2749 |
<type/>
|
2750 |
</argument>
|
2751 |
</method>
|
2752 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="407" package="Media Library Assistant">
|
2753 |
<name>mla_parent_info_handler</name>
|
2754 |
<full_name>mla_parent_info_handler</full_name>
|
2755 |
+
<docblock line="397">
|
2756 |
<description><![CDATA[Renders the Parent Info meta box on the Edit Media page.]]></description>
|
2757 |
<long-description><![CDATA[<p>Declared public because it is a callback function.</p>]]></long-description>
|
2758 |
+
<tag line="397" name="since" description="0.80"/>
|
2759 |
+
<tag line="397" name="param" description="current post" type="object" variable="$post">
|
2760 |
<type by_reference="false">object</type>
|
2761 |
</tag>
|
2762 |
+
<tag line="397" name="return" description="echoes the HTML markup for the meta box content" type="void">
|
2763 |
<type by_reference="false">void</type>
|
2764 |
</tag>
|
2765 |
</docblock>
|
2766 |
+
<argument line="407">
|
2767 |
<name>$post</name>
|
2768 |
<default><![CDATA[]]></default>
|
2769 |
<type/>
|
2770 |
</argument>
|
2771 |
</method>
|
2772 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="443" package="Media Library Assistant">
|
2773 |
<name>mla_menu_order_handler</name>
|
2774 |
<full_name>mla_menu_order_handler</full_name>
|
2775 |
+
<docblock line="433">
|
2776 |
<description><![CDATA[Renders the Menu Order meta box on the Edit Media page.]]></description>
|
2777 |
<long-description><![CDATA[<p>Declared public because it is a callback function.</p>]]></long-description>
|
2778 |
+
<tag line="433" name="since" description="0.80"/>
|
2779 |
+
<tag line="433" name="param" description="current post" type="object" variable="$post">
|
2780 |
<type by_reference="false">object</type>
|
2781 |
</tag>
|
2782 |
+
<tag line="433" name="return" description="echoes the HTML markup for the meta box content" type="void">
|
2783 |
<type by_reference="false">void</type>
|
2784 |
</tag>
|
2785 |
</docblock>
|
2786 |
+
<argument line="443">
|
2787 |
<name>$post</name>
|
2788 |
<default><![CDATA[]]></default>
|
2789 |
<type/>
|
2790 |
</argument>
|
2791 |
</method>
|
2792 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="460" package="Media Library Assistant">
|
2793 |
<name>mla_image_metadata_handler</name>
|
2794 |
<full_name>mla_image_metadata_handler</full_name>
|
2795 |
+
<docblock line="450">
|
2796 |
<description><![CDATA[Renders the Image Metadata meta box on the Edit Media page.]]></description>
|
2797 |
<long-description><![CDATA[<p>Declared public because it is a callback function.</p>]]></long-description>
|
2798 |
+
<tag line="450" name="since" description="0.80"/>
|
2799 |
+
<tag line="450" name="param" description="current post" type="object" variable="$post">
|
2800 |
<type by_reference="false">object</type>
|
2801 |
</tag>
|
2802 |
+
<tag line="450" name="return" description="echoes the HTML markup for the meta box content" type="void">
|
2803 |
<type by_reference="false">void</type>
|
2804 |
</tag>
|
2805 |
</docblock>
|
2806 |
+
<argument line="460">
|
2807 |
<name>$post</name>
|
2808 |
<default><![CDATA[]]></default>
|
2809 |
<type/>
|
2810 |
</argument>
|
2811 |
</method>
|
2812 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="485" package="Media Library Assistant">
|
2813 |
<name>mla_featured_in_handler</name>
|
2814 |
<full_name>mla_featured_in_handler</full_name>
|
2815 |
+
<docblock line="475">
|
2816 |
<description><![CDATA[Renders the Featured in meta box on the Edit Media page.]]></description>
|
2817 |
<long-description><![CDATA[<p>Declared public because it is a callback function.</p>]]></long-description>
|
2818 |
+
<tag line="475" name="since" description="0.80"/>
|
2819 |
+
<tag line="475" name="param" description="current post" type="object" variable="$post">
|
2820 |
<type by_reference="false">object</type>
|
2821 |
</tag>
|
2822 |
+
<tag line="475" name="return" description="echoes the HTML markup for the meta box content" type="void">
|
2823 |
<type by_reference="false">void</type>
|
2824 |
</tag>
|
2825 |
</docblock>
|
2826 |
+
<argument line="485">
|
2827 |
<name>$post</name>
|
2828 |
<default><![CDATA[]]></default>
|
2829 |
<type/>
|
2830 |
</argument>
|
2831 |
</method>
|
2832 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="520" package="Media Library Assistant">
|
2833 |
<name>mla_inserted_in_handler</name>
|
2834 |
<full_name>mla_inserted_in_handler</full_name>
|
2835 |
+
<docblock line="510">
|
2836 |
<description><![CDATA[Renders the Inserted in meta box on the Edit Media page.]]></description>
|
2837 |
<long-description><![CDATA[<p>Declared public because it is a callback function.</p>]]></long-description>
|
2838 |
+
<tag line="510" name="since" description="0.80"/>
|
2839 |
+
<tag line="510" name="param" description="current post" type="object" variable="$post">
|
2840 |
<type by_reference="false">object</type>
|
2841 |
</tag>
|
2842 |
+
<tag line="510" name="return" description="echoes the HTML markup for the meta box content" type="void">
|
2843 |
<type by_reference="false">void</type>
|
2844 |
</tag>
|
2845 |
</docblock>
|
2846 |
+
<argument line="520">
|
2847 |
<name>$post</name>
|
2848 |
<default><![CDATA[]]></default>
|
2849 |
<type/>
|
2850 |
</argument>
|
2851 |
</method>
|
2852 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="559" package="Media Library Assistant">
|
2853 |
<name>mla_gallery_in_handler</name>
|
2854 |
<full_name>mla_gallery_in_handler</full_name>
|
2855 |
+
<docblock line="549">
|
2856 |
<description><![CDATA[Renders the Gallery in meta box on the Edit Media page.]]></description>
|
2857 |
<long-description><![CDATA[<p>Declared public because it is a callback function.</p>]]></long-description>
|
2858 |
+
<tag line="549" name="since" description="0.80"/>
|
2859 |
+
<tag line="549" name="param" description="current post" type="object" variable="$post">
|
2860 |
<type by_reference="false">object</type>
|
2861 |
</tag>
|
2862 |
+
<tag line="549" name="return" description="echoes the HTML markup for the meta box content" type="void">
|
2863 |
<type by_reference="false">void</type>
|
2864 |
</tag>
|
2865 |
</docblock>
|
2866 |
+
<argument line="559">
|
2867 |
<name>$post</name>
|
2868 |
<default><![CDATA[]]></default>
|
2869 |
<type/>
|
2870 |
</argument>
|
2871 |
</method>
|
2872 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="594" package="Media Library Assistant">
|
2873 |
<name>mla_mla_gallery_in_handler</name>
|
2874 |
<full_name>mla_mla_gallery_in_handler</full_name>
|
2875 |
+
<docblock line="584">
|
2876 |
+
<description><![CDATA[Renders the MLA Gallery in meta box on the Edit Media page.]]></description>
|
2877 |
<long-description><![CDATA[<p>Declared public because it is a callback function.</p>]]></long-description>
|
2878 |
+
<tag line="584" name="since" description="0.80"/>
|
2879 |
+
<tag line="584" name="param" description="current post" type="object" variable="$post">
|
2880 |
<type by_reference="false">object</type>
|
2881 |
</tag>
|
2882 |
+
<tag line="584" name="return" description="echoes the HTML markup for the meta box content" type="void">
|
2883 |
<type by_reference="false">void</type>
|
2884 |
</tag>
|
2885 |
</docblock>
|
2886 |
+
<argument line="594">
|
2887 |
<name>$post</name>
|
2888 |
<default><![CDATA[]]></default>
|
2889 |
<type/>
|
2890 |
</argument>
|
2891 |
</method>
|
2892 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="629" package="Media Library Assistant">
|
2893 |
<name>mla_edit_attachment_action</name>
|
2894 |
<full_name>mla_edit_attachment_action</full_name>
|
2895 |
+
<docblock line="619">
|
2896 |
<description><![CDATA[Saves updates from the Edit Media screen.]]></description>
|
2897 |
<long-description><![CDATA[<p>Declared public because it is an action.</p>]]></long-description>
|
2898 |
+
<tag line="619" name="since" description="0.80"/>
|
2899 |
+
<tag line="619" name="param" description="ID of the current post" type="integer" variable="$post_ID">
|
2900 |
<type by_reference="false">integer</type>
|
2901 |
</tag>
|
2902 |
+
<tag line="619" name="return" description="" type="void">
|
2903 |
<type by_reference="false">void</type>
|
2904 |
</tag>
|
2905 |
</docblock>
|
2906 |
+
<argument line="629">
|
2907 |
<name>$post_ID</name>
|
2908 |
<default><![CDATA[]]></default>
|
2909 |
<type/>
|
2910 |
</argument>
|
2911 |
</method>
|
2912 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="655" package="Media Library Assistant">
|
2913 |
<name>_mla_ajax_add_flat_term</name>
|
2914 |
<full_name>_mla_ajax_add_flat_term</full_name>
|
2915 |
+
<docblock line="644">
|
2916 |
<description><![CDATA[Add flat taxonomy term from "checklist" meta box on the Media Manager Modal Window]]></description>
|
2917 |
<long-description><![CDATA[<p>Adapted from the WordPress post_categories_meta_box() in /wp-admin/includes/meta-boxes.php.</p>]]></long-description>
|
2918 |
+
<tag line="644" name="since" description="1.80"/>
|
2919 |
+
<tag line="644" name="param" description="The taxonomy name, from $_POST['action']" type="string" variable="$key">
|
2920 |
<type by_reference="false">string</type>
|
2921 |
</tag>
|
2922 |
+
<tag line="644" name="return" description="Sends JSON response with updated HTML for the checklist" type="void">
|
2923 |
<type by_reference="false">void</type>
|
2924 |
</tag>
|
2925 |
</docblock>
|
2926 |
+
<argument line="655">
|
2927 |
<name>$key</name>
|
2928 |
<default><![CDATA[]]></default>
|
2929 |
<type/>
|
2930 |
</argument>
|
2931 |
</method>
|
2932 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="718" package="Media Library Assistant">
|
2933 |
<name>mla_checklist_meta_box</name>
|
2934 |
<full_name>mla_checklist_meta_box</full_name>
|
2935 |
+
<docblock line="703">
|
2936 |
<description><![CDATA[Display taxonomy "checklist" form fields]]></description>
|
2937 |
<long-description><![CDATA[<p>Adapted from /wp-admin/includes/ajax-actions.php function _wp_ajax_add_hierarchical_term().
|
2938 |
Includes the "? Search" area to filter the term checklist by entering part
|
2939 |
or all of a word/phrase in the term label.
|
2940 |
Output to the Media/Edit Media screen and to the Media Manager Modal Window.</p>]]></long-description>
|
2941 |
+
<tag line="703" name="since" description="1.71"/>
|
2942 |
+
<tag line="703" name="param" description="The current post" type="object" variable="$target_post">
|
2943 |
<type by_reference="false">object</type>
|
2944 |
</tag>
|
2945 |
+
<tag line="703" name="param" description="The meta box parameters" type="array" variable="$box">
|
2946 |
<type by_reference="false">array</type>
|
2947 |
</tag>
|
2948 |
+
<tag line="703" name="return" description="Echoes HTML for the form fields" type="void">
|
2949 |
<type by_reference="false">void</type>
|
2950 |
</tag>
|
2951 |
</docblock>
|
2952 |
+
<argument line="718">
|
2953 |
<name>$target_post</name>
|
2954 |
<default><![CDATA[]]></default>
|
2955 |
<type/>
|
2956 |
</argument>
|
2957 |
+
<argument line="718">
|
2958 |
<name>$box</name>
|
2959 |
<default><![CDATA[]]></default>
|
2960 |
<type/>
|
2961 |
</argument>
|
2962 |
</method>
|
2963 |
</class>
|
2964 |
+
<class final="false" abstract="false" namespace="global" line="877" package="Media Library Assistant">
|
2965 |
<extends>\Walker_Category</extends>
|
2966 |
<name>MLA_Checklist_Walker</name>
|
2967 |
<full_name>\MLA_Checklist_Walker</full_name>
|
2968 |
+
<docblock line="867">
|
2969 |
<description><![CDATA[Class MLA (Media Library Assistant) Checklist Walker replaces term_id with slug in checklist output]]></description>
|
2970 |
<long-description><![CDATA[<p>This walker is used to build the meta boxes for flat taxonomies, e.g., Tags, Att. Tags.
|
2971 |
Class Walker_Category is defined in /wp-includes/category-template.php.
|
2972 |
Class Walker is defined in /wp-includes/class-wp-walker.php.</p>]]></long-description>
|
2973 |
+
<tag line="867" name="package" description="Media Library Assistant"/>
|
2974 |
+
<tag line="867" name="since" description="1.80"/>
|
2975 |
</docblock>
|
2976 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="891" package="Media Library Assistant">
|
2977 |
<name>start_el</name>
|
2978 |
<full_name>start_el</full_name>
|
2979 |
+
<docblock line="878">
|
2980 |
<description><![CDATA[Start the element output.]]></description>
|
2981 |
<long-description><![CDATA[]]></long-description>
|
2982 |
+
<tag line="878" name="see" description="\global\Walker::start_el()" refers="\global\Walker::start_el()"/>
|
2983 |
+
<tag line="878" name="since" description="1.80"/>
|
2984 |
+
<tag line="878" name="param" description="Passed by reference. Used to append additional content." type="string" variable="$output">
|
2985 |
<type by_reference="false">string</type>
|
2986 |
</tag>
|
2987 |
+
<tag line="878" name="param" description="Taxonomy data object." type="object" variable="$taxonomy_object">
|
2988 |
<type by_reference="false">object</type>
|
2989 |
</tag>
|
2990 |
+
<tag line="878" name="param" description="Depth of category in reference to parents. Default 0." type="int" variable="$depth">
|
2991 |
<type by_reference="false">int</type>
|
2992 |
</tag>
|
2993 |
+
<tag line="878" name="param" description="An array of arguments. @see wp_list_categories()" type="array" variable="$args">
|
2994 |
<type by_reference="false">array</type>
|
2995 |
</tag>
|
2996 |
+
<tag line="878" name="param" description="ID of the current category." type="int" variable="$id">
|
2997 |
<type by_reference="false">int</type>
|
2998 |
</tag>
|
2999 |
</docblock>
|
3000 |
+
<argument line="891">
|
3001 |
<name>$output</name>
|
3002 |
<default><![CDATA[]]></default>
|
3003 |
<type/>
|
3004 |
</argument>
|
3005 |
+
<argument line="891">
|
3006 |
<name>$taxonomy_object</name>
|
3007 |
<default><![CDATA[]]></default>
|
3008 |
<type/>
|
3009 |
</argument>
|
3010 |
+
<argument line="891">
|
3011 |
<name>$depth</name>
|
3012 |
<default><![CDATA[0]]></default>
|
3013 |
<type/>
|
3014 |
</argument>
|
3015 |
+
<argument line="891">
|
3016 |
<name>$args</name>
|
3017 |
<default><![CDATA[array()]]></default>
|
3018 |
<type/>
|
3019 |
</argument>
|
3020 |
+
<argument line="891">
|
3021 |
<name>$id</name>
|
3022 |
<default><![CDATA[0]]></default>
|
3023 |
<type/>
|
3024 |
</argument>
|
3025 |
</method>
|
3026 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="924" package="Media Library Assistant">
|
3027 |
<name>end_el</name>
|
3028 |
<full_name>end_el</full_name>
|
3029 |
+
<docblock line="912">
|
3030 |
<description><![CDATA[Ends the element output, if needed.]]></description>
|
3031 |
<long-description><![CDATA[]]></long-description>
|
3032 |
+
<tag line="912" name="see" description="\global\Walker::end_el()" refers="\global\Walker::end_el()"/>
|
3033 |
+
<tag line="912" name="since" description="1.80"/>
|
3034 |
+
<tag line="912" name="param" description="Passed by reference. Used to append additional content." type="string" variable="$output">
|
3035 |
<type by_reference="false">string</type>
|
3036 |
</tag>
|
3037 |
+
<tag line="912" name="param" description="The current term object." type="object" variable="$category">
|
3038 |
<type by_reference="false">object</type>
|
3039 |
</tag>
|
3040 |
+
<tag line="912" name="param" description="Depth of the term in reference to parents. Default 0." type="int" variable="$depth">
|
3041 |
<type by_reference="false">int</type>
|
3042 |
</tag>
|
3043 |
+
<tag line="912" name="param" description="An array of arguments. @see wp_terms_checklist()" type="array" variable="$args">
|
3044 |
<type by_reference="false">array</type>
|
3045 |
</tag>
|
3046 |
</docblock>
|
3047 |
+
<argument line="924">
|
3048 |
<name>$output</name>
|
3049 |
<default><![CDATA[]]></default>
|
3050 |
<type/>
|
3051 |
</argument>
|
3052 |
+
<argument line="924">
|
3053 |
<name>$category</name>
|
3054 |
<default><![CDATA[]]></default>
|
3055 |
<type/>
|
3056 |
</argument>
|
3057 |
+
<argument line="924">
|
3058 |
<name>$depth</name>
|
3059 |
<default><![CDATA[0]]></default>
|
3060 |
<type/>
|
3061 |
</argument>
|
3062 |
+
<argument line="924">
|
3063 |
<name>$args</name>
|
3064 |
<default><![CDATA[array()]]></default>
|
3065 |
<type/>
|
3067 |
</method>
|
3068 |
</class>
|
3069 |
</file>
|
3070 |
+
<file path="includes\class-mla-list-table.php" hash="48f2b10c71621994b53811db59686862" package="Media Library Assistant">
|
3071 |
<docblock line="2">
|
3072 |
<description><![CDATA[Media Library Assistant extended List Table class]]></description>
|
3073 |
<long-description><![CDATA[]]></long-description>
|
3494 |
<type/>
|
3495 |
</argument>
|
3496 |
</method>
|
3497 |
+
<method final="false" abstract="false" static="false" visibility="private" namespace="global" line="644" package="Media Library Assistant">
|
3498 |
<name>_build_rollover_actions</name>
|
3499 |
<full_name>_build_rollover_actions</full_name>
|
3500 |
+
<docblock line="633">
|
3501 |
<description><![CDATA[Add rollover actions to exactly one of the following displayed columns:
|
3502 |
'ID_parent', 'title_name', 'post_title', 'post_name']]></description>
|
3503 |
<long-description><![CDATA[]]></long-description>
|
3504 |
+
<tag line="633" name="since" description="0.1"/>
|
3505 |
+
<tag line="633" name="param" description="A singular attachment (post) object" type="object" variable="$item">
|
3506 |
<type by_reference="false">object</type>
|
3507 |
</tag>
|
3508 |
+
<tag line="633" name="param" description="Current column name" type="string" variable="$column">
|
3509 |
<type by_reference="false">string</type>
|
3510 |
</tag>
|
3511 |
+
<tag line="633" name="return" description="Names and URLs of row-level actions" type="array">
|
3512 |
<type by_reference="false">array</type>
|
3513 |
</tag>
|
3514 |
</docblock>
|
3515 |
+
<argument line="644">
|
3516 |
<name>$item</name>
|
3517 |
<default><![CDATA[]]></default>
|
3518 |
<type/>
|
3519 |
</argument>
|
3520 |
+
<argument line="644">
|
3521 |
<name>$column</name>
|
3522 |
<default><![CDATA[]]></default>
|
3523 |
<type/>
|
3524 |
</argument>
|
3525 |
</method>
|
3526 |
+
<method final="false" abstract="false" static="false" visibility="private" namespace="global" line="709" package="Media Library Assistant">
|
3527 |
<name>_build_inline_data</name>
|
3528 |
<full_name>_build_inline_data</full_name>
|
3529 |
+
<docblock line="700">
|
3530 |
<description><![CDATA[Add hidden fields with the data for use in the inline editor]]></description>
|
3531 |
<long-description><![CDATA[]]></long-description>
|
3532 |
+
<tag line="700" name="since" description="0.20"/>
|
3533 |
+
<tag line="700" name="param" description="A singular attachment (post) object" type="object" variable="$item">
|
3534 |
<type by_reference="false">object</type>
|
3535 |
</tag>
|
3536 |
+
<tag line="700" name="return" description="HTML <div> with row data" type="string">
|
3537 |
<type by_reference="false">string</type>
|
3538 |
</tag>
|
3539 |
</docblock>
|
3540 |
+
<argument line="709">
|
3541 |
<name>$item</name>
|
3542 |
<default><![CDATA[]]></default>
|
3543 |
<type/>
|
3544 |
</argument>
|
3545 |
</method>
|
3546 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="792" package="Media Library Assistant">
|
3547 |
<name>column_ID_parent</name>
|
3548 |
<full_name>column_ID_parent</full_name>
|
3549 |
+
<docblock line="784">
|
3550 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3551 |
<long-description><![CDATA[]]></long-description>
|
3552 |
+
<tag line="784" name="since" description="0.1"/>
|
3553 |
+
<tag line="784" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
3554 |
<type by_reference="false">array</type>
|
3555 |
</tag>
|
3556 |
+
<tag line="784" name="return" description="HTML markup to be placed inside the column" type="string">
|
3557 |
<type by_reference="false">string</type>
|
3558 |
</tag>
|
3559 |
</docblock>
|
3560 |
+
<argument line="792">
|
3561 |
<name>$item</name>
|
3562 |
<default><![CDATA[]]></default>
|
3563 |
<type/>
|
3564 |
</argument>
|
3565 |
</method>
|
3566 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="825" package="Media Library Assistant">
|
3567 |
<name>column_title_name</name>
|
3568 |
<full_name>column_title_name</full_name>
|
3569 |
+
<docblock line="817">
|
3570 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3571 |
<long-description><![CDATA[]]></long-description>
|
3572 |
+
<tag line="817" name="since" description="0.1"/>
|
3573 |
+
<tag line="817" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
3574 |
<type by_reference="false">array</type>
|
3575 |
</tag>
|
3576 |
+
<tag line="817" name="return" description="HTML markup to be placed inside the column" type="string">
|
3577 |
<type by_reference="false">string</type>
|
3578 |
</tag>
|
3579 |
</docblock>
|
3580 |
+
<argument line="825">
|
3581 |
<name>$item</name>
|
3582 |
<default><![CDATA[]]></default>
|
3583 |
<type/>
|
3584 |
</argument>
|
3585 |
</method>
|
3586 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="849" package="Media Library Assistant">
|
3587 |
<name>column_post_title</name>
|
3588 |
<full_name>column_post_title</full_name>
|
3589 |
+
<docblock line="841">
|
3590 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3591 |
<long-description><![CDATA[]]></long-description>
|
3592 |
+
<tag line="841" name="since" description="0.1"/>
|
3593 |
+
<tag line="841" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
3594 |
<type by_reference="false">array</type>
|
3595 |
</tag>
|
3596 |
+
<tag line="841" name="return" description="HTML markup to be placed inside the column" type="string">
|
3597 |
<type by_reference="false">string</type>
|
3598 |
</tag>
|
3599 |
</docblock>
|
3600 |
+
<argument line="849">
|
3601 |
<name>$item</name>
|
3602 |
<default><![CDATA[]]></default>
|
3603 |
<type/>
|
3604 |
</argument>
|
3605 |
</method>
|
3606 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="867" package="Media Library Assistant">
|
3607 |
<name>column_post_name</name>
|
3608 |
<full_name>column_post_name</full_name>
|
3609 |
+
<docblock line="859">
|
3610 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3611 |
<long-description><![CDATA[]]></long-description>
|
3612 |
+
<tag line="859" name="since" description="0.1"/>
|
3613 |
+
<tag line="859" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
3614 |
<type by_reference="false">array</type>
|
3615 |
</tag>
|
3616 |
+
<tag line="859" name="return" description="HTML markup to be placed inside the column" type="string">
|
3617 |
<type by_reference="false">string</type>
|
3618 |
</tag>
|
3619 |
</docblock>
|
3620 |
+
<argument line="867">
|
3621 |
<name>$item</name>
|
3622 |
<default><![CDATA[]]></default>
|
3623 |
<type/>
|
3624 |
</argument>
|
3625 |
</method>
|
3626 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="885" package="Media Library Assistant">
|
3627 |
<name>column_parent</name>
|
3628 |
<full_name>column_parent</full_name>
|
3629 |
+
<docblock line="877">
|
3630 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3631 |
<long-description><![CDATA[]]></long-description>
|
3632 |
+
<tag line="877" name="since" description="0.1"/>
|
3633 |
+
<tag line="877" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
3634 |
<type by_reference="false">array</type>
|
3635 |
</tag>
|
3636 |
+
<tag line="877" name="return" description="HTML markup to be placed inside the column" type="string">
|
3637 |
<type by_reference="false">string</type>
|
3638 |
</tag>
|
3639 |
</docblock>
|
3640 |
+
<argument line="885">
|
3641 |
<name>$item</name>
|
3642 |
<default><![CDATA[]]></default>
|
3643 |
<type/>
|
3644 |
</argument>
|
3645 |
</method>
|
3646 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="911" package="Media Library Assistant">
|
3647 |
<name>column_menu_order</name>
|
3648 |
<full_name>column_menu_order</full_name>
|
3649 |
+
<docblock line="903">
|
3650 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3651 |
<long-description><![CDATA[]]></long-description>
|
3652 |
+
<tag line="903" name="since" description="0.60"/>
|
3653 |
+
<tag line="903" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
3654 |
<type by_reference="false">array</type>
|
3655 |
</tag>
|
3656 |
+
<tag line="903" name="return" description="HTML markup to be placed inside the column" type="string">
|
3657 |
<type by_reference="false">string</type>
|
3658 |
</tag>
|
3659 |
</docblock>
|
3660 |
+
<argument line="911">
|
3661 |
<name>$item</name>
|
3662 |
<default><![CDATA[]]></default>
|
3663 |
<type/>
|
3664 |
</argument>
|
3665 |
</method>
|
3666 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="923" package="Media Library Assistant">
|
3667 |
<name>column_featured</name>
|
3668 |
<full_name>column_featured</full_name>
|
3669 |
+
<docblock line="915">
|
3670 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3671 |
<long-description><![CDATA[]]></long-description>
|
3672 |
+
<tag line="915" name="since" description="0.1"/>
|
3673 |
+
<tag line="915" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
3674 |
<type by_reference="false">array</type>
|
3675 |
</tag>
|
3676 |
+
<tag line="915" name="return" description="HTML markup to be placed inside the column" type="string">
|
3677 |
<type by_reference="false">string</type>
|
3678 |
</tag>
|
3679 |
</docblock>
|
3680 |
+
<argument line="923">
|
3681 |
<name>$item</name>
|
3682 |
<default><![CDATA[]]></default>
|
3683 |
<type/>
|
3684 |
</argument>
|
3685 |
</method>
|
3686 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="957" package="Media Library Assistant">
|
3687 |
<name>column_inserted</name>
|
3688 |
<full_name>column_inserted</full_name>
|
3689 |
+
<docblock line="949">
|
3690 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3691 |
<long-description><![CDATA[]]></long-description>
|
3692 |
+
<tag line="949" name="since" description="0.1"/>
|
3693 |
+
<tag line="949" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
3694 |
<type by_reference="false">array</type>
|
3695 |
</tag>
|
3696 |
+
<tag line="949" name="return" description="HTML markup to be placed inside the column" type="string">
|
3697 |
<type by_reference="false">string</type>
|
3698 |
</tag>
|
3699 |
</docblock>
|
3700 |
+
<argument line="957">
|
3701 |
<name>$item</name>
|
3702 |
<default><![CDATA[]]></default>
|
3703 |
<type/>
|
3704 |
</argument>
|
3705 |
</method>
|
3706 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="995" package="Media Library Assistant">
|
3707 |
<name>column_galleries</name>
|
3708 |
<full_name>column_galleries</full_name>
|
3709 |
+
<docblock line="987">
|
3710 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3711 |
<long-description><![CDATA[]]></long-description>
|
3712 |
+
<tag line="987" name="since" description="0.70"/>
|
3713 |
+
<tag line="987" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
3714 |
<type by_reference="false">array</type>
|
3715 |
</tag>
|
3716 |
+
<tag line="987" name="return" description="HTML markup to be placed inside the column" type="string">
|
3717 |
<type by_reference="false">string</type>
|
3718 |
</tag>
|
3719 |
</docblock>
|
3720 |
+
<argument line="995">
|
3721 |
<name>$item</name>
|
3722 |
<default><![CDATA[]]></default>
|
3723 |
<type/>
|
3724 |
</argument>
|
3725 |
</method>
|
3726 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1029" package="Media Library Assistant">
|
3727 |
<name>column_mla_galleries</name>
|
3728 |
<full_name>column_mla_galleries</full_name>
|
3729 |
+
<docblock line="1021">
|
3730 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3731 |
<long-description><![CDATA[]]></long-description>
|
3732 |
+
<tag line="1021" name="since" description="0.70"/>
|
3733 |
+
<tag line="1021" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
3734 |
<type by_reference="false">array</type>
|
3735 |
</tag>
|
3736 |
+
<tag line="1021" name="return" description="HTML markup to be placed inside the column" type="string">
|
3737 |
<type by_reference="false">string</type>
|
3738 |
</tag>
|
3739 |
</docblock>
|
3740 |
+
<argument line="1029">
|
3741 |
<name>$item</name>
|
3742 |
<default><![CDATA[]]></default>
|
3743 |
<type/>
|
3744 |
</argument>
|
3745 |
</method>
|
3746 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1063" package="Media Library Assistant">
|
3747 |
<name>column_alt_text</name>
|
3748 |
<full_name>column_alt_text</full_name>
|
3749 |
+
<docblock line="1055">
|
3750 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3751 |
<long-description><![CDATA[]]></long-description>
|
3752 |
+
<tag line="1055" name="since" description="0.1"/>
|
3753 |
+
<tag line="1055" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
3754 |
<type by_reference="false">array</type>
|
3755 |
</tag>
|
3756 |
+
<tag line="1055" name="return" description="HTML markup to be placed inside the column" type="string">
|
3757 |
<type by_reference="false">string</type>
|
3758 |
</tag>
|
3759 |
</docblock>
|
3760 |
+
<argument line="1063">
|
3761 |
<name>$item</name>
|
3762 |
<default><![CDATA[]]></default>
|
3763 |
<type/>
|
3764 |
</argument>
|
3765 |
</method>
|
3766 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1084" package="Media Library Assistant">
|
3767 |
<name>column_caption</name>
|
3768 |
<full_name>column_caption</full_name>
|
3769 |
+
<docblock line="1076">
|
3770 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3771 |
<long-description><![CDATA[]]></long-description>
|
3772 |
+
<tag line="1076" name="since" description="0.1"/>
|
3773 |
+
<tag line="1076" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
3774 |
<type by_reference="false">array</type>
|
3775 |
</tag>
|
3776 |
+
<tag line="1076" name="return" description="HTML markup to be placed inside the column" type="string">
|
3777 |
<type by_reference="false">string</type>
|
3778 |
</tag>
|
3779 |
</docblock>
|
3780 |
+
<argument line="1084">
|
3781 |
<name>$item</name>
|
3782 |
<default><![CDATA[]]></default>
|
3783 |
<type/>
|
3784 |
</argument>
|
3785 |
</method>
|
3786 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1096" package="Media Library Assistant">
|
3787 |
<name>column_description</name>
|
3788 |
<full_name>column_description</full_name>
|
3789 |
+
<docblock line="1088">
|
3790 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3791 |
<long-description><![CDATA[]]></long-description>
|
3792 |
+
<tag line="1088" name="since" description="0.1"/>
|
3793 |
+
<tag line="1088" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
3794 |
<type by_reference="false">array</type>
|
3795 |
</tag>
|
3796 |
+
<tag line="1088" name="return" description="HTML markup to be placed inside the column" type="string">
|
3797 |
<type by_reference="false">string</type>
|
3798 |
</tag>
|
3799 |
</docblock>
|
3800 |
+
<argument line="1096">
|
3801 |
<name>$item</name>
|
3802 |
<default><![CDATA[]]></default>
|
3803 |
<type/>
|
3804 |
</argument>
|
3805 |
</method>
|
3806 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1108" package="Media Library Assistant">
|
3807 |
<name>column_post_mime_type</name>
|
3808 |
<full_name>column_post_mime_type</full_name>
|
3809 |
+
<docblock line="1100">
|
3810 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3811 |
<long-description><![CDATA[]]></long-description>
|
3812 |
+
<tag line="1100" name="since" description="0.30"/>
|
3813 |
+
<tag line="1100" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
3814 |
<type by_reference="false">array</type>
|
3815 |
</tag>
|
3816 |
+
<tag line="1100" name="return" description="HTML markup to be placed inside the column" type="string">
|
3817 |
<type by_reference="false">string</type>
|
3818 |
</tag>
|
3819 |
</docblock>
|
3820 |
+
<argument line="1108">
|
3821 |
<name>$item</name>
|
3822 |
<default><![CDATA[]]></default>
|
3823 |
<type/>
|
3824 |
</argument>
|
3825 |
</method>
|
3826 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1124" package="Media Library Assistant">
|
3827 |
<name>column_file_url</name>
|
3828 |
<full_name>column_file_url</full_name>
|
3829 |
+
<docblock line="1116">
|
3830 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3831 |
<long-description><![CDATA[]]></long-description>
|
3832 |
+
<tag line="1116" name="since" description="0.1"/>
|
3833 |
+
<tag line="1116" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
3834 |
<type by_reference="false">array</type>
|
3835 |
</tag>
|
3836 |
+
<tag line="1116" name="return" description="HTML markup to be placed inside the column" type="string">
|
3837 |
<type by_reference="false">string</type>
|
3838 |
</tag>
|
3839 |
</docblock>
|
3840 |
+
<argument line="1124">
|
3841 |
<name>$item</name>
|
3842 |
<default><![CDATA[]]></default>
|
3843 |
<type/>
|
3844 |
</argument>
|
3845 |
</method>
|
3846 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1138" package="Media Library Assistant">
|
3847 |
<name>column_base_file</name>
|
3848 |
<full_name>column_base_file</full_name>
|
3849 |
+
<docblock line="1130">
|
3850 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3851 |
<long-description><![CDATA[]]></long-description>
|
3852 |
+
<tag line="1130" name="since" description="0.1"/>
|
3853 |
+
<tag line="1130" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
3854 |
<type by_reference="false">array</type>
|
3855 |
</tag>
|
3856 |
+
<tag line="1130" name="return" description="HTML markup to be placed inside the column" type="string">
|
3857 |
<type by_reference="false">string</type>
|
3858 |
</tag>
|
3859 |
</docblock>
|
3860 |
+
<argument line="1138">
|
3861 |
<name>$item</name>
|
3862 |
<default><![CDATA[]]></default>
|
3863 |
<type/>
|
3864 |
</argument>
|
3865 |
</method>
|
3866 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1150" package="Media Library Assistant">
|
3867 |
<name>column_date</name>
|
3868 |
<full_name>column_date</full_name>
|
3869 |
+
<docblock line="1142">
|
3870 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3871 |
<long-description><![CDATA[]]></long-description>
|
3872 |
+
<tag line="1142" name="since" description="0.1"/>
|
3873 |
+
<tag line="1142" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
3874 |
<type by_reference="false">array</type>
|
3875 |
</tag>
|
3876 |
+
<tag line="1142" name="return" description="HTML markup to be placed inside the column" type="string">
|
3877 |
<type by_reference="false">string</type>
|
3878 |
</tag>
|
3879 |
</docblock>
|
3880 |
+
<argument line="1150">
|
3881 |
<name>$item</name>
|
3882 |
<default><![CDATA[]]></default>
|
3883 |
<type/>
|
3884 |
</argument>
|
3885 |
</method>
|
3886 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1182" package="Media Library Assistant">
|
3887 |
<name>column_modified</name>
|
3888 |
<full_name>column_modified</full_name>
|
3889 |
+
<docblock line="1174">
|
3890 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3891 |
<long-description><![CDATA[]]></long-description>
|
3892 |
+
<tag line="1174" name="since" description="0.30"/>
|
3893 |
+
<tag line="1174" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
3894 |
<type by_reference="false">array</type>
|
3895 |
</tag>
|
3896 |
+
<tag line="1174" name="return" description="HTML markup to be placed inside the column" type="string">
|
3897 |
<type by_reference="false">string</type>
|
3898 |
</tag>
|
3899 |
</docblock>
|
3900 |
+
<argument line="1182">
|
3901 |
<name>$item</name>
|
3902 |
<default><![CDATA[]]></default>
|
3903 |
<type/>
|
3904 |
</argument>
|
3905 |
</method>
|
3906 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1211" package="Media Library Assistant">
|
3907 |
<name>column_author</name>
|
3908 |
<full_name>column_author</full_name>
|
3909 |
+
<docblock line="1203">
|
3910 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3911 |
<long-description><![CDATA[]]></long-description>
|
3912 |
+
<tag line="1203" name="since" description="0.30"/>
|
3913 |
+
<tag line="1203" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
3914 |
<type by_reference="false">array</type>
|
3915 |
</tag>
|
3916 |
+
<tag line="1203" name="return" description="HTML markup to be placed inside the column" type="string">
|
3917 |
<type by_reference="false">string</type>
|
3918 |
</tag>
|
3919 |
</docblock>
|
3920 |
+
<argument line="1211">
|
3921 |
<name>$item</name>
|
3922 |
<default><![CDATA[]]></default>
|
3923 |
<type/>
|
3924 |
</argument>
|
3925 |
</method>
|
3926 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1233" package="Media Library Assistant">
|
3927 |
<name>column_attached_to</name>
|
3928 |
<full_name>column_attached_to</full_name>
|
3929 |
+
<docblock line="1225">
|
3930 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3931 |
<long-description><![CDATA[]]></long-description>
|
3932 |
+
<tag line="1225" name="since" description="0.1"/>
|
3933 |
+
<tag line="1225" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
3934 |
<type by_reference="false">array</type>
|
3935 |
</tag>
|
3936 |
+
<tag line="1225" name="return" description="HTML markup to be placed inside the column" type="string">
|
3937 |
<type by_reference="false">string</type>
|
3938 |
</tag>
|
3939 |
</docblock>
|
3940 |
+
<argument line="1233">
|
3941 |
<name>$item</name>
|
3942 |
<default><![CDATA[]]></default>
|
3943 |
<type/>
|
3944 |
</argument>
|
3945 |
</method>
|
3946 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1271" package="Media Library Assistant">
|
3947 |
<name>mla_submenu_arguments</name>
|
3948 |
<full_name>mla_submenu_arguments</full_name>
|
3949 |
+
<docblock line="1262">
|
3950 |
<description><![CDATA[Process $_REQUEST, building $submenu_arguments]]></description>
|
3951 |
<long-description><![CDATA[]]></long-description>
|
3952 |
+
<tag line="1262" name="since" description="1.42"/>
|
3953 |
+
<tag line="1262" name="param" description="Optional: Include the "click filter" values in the results" type="boolean" variable="$include_filters">
|
3954 |
<type by_reference="false">boolean</type>
|
3955 |
</tag>
|
3956 |
+
<tag line="1262" name="return" description="non-empty view, search, filter and sort arguments" type="array">
|
3957 |
<type by_reference="false">array</type>
|
3958 |
</tag>
|
3959 |
</docblock>
|
3960 |
+
<argument line="1271">
|
3961 |
<name>$include_filters</name>
|
3962 |
<default><![CDATA[true]]></default>
|
3963 |
<type/>
|
3964 |
</argument>
|
3965 |
</method>
|
3966 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1391" package="Media Library Assistant">
|
3967 |
<name>pagination</name>
|
3968 |
<full_name>pagination</full_name>
|
3969 |
+
<docblock line="1383">
|
3970 |
<description><![CDATA[Display the pagination, adding view, search and filter arguments]]></description>
|
3971 |
<long-description><![CDATA[]]></long-description>
|
3972 |
+
<tag line="1383" name="since" description="1.42"/>
|
3973 |
+
<tag line="1383" name="param" description="'top' | 'bottom'" type="string" variable="$which">
|
3974 |
<type by_reference="false">string</type>
|
3975 |
</tag>
|
3976 |
+
<tag line="1383" name="return" description="" type="void">
|
3977 |
<type by_reference="false">void</type>
|
3978 |
</tag>
|
3979 |
</docblock>
|
3980 |
+
<argument line="1391">
|
3981 |
<name>$which</name>
|
3982 |
<default><![CDATA[]]></default>
|
3983 |
<type/>
|
3984 |
</argument>
|
3985 |
</method>
|
3986 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1405" package="Media Library Assistant">
|
3987 |
<name>get_columns</name>
|
3988 |
<full_name>get_columns</full_name>
|
3989 |
+
<docblock line="1398">
|
3990 |
<description><![CDATA[This method dictates the table's columns and titles]]></description>
|
3991 |
<long-description><![CDATA[]]></long-description>
|
3992 |
+
<tag line="1398" name="since" description="0.1"/>
|
3993 |
+
<tag line="1398" name="return" description="Column information: 'slugs'=>'Visible Titles'" type="array">
|
3994 |
<type by_reference="false">array</type>
|
3995 |
</tag>
|
3996 |
</docblock>
|
3997 |
</method>
|
3998 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1417" package="Media Library Assistant">
|
3999 |
<name>get_hidden_columns</name>
|
4000 |
<full_name>get_hidden_columns</full_name>
|
4001 |
+
<docblock line="1409">
|
4002 |
<description><![CDATA[Returns the list of currently hidden columns from a user option or
|
4003 |
from default values if the option is not set]]></description>
|
4004 |
<long-description><![CDATA[]]></long-description>
|
4005 |
+
<tag line="1409" name="since" description="0.1"/>
|
4006 |
+
<tag line="1409" name="return" description="Column information,e.g., array(0 => 'ID_parent, 1 => 'title_name')" type="array">
|
4007 |
<type by_reference="false">array</type>
|
4008 |
</tag>
|
4009 |
</docblock>
|
4010 |
</method>
|
4011 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1437" package="Media Library Assistant">
|
4012 |
<name>get_sortable_columns</name>
|
4013 |
<full_name>get_sortable_columns</full_name>
|
4014 |
+
<docblock line="1427">
|
4015 |
<description><![CDATA[Returns an array where the key is the column that needs to be sortable
|
4016 |
and the value is db column to sort by.]]></description>
|
4017 |
<long-description><![CDATA[<p>Also notes the current sort column,
|
4018 |
if set.</p>]]></long-description>
|
4019 |
+
<tag line="1427" name="since" description="0.1"/>
|
4020 |
+
<tag line="1427" name="return" description="Sortable column information,e.g., 'slugs'=>array('data_values',boolean)" type="array">
|
4021 |
<type by_reference="false">array</type>
|
4022 |
</tag>
|
4023 |
</docblock>
|
4024 |
</method>
|
4025 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1463" package="Media Library Assistant">
|
4026 |
<name>print_column_headers</name>
|
4027 |
<full_name>print_column_headers</full_name>
|
4028 |
+
<docblock line="1456">
|
4029 |
<description><![CDATA[Print column headers, adding view, search and filter arguments]]></description>
|
4030 |
<long-description><![CDATA[]]></long-description>
|
4031 |
+
<tag line="1456" name="since" description="1.42"/>
|
4032 |
+
<tag line="1456" name="param" description="Whether to set the id attribute or not" type="bool" variable="$with_id">
|
4033 |
<type by_reference="false">bool</type>
|
4034 |
</tag>
|
4035 |
</docblock>
|
4036 |
+
<argument line="1463">
|
4037 |
<name>$with_id</name>
|
4038 |
<default><![CDATA[true]]></default>
|
4039 |
<type/>
|
4040 |
</argument>
|
4041 |
</method>
|
4042 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1480" package="Media Library Assistant">
|
4043 |
<name>_get_view</name>
|
4044 |
<full_name>_get_view</full_name>
|
4045 |
+
<docblock line="1470">
|
4046 |
<description><![CDATA[Returns HTML markup for one view that can be used with this table]]></description>
|
4047 |
<long-description><![CDATA[]]></long-description>
|
4048 |
+
<tag line="1470" name="since" description="1.40"/>
|
4049 |
+
<tag line="1470" name="param" description="View slug, key to MLA_POST_MIME_TYPES array" type="string" variable="$view_slug">
|
4050 |
<type by_reference="false">string</type>
|
4051 |
</tag>
|
4052 |
+
<tag line="1470" name="param" description="Slug for current view" type="string" variable="$current_view">
|
4053 |
<type by_reference="false">string</type>
|
4054 |
</tag>
|
4055 |
+
<tag line="1470" name="return" description="| false HTML for link to display the view, false if count = zero" type="string">
|
4056 |
<type by_reference="false">string</type>
|
4057 |
</tag>
|
4058 |
</docblock>
|
4059 |
+
<argument line="1480">
|
4060 |
<name>$view_slug</name>
|
4061 |
<default><![CDATA[]]></default>
|
4062 |
<type/>
|
4063 |
</argument>
|
4064 |
+
<argument line="1480">
|
4065 |
<name>$current_view</name>
|
4066 |
<default><![CDATA[]]></default>
|
4067 |
<type/>
|
4068 |
</argument>
|
4069 |
</method>
|
4070 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1607" package="Media Library Assistant">
|
4071 |
<name>get_views</name>
|
4072 |
<full_name>get_views</full_name>
|
4073 |
+
<docblock line="1599">
|
4074 |
<description><![CDATA[Returns an associative array listing all the views that can be used with this table.]]></description>
|
4075 |
<long-description><![CDATA[<p>These are listed across the top of the page and managed by WordPress.</p>]]></long-description>
|
4076 |
+
<tag line="1599" name="since" description="0.1"/>
|
4077 |
+
<tag line="1599" name="return" description="View information,e.g., array ( id => link )" type="array">
|
4078 |
<type by_reference="false">array</type>
|
4079 |
</tag>
|
4080 |
</docblock>
|
4081 |
</method>
|
4082 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1663" package="Media Library Assistant">
|
4083 |
<name>get_bulk_actions</name>
|
4084 |
<full_name>get_bulk_actions</full_name>
|
4085 |
+
<docblock line="1655">
|
4086 |
<description><![CDATA[Get an associative array ( option_name => option_title ) with the list
|
4087 |
of bulk actions available on this table.]]></description>
|
4088 |
<long-description><![CDATA[]]></long-description>
|
4089 |
+
<tag line="1655" name="since" description="0.1"/>
|
4090 |
+
<tag line="1655" name="return" description="Contains all the bulk actions: 'slugs'=>'Visible Titles'" type="array">
|
4091 |
<type by_reference="false">array</type>
|
4092 |
</tag>
|
4093 |
</docblock>
|
4094 |
</method>
|
4095 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1693" package="Media Library Assistant">
|
4096 |
<name>extra_tablenav</name>
|
4097 |
<full_name>extra_tablenav</full_name>
|
4098 |
+
<docblock line="1682">
|
4099 |
<description><![CDATA[Extra controls to be displayed between bulk actions and pagination]]></description>
|
4100 |
<long-description><![CDATA[<p>Modeled after class-wp-posts-list-table.php in wp-admin/includes.</p>]]></long-description>
|
4101 |
+
<tag line="1682" name="since" description="0.1"/>
|
4102 |
+
<tag line="1682" name="param" description="'top' or 'bottom', i.e., above or below the table rows" type="string" variable="$which">
|
4103 |
<type by_reference="false">string</type>
|
4104 |
</tag>
|
4105 |
+
<tag line="1682" name="return" description="Contains all the bulk actions: 'slugs'=>'Visible Titles'" type="array">
|
4106 |
<type by_reference="false">array</type>
|
4107 |
</tag>
|
4108 |
</docblock>
|
4109 |
+
<argument line="1693">
|
4110 |
<name>$which</name>
|
4111 |
<default><![CDATA[]]></default>
|
4112 |
<type/>
|
4113 |
</argument>
|
4114 |
</method>
|
4115 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1733" package="Media Library Assistant">
|
4116 |
<name>prepare_items</name>
|
4117 |
<full_name>prepare_items</full_name>
|
4118 |
+
<docblock line="1721">
|
4119 |
<description><![CDATA[Prepares the list of items for displaying]]></description>
|
4120 |
<long-description><![CDATA[<p>This is where you prepare your data for display. This method will usually
|
4121 |
be used to query the database, sort and filter the data, and generally
|
4122 |
get it ready to be displayed. At a minimum, we should set $this->items and
|
4123 |
$this->set_pagination_args().</p>]]></long-description>
|
4124 |
+
<tag line="1721" name="since" description="0.1"/>
|
4125 |
+
<tag line="1721" name="return" description="" type="void">
|
4126 |
<type by_reference="false">void</type>
|
4127 |
</tag>
|
4128 |
</docblock>
|
4129 |
</method>
|
4130 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1780" package="Media Library Assistant">
|
4131 |
<name>single_row</name>
|
4132 |
<full_name>single_row</full_name>
|
4133 |
+
<docblock line="1771">
|
4134 |
<description><![CDATA[Generates (echoes) content for a single row of the table]]></description>
|
4135 |
<long-description><![CDATA[]]></long-description>
|
4136 |
+
<tag line="1771" name="since" description=".20"/>
|
4137 |
+
<tag line="1771" name="param" description="the current item" type="object" variable="$item">
|
4138 |
<type by_reference="false">object</type>
|
4139 |
</tag>
|
4140 |
+
<tag line="1771" name="return" description="Echoes the row HTML" type="void">
|
4141 |
<type by_reference="false">void</type>
|
4142 |
</tag>
|
4143 |
</docblock>
|
4144 |
+
<argument line="1780">
|
4145 |
<name>$item</name>
|
4146 |
<default><![CDATA[]]></default>
|
4147 |
<type/>
|
4149 |
</method>
|
4150 |
</class>
|
4151 |
</file>
|
4152 |
+
<file path="includes\class-mla-main.php" hash="144f77b3725e272c50bccc92897a8273" package="Media Library Assistant">
|
4153 |
<docblock line="2">
|
4154 |
<description><![CDATA[Top-level functions for the Media Library Assistant]]></description>
|
4155 |
<long-description><![CDATA[]]></long-description>
|
4159 |
<include line="13" type="Require Once" package="Media Library Assistant">
|
4160 |
<name/>
|
4161 |
</include>
|
4162 |
+
<include line="1217" type="Require Once" package="Media Library Assistant">
|
4163 |
<name/>
|
4164 |
</include>
|
4165 |
<class final="false" abstract="false" namespace="global" line="23" package="Media Library Assistant">
|
4176 |
<constant namespace="global" line="32" package="Media Library Assistant">
|
4177 |
<name>CURRENT_MLA_VERSION</name>
|
4178 |
<full_name>CURRENT_MLA_VERSION</full_name>
|
4179 |
+
<value><![CDATA['1.91']]></value>
|
4180 |
<docblock line="25">
|
4181 |
<description><![CDATA[Current version number]]></description>
|
4182 |
<long-description><![CDATA[]]></long-description>
|
4446 |
</tag>
|
4447 |
</docblock>
|
4448 |
</method>
|
4449 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="302" package="Media Library Assistant">
|
4450 |
<name>mla_admin_enqueue_scripts_action</name>
|
4451 |
<full_name>mla_admin_enqueue_scripts_action</full_name>
|
4452 |
+
<docblock line="293">
|
4453 |
<description><![CDATA[Load the plugin's Style Sheet and Javascript files]]></description>
|
4454 |
<long-description><![CDATA[]]></long-description>
|
4455 |
+
<tag line="293" name="since" description="0.1"/>
|
4456 |
+
<tag line="293" name="param" description="Name of the page being loaded" type="string" variable="$page_hook">
|
4457 |
<type by_reference="false">string</type>
|
4458 |
</tag>
|
4459 |
+
<tag line="293" name="return" description="" type="void">
|
4460 |
<type by_reference="false">void</type>
|
4461 |
</tag>
|
4462 |
</docblock>
|
4463 |
+
<argument line="302">
|
4464 |
<name>$page_hook</name>
|
4465 |
<default><![CDATA[]]></default>
|
4466 |
<type/>
|
4467 |
</argument>
|
4468 |
</method>
|
4469 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="382" package="Media Library Assistant">
|
4470 |
<name>mla_admin_menu_action</name>
|
4471 |
<full_name>mla_admin_menu_action</full_name>
|
4472 |
+
<docblock line="367">
|
4473 |
<description><![CDATA[Add the submenu pages]]></description>
|
4474 |
<long-description><![CDATA[<p>Add a submenu page in the "Media" section,
|
4475 |
add settings page in the "Settings" section.
|
4478 |
<p>For WordPress versions before 3.5,
|
4479 |
add submenu page(s) for attachment taxonomies,
|
4480 |
add filter to clean up taxonomy submenu labels.</p>]]></long-description>
|
4481 |
+
<tag line="367" name="since" description="0.1"/>
|
4482 |
+
<tag line="367" name="return" description="" type="void">
|
4483 |
<type by_reference="false">void</type>
|
4484 |
</tag>
|
4485 |
</docblock>
|
4486 |
</method>
|
4487 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="459" package="Media Library Assistant">
|
4488 |
<name>mla_load_media_action</name>
|
4489 |
<full_name>mla_load_media_action</full_name>
|
4490 |
+
<docblock line="452">
|
4491 |
<description><![CDATA[Redirect to Media/Assistant if Media/Library is hidden]]></description>
|
4492 |
<long-description><![CDATA[]]></long-description>
|
4493 |
+
<tag line="452" name="since" description="1.60"/>
|
4494 |
+
<tag line="452" name="return" description="" type="void">
|
4495 |
<type by_reference="false">void</type>
|
4496 |
</tag>
|
4497 |
</docblock>
|
4498 |
</method>
|
4499 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="487" package="Media Library Assistant">
|
4500 |
<name>mla_add_menu_options</name>
|
4501 |
<full_name>mla_add_menu_options</full_name>
|
4502 |
+
<docblock line="480">
|
4503 |
<description><![CDATA[Add the "XX Entries per page" filter to the Screen Options tab]]></description>
|
4504 |
<long-description><![CDATA[]]></long-description>
|
4505 |
+
<tag line="480" name="since" description="0.1"/>
|
4506 |
+
<tag line="480" name="return" description="" type="void">
|
4507 |
<type by_reference="false">void</type>
|
4508 |
</tag>
|
4509 |
</docblock>
|
4510 |
</method>
|
4511 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="506" package="Media Library Assistant">
|
4512 |
<name>mla_add_help_tab</name>
|
4513 |
<full_name>mla_add_help_tab</full_name>
|
4514 |
+
<docblock line="499">
|
4515 |
<description><![CDATA[Add contextual help tabs to all the MLA pages]]></description>
|
4516 |
<long-description><![CDATA[]]></long-description>
|
4517 |
+
<tag line="499" name="since" description="0.1"/>
|
4518 |
+
<tag line="499" name="return" description="" type="void">
|
4519 |
<type by_reference="false">void</type>
|
4520 |
</tag>
|
4521 |
</docblock>
|
4522 |
</method>
|
4523 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="616" package="Media Library Assistant">
|
4524 |
<name>mla_screen_options_show_screen_filter</name>
|
4525 |
<full_name>mla_screen_options_show_screen_filter</full_name>
|
4526 |
+
<docblock line="606">
|
4527 |
<description><![CDATA[Only show screen options on the table-list screen]]></description>
|
4528 |
<long-description><![CDATA[]]></long-description>
|
4529 |
+
<tag line="606" name="since" description="0.1"/>
|
4530 |
+
<tag line="606" name="param" description="True to display "Screen Options", false to suppress them" type="boolean" variable="$show_screen">
|
4531 |
<type by_reference="false">boolean</type>
|
4532 |
</tag>
|
4533 |
+
<tag line="606" name="param" description="Name of the page being loaded" type="string" variable="$this_screen">
|
4534 |
<type by_reference="false">string</type>
|
4535 |
</tag>
|
4536 |
+
<tag line="606" name="return" description="True to display "Screen Options", false to suppress them" type="boolean">
|
4537 |
<type by_reference="false">boolean</type>
|
4538 |
</tag>
|
4539 |
</docblock>
|
4540 |
+
<argument line="616">
|
4541 |
<name>$show_screen</name>
|
4542 |
<default><![CDATA[]]></default>
|
4543 |
<type/>
|
4544 |
</argument>
|
4545 |
+
<argument line="616">
|
4546 |
<name>$this_screen</name>
|
4547 |
<default><![CDATA[]]></default>
|
4548 |
<type/>
|
4549 |
</argument>
|
4550 |
</method>
|
4551 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="635" package="Media Library Assistant">
|
4552 |
<name>mla_set_screen_option_filter</name>
|
4553 |
<full_name>mla_set_screen_option_filter</full_name>
|
4554 |
+
<docblock line="624">
|
4555 |
<description><![CDATA[Save the "Entries per page" option set by this user]]></description>
|
4556 |
<long-description><![CDATA[]]></long-description>
|
4557 |
+
<tag line="624" name="since" description="0.1"/>
|
4558 |
+
<tag line="624" name="param" description="false or value returned by previous filter" type="mixed" variable="$status">
|
4559 |
<type by_reference="false">mixed</type>
|
4560 |
</tag>
|
4561 |
+
<tag line="624" name="param" description="Name of the option being changed" type="string" variable="$option">
|
4562 |
<type by_reference="false">string</type>
|
4563 |
</tag>
|
4564 |
+
<tag line="624" name="param" description="New value of the option" type="string" variable="$value">
|
4565 |
<type by_reference="false">string</type>
|
4566 |
</tag>
|
4567 |
+
<tag line="624" name="return" description="New value if this is our option, otherwise nothing" type="string|void">
|
4568 |
<type by_reference="false">string</type>
|
4569 |
<type by_reference="false">void</type>
|
4570 |
</tag>
|
4571 |
</docblock>
|
4572 |
+
<argument line="635">
|
4573 |
<name>$status</name>
|
4574 |
<default><![CDATA[]]></default>
|
4575 |
<type/>
|
4576 |
</argument>
|
4577 |
+
<argument line="635">
|
4578 |
<name>$option</name>
|
4579 |
<default><![CDATA[]]></default>
|
4580 |
<type/>
|
4581 |
</argument>
|
4582 |
+
<argument line="635">
|
4583 |
<name>$value</name>
|
4584 |
<default><![CDATA[]]></default>
|
4585 |
<type/>
|
4586 |
</argument>
|
4587 |
</method>
|
4588 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="654" package="Media Library Assistant">
|
4589 |
<name>mla_edit_tax_redirect</name>
|
4590 |
<full_name>mla_edit_tax_redirect</full_name>
|
4591 |
+
<docblock line="643">
|
4592 |
<description><![CDATA[Redirect to the Edit Tags/Categories page]]></description>
|
4593 |
<long-description><![CDATA[<p>The custom taxonomy add/edit submenu entries go to "upload.php" by default.
|
4594 |
This filter is the only way to redirect them to the correct WordPress page.
|
4595 |
The filter is not required for WordPress 3.5 and later.</p>]]></long-description>
|
4596 |
+
<tag line="643" name="since" description="0.1"/>
|
4597 |
+
<tag line="643" name="return" description="" type="void">
|
4598 |
<type by_reference="false">void</type>
|
4599 |
</tag>
|
4600 |
</docblock>
|
4601 |
</method>
|
4602 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="687" package="Media Library Assistant">
|
4603 |
<name>mla_parent_file_filter</name>
|
4604 |
<full_name>mla_parent_file_filter</full_name>
|
4605 |
+
<docblock line="671">
|
4606 |
<description><![CDATA[Cleanup menus for Edit Tags/Categories page]]></description>
|
4607 |
<long-description><![CDATA[<p>For WordPress before 3.5, the submenu entries for custom taxonomies
|
4608 |
under the "Media" menu are not set up correctly by WordPress, so this
|
4610 |
page for editing/adding taxonomy terms.
|
4611 |
For WordPress 3.5 and later, the function fixes the submenu bolding when
|
4612 |
going to the Edit Media screen.</p>]]></long-description>
|
4613 |
+
<tag line="671" name="since" description="0.1"/>
|
4614 |
+
<tag line="671" name="param" description="The top-level menu page" type="array" variable="$parent_file">
|
4615 |
<type by_reference="false">array</type>
|
4616 |
</tag>
|
4617 |
+
<tag line="671" name="return" description="The updated top-level menu page" type="string">
|
4618 |
<type by_reference="false">string</type>
|
4619 |
</tag>
|
4620 |
</docblock>
|
4621 |
+
<argument line="687">
|
4622 |
<name>$parent_file</name>
|
4623 |
<default><![CDATA[]]></default>
|
4624 |
<type/>
|
4625 |
</argument>
|
4626 |
</method>
|
4627 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="750" package="Media Library Assistant">
|
4628 |
<name>_process_bulk_value</name>
|
4629 |
<full_name>_process_bulk_value</full_name>
|
4630 |
+
<docblock line="740">
|
4631 |
<description><![CDATA[Process bulk edit area fields, which may contain a Content Template]]></description>
|
4632 |
<long-description><![CDATA[]]></long-description>
|
4633 |
+
<tag line="740" name="since" description="1.80"/>
|
4634 |
+
<tag line="740" name="param" description="Current post ID" type="integer" variable="$post_id">
|
4635 |
<type by_reference="false">integer</type>
|
4636 |
</tag>
|
4637 |
+
<tag line="740" name="param" description="Field value as entered" type="string" variable="$bulk_value">
|
4638 |
<type by_reference="false">string</type>
|
4639 |
</tag>
|
4640 |
+
<tag line="740" name="return" description="Empty, or new value for the field" type="string">
|
4641 |
<type by_reference="false">string</type>
|
4642 |
</tag>
|
4643 |
</docblock>
|
4644 |
+
<argument line="750">
|
4645 |
<name>$post_id</name>
|
4646 |
<default><![CDATA[]]></default>
|
4647 |
<type/>
|
4648 |
</argument>
|
4649 |
+
<argument line="750">
|
4650 |
<name>$bulk_value</name>
|
4651 |
<default><![CDATA[]]></default>
|
4652 |
<type/>
|
4653 |
</argument>
|
4654 |
</method>
|
4655 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="781" package="Media Library Assistant">
|
4656 |
<name>mla_render_admin_page</name>
|
4657 |
<full_name>mla_render_admin_page</full_name>
|
4658 |
+
<docblock line="774">
|
4659 |
<description><![CDATA[Render the "Assistant" subpage in the Media section, using the list_table package]]></description>
|
4660 |
<long-description><![CDATA[]]></long-description>
|
4661 |
+
<tag line="774" name="since" description="0.1"/>
|
4662 |
+
<tag line="774" name="return" description="" type="void">
|
4663 |
<type by_reference="false">void</type>
|
4664 |
</tag>
|
4665 |
</docblock>
|
4666 |
</method>
|
4667 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1270" package="Media Library Assistant">
|
4668 |
<name>mla_find_posts_ajax_action</name>
|
4669 |
<full_name>mla_find_posts_ajax_action</full_name>
|
4670 |
+
<docblock line="1260">
|
4671 |
<description><![CDATA[Ajax handler to fetch candidates for the "Set Parent" popup window]]></description>
|
4672 |
<long-description><![CDATA[<p>Adapted from wp_ajax_find_posts in /wp-admin/includes/ajax-actions.php.
|
4673 |
Adds filters for post type and pagination.</p>]]></long-description>
|
4674 |
+
<tag line="1260" name="since" description="1.90"/>
|
4675 |
+
<tag line="1260" name="return" description="passes results to wp_send_json_success() for JSON encoding and transmission" type="void">
|
4676 |
<type by_reference="false">void</type>
|
4677 |
</tag>
|
4678 |
</docblock>
|
4679 |
</method>
|
4680 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1357" package="Media Library Assistant">
|
4681 |
<name>mla_set_parent_ajax_action</name>
|
4682 |
<full_name>mla_set_parent_ajax_action</full_name>
|
4683 |
+
<docblock line="1348">
|
4684 |
<description><![CDATA[Ajax handler to set post_parent for a single attachment]]></description>
|
4685 |
<long-description><![CDATA[<p>Adapted from wp_ajax_inline_save in /wp-admin/includes/ajax-actions.php</p>]]></long-description>
|
4686 |
+
<tag line="1348" name="since" description="0.20"/>
|
4687 |
+
<tag line="1348" name="return" description="echo HTML <td> innerHTML for updated call or error message, then die()" type="void">
|
4688 |
<type by_reference="false">void</type>
|
4689 |
</tag>
|
4690 |
</docblock>
|
4691 |
</method>
|
4692 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1393" package="Media Library Assistant">
|
4693 |
<name>mla_inline_edit_ajax_action</name>
|
4694 |
<full_name>mla_inline_edit_ajax_action</full_name>
|
4695 |
+
<docblock line="1384">
|
4696 |
<description><![CDATA[Ajax handler for inline editing (quick and bulk edit)]]></description>
|
4697 |
<long-description><![CDATA[<p>Adapted from wp_ajax_inline_save in /wp-admin/includes/ajax-actions.php</p>]]></long-description>
|
4698 |
+
<tag line="1384" name="since" description="0.20"/>
|
4699 |
+
<tag line="1384" name="return" description="echo HTML <tr> markup for updated row or error message, then die()" type="void">
|
4700 |
<type by_reference="false">void</type>
|
4701 |
</tag>
|
4702 |
</docblock>
|
4703 |
</method>
|
4704 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1492" package="Media Library Assistant">
|
4705 |
<name>_compose_post_type_select</name>
|
4706 |
<full_name>_compose_post_type_select</full_name>
|
4707 |
+
<docblock line="1481">
|
4708 |
<description><![CDATA[Compose a Post Type Options list with current selection]]></description>
|
4709 |
<long-description><![CDATA[]]></long-description>
|
4710 |
+
<tag line="1481" name="since" description="1.90"/>
|
4711 |
+
<tag line="1481" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
|
4712 |
+
<tag line="1481" name="param" description="template parts" type="array" variable="$templates">
|
4713 |
<type by_reference="false">array</type>
|
4714 |
</tag>
|
4715 |
+
<tag line="1481" name="param" description="current selection or 'all' (default)" type="string" variable="$selection">
|
4716 |
<type by_reference="false">string</type>
|
4717 |
</tag>
|
4718 |
+
<tag line="1481" name="return" description="HTML markup with select field options" type="string">
|
4719 |
<type by_reference="false">string</type>
|
4720 |
</tag>
|
4721 |
</docblock>
|
4722 |
+
<argument line="1492">
|
4723 |
<name>$templates</name>
|
4724 |
<default><![CDATA[]]></default>
|
4725 |
<type/>
|
4726 |
</argument>
|
4727 |
+
<argument line="1492">
|
4728 |
<name>$selection</name>
|
4729 |
<default><![CDATA['all']]></default>
|
4730 |
<type/>
|
4731 |
</argument>
|
4732 |
</method>
|
4733 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1531" package="Media Library Assistant">
|
4734 |
<name>mla_set_parent_form</name>
|
4735 |
<full_name>mla_set_parent_form</full_name>
|
4736 |
+
<docblock line="1522">
|
4737 |
<description><![CDATA[Build the hidden form for the "Set Parent" popup modal window]]></description>
|
4738 |
<long-description><![CDATA[]]></long-description>
|
4739 |
+
<tag line="1522" name="since" description="1.90"/>
|
4740 |
+
<tag line="1522" name="param" description="true to return complete form, false to return mla-set-parent-div" type="boolean" variable="$return_form">
|
4741 |
<type by_reference="false">boolean</type>
|
4742 |
</tag>
|
4743 |
+
<tag line="1522" name="return" description="HTML <form> markup for hidden form" type="string">
|
4744 |
<type by_reference="false">string</type>
|
4745 |
</tag>
|
4746 |
</docblock>
|
4747 |
+
<argument line="1531">
|
4748 |
<name>$return_form</name>
|
4749 |
<default><![CDATA[true]]></default>
|
4750 |
<type/>
|
4751 |
</argument>
|
4752 |
</method>
|
4753 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1594" package="Media Library Assistant">
|
4754 |
<name>_build_inline_edit_form</name>
|
4755 |
<full_name>_build_inline_edit_form</full_name>
|
4756 |
+
<docblock line="1583">
|
4757 |
<description><![CDATA[Build the hidden row templates for inline editing (quick and bulk edit)]]></description>
|
4758 |
<long-description><![CDATA[<p>inspired by inline_edit() in wp-admin\includes\class-wp-posts-list-table.php.</p>]]></long-description>
|
4759 |
+
<tag line="1583" name="since" description="0.20"/>
|
4760 |
+
<tag line="1583" name="param" description="MLA List Table object" type="object" variable="$MLAListTable">
|
4761 |
<type by_reference="false">object</type>
|
4762 |
</tag>
|
4763 |
+
<tag line="1583" name="return" description="HTML <form> markup for hidden rows" type="string">
|
4764 |
<type by_reference="false">string</type>
|
4765 |
</tag>
|
4766 |
</docblock>
|
4767 |
+
<argument line="1594">
|
4768 |
<name>$MLAListTable</name>
|
4769 |
<default><![CDATA[]]></default>
|
4770 |
<type/>
|
4771 |
</argument>
|
4772 |
</method>
|
4773 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1783" package="Media Library Assistant">
|
4774 |
<name>_authors_dropdown</name>
|
4775 |
<full_name>_authors_dropdown</full_name>
|
4776 |
+
<docblock line="1772">
|
4777 |
<description><![CDATA[Get the edit Authors dropdown box, if user has suitable permissions]]></description>
|
4778 |
<long-description><![CDATA[]]></long-description>
|
4779 |
+
<tag line="1772" name="since" description="0.20"/>
|
4780 |
+
<tag line="1772" name="param" description="Optional User ID of the current author, default 0" type="integer" variable="$author">
|
4781 |
<type by_reference="false">integer</type>
|
4782 |
</tag>
|
4783 |
+
<tag line="1772" name="param" description="Optional HTML name attribute, default 'post_author'" type="string" variable="$name">
|
4784 |
<type by_reference="false">string</type>
|
4785 |
</tag>
|
4786 |
+
<tag line="1772" name="param" description="Optional HTML class attribute, default 'authors'" type="string" variable="$class">
|
4787 |
<type by_reference="false">string</type>
|
4788 |
</tag>
|
4789 |
+
<tag line="1772" name="return" description="HTML markup for the dropdown field or False" type="string|false">
|
4790 |
<type by_reference="false">string</type>
|
4791 |
<type by_reference="false">false</type>
|
4792 |
</tag>
|
4793 |
</docblock>
|
4794 |
+
<argument line="1783">
|
4795 |
<name>$author</name>
|
4796 |
<default><![CDATA[0]]></default>
|
4797 |
<type/>
|
4798 |
</argument>
|
4799 |
+
<argument line="1783">
|
4800 |
<name>$name</name>
|
4801 |
<default><![CDATA['post_author']]></default>
|
4802 |
<type/>
|
4803 |
</argument>
|
4804 |
+
<argument line="1783">
|
4805 |
<name>$class</name>
|
4806 |
<default><![CDATA['authors']]></default>
|
4807 |
<type/>
|
4808 |
</argument>
|
4809 |
</method>
|
4810 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1817" package="Media Library Assistant">
|
4811 |
<name>_current_bulk_action</name>
|
4812 |
<full_name>_current_bulk_action</full_name>
|
4813 |
+
<docblock line="1810">
|
4814 |
<description><![CDATA[Get the current action selected from the bulk actions dropdown]]></description>
|
4815 |
<long-description><![CDATA[]]></long-description>
|
4816 |
+
<tag line="1810" name="since" description="0.1"/>
|
4817 |
+
<tag line="1810" name="return" description="The action name or False if no action was selected" type="string|false">
|
4818 |
<type by_reference="false">string</type>
|
4819 |
<type by_reference="false">false</type>
|
4820 |
</tag>
|
4821 |
</docblock>
|
4822 |
</method>
|
4823 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1848" package="Media Library Assistant">
|
4824 |
<name>_delete_single_item</name>
|
4825 |
<full_name>_delete_single_item</full_name>
|
4826 |
+
<docblock line="1839">
|
4827 |
<description><![CDATA[Delete a single item permanently]]></description>
|
4828 |
<long-description><![CDATA[]]></long-description>
|
4829 |
+
<tag line="1839" name="since" description="0.1"/>
|
4830 |
+
<tag line="1839" name="param" description="The form POST data" type="array" variable="$post_id">
|
4831 |
<type by_reference="false">array</type>
|
4832 |
</tag>
|
4833 |
+
<tag line="1839" name="return" description="success/failure message and NULL content" type="array">
|
4834 |
<type by_reference="false">array</type>
|
4835 |
</tag>
|
4836 |
</docblock>
|
4837 |
+
<argument line="1848">
|
4838 |
<name>$post_id</name>
|
4839 |
<default><![CDATA[]]></default>
|
4840 |
<type/>
|
4841 |
</argument>
|
4842 |
</method>
|
4843 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1883" package="Media Library Assistant">
|
4844 |
<name>_display_single_item</name>
|
4845 |
<full_name>_display_single_item</full_name>
|
4846 |
+
<docblock line="1871">
|
4847 |
<description><![CDATA[Display a single item sub page; prepare the form to
|
4848 |
change the meta data for a single attachment.]]></description>
|
4849 |
<long-description><![CDATA[<p>This function is not used in WordPress 3.5 and later.</p>]]></long-description>
|
4850 |
+
<tag line="1871" name="since" description="0.1"/>
|
4851 |
+
<tag line="1871" name="param" description="The WordPress Post ID of the attachment item" type="int" variable="$post_id">
|
4852 |
<type by_reference="false">int</type>
|
4853 |
</tag>
|
4854 |
+
<tag line="1871" name="return" description="message and/or HTML content" type="array">
|
4855 |
<type by_reference="false">array</type>
|
4856 |
</tag>
|
4857 |
</docblock>
|
4858 |
+
<argument line="1883">
|
4859 |
<name>$post_id</name>
|
4860 |
<default><![CDATA[]]></default>
|
4861 |
<type/>
|
4862 |
</argument>
|
4863 |
</method>
|
4864 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2164" package="Media Library Assistant">
|
4865 |
<name>_restore_single_item</name>
|
4866 |
<full_name>_restore_single_item</full_name>
|
4867 |
+
<docblock line="2155">
|
4868 |
<description><![CDATA[Restore a single item from the Trash]]></description>
|
4869 |
<long-description><![CDATA[]]></long-description>
|
4870 |
+
<tag line="2155" name="since" description="0.1"/>
|
4871 |
+
<tag line="2155" name="param" description="The form POST data" type="array" variable="$post_id">
|
4872 |
<type by_reference="false">array</type>
|
4873 |
</tag>
|
4874 |
+
<tag line="2155" name="return" description="success/failure message and NULL content" type="array">
|
4875 |
<type by_reference="false">array</type>
|
4876 |
</tag>
|
4877 |
</docblock>
|
4878 |
+
<argument line="2164">
|
4879 |
<name>$post_id</name>
|
4880 |
<default><![CDATA[]]></default>
|
4881 |
<type/>
|
4882 |
</argument>
|
4883 |
</method>
|
4884 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2204" package="Media Library Assistant">
|
4885 |
<name>_trash_single_item</name>
|
4886 |
<full_name>_trash_single_item</full_name>
|
4887 |
+
<docblock line="2195">
|
4888 |
<description><![CDATA[Move a single item to Trash]]></description>
|
4889 |
<long-description><![CDATA[]]></long-description>
|
4890 |
+
<tag line="2195" name="since" description="0.1"/>
|
4891 |
+
<tag line="2195" name="param" description="The form POST data" type="array" variable="$post_id">
|
4892 |
<type by_reference="false">array</type>
|
4893 |
</tag>
|
4894 |
+
<tag line="2195" name="return" description="success/failure message and NULL content" type="array">
|
4895 |
<type by_reference="false">array</type>
|
4896 |
</tag>
|
4897 |
</docblock>
|
4898 |
+
<argument line="2204">
|
4899 |
<name>$post_id</name>
|
4900 |
<default><![CDATA[]]></default>
|
4901 |
<type/>
|
4903 |
</method>
|
4904 |
</class>
|
4905 |
</file>
|
4906 |
+
<file path="includes\class-mla-media-modal.php" hash="cb8986c4b44f1aa0b043e41644a4422d" package="Media Library Assistant">
|
4907 |
<docblock line="2">
|
4908 |
<description><![CDATA[Media Library Assistant Media Manager enhancements]]></description>
|
4909 |
<long-description><![CDATA[]]></long-description>
|
4910 |
<tag line="2" name="package" description="Media Library Assistant"/>
|
4911 |
<tag line="2" name="since" description="1.20"/>
|
4912 |
</docblock>
|
4913 |
+
<include line="571" type="Require Once" package="Media Library Assistant">
|
4914 |
<name/>
|
4915 |
</include>
|
4916 |
<class final="false" abstract="false" namespace="global" line="15" package="Media Library Assistant">
|
5014 |
</tag>
|
5015 |
</docblock>
|
5016 |
</constant>
|
5017 |
+
<property final="false" static="true" visibility="private" line="152" namespace="global" package="Media Library Assistant">
|
5018 |
<name>$media_item_args</name>
|
5019 |
<default><![CDATA[array('errors' => null, 'in_modal' => false)]]></default>
|
5020 |
+
<docblock line="145">
|
5021 |
<description><![CDATA[The get_media_item_args array]]></description>
|
5022 |
<long-description><![CDATA[]]></long-description>
|
5023 |
+
<tag line="145" name="since" description="1.71"/>
|
5024 |
+
<tag line="145" name="var" description="( 'errors' => array of strings, 'in_modal => boolean )" type="array">
|
5025 |
<type by_reference="false">array</type>
|
5026 |
</tag>
|
5027 |
</docblock>
|
5028 |
</property>
|
5029 |
+
<property final="false" static="true" visibility="private" line="348" namespace="global" package="Media Library Assistant">
|
5030 |
<name>$mla_media_modal_settings</name>
|
5031 |
+
<default><![CDATA[array('ajaxNonce' => '', 'ajaxFillCompatAction' => self::JAVASCRIPT_FILL_COMPAT_ACTION, 'ajaxQueryAttachmentsAction' => self::JAVASCRIPT_QUERY_ATTACHMENTS_ACTION, 'ajaxUpdateCompatAction' => self::JAVASCRIPT_UPDATE_COMPAT_ACTION, 'enableDetailsCategory' => false, 'enableDetailsTag' => false, 'enableMimeTypes' => false, 'enableMonthsDropdown' => false, 'enableSearchBox' => false, 'enableSearchBoxControls' => false, 'enableTermsDropdown' => false, 'enableTermsSearch' => false, 'filterMime' => NULL, 'filterMonth' => NULL, 'filterTerm' => NULL, 'searchConnector' => NULL, 'searchFields' => NULL, 'searchValue' => NULL, 'searchClicks' => 0, 'mimeTypes' => '', 'months' => '', 'termsClass' => array(), 'termsIndent' => ' ', 'termsTaxonomy' => '', 'termsText' => array(), 'termsValue' => array())]]></default>
|
5032 |
+
<docblock line="340">
|
5033 |
<description><![CDATA[Share the settings values between mla_media_view_settings_filter
|
5034 |
and mla_print_media_templates_action]]></description>
|
5035 |
<long-description><![CDATA[]]></long-description>
|
5036 |
+
<tag line="340" name="since" description="1.20"/>
|
5037 |
+
<tag line="340" name="var" description="" type="array">
|
5038 |
<type by_reference="false">array</type>
|
5039 |
</tag>
|
5040 |
</docblock>
|
5041 |
</property>
|
5042 |
+
<property final="false" static="true" visibility="private" line="969" namespace="global" package="Media Library Assistant">
|
5043 |
+
<name>$mla_query_attachments</name>
|
5044 |
+
<default><![CDATA[false]]></default>
|
5045 |
+
<docblock line="958">
|
5046 |
+
<description><![CDATA[Executing mla_query_attachments_action]]></description>
|
5047 |
+
<long-description><![CDATA[<p>Informs mla_attachment_fields_to_edit_filter() that MLA enhancements
|
5048 |
+
be added to the compatible fields. Keeps our enhancements out of the
|
5049 |
+
WP 4.0 Media Grid display.</p>]]></long-description>
|
5050 |
+
<tag line="958" name="since" description="1.91"/>
|
5051 |
+
<tag line="958" name="var" description="true if performing MLA enhanced query attachments else false." type="boolean">
|
5052 |
+
<type by_reference="false">boolean</type>
|
5053 |
+
</tag>
|
5054 |
+
</docblock>
|
5055 |
+
</property>
|
5056 |
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="86" package="Media Library Assistant">
|
5057 |
<name>initialize</name>
|
5058 |
<full_name>initialize</full_name>
|
5065 |
</tag>
|
5066 |
</docblock>
|
5067 |
</method>
|
5068 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="140" package="Media Library Assistant">
|
5069 |
<name>mla_get_media_item_args_filter</name>
|
5070 |
<full_name>mla_get_media_item_args_filter</full_name>
|
5071 |
+
<docblock line="129">
|
5072 |
<description><![CDATA[Saves the get_media_item_args array for the attachment_fields_to_edit filter]]></description>
|
5073 |
<long-description><![CDATA[<p>Declared public because it is a filter.</p>]]></long-description>
|
5074 |
+
<tag line="129" name="since" description="1.71"/>
|
5075 |
+
<tag line="129" name="param" description="arguments for the get_media_item function in /wp-admin/includes/media.php" type="array" variable="$args">
|
5076 |
<type by_reference="false">array</type>
|
5077 |
</tag>
|
5078 |
+
<tag line="129" name="return" description="arguments for the get_media_item function (unchanged)" type="array">
|
5079 |
<type by_reference="false">array</type>
|
5080 |
</tag>
|
5081 |
</docblock>
|
5082 |
+
<argument line="140">
|
5083 |
<name>$args</name>
|
5084 |
<default><![CDATA[]]></default>
|
5085 |
<type/>
|
5086 |
</argument>
|
5087 |
</method>
|
5088 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="171" package="Media Library Assistant">
|
5089 |
<name>mla_attachment_fields_to_edit_filter</name>
|
5090 |
<full_name>mla_attachment_fields_to_edit_filter</full_name>
|
5091 |
+
<docblock line="154">
|
5092 |
<description><![CDATA[Add/change custom fields to the Edit Media screen and Modal Window]]></description>
|
5093 |
<long-description><![CDATA[<p>Called from /wp-admin/includes/media.php, function get_compat_media_markup();
|
5094 |
If "get_media_item_args"['in_modal'] => false ) its the Edit Media screen.
|
5096 |
For the Modal Window, $form_fields contains all the "compat-attachment-fields"
|
5097 |
including the taxonomies, which we want to enhance.
|
5098 |
Declared public because it is a filter.</p>]]></long-description>
|
5099 |
+
<tag line="154" name="since" description="1.71"/>
|
5100 |
+
<tag line="154" name="param" description="descriptors for the "compat-attachment-fields"" type="array" variable="$form_fields">
|
5101 |
<type by_reference="false">array</type>
|
5102 |
</tag>
|
5103 |
+
<tag line="154" name="param" description="the post to be edited" type="object" variable="$post">
|
5104 |
<type by_reference="false">object</type>
|
5105 |
</tag>
|
5106 |
+
<tag line="154" name="return" description="updated descriptors for the "compat-attachment-fields"" type="array">
|
5107 |
<type by_reference="false">array</type>
|
5108 |
</tag>
|
5109 |
</docblock>
|
5110 |
+
<argument line="171">
|
5111 |
<name>$form_fields</name>
|
5112 |
<default><![CDATA[]]></default>
|
5113 |
<type/>
|
5114 |
</argument>
|
5115 |
+
<argument line="171">
|
5116 |
<name>$post</name>
|
5117 |
<default><![CDATA[]]></default>
|
5118 |
<type/>
|
5119 |
</argument>
|
5120 |
</method>
|
5121 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="273" package="Media Library Assistant">
|
5122 |
<name>_months_dropdown</name>
|
5123 |
<full_name>_months_dropdown</full_name>
|
5124 |
+
<docblock line="262">
|
5125 |
<description><![CDATA[Display a monthly dropdown for filtering items]]></description>
|
5126 |
<long-description><![CDATA[<p>Adapted from /wp-admin/includes/class-wp-list-table.php function months_dropdown()</p>]]></long-description>
|
5127 |
+
<tag line="262" name="since" description="1.20"/>
|
5128 |
+
<tag line="262" name="param" description="post_type, e.g., 'attachment'" type="string" variable="$post_type">
|
5129 |
<type by_reference="false">string</type>
|
5130 |
</tag>
|
5131 |
+
<tag line="262" name="return" description="( value => label ) pairs" type="array">
|
5132 |
<type by_reference="false">array</type>
|
5133 |
</tag>
|
5134 |
</docblock>
|
5135 |
+
<argument line="273">
|
5136 |
<name>$post_type</name>
|
5137 |
<default><![CDATA[]]></default>
|
5138 |
<type/>
|
5139 |
</argument>
|
5140 |
</method>
|
5141 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="314" package="Media Library Assistant">
|
5142 |
<name>_terms_options</name>
|
5143 |
<full_name>_terms_options</full_name>
|
5144 |
+
<docblock line="305">
|
5145 |
<description><![CDATA[Extract value and text elements from Dropdown HTML option tags]]></description>
|
5146 |
<long-description><![CDATA[]]></long-description>
|
5147 |
+
<tag line="305" name="since" description="1.20"/>
|
5148 |
+
<tag line="305" name="param" description="HTML markup for taxonomy terms dropdown <select> tag" type="string" variable="$markup">
|
5149 |
<type by_reference="false">string</type>
|
5150 |
</tag>
|
5151 |
+
<tag line="305" name="return" description="( 'class' => $class_array, 'value' => $value_array, 'text' => $text_array )" type="array">
|
5152 |
<type by_reference="false">array</type>
|
5153 |
</tag>
|
5154 |
</docblock>
|
5155 |
+
<argument line="314">
|
5156 |
<name>$markup</name>
|
5157 |
<default><![CDATA[]]></default>
|
5158 |
<type/>
|
5159 |
</argument>
|
5160 |
</method>
|
5161 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="390" package="Media Library Assistant">
|
5162 |
<name>mla_media_view_settings_filter</name>
|
5163 |
<full_name>mla_media_view_settings_filter</full_name>
|
5164 |
+
<docblock line="379">
|
5165 |
<description><![CDATA[Adds settings values to be passed to the Media Manager in /wp-includes/js/media-views.js.]]></description>
|
5166 |
<long-description><![CDATA[<p>Declared public because it is a filter.</p>]]></long-description>
|
5167 |
+
<tag line="379" name="since" description="1.20"/>
|
5168 |
+
<tag line="379" name="param" description="associative array with setting => value pairs" type="array" variable="$settings">
|
5169 |
<type by_reference="false">array</type>
|
5170 |
</tag>
|
5171 |
+
<tag line="379" name="param" description="|| NULL current post object, if available" type="object" variable="$post">
|
5172 |
<type by_reference="false">object</type>
|
5173 |
</tag>
|
5174 |
+
<tag line="379" name="return" description="updated $settings array" type="array">
|
5175 |
<type by_reference="false">array</type>
|
5176 |
</tag>
|
5177 |
</docblock>
|
5178 |
+
<argument line="390">
|
5179 |
<name>$settings</name>
|
5180 |
<default><![CDATA[]]></default>
|
5181 |
<type/>
|
5182 |
</argument>
|
5183 |
+
<argument line="390">
|
5184 |
<name>$post</name>
|
5185 |
<default><![CDATA[]]></default>
|
5186 |
<type/>
|
5187 |
</argument>
|
5188 |
</method>
|
5189 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="471" package="Media Library Assistant">
|
5190 |
<name>mla_media_view_strings_filter</name>
|
5191 |
<full_name>mla_media_view_strings_filter</full_name>
|
5192 |
+
<docblock line="460">
|
5193 |
<description><![CDATA[Adds strings values to be passed to the Media Manager in /wp-includes/js/media-views.js.]]></description>
|
5194 |
<long-description><![CDATA[<p>Declared public because it is a filter.</p>]]></long-description>
|
5195 |
+
<tag line="460" name="since" description="1.20"/>
|
5196 |
+
<tag line="460" name="param" description="associative array with string => value pairs" type="array" variable="$strings">
|
5197 |
<type by_reference="false">array</type>
|
5198 |
</tag>
|
5199 |
+
<tag line="460" name="param" description="|| NULL current post object, if available" type="object" variable="$post">
|
5200 |
<type by_reference="false">object</type>
|
5201 |
</tag>
|
5202 |
+
<tag line="460" name="return" description="updated $strings array" type="array">
|
5203 |
<type by_reference="false">array</type>
|
5204 |
</tag>
|
5205 |
</docblock>
|
5206 |
+
<argument line="471">
|
5207 |
<name>$strings</name>
|
5208 |
<default><![CDATA[]]></default>
|
5209 |
<type/>
|
5210 |
</argument>
|
5211 |
+
<argument line="471">
|
5212 |
<name>$post</name>
|
5213 |
<default><![CDATA[]]></default>
|
5214 |
<type/>
|
5215 |
</argument>
|
5216 |
</method>
|
5217 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="501" package="Media Library Assistant">
|
5218 |
<name>mla_wp_enqueue_media_action</name>
|
5219 |
<full_name>mla_wp_enqueue_media_action</full_name>
|
5220 |
+
<docblock line="493">
|
5221 |
<description><![CDATA[Enqueues the mla-media-modal-scripts.js file, adding it to the Media Manager scripts.]]></description>
|
5222 |
<long-description><![CDATA[<p>Declared public because it is an action.</p>]]></long-description>
|
5223 |
+
<tag line="493" name="since" description="1.20"/>
|
5224 |
+
<tag line="493" name="return" description="" type="void">
|
5225 |
<type by_reference="false">void</type>
|
5226 |
</tag>
|
5227 |
</docblock>
|
5228 |
</method>
|
5229 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="533" package="Media Library Assistant">
|
5230 |
<name>mla_print_media_templates_action</name>
|
5231 |
<full_name>mla_print_media_templates_action</full_name>
|
5232 |
+
<docblock line="525">
|
5233 |
<description><![CDATA[Prints the templates used in the MLA Media Manager enhancements.]]></description>
|
5234 |
<long-description><![CDATA[<p>Declared public because it is an action.</p>]]></long-description>
|
5235 |
+
<tag line="525" name="since" description="1.20"/>
|
5236 |
+
<tag line="525" name="return" description="echoes HTML script tags for the templates" type="void">
|
5237 |
<type by_reference="false">void</type>
|
5238 |
</tag>
|
5239 |
</docblock>
|
5240 |
</method>
|
5241 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="584" package="Media Library Assistant">
|
5242 |
<name>mla_admin_init_action</name>
|
5243 |
<full_name>mla_admin_init_action</full_name>
|
5244 |
+
<docblock line="574">
|
5245 |
<description><![CDATA[Adjust ajax handler for Media Manager queries]]></description>
|
5246 |
<long-description><![CDATA[<p>Replace 'query-attachments' with our own handler if the request is coming from the "Assistant" tab.
|
5247 |
Clean up the 'save-attachment-compat' values, removing the taxonomy updates MLS already handled.</p>]]></long-description>
|
5248 |
+
<tag line="574" name="since" description="1.20"/>
|
5249 |
+
<tag line="574" name="return" description="" type="void">
|
5250 |
<type by_reference="false">void</type>
|
5251 |
</tag>
|
5252 |
</docblock>
|
5253 |
</method>
|
5254 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="717" package="Media Library Assistant">
|
5255 |
<name>mla_fill_compat_fields_action</name>
|
5256 |
<full_name>mla_fill_compat_fields_action</full_name>
|
5257 |
+
<docblock line="708">
|
5258 |
<description><![CDATA[Ajax handler for Media Manager "fill compat-attachment-fields" queries]]></description>
|
5259 |
<long-description><![CDATA[<p>Prepares an array of (HTML) taxonomy meta boxes with attachment-specific values.</p>]]></long-description>
|
5260 |
+
<tag line="708" name="since" description="1.80"/>
|
5261 |
+
<tag line="708" name="return" description="passes array of results to wp_send_json_success() for JSON encoding and transmission" type="void">
|
5262 |
<type by_reference="false">void</type>
|
5263 |
</tag>
|
5264 |
</docblock>
|
5265 |
</method>
|
5266 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="891" package="Media Library Assistant">
|
5267 |
<name>mla_update_compat_fields_action</name>
|
5268 |
<full_name>mla_update_compat_fields_action</full_name>
|
5269 |
+
<docblock line="882">
|
5270 |
<description><![CDATA[Ajax handler for Media Manager "update compat-attachment-fields" queries]]></description>
|
5271 |
<long-description><![CDATA[<p>Updates one (or more) supported taxonomy and returns updated checkbox or tag/term lists</p>]]></long-description>
|
5272 |
+
<tag line="882" name="since" description="1.80"/>
|
5273 |
+
<tag line="882" name="return" description="passes array of results to wp_send_json_success() for JSON encoding and transmission" type="void">
|
5274 |
<type by_reference="false">void</type>
|
5275 |
</tag>
|
5276 |
</docblock>
|
5277 |
</method>
|
5278 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="980" package="Media Library Assistant">
|
5279 |
<name>mla_query_attachments_action</name>
|
5280 |
<full_name>mla_query_attachments_action</full_name>
|
5281 |
+
<docblock line="971">
|
5282 |
<description><![CDATA[Ajax handler for Media Manager "Query Attachments" queries]]></description>
|
5283 |
<long-description><![CDATA[<p>Adapted from wp_ajax_query_attachments in /wp-admin/includes/ajax-actions.php</p>]]></long-description>
|
5284 |
+
<tag line="971" name="since" description="1.20"/>
|
5285 |
+
<tag line="971" name="return" description="passes array of post arrays to wp_send_json_success() for JSON encoding and transmission" type="void">
|
5286 |
<type by_reference="false">void</type>
|
5287 |
</tag>
|
5288 |
</docblock>
|
5289 |
</method>
|
5290 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1090" package="Media Library Assistant">
|
5291 |
<name>mla_add_terms_search_scripts</name>
|
5292 |
<full_name>mla_add_terms_search_scripts</full_name>
|
5293 |
+
<docblock line="1082">
|
5294 |
<description><![CDATA[Add the styles and scripts for the "Search Terms" popup modal window,
|
5295 |
but only once per page load]]></description>
|
5296 |
<long-description><![CDATA[]]></long-description>
|
5297 |
+
<tag line="1082" name="since" description="1.90"/>
|
5298 |
+
<tag line="1082" name="return" description="" type="void">
|
5299 |
<type by_reference="false">void</type>
|
5300 |
</tag>
|
5301 |
</docblock>
|
5302 |
</method>
|
5303 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1130" package="Media Library Assistant">
|
5304 |
<name>mla_add_terms_search_form</name>
|
5305 |
<full_name>mla_add_terms_search_form</full_name>
|
5306 |
+
<docblock line="1122">
|
5307 |
<description><![CDATA[Add the hidden form for the "Search Terms" popup modal window,
|
5308 |
but only once per page load]]></description>
|
5309 |
<long-description><![CDATA[]]></long-description>
|
5310 |
+
<tag line="1122" name="since" description="1.90"/>
|
5311 |
+
<tag line="1122" name="return" description="" type="void">
|
5312 |
<type by_reference="false">void</type>
|
5313 |
</tag>
|
5314 |
</docblock>
|
5315 |
</method>
|
5316 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1146" package="Media Library Assistant">
|
5317 |
<name>mla_echo_terms_search_form</name>
|
5318 |
<full_name>mla_echo_terms_search_form</full_name>
|
5319 |
+
<docblock line="1139">
|
5320 |
<description><![CDATA[Echo the hidden form for the "Search Terms" popup modal window]]></description>
|
5321 |
<long-description><![CDATA[]]></long-description>
|
5322 |
+
<tag line="1139" name="since" description="1.90"/>
|
5323 |
+
<tag line="1139" name="return" description="Echos the HTML <form> markup for hidden form" type="void">
|
5324 |
<type by_reference="false">void</type>
|
5325 |
</tag>
|
5326 |
</docblock>
|
5327 |
</method>
|
5328 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1157" package="Media Library Assistant">
|
5329 |
<name>mla_terms_search_form</name>
|
5330 |
<full_name>mla_terms_search_form</full_name>
|
5331 |
+
<docblock line="1150">
|
5332 |
<description><![CDATA[Build the hidden form for the "Search Terms" popup modal window]]></description>
|
5333 |
<long-description><![CDATA[]]></long-description>
|
5334 |
+
<tag line="1150" name="since" description="1.90"/>
|
5335 |
+
<tag line="1150" name="return" description="HTML <form> markup for hidden form" type="string">
|
5336 |
<type by_reference="false">string</type>
|
5337 |
</tag>
|
5338 |
</docblock>
|
5339 |
</method>
|
5340 |
</class>
|
5341 |
</file>
|
5342 |
+
<file path="includes\class-mla-mime-types.php" hash="8cc6ae6eb779b8745a9205e51ba76f81" package="Media Library Assistant">
|
5343 |
<docblock line="2">
|
5344 |
<description><![CDATA[Media Library Assistant MIME Type Support]]></description>
|
5345 |
<long-description><![CDATA[]]></long-description>
|
5465 |
</tag>
|
5466 |
</docblock>
|
5467 |
</property>
|
5468 |
+
<property final="false" static="true" visibility="private" line="2341" namespace="global" package="Media Library Assistant">
|
5469 |
<name>$mla_optional_upload_mime_templates</name>
|
5470 |
<default><![CDATA[NULL]]></default>
|
5471 |
+
<docblock line="2334">
|
5472 |
<description><![CDATA[In-memory representation of the (read-only) Optional Upload MIME Types]]></description>
|
5473 |
<long-description><![CDATA[]]></long-description>
|
5474 |
+
<tag line="2334" name="since" description="1.40"/>
|
5475 |
+
<tag line="2334" name="var" description="( ID, slug, mime_type, core_type, mla_type, description )" type="array">
|
5476 |
<type by_reference="false">array</type>
|
5477 |
</tag>
|
5478 |
</docblock>
|
6327 |
<type/>
|
6328 |
</argument>
|
6329 |
</method>
|
6330 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1932" package="Media Library Assistant">
|
6331 |
<name>_put_upload_mime_templates</name>
|
6332 |
<full_name>_put_upload_mime_templates</full_name>
|
6333 |
+
<docblock line="1925">
|
6334 |
<description><![CDATA[Store the options portion of the Upload MIME Types]]></description>
|
6335 |
<long-description><![CDATA[]]></long-description>
|
6336 |
+
<tag line="1925" name="since" description="1.40"/>
|
6337 |
+
<tag line="1925" name="return" description="Success (true) or failure (false) of the operation" type="boolean">
|
6338 |
<type by_reference="false">boolean</type>
|
6339 |
</tag>
|
6340 |
</docblock>
|
6341 |
</method>
|
6342 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1967" package="Media Library Assistant">
|
6343 |
<name>mla_add_upload_mime</name>
|
6344 |
<full_name>mla_add_upload_mime</full_name>
|
6345 |
+
<docblock line="1958">
|
6346 |
<description><![CDATA[Add an MLA Upload MIME Type object]]></description>
|
6347 |
<long-description><![CDATA[]]></long-description>
|
6348 |
+
<tag line="1958" name="since" description="1.40"/>
|
6349 |
+
<tag line="1958" name="param" description="Query variables for a single object, including slug" type="array" variable="$request">
|
6350 |
<type by_reference="false">array</type>
|
6351 |
</tag>
|
6352 |
+
<tag line="1958" name="return" description="Message(s) reflecting the results of the operation" type="array">
|
6353 |
<type by_reference="false">array</type>
|
6354 |
</tag>
|
6355 |
</docblock>
|
6356 |
+
<argument line="1967">
|
6357 |
<name>$request</name>
|
6358 |
<default><![CDATA[]]></default>
|
6359 |
<type/>
|
6360 |
</argument>
|
6361 |
</method>
|
6362 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2066" package="Media Library Assistant">
|
6363 |
<name>mla_update_upload_mime</name>
|
6364 |
<full_name>mla_update_upload_mime</full_name>
|
6365 |
+
<docblock line="2057">
|
6366 |
<description><![CDATA[Update an MLA Upload MIME Type object]]></description>
|
6367 |
<long-description><![CDATA[]]></long-description>
|
6368 |
+
<tag line="2057" name="since" description="1.40"/>
|
6369 |
+
<tag line="2057" name="param" description="Query variables for new object values, including optional original_slug" type="array" variable="$request">
|
6370 |
<type by_reference="false">array</type>
|
6371 |
</tag>
|
6372 |
+
<tag line="2057" name="return" description="Message(s) reflecting the results of the operation" type="array">
|
6373 |
<type by_reference="false">array</type>
|
6374 |
</tag>
|
6375 |
</docblock>
|
6376 |
+
<argument line="2066">
|
6377 |
<name>$request</name>
|
6378 |
<default><![CDATA[NULL]]></default>
|
6379 |
<type/>
|
6380 |
</argument>
|
6381 |
</method>
|
6382 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2255" package="Media Library Assistant">
|
6383 |
<name>mla_get_upload_mime_slug</name>
|
6384 |
<full_name>mla_get_upload_mime_slug</full_name>
|
6385 |
+
<docblock line="2246">
|
6386 |
<description><![CDATA[Retrieve an MLA Upload MIME Type slug given a post_ID]]></description>
|
6387 |
<long-description><![CDATA[]]></long-description>
|
6388 |
+
<tag line="2246" name="since" description="1.40"/>
|
6389 |
+
<tag line="2246" name="param" description="MLA Upload MIME Type post_ID" type="integer" variable="$post_ID">
|
6390 |
<type by_reference="false">integer</type>
|
6391 |
</tag>
|
6392 |
+
<tag line="2246" name="return" description="string with slug of the requested object; false if object not found" type="mixed">
|
6393 |
<type by_reference="false">mixed</type>
|
6394 |
</tag>
|
6395 |
</docblock>
|
6396 |
+
<argument line="2255">
|
6397 |
<name>$post_ID</name>
|
6398 |
<default><![CDATA[]]></default>
|
6399 |
<type/>
|
6400 |
</argument>
|
6401 |
</method>
|
6402 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2276" package="Media Library Assistant">
|
6403 |
<name>mla_get_upload_mime</name>
|
6404 |
<full_name>mla_get_upload_mime</full_name>
|
6405 |
+
<docblock line="2267">
|
6406 |
<description><![CDATA[Retrieve an MLA Upload MIME Type object]]></description>
|
6407 |
<long-description><![CDATA[]]></long-description>
|
6408 |
+
<tag line="2267" name="since" description="1.40"/>
|
6409 |
+
<tag line="2267" name="param" description="MLA Upload MIME Type slug" type="string" variable="$slug">
|
6410 |
<type by_reference="false">string</type>
|
6411 |
</tag>
|
6412 |
+
<tag line="2267" name="return" description="Array of elements, including slug, for the requested object; false if object not found" type="mixed">
|
6413 |
<type by_reference="false">mixed</type>
|
6414 |
</tag>
|
6415 |
</docblock>
|
6416 |
+
<argument line="2276">
|
6417 |
<name>$slug</name>
|
6418 |
<default><![CDATA[]]></default>
|
6419 |
<type/>
|
6420 |
</argument>
|
6421 |
</method>
|
6422 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2297" package="Media Library Assistant">
|
6423 |
<name>mla_delete_upload_mime</name>
|
6424 |
<full_name>mla_delete_upload_mime</full_name>
|
6425 |
+
<docblock line="2288">
|
6426 |
<description><![CDATA[Delete an MLA Upload MIME Type object]]></description>
|
6427 |
<long-description><![CDATA[]]></long-description>
|
6428 |
+
<tag line="2288" name="since" description="1.40"/>
|
6429 |
+
<tag line="2288" name="param" description="MLA Upload MIME Type slug" type="string" variable="$slug">
|
6430 |
<type by_reference="false">string</type>
|
6431 |
</tag>
|
6432 |
+
<tag line="2288" name="return" description="Message(s) reflecting the results of the operation" type="array">
|
6433 |
<type by_reference="false">array</type>
|
6434 |
</tag>
|
6435 |
</docblock>
|
6436 |
+
<argument line="2297">
|
6437 |
<name>$slug</name>
|
6438 |
<default><![CDATA[]]></default>
|
6439 |
<type/>
|
6440 |
</argument>
|
6441 |
</method>
|
6442 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2354" package="Media Library Assistant">
|
6443 |
<name>_prepare_optional_upload_items_query</name>
|
6444 |
<full_name>_prepare_optional_upload_items_query</full_name>
|
6445 |
+
<docblock line="2343">
|
6446 |
<description><![CDATA[Sanitize and expand Optional Upload MIME Type query arguments from request variables]]></description>
|
6447 |
<long-description><![CDATA[]]></long-description>
|
6448 |
+
<tag line="2343" name="since" description="1.40"/>
|
6449 |
+
<tag line="2343" name="param" description="query parameters from web page, usually found in $_REQUEST" type="array" variable="$raw_request">
|
6450 |
<type by_reference="false">array</type>
|
6451 |
</tag>
|
6452 |
+
<tag line="2343" name="param" description="Optional number of rows (default 0) to skip over to reach desired page" type="int" variable="$offset">
|
6453 |
<type by_reference="false">int</type>
|
6454 |
</tag>
|
6455 |
+
<tag line="2343" name="param" description="Optional number of rows on each page (0 = all rows, default)" type="int" variable="$count">
|
6456 |
<type by_reference="false">int</type>
|
6457 |
</tag>
|
6458 |
+
<tag line="2343" name="return" description="revised arguments suitable for query" type="array">
|
6459 |
<type by_reference="false">array</type>
|
6460 |
</tag>
|
6461 |
</docblock>
|
6462 |
+
<argument line="2354">
|
6463 |
<name>$raw_request</name>
|
6464 |
<default><![CDATA[]]></default>
|
6465 |
<type/>
|
6466 |
</argument>
|
6467 |
+
<argument line="2354">
|
6468 |
<name>$offset</name>
|
6469 |
<default><![CDATA[0]]></default>
|
6470 |
<type/>
|
6471 |
</argument>
|
6472 |
+
<argument line="2354">
|
6473 |
<name>$count</name>
|
6474 |
<default><![CDATA[0]]></default>
|
6475 |
<type/>
|
6476 |
</argument>
|
6477 |
</method>
|
6478 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2427" package="Media Library Assistant">
|
6479 |
<name>_execute_optional_upload_items_query</name>
|
6480 |
<full_name>_execute_optional_upload_items_query</full_name>
|
6481 |
+
<docblock line="2418">
|
6482 |
<description><![CDATA[Execute an Optional Upload MIME Types query]]></description>
|
6483 |
<long-description><![CDATA[]]></long-description>
|
6484 |
+
<tag line="2418" name="since" description="1.40"/>
|
6485 |
+
<tag line="2418" name="param" description="query parameters from web page, usually found in $_REQUEST" type="array" variable="$request">
|
6486 |
<type by_reference="false">array</type>
|
6487 |
</tag>
|
6488 |
+
<tag line="2418" name="return" description="query results; array of MLA Optional Upload MIME Type objects" type="array">
|
6489 |
<type by_reference="false">array</type>
|
6490 |
</tag>
|
6491 |
</docblock>
|
6492 |
+
<argument line="2427">
|
6493 |
<name>$request</name>
|
6494 |
<default><![CDATA[]]></default>
|
6495 |
<type/>
|
6496 |
</argument>
|
6497 |
</method>
|
6498 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2509" package="Media Library Assistant">
|
6499 |
<name>mla_count_optional_upload_items</name>
|
6500 |
<full_name>mla_count_optional_upload_items</full_name>
|
6501 |
+
<docblock line="2500">
|
6502 |
<description><![CDATA[Get the total number of MLA Upload MIME Type objects]]></description>
|
6503 |
<long-description><![CDATA[]]></long-description>
|
6504 |
+
<tag line="2500" name="since" description="1.40"/>
|
6505 |
+
<tag line="2500" name="param" description="Query variables, e.g., from $_REQUEST" type="array" variable="$request">
|
6506 |
<type by_reference="false">array</type>
|
6507 |
</tag>
|
6508 |
+
<tag line="2500" name="return" description="Number of MLA Upload MIME Type objects" type="integer">
|
6509 |
<type by_reference="false">integer</type>
|
6510 |
</tag>
|
6511 |
</docblock>
|
6512 |
+
<argument line="2509">
|
6513 |
<name>$request</name>
|
6514 |
<default><![CDATA[]]></default>
|
6515 |
<type/>
|
6516 |
</argument>
|
6517 |
</method>
|
6518 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2526" package="Media Library Assistant">
|
6519 |
<name>mla_query_optional_upload_items</name>
|
6520 |
<full_name>mla_query_optional_upload_items</full_name>
|
6521 |
+
<docblock line="2515">
|
6522 |
<description><![CDATA[Retrieve MLA Upload MIME Type objects for list table display]]></description>
|
6523 |
<long-description><![CDATA[]]></long-description>
|
6524 |
+
<tag line="2515" name="since" description="1.40"/>
|
6525 |
+
<tag line="2515" name="param" description="query parameters from web page, usually found in $_REQUEST" type="array" variable="$request">
|
6526 |
<type by_reference="false">array</type>
|
6527 |
</tag>
|
6528 |
+
<tag line="2515" name="param" description="number of rows to skip over to reach desired page" type="int" variable="$offset">
|
6529 |
<type by_reference="false">int</type>
|
6530 |
</tag>
|
6531 |
+
<tag line="2515" name="param" description="number of rows on each page" type="int" variable="$count">
|
6532 |
<type by_reference="false">int</type>
|
6533 |
</tag>
|
6534 |
+
<tag line="2515" name="return" description="MLA Upload MIME Type objects" type="array">
|
6535 |
<type by_reference="false">array</type>
|
6536 |
</tag>
|
6537 |
</docblock>
|
6538 |
+
<argument line="2526">
|
6539 |
<name>$request</name>
|
6540 |
<default><![CDATA[]]></default>
|
6541 |
<type/>
|
6542 |
</argument>
|
6543 |
+
<argument line="2526">
|
6544 |
<name>$offset</name>
|
6545 |
<default><![CDATA[]]></default>
|
6546 |
<type/>
|
6547 |
</argument>
|
6548 |
+
<argument line="2526">
|
6549 |
<name>$count</name>
|
6550 |
<default><![CDATA[]]></default>
|
6551 |
<type/>
|
6552 |
</argument>
|
6553 |
</method>
|
6554 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2539" package="Media Library Assistant">
|
6555 |
<name>_get_optional_upload_mime_templates</name>
|
6556 |
<full_name>_get_optional_upload_mime_templates</full_name>
|
6557 |
+
<docblock line="2532">
|
6558 |
<description><![CDATA[Assemble the in-memory representation of the (read-only) Optional Upload MIME Types]]></description>
|
6559 |
<long-description><![CDATA[]]></long-description>
|
6560 |
+
<tag line="2532" name="since" description="1.40"/>
|
6561 |
+
<tag line="2532" name="return" description="Success (true) or failure (false) of the operation" type="boolean">
|
6562 |
<type by_reference="false">boolean</type>
|
6563 |
</tag>
|
6564 |
</docblock>
|
6565 |
</method>
|
6566 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2584" package="Media Library Assistant">
|
6567 |
<name>mla_get_optional_upload_mime</name>
|
6568 |
<full_name>mla_get_optional_upload_mime</full_name>
|
6569 |
+
<docblock line="2575">
|
6570 |
<description><![CDATA[Retrieve an MLA Optional Upload MIME Type given an ID]]></description>
|
6571 |
<long-description><![CDATA[]]></long-description>
|
6572 |
+
<tag line="2575" name="since" description="1.40"/>
|
6573 |
+
<tag line="2575" name="param" description="MLA Optional Upload MIME Type ID" type="integer" variable="$ID">
|
6574 |
<type by_reference="false">integer</type>
|
6575 |
</tag>
|
6576 |
+
<tag line="2575" name="return" description="the requested object; false if object not found" type="mixed">
|
6577 |
<type by_reference="false">mixed</type>
|
6578 |
</tag>
|
6579 |
</docblock>
|
6580 |
+
<argument line="2584">
|
6581 |
<name>$ID</name>
|
6582 |
<default><![CDATA[]]></default>
|
6583 |
<type/>
|
6585 |
</method>
|
6586 |
</class>
|
6587 |
</file>
|
6588 |
+
<file path="includes\class-mla-objects.php" hash="e8da2ff7418957cf82bfdcfb2c6c8711" package="Media Library Assistant">
|
6589 |
<docblock line="2">
|
6590 |
<description><![CDATA[Media Library Assistant Custom Taxonomy and Widget objects]]></description>
|
6591 |
<long-description><![CDATA[]]></long-description>
|
6797 |
</method>
|
6798 |
</class>
|
6799 |
</file>
|
6800 |
+
<file path="includes\class-mla-options.php" hash="f3e968ea9845503710ac1425b3d861bf" package="Media Library Assistant">
|
6801 |
<docblock line="2">
|
6802 |
<description><![CDATA[Manages the plugin option settings]]></description>
|
6803 |
<long-description><![CDATA[]]></long-description>
|
6804 |
<tag line="2" name="package" description="Media Library Assistant"/>
|
6805 |
<tag line="2" name="since" description="1.00"/>
|
6806 |
</docblock>
|
6807 |
+
<include line="1820" type="Require Once" package="Media Library Assistant">
|
6808 |
+
<name/>
|
6809 |
+
</include>
|
6810 |
+
<include line="1851" type="Require" package="Media Library Assistant">
|
6811 |
<name/>
|
6812 |
</include>
|
6813 |
<class final="false" abstract="false" namespace="global" line="18" package="Media Library Assistant">
|
7285 |
</tag>
|
7286 |
</docblock>
|
7287 |
</property>
|
7288 |
+
<property final="false" static="true" visibility="private" line="1872" namespace="global" package="Media Library Assistant">
|
7289 |
<name>$add_attachment_id</name>
|
7290 |
<default><![CDATA[0]]></default>
|
7291 |
+
<docblock line="1862">
|
7292 |
<description><![CDATA[Attachment ID passed from mla_add_attachment_action to mla_update_attachment_metadata_filter]]></description>
|
7293 |
<long-description><![CDATA[<p>Ensures that IPTC/EXIF and Custom Field mapping is only performed when the attachment is first
|
7294 |
added to the Media Library.</p>]]></long-description>
|
7295 |
+
<tag line="1862" name="since" description="1.70"/>
|
7296 |
+
<tag line="1862" name="var" description="" type="integer">
|
7297 |
<type by_reference="false">integer</type>
|
7298 |
</tag>
|
7299 |
</docblock>
|
7300 |
</property>
|
7301 |
+
<property final="false" static="true" visibility="private" line="2889" namespace="global" package="Media Library Assistant">
|
7302 |
<name>$custom_field_data_sources</name>
|
7303 |
<default><![CDATA[array('post_id', 'post_author', 'post_date', 'post_date_gmt', 'post_content', 'post_title', 'post_excerpt', 'post_status', 'comment_status', 'ping_status', 'post_name', 'post_modified', 'post_modified_gmt', 'post_content_filtered', 'parent', 'post_parent', 'guid', 'menu_order', 'mime_type', 'post_mime_type', 'comment_count', 'absolute_path', 'absolute_file_name', 'base_file', 'path', 'file_name', 'name_only', 'extension', 'file_size', 'upload_date', 'dimensions', 'pixels', 'width', 'height', 'orientation', 'hwstring_small', 'size_keys', 'size_names', 'size_bytes', 'size_pixels', 'size_dimensions', 'size_name[size]', 'size_bytes[size]', 'size_pixels[size]', 'size_dimensions[size]', 'parent_date', 'parent_type', 'parent_title', 'parent_issues', 'reference_issues', 'featured_in', 'featured_in_title', 'inserted_in', 'inserted_in_title', 'gallery_in', 'gallery_in_title', 'mla_gallery_in', 'mla_gallery_in_title', 'aperture', 'credit', 'camera', 'caption', 'created_timestamp', 'copyright', 'focal_length', 'iso', 'shutter_speed', 'title')]]></default>
|
7304 |
+
<docblock line="2882">
|
7305 |
<description><![CDATA[Array of Data Source names for custom field mapping]]></description>
|
7306 |
<long-description><![CDATA[]]></long-description>
|
7307 |
+
<tag line="2882" name="since" description="1.10"/>
|
7308 |
+
<tag line="2882" name="var" description="" type="array">
|
7309 |
<type by_reference="false">array</type>
|
7310 |
</tag>
|
7311 |
</docblock>
|
7347 |
</tag>
|
7348 |
</docblock>
|
7349 |
</method>
|
7350 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1175" package="Media Library Assistant">
|
7351 |
<name>mla_fetch_gallery_template</name>
|
7352 |
<full_name>mla_fetch_gallery_template</full_name>
|
7353 |
+
<docblock line="1165">
|
7354 |
<description><![CDATA[Fetch style or markup template from $mla_templates]]></description>
|
7355 |
<long-description><![CDATA[]]></long-description>
|
7356 |
+
<tag line="1165" name="since" description="0.80"/>
|
7357 |
+
<tag line="1165" name="param" description="Template name" type="string" variable="$key">
|
7358 |
<type by_reference="false">string</type>
|
7359 |
</tag>
|
7360 |
+
<tag line="1165" name="param" description="Template type; 'style' (default) or 'markup'" type="string" variable="$type">
|
7361 |
<type by_reference="false">string</type>
|
7362 |
</tag>
|
7363 |
+
<tag line="1165" name="return" description="requested template, false if not found or null if no templates" type="string|boolean|null">
|
7364 |
<type by_reference="false">string</type>
|
7365 |
<type by_reference="false">boolean</type>
|
7366 |
<type by_reference="false">null</type>
|
7367 |
</tag>
|
7368 |
</docblock>
|
7369 |
+
<argument line="1175">
|
7370 |
<name>$key</name>
|
7371 |
<default><![CDATA[]]></default>
|
7372 |
<type/>
|
7373 |
</argument>
|
7374 |
+
<argument line="1175">
|
7375 |
<name>$type</name>
|
7376 |
<default><![CDATA['style']]></default>
|
7377 |
<type/>
|
7378 |
</argument>
|
7379 |
</method>
|
7380 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1197" package="Media Library Assistant">
|
7381 |
<name>mla_get_style_templates</name>
|
7382 |
<full_name>mla_get_style_templates</full_name>
|
7383 |
+
<docblock line="1190">
|
7384 |
<description><![CDATA[Get ALL style templates from $mla_templates, including 'default']]></description>
|
7385 |
<long-description><![CDATA[]]></long-description>
|
7386 |
+
<tag line="1190" name="since" description="0.80"/>
|
7387 |
+
<tag line="1190" name="return" description="name => value for all style templates or null if no templates" type="array|null">
|
7388 |
<type by_reference="false">array</type>
|
7389 |
<type by_reference="false">null</type>
|
7390 |
</tag>
|
7391 |
</docblock>
|
7392 |
</method>
|
7393 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1223" package="Media Library Assistant">
|
7394 |
<name>mla_put_style_templates</name>
|
7395 |
<full_name>mla_put_style_templates</full_name>
|
7396 |
+
<docblock line="1215">
|
7397 |
<description><![CDATA[Put user-defined style templates to $mla_templates and database]]></description>
|
7398 |
<long-description><![CDATA[]]></long-description>
|
7399 |
+
<tag line="1215" name="since" description="0.80"/>
|
7400 |
+
<tag line="1215" name="param" description="name => value for all user-defined style templates" type="array" variable="$templates">
|
7401 |
<type by_reference="false">array</type>
|
7402 |
</tag>
|
7403 |
+
<tag line="1215" name="return" description="true if success, false if failure" type="boolean">
|
7404 |
<type by_reference="false">boolean</type>
|
7405 |
</tag>
|
7406 |
</docblock>
|
7407 |
+
<argument line="1223">
|
7408 |
<name>$templates</name>
|
7409 |
<default><![CDATA[]]></default>
|
7410 |
<type/>
|
7411 |
</argument>
|
7412 |
</method>
|
7413 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1239" package="Media Library Assistant">
|
7414 |
<name>mla_get_markup_templates</name>
|
7415 |
<full_name>mla_get_markup_templates</full_name>
|
7416 |
+
<docblock line="1232">
|
7417 |
<description><![CDATA[Get ALL markup templates from $mla_templates, including 'default']]></description>
|
7418 |
<long-description><![CDATA[]]></long-description>
|
7419 |
+
<tag line="1232" name="since" description="0.80"/>
|
7420 |
+
<tag line="1232" name="return" description="name => value for all markup templates or null if no templates" type="array|null">
|
7421 |
<type by_reference="false">array</type>
|
7422 |
<type by_reference="false">null</type>
|
7423 |
</tag>
|
7424 |
</docblock>
|
7425 |
</method>
|
7426 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1294" package="Media Library Assistant">
|
7427 |
<name>mla_put_markup_templates</name>
|
7428 |
<full_name>mla_put_markup_templates</full_name>
|
7429 |
+
<docblock line="1286">
|
7430 |
<description><![CDATA[Put user-defined markup templates to $mla_templates and database]]></description>
|
7431 |
<long-description><![CDATA[]]></long-description>
|
7432 |
+
<tag line="1286" name="since" description="0.80"/>
|
7433 |
+
<tag line="1286" name="param" description="name => value for all user-defined markup templates" type="array" variable="$templates">
|
7434 |
<type by_reference="false">array</type>
|
7435 |
</tag>
|
7436 |
+
<tag line="1286" name="return" description="true if success, false if failure" type="boolean">
|
7437 |
<type by_reference="false">boolean</type>
|
7438 |
</tag>
|
7439 |
</docblock>
|
7440 |
+
<argument line="1294">
|
7441 |
<name>$templates</name>
|
7442 |
<default><![CDATA[]]></default>
|
7443 |
<type/>
|
7444 |
</argument>
|
7445 |
</method>
|
7446 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1314" package="Media Library Assistant">
|
7447 |
<name>mla_get_option</name>
|
7448 |
<full_name>mla_get_option</full_name>
|
7449 |
+
<docblock line="1303">
|
7450 |
<description><![CDATA[Return the stored value or default value of a defined MLA option]]></description>
|
7451 |
<long-description><![CDATA[]]></long-description>
|
7452 |
+
<tag line="1303" name="since" description="0.1"/>
|
7453 |
+
<tag line="1303" name="param" description="Name of the desired option" type="string" variable="$option">
|
7454 |
<type by_reference="false">string</type>
|
7455 |
</tag>
|
7456 |
+
<tag line="1303" name="param" description="True to ignore current setting and return default values" type="boolean" variable="$get_default">
|
7457 |
<type by_reference="false">boolean</type>
|
7458 |
</tag>
|
7459 |
+
<tag line="1303" name="param" description="True to ignore default values and return only stored values" type="boolean" variable="$get_stored">
|
7460 |
<type by_reference="false">boolean</type>
|
7461 |
</tag>
|
7462 |
+
<tag line="1303" name="return" description="Value(s) for the option or false if the option is not a defined MLA option" type="mixed">
|
7463 |
<type by_reference="false">mixed</type>
|
7464 |
</tag>
|
7465 |
</docblock>
|
7466 |
+
<argument line="1314">
|
7467 |
<name>$option</name>
|
7468 |
<default><![CDATA[]]></default>
|
7469 |
<type/>
|
7470 |
</argument>
|
7471 |
+
<argument line="1314">
|
7472 |
<name>$get_default</name>
|
7473 |
<default><![CDATA[false]]></default>
|
7474 |
<type/>
|
7475 |
</argument>
|
7476 |
+
<argument line="1314">
|
7477 |
<name>$get_stored</name>
|
7478 |
<default><![CDATA[false]]></default>
|
7479 |
<type/>
|
7480 |
</argument>
|
7481 |
</method>
|
7482 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1344" package="Media Library Assistant">
|
7483 |
<name>mla_update_option</name>
|
7484 |
<full_name>mla_update_option</full_name>
|
7485 |
+
<docblock line="1334">
|
7486 |
<description><![CDATA[Add or update the stored value of a defined MLA option]]></description>
|
7487 |
<long-description><![CDATA[]]></long-description>
|
7488 |
+
<tag line="1334" name="since" description="0.1"/>
|
7489 |
+
<tag line="1334" name="param" description="Name of the desired option" type="string" variable="$option">
|
7490 |
<type by_reference="false">string</type>
|
7491 |
</tag>
|
7492 |
+
<tag line="1334" name="param" description="New value for the desired option" type="mixed" variable="$newvalue">
|
7493 |
<type by_reference="false">mixed</type>
|
7494 |
</tag>
|
7495 |
+
<tag line="1334" name="return" description="True if the value was changed or false if the update failed" type="boolean">
|
7496 |
<type by_reference="false">boolean</type>
|
7497 |
</tag>
|
7498 |
</docblock>
|
7499 |
+
<argument line="1344">
|
7500 |
<name>$option</name>
|
7501 |
<default><![CDATA[]]></default>
|
7502 |
<type/>
|
7503 |
</argument>
|
7504 |
+
<argument line="1344">
|
7505 |
<name>$newvalue</name>
|
7506 |
<default><![CDATA[]]></default>
|
7507 |
<type/>
|
7508 |
</argument>
|
7509 |
</method>
|
7510 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1361" package="Media Library Assistant">
|
7511 |
<name>mla_delete_option</name>
|
7512 |
<full_name>mla_delete_option</full_name>
|
7513 |
+
<docblock line="1352">
|
7514 |
<description><![CDATA[Delete the stored value of a defined MLA option]]></description>
|
7515 |
<long-description><![CDATA[]]></long-description>
|
7516 |
+
<tag line="1352" name="since" description="0.1"/>
|
7517 |
+
<tag line="1352" name="param" description="Name of the desired option" type="string" variable="$option">
|
7518 |
<type by_reference="false">string</type>
|
7519 |
</tag>
|
7520 |
+
<tag line="1352" name="return" description="True if the option was deleted, otherwise false" type="boolean">
|
7521 |
<type by_reference="false">boolean</type>
|
7522 |
</tag>
|
7523 |
</docblock>
|
7524 |
+
<argument line="1361">
|
7525 |
<name>$option</name>
|
7526 |
<default><![CDATA[]]></default>
|
7527 |
<type/>
|
7528 |
</argument>
|
7529 |
</method>
|
7530 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1382" package="Media Library Assistant">
|
7531 |
<name>mla_taxonomy_support</name>
|
7532 |
<full_name>mla_taxonomy_support</full_name>
|
7533 |
+
<docblock line="1369">
|
7534 |
<description><![CDATA[Determine MLA support for a taxonomy, handling the special case where the
|
7535 |
settings are being updated or reset.]]></description>
|
7536 |
<long-description><![CDATA[]]></long-description>
|
7537 |
+
<tag line="1369" name="since" description="0.30"/>
|
7538 |
+
<tag line="1369" name="param" description="Taxonomy name, e.g., attachment_category" type="string" variable="$tax_name">
|
7539 |
<type by_reference="false">string</type>
|
7540 |
</tag>
|
7541 |
+
<tag line="1369" name="param" description="Optional. 'support' (default), 'quick-edit' or 'filter'" type="string" variable="$support_type">
|
7542 |
<type by_reference="false">string</type>
|
7543 |
</tag>
|
7544 |
+
<tag line="1369" 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">
|
7545 |
<type by_reference="false">boolean</type>
|
7546 |
<type by_reference="false">string</type>
|
7547 |
</tag>
|
7548 |
</docblock>
|
7549 |
+
<argument line="1382">
|
7550 |
<name>$tax_name</name>
|
7551 |
<default><![CDATA[]]></default>
|
7552 |
<type/>
|
7553 |
</argument>
|
7554 |
+
<argument line="1382">
|
7555 |
<name>$support_type</name>
|
7556 |
<default><![CDATA['support']]></default>
|
7557 |
<type/>
|
7558 |
</argument>
|
7559 |
</method>
|
7560 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1450" package="Media Library Assistant">
|
7561 |
<name>mla_supported_taxonomies</name>
|
7562 |
<full_name>mla_supported_taxonomies</full_name>
|
7563 |
+
<docblock line="1441">
|
7564 |
<description><![CDATA[Returns an array of taxonomy names assigned to $support_type]]></description>
|
7565 |
<long-description><![CDATA[]]></long-description>
|
7566 |
+
<tag line="1441" name="since" description="1.90"/>
|
7567 |
+
<tag line="1441" name="param" description="Optional. 'support' (default), 'quick-edit', 'flat-checklist', 'term-search' or 'filter'" type="string" variable="$support_type">
|
7568 |
<type by_reference="false">string</type>
|
7569 |
</tag>
|
7570 |
+
<tag line="1441" name="return" description="taxonomies assigned to $support_type; can be empty." type="array">
|
7571 |
<type by_reference="false">array</type>
|
7572 |
</tag>
|
7573 |
</docblock>
|
7574 |
+
<argument line="1450">
|
7575 |
<name>$support_type</name>
|
7576 |
<default><![CDATA['support']]></default>
|
7577 |
<type/>
|
7578 |
</argument>
|
7579 |
</method>
|
7580 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1511" package="Media Library Assistant">
|
7581 |
<name>mla_attachment_display_settings_option_handler</name>
|
7582 |
<full_name>mla_attachment_display_settings_option_handler</full_name>
|
7583 |
+
<docblock line="1498">
|
7584 |
<description><![CDATA[Render and manage Attachment Display Settings options; alignment, link type and size]]></description>
|
7585 |
<long-description><![CDATA[]]></long-description>
|
7586 |
+
<tag line="1498" name="since" description="1.71"/>
|
7587 |
+
<tag line="1498" name="uses" description="\global\MLASettings::$page_template_array" refers="\global\MLASettings::$page_template_array"/>
|
7588 |
+
<tag line="1498" name="param" description="'render', 'update', 'delete', or 'reset'" type="string" variable="$action">
|
7589 |
<type by_reference="false">string</type>
|
7590 |
</tag>
|
7591 |
+
<tag line="1498" name="param" description="option name, e.g., 'image_default_align'" type="string" variable="$key">
|
7592 |
<type by_reference="false">string</type>
|
7593 |
</tag>
|
7594 |
+
<tag line="1498" name="param" description="option parameters" type="array" variable="$value">
|
7595 |
<type by_reference="false">array</type>
|
7596 |
</tag>
|
7597 |
+
<tag line="1498" name="param" description="Optional. null (default) for 'render' else option data, e.g., $_REQUEST" type="array" variable="$args">
|
7598 |
<type by_reference="false">array</type>
|
7599 |
</tag>
|
7600 |
+
<tag line="1498" name="return" description="HTML table row markup for 'render' else message(s) reflecting the results of the operation." type="string">
|
7601 |
<type by_reference="false">string</type>
|
7602 |
</tag>
|
7603 |
</docblock>
|
7604 |
+
<argument line="1511">
|
7605 |
<name>$action</name>
|
7606 |
<default><![CDATA[]]></default>
|
7607 |
<type/>
|
7608 |
</argument>
|
7609 |
+
<argument line="1511">
|
7610 |
<name>$key</name>
|
7611 |
<default><![CDATA[]]></default>
|
7612 |
<type/>
|
7613 |
</argument>
|
7614 |
+
<argument line="1511">
|
7615 |
<name>$value</name>
|
7616 |
<default><![CDATA[]]></default>
|
7617 |
<type/>
|
7618 |
</argument>
|
7619 |
+
<argument line="1511">
|
7620 |
<name>$args</name>
|
7621 |
<default><![CDATA[null]]></default>
|
7622 |
<type/>
|
7623 |
</argument>
|
7624 |
</method>
|
7625 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1575" package="Media Library Assistant">
|
7626 |
<name>mla_taxonomy_option_handler</name>
|
7627 |
<full_name>mla_taxonomy_option_handler</full_name>
|
7628 |
+
<docblock line="1562">
|
7629 |
<description><![CDATA[Render and manage taxonomy support options, e.g., Categories and Post Tags]]></description>
|
7630 |
<long-description><![CDATA[]]></long-description>
|
7631 |
+
<tag line="1562" name="since" description="0.30"/>
|
7632 |
+
<tag line="1562" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
|
7633 |
+
<tag line="1562" name="param" description="'render', 'update', 'delete', or 'reset'" type="string" variable="$action">
|
7634 |
<type by_reference="false">string</type>
|
7635 |
</tag>
|
7636 |
+
<tag line="1562" name="param" description="option name, e.g., 'tax_support', or 'tax_flat_checklist'" type="string" variable="$key">
|
7637 |
<type by_reference="false">string</type>
|
7638 |
</tag>
|
7639 |
+
<tag line="1562" name="param" description="option parameters" type="array" variable="$value">
|
7640 |
<type by_reference="false">array</type>
|
7641 |
</tag>
|
7642 |
+
<tag line="1562" name="param" description="Optional. null (default) for 'render' else option data, e.g., $_REQUEST" type="array" variable="$args">
|
7643 |
<type by_reference="false">array</type>
|
7644 |
</tag>
|
7645 |
+
<tag line="1562" name="return" description="HTML table row markup for 'render' else message(s) reflecting the results of the operation." type="string">
|
7646 |
<type by_reference="false">string</type>
|
7647 |
</tag>
|
7648 |
</docblock>
|
7649 |
+
<argument line="1575">
|
7650 |
<name>$action</name>
|
7651 |
<default><![CDATA[]]></default>
|
7652 |
<type/>
|
7653 |
</argument>
|
7654 |
+
<argument line="1575">
|
7655 |
<name>$key</name>
|
7656 |
<default><![CDATA[]]></default>
|
7657 |
<type/>
|
7658 |
</argument>
|
7659 |
+
<argument line="1575">
|
7660 |
<name>$value</name>
|
7661 |
<default><![CDATA[]]></default>
|
7662 |
<type/>
|
7663 |
</argument>
|
7664 |
+
<argument line="1575">
|
7665 |
<name>$args</name>
|
7666 |
<default><![CDATA[null]]></default>
|
7667 |
<type/>
|
7668 |
</argument>
|
7669 |
</method>
|
7670 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1739" package="Media Library Assistant">
|
7671 |
<name>mla_search_option_handler</name>
|
7672 |
<full_name>mla_search_option_handler</full_name>
|
7673 |
+
<docblock line="1726">
|
7674 |
<description><![CDATA[Render and manage Search box options, e.g., connector and search fields]]></description>
|
7675 |
<long-description><![CDATA[]]></long-description>
|
7676 |
+
<tag line="1726" name="since" description="1.90"/>
|
7677 |
+
<tag line="1726" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
|
7678 |
+
<tag line="1726" name="param" description="'render', 'update', 'delete', or 'reset'" type="string" variable="$action">
|
7679 |
<type by_reference="false">string</type>
|
7680 |
</tag>
|
7681 |
+
<tag line="1726" name="param" description="option name; 'search_connector' or 'search_fields'" type="string" variable="$key">
|
7682 |
<type by_reference="false">string</type>
|
7683 |
</tag>
|
7684 |
+
<tag line="1726" name="param" description="option parameters" type="array" variable="$value">
|
7685 |
<type by_reference="false">array</type>
|
7686 |
</tag>
|
7687 |
+
<tag line="1726" name="param" description="Optional. null (default) for 'render' else option data, e.g., $_REQUEST" type="array" variable="$args">
|
7688 |
<type by_reference="false">array</type>
|
7689 |
</tag>
|
7690 |
+
<tag line="1726" name="return" description="HTML table row markup for 'render' else message(s) reflecting the results of the operation." type="string">
|
7691 |
<type by_reference="false">string</type>
|
7692 |
</tag>
|
7693 |
</docblock>
|
7694 |
+
<argument line="1739">
|
7695 |
<name>$action</name>
|
7696 |
<default><![CDATA[]]></default>
|
7697 |
<type/>
|
7698 |
</argument>
|
7699 |
+
<argument line="1739">
|
7700 |
<name>$key</name>
|
7701 |
<default><![CDATA[]]></default>
|
7702 |
<type/>
|
7703 |
</argument>
|
7704 |
+
<argument line="1739">
|
7705 |
<name>$value</name>
|
7706 |
<default><![CDATA[]]></default>
|
7707 |
<type/>
|
7708 |
</argument>
|
7709 |
+
<argument line="1739">
|
7710 |
<name>$args</name>
|
7711 |
<default><![CDATA[null]]></default>
|
7712 |
<type/>
|
7713 |
</argument>
|
7714 |
</method>
|
7715 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1810" package="Media Library Assistant">
|
7716 |
<name>mla_wp_handle_upload_prefilter_filter</name>
|
7717 |
<full_name>mla_wp_handle_upload_prefilter_filter</full_name>
|
7718 |
+
<docblock line="1801">
|
7719 |
<description><![CDATA[Examine or alter the filename before the file is made permanent]]></description>
|
7720 |
<long-description><![CDATA[]]></long-description>
|
7721 |
+
<tag line="1801" name="since" description="1.70"/>
|
7722 |
+
<tag line="1801" name="param" description="file parameters ( 'name' )" type="array" variable="$file">
|
7723 |
<type by_reference="false">array</type>
|
7724 |
</tag>
|
7725 |
+
<tag line="1801" name="return" description="updated file parameters" type="array">
|
7726 |
<type by_reference="false">array</type>
|
7727 |
</tag>
|
7728 |
</docblock>
|
7729 |
+
<argument line="1810">
|
7730 |
<name>$file</name>
|
7731 |
<default><![CDATA[]]></default>
|
7732 |
<type/>
|
7733 |
</argument>
|
7734 |
</method>
|
7735 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1841" package="Media Library Assistant">
|
7736 |
<name>mla_wp_handle_upload_filter</name>
|
7737 |
<full_name>mla_wp_handle_upload_filter</full_name>
|
7738 |
+
<docblock line="1832">
|
7739 |
<description><![CDATA[Called once for each file uploaded]]></description>
|
7740 |
<long-description><![CDATA[]]></long-description>
|
7741 |
+
<tag line="1832" name="since" description="1.70"/>
|
7742 |
+
<tag line="1832" name="param" description="file parameters ( 'name' )" type="array" variable="$file">
|
7743 |
<type by_reference="false">array</type>
|
7744 |
</tag>
|
7745 |
+
<tag line="1832" name="return" description="updated file parameters" type="array">
|
7746 |
<type by_reference="false">array</type>
|
7747 |
</tag>
|
7748 |
</docblock>
|
7749 |
+
<argument line="1841">
|
7750 |
<name>$file</name>
|
7751 |
<default><![CDATA[]]></default>
|
7752 |
<type/>
|
7753 |
</argument>
|
7754 |
</method>
|
7755 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1885" package="Media Library Assistant">
|
7756 |
<name>mla_add_attachment_action</name>
|
7757 |
<full_name>mla_add_attachment_action</full_name>
|
7758 |
+
<docblock line="1874">
|
7759 |
<description><![CDATA[Set $add_attachment_id to just-inserted attachment]]></description>
|
7760 |
<long-description><![CDATA[<p>All of the actual processing is done later, in mla_update_attachment_metadata_filter.</p>]]></long-description>
|
7761 |
+
<tag line="1874" name="since" description="1.00"/>
|
7762 |
+
<tag line="1874" name="param" description="ID of just-inserted attachment" type="integer" variable="$post_ID">
|
7763 |
<type by_reference="false">integer</type>
|
7764 |
</tag>
|
7765 |
+
<tag line="1874" name="return" description="" type="void">
|
7766 |
<type by_reference="false">void</type>
|
7767 |
</tag>
|
7768 |
</docblock>
|
7769 |
+
<argument line="1885">
|
7770 |
<name>$post_ID</name>
|
7771 |
<default><![CDATA[]]></default>
|
7772 |
<type/>
|
7773 |
</argument>
|
7774 |
</method>
|
7775 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1900" package="Media Library Assistant">
|
7776 |
<name>_update_attachment_metadata</name>
|
7777 |
<full_name>_update_attachment_metadata</full_name>
|
7778 |
+
<docblock line="1890">
|
7779 |
<description><![CDATA[Update _wp_attachment_metadata for just-inserted attachment]]></description>
|
7780 |
<long-description><![CDATA[]]></long-description>
|
7781 |
+
<tag line="1890" name="since" description="1.70"/>
|
7782 |
+
<tag line="1890" name="param" description="Attachment metadata updates" type="array" variable="$updates">
|
7783 |
<type by_reference="false">array</type>
|
7784 |
</tag>
|
7785 |
+
<tag line="1890" name="param" description="Attachment metadata, by reference; updated by this function" type="array" variable="$data">
|
7786 |
<type by_reference="false">array</type>
|
7787 |
</tag>
|
7788 |
+
<tag line="1890" name="return" description="Attachment metadata updates, with "meta:" elements removed" type="array">
|
7789 |
<type by_reference="false">array</type>
|
7790 |
</tag>
|
7791 |
</docblock>
|
7792 |
+
<argument line="1900">
|
7793 |
<name>$updates</name>
|
7794 |
<default><![CDATA[]]></default>
|
7795 |
<type/>
|
7796 |
</argument>
|
7797 |
+
<argument line="1900">
|
7798 |
<name>$data</name>
|
7799 |
<default><![CDATA[]]></default>
|
7800 |
<type/>
|
7801 |
</argument>
|
7802 |
</method>
|
7803 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1936" package="Media Library Assistant">
|
7804 |
<name>mla_update_attachment_metadata_filter</name>
|
7805 |
<full_name>mla_update_attachment_metadata_filter</full_name>
|
7806 |
+
<docblock line="1923">
|
7807 |
<description><![CDATA[Perform IPTC/EXIF and Custom Field mapping on just-inserted attachment]]></description>
|
7808 |
<long-description><![CDATA[<p>This filter tests the $add_attachment_id variable set by the mla_add_attachment_action
|
7809 |
to ensure that mapping is only performed for new additions, not metadata updates.</p>]]></long-description>
|
7810 |
+
<tag line="1923" name="since" description="1.10"/>
|
7811 |
+
<tag line="1923" name="param" description="Attachment metadata for just-inserted attachment" type="array" variable="$data">
|
7812 |
<type by_reference="false">array</type>
|
7813 |
</tag>
|
7814 |
+
<tag line="1923" name="param" description="ID of just-inserted attachment" type="integer" variable="$post_id">
|
7815 |
<type by_reference="false">integer</type>
|
7816 |
</tag>
|
7817 |
+
<tag line="1923" name="return" description="Updated attachment metadata" type="array">
|
7818 |
+
<type by_reference="false">array</type>
|
7819 |
</tag>
|
7820 |
</docblock>
|
7821 |
+
<argument line="1936">
|
7822 |
<name>$data</name>
|
7823 |
<default><![CDATA[]]></default>
|
7824 |
<type/>
|
7825 |
</argument>
|
7826 |
+
<argument line="1936">
|
7827 |
<name>$post_id</name>
|
7828 |
<default><![CDATA[]]></default>
|
7829 |
<type/>
|
7830 |
</argument>
|
7831 |
</method>
|
7832 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2018" package="Media Library Assistant">
|
7833 |
<name>mla_custom_field_option_value</name>
|
7834 |
<full_name>mla_custom_field_option_value</full_name>
|
7835 |
+
<docblock line="2009">
|
7836 |
<description><![CDATA[Fetch custom field option value given a slug]]></description>
|
7837 |
<long-description><![CDATA[]]></long-description>
|
7838 |
+
<tag line="2009" name="since" description="1.10"/>
|
7839 |
+
<tag line="2009" name="param" description="slug, e.g., 'c_file-size' for the 'File Size' field" type="string" variable="$slug">
|
7840 |
<type by_reference="false">string</type>
|
7841 |
</tag>
|
7842 |
+
<tag line="2009" name="return" description="option value, e.g., array( 'name' => 'File Size', ... )" type="array">
|
7843 |
<type by_reference="false">array</type>
|
7844 |
</tag>
|
7845 |
</docblock>
|
7846 |
+
<argument line="2018">
|
7847 |
<name>$slug</name>
|
7848 |
<default><![CDATA[]]></default>
|
7849 |
<type/>
|
7850 |
</argument>
|
7851 |
</method>
|
7852 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2039" package="Media Library Assistant">
|
7853 |
<name>mla_custom_field_support</name>
|
7854 |
<full_name>mla_custom_field_support</full_name>
|
7855 |
+
<docblock line="2030">
|
7856 |
<description><![CDATA[Evaluate file information for custom field mapping]]></description>
|
7857 |
<long-description><![CDATA[]]></long-description>
|
7858 |
+
<tag line="2030" name="since" description="1.10"/>
|
7859 |
+
<tag line="2030" name="param" description="array format; 'default_columns' (default), 'default_hidden_columns', 'default_sortable_columns', 'quick_edit' or 'bulk_edit'" type="string" variable="$support_type">
|
7860 |
<type by_reference="false">string</type>
|
7861 |
</tag>
|
7862 |
+
<tag line="2030" name="return" description="default, hidden, sortable quick_edit or bulk_edit colums in appropriate format" type="array">
|
7863 |
<type by_reference="false">array</type>
|
7864 |
</tag>
|
7865 |
</docblock>
|
7866 |
+
<argument line="2039">
|
7867 |
<name>$support_type</name>
|
7868 |
<default><![CDATA['default_columns']]></default>
|
7869 |
<type/>
|
7870 |
</argument>
|
7871 |
</method>
|
7872 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2090" package="Media Library Assistant">
|
7873 |
<name>_evaluate_file_information</name>
|
7874 |
<full_name>_evaluate_file_information</full_name>
|
7875 |
+
<docblock line="2078">
|
7876 |
<description><![CDATA[Evaluate file information for custom field mapping]]></description>
|
7877 |
<long-description><![CDATA[]]></long-description>
|
7878 |
+
<tag line="2078" name="since" description="1.10"/>
|
7879 |
+
<tag line="2078" name="param" description="absolute path the the uploads base directory" type="string" variable="$upload_dir">
|
7880 |
<type by_reference="false">string</type>
|
7881 |
</tag>
|
7882 |
+
<tag line="2078" name="param" description="_wp_attached_file meta_value array, indexed by post_id" type="array" variable="$wp_attached_files">
|
7883 |
<type by_reference="false">array</type>
|
7884 |
</tag>
|
7885 |
+
<tag line="2078" name="param" description="_wp_attachment_metadata meta_value array, indexed by post_id" type="array" variable="$wp_attachment_metadata">
|
7886 |
<type by_reference="false">array</type>
|
7887 |
</tag>
|
7888 |
+
<tag line="2078" name="param" description="post->ID of attachment" type="integer" variable="$post_id">
|
7889 |
<type by_reference="false">integer</type>
|
7890 |
</tag>
|
7891 |
+
<tag line="2078" name="return" description="absolute_path_raw, absolute_path, absolute_file_name_raw, absolute_file_name, absolute_file, base_file, path, file_name, extension, dimensions, width, height, hwstring_small, array of intermediate sizes" type="array">
|
7892 |
<type by_reference="false">array</type>
|
7893 |
</tag>
|
7894 |
</docblock>
|
7895 |
+
<argument line="2090">
|
7896 |
<name>$upload_dir</name>
|
7897 |
<default><![CDATA[]]></default>
|
7898 |
<type/>
|
7899 |
</argument>
|
7900 |
+
<argument line="2090">
|
7901 |
<name>$wp_attached_files</name>
|
7902 |
<default><![CDATA[]]></default>
|
7903 |
<type/>
|
7904 |
</argument>
|
7905 |
+
<argument line="2090">
|
7906 |
<name>$wp_attachment_metadata</name>
|
7907 |
<default><![CDATA[]]></default>
|
7908 |
<type/>
|
7909 |
</argument>
|
7910 |
+
<argument line="2090">
|
7911 |
<name>$post_id</name>
|
7912 |
<default><![CDATA[]]></default>
|
7913 |
<type/>
|
7914 |
</argument>
|
7915 |
</method>
|
7916 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2176" package="Media Library Assistant">
|
7917 |
<name>_evaluate_post_information</name>
|
7918 |
<full_name>_evaluate_post_information</full_name>
|
7919 |
+
<docblock line="2165">
|
7920 |
<description><![CDATA[Evaluate post information for custom field mapping]]></description>
|
7921 |
<long-description><![CDATA[]]></long-description>
|
7922 |
+
<tag line="2165" name="since" description="1.40"/>
|
7923 |
+
<tag line="2165" name="param" description="post->ID of attachment" type="integer" variable="$post_id">
|
7924 |
<type by_reference="false">integer</type>
|
7925 |
</tag>
|
7926 |
+
<tag line="2165" name="param" description="category/scope to evaluate against: custom_field_mapping or single_attachment_mapping" type="string" variable="$category">
|
7927 |
<type by_reference="false">string</type>
|
7928 |
</tag>
|
7929 |
+
<tag line="2165" name="param" description="data source name ( post_date or post_parent )" type="string" variable="$data_source">
|
7930 |
<type by_reference="false">string</type>
|
7931 |
</tag>
|
7932 |
+
<tag line="2165" name="return" description="'post_date' => (string) upload date, 'post_parent' => (integer) ID of parent or zero )" type="mixed">
|
7933 |
<type by_reference="false">mixed</type>
|
7934 |
</tag>
|
7935 |
</docblock>
|
7936 |
+
<argument line="2176">
|
7937 |
<name>$post_id</name>
|
7938 |
<default><![CDATA[]]></default>
|
7939 |
<type/>
|
7940 |
</argument>
|
7941 |
+
<argument line="2176">
|
7942 |
<name>$category</name>
|
7943 |
<default><![CDATA[]]></default>
|
7944 |
<type/>
|
7945 |
</argument>
|
7946 |
+
<argument line="2176">
|
7947 |
<name>$data_source</name>
|
7948 |
<default><![CDATA[]]></default>
|
7949 |
<type/>
|
7950 |
</argument>
|
7951 |
</method>
|
7952 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2227" package="Media Library Assistant">
|
7953 |
<name>_evaluate_array_result</name>
|
7954 |
<full_name>_evaluate_array_result</full_name>
|
7955 |
+
<docblock line="2216">
|
7956 |
<description><![CDATA[Evaluate post information for custom field mapping]]></description>
|
7957 |
<long-description><![CDATA[]]></long-description>
|
7958 |
+
<tag line="2216" name="since" description="1.40"/>
|
7959 |
+
<tag line="2216" name="param" description="field value(s)" type="array" variable="$value">
|
7960 |
<type by_reference="false">array</type>
|
7961 |
</tag>
|
7962 |
+
<tag line="2216" name="param" description="format option text|single|export|array|multi" type="string" variable="$option">
|
7963 |
<type by_reference="false">string</type>
|
7964 |
</tag>
|
7965 |
+
<tag line="2216" name="param" description="keep existing value(s) - for 'multi' option" type="boolean" variable="$keep_existing">
|
7966 |
<type by_reference="false">boolean</type>
|
7967 |
</tag>
|
7968 |
+
<tag line="2216" name="return" description="array for option = array|multi else string" type="mixed">
|
7969 |
<type by_reference="false">mixed</type>
|
7970 |
</tag>
|
7971 |
</docblock>
|
7972 |
+
<argument line="2227">
|
7973 |
<name>$value</name>
|
7974 |
<default><![CDATA[]]></default>
|
7975 |
<type/>
|
7976 |
</argument>
|
7977 |
+
<argument line="2227">
|
7978 |
<name>$option</name>
|
7979 |
<default><![CDATA[]]></default>
|
7980 |
<type/>
|
7981 |
</argument>
|
7982 |
+
<argument line="2227">
|
7983 |
<name>$keep_existing</name>
|
7984 |
<default><![CDATA[]]></default>
|
7985 |
<type/>
|
7986 |
</argument>
|
7987 |
</method>
|
7988 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2267" package="Media Library Assistant">
|
7989 |
<name>mla_get_data_source</name>
|
7990 |
<full_name>mla_get_data_source</full_name>
|
7991 |
+
<docblock line="2252">
|
7992 |
<description><![CDATA[Get IPTC/EXIF or custom field mapping data source]]></description>
|
7993 |
<long-description><![CDATA[<p>Defined as public so MLA Mapping Hooks clients can call it.
|
7994 |
Isolates clients from changes to _evaluate_data_source().</p>]]></long-description>
|
7995 |
+
<tag line="2252" name="since" description="1.70"/>
|
7996 |
+
<tag line="2252" name="param" description="post->ID of attachment" type="integer" variable="$post_id">
|
7997 |
<type by_reference="false">integer</type>
|
7998 |
</tag>
|
7999 |
+
<tag line="2252" name="param" description="category/scope to evaluate against: custom_field_mapping or single_attachment_mapping" type="string" variable="$category">
|
8000 |
<type by_reference="false">string</type>
|
8001 |
</tag>
|
8002 |
+
<tag line="2252" name="param" description="data source specification ( name, *data_source, *keep_existing, *format, mla_column, quick_edit, bulk_edit, *meta_name, *option, no_null )" type="array" variable="$data_value">
|
8003 |
<type by_reference="false">array</type>
|
8004 |
</tag>
|
8005 |
+
<tag line="2252" name="param" description="(optional) _wp_attachment_metadata, default NULL (use current postmeta database value)" type="array" variable="$attachment_metadata">
|
8006 |
<type by_reference="false">array</type>
|
8007 |
</tag>
|
8008 |
+
<tag line="2252" name="return" description="data source value" type="string|array">
|
8009 |
<type by_reference="false">string</type>
|
8010 |
<type by_reference="false">array</type>
|
8011 |
</tag>
|
8012 |
</docblock>
|
8013 |
+
<argument line="2267">
|
8014 |
<name>$post_id</name>
|
8015 |
<default><![CDATA[]]></default>
|
8016 |
<type/>
|
8017 |
</argument>
|
8018 |
+
<argument line="2267">
|
8019 |
<name>$category</name>
|
8020 |
<default><![CDATA[]]></default>
|
8021 |
<type/>
|
8022 |
</argument>
|
8023 |
+
<argument line="2267">
|
8024 |
<name>$data_value</name>
|
8025 |
<default><![CDATA[]]></default>
|
8026 |
<type/>
|
8027 |
</argument>
|
8028 |
+
<argument line="2267">
|
8029 |
<name>$attachment_metadata</name>
|
8030 |
<default><![CDATA[NULL]]></default>
|
8031 |
<type/>
|
8032 |
</argument>
|
8033 |
</method>
|
8034 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2292" package="Media Library Assistant">
|
8035 |
<name>mla_is_data_source</name>
|
8036 |
<full_name>mla_is_data_source</full_name>
|
8037 |
+
<docblock line="2280">
|
8038 |
<description><![CDATA[Identify custom field mapping data source]]></description>
|
8039 |
<long-description><![CDATA[<p>Determines whether a name matches any of the element-level data source dropdown options, i.e.,
|
8040 |
excludes "template:" and "meta:" values.</p>]]></long-description>
|
8041 |
+
<tag line="2280" name="since" description="1.80"/>
|
8042 |
+
<tag line="2280" name="param" description="candidate data source name" type="string" variable="$candidate_name">
|
8043 |
<type by_reference="false">string</type>
|
8044 |
</tag>
|
8045 |
+
<tag line="2280" name="return" description="true if candidate name matches a data source" type="boolean">
|
8046 |
<type by_reference="false">boolean</type>
|
8047 |
</tag>
|
8048 |
</docblock>
|
8049 |
+
<argument line="2292">
|
8050 |
<name>$candidate_name</name>
|
8051 |
<default><![CDATA[]]></default>
|
8052 |
<type/>
|
8053 |
</argument>
|
8054 |
</method>
|
8055 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2327" package="Media Library Assistant">
|
8056 |
<name>_evaluate_data_source</name>
|
8057 |
<full_name>_evaluate_data_source</full_name>
|
8058 |
+
<docblock line="2315">
|
8059 |
<description><![CDATA[Evaluate custom field mapping data source]]></description>
|
8060 |
<long-description><![CDATA[]]></long-description>
|
8061 |
+
<tag line="2315" name="since" description="1.10"/>
|
8062 |
+
<tag line="2315" name="param" description="post->ID of attachment" type="integer" variable="$post_id">
|
8063 |
<type by_reference="false">integer</type>
|
8064 |
</tag>
|
8065 |
+
<tag line="2315" name="param" description="category/scope to evaluate against: custom_field_mapping or single_attachment_mapping" type="string" variable="$category">
|
8066 |
<type by_reference="false">string</type>
|
8067 |
</tag>
|
8068 |
+
<tag line="2315" name="param" description="data source specification ( name, *data_source, *keep_existing, *format, mla_column, quick_edit, bulk_edit, *meta_name, *option, no_null )" type="array" variable="$data_value">
|
8069 |
<type by_reference="false">array</type>
|
8070 |
</tag>
|
8071 |
+
<tag line="2315" name="param" description="(optional) _wp_attachment_metadata, default NULL (use current postmeta database value)" type="array" variable="$attachment_metadata">
|
8072 |
<type by_reference="false">array</type>
|
8073 |
</tag>
|
8074 |
+
<tag line="2315" name="return" description="data source value" type="string|array">
|
8075 |
<type by_reference="false">string</type>
|
8076 |
<type by_reference="false">array</type>
|
8077 |
</tag>
|
8078 |
</docblock>
|
8079 |
+
<argument line="2327">
|
8080 |
<name>$post_id</name>
|
8081 |
<default><![CDATA[]]></default>
|
8082 |
<type/>
|
8083 |
</argument>
|
8084 |
+
<argument line="2327">
|
8085 |
<name>$category</name>
|
8086 |
<default><![CDATA[]]></default>
|
8087 |
<type/>
|
8088 |
</argument>
|
8089 |
+
<argument line="2327">
|
8090 |
<name>$data_value</name>
|
8091 |
<default><![CDATA[]]></default>
|
8092 |
<type/>
|
8093 |
</argument>
|
8094 |
+
<argument line="2327">
|
8095 |
<name>$attachment_metadata</name>
|
8096 |
<default><![CDATA[NULL]]></default>
|
8097 |
<type/>
|
8098 |
</argument>
|
8099 |
</method>
|
8100 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2756" package="Media Library Assistant">
|
8101 |
<name>mla_evaluate_custom_field_mapping</name>
|
8102 |
<full_name>mla_evaluate_custom_field_mapping</full_name>
|
8103 |
+
<docblock line="2744">
|
8104 |
<description><![CDATA[Evaluate custom field mapping updates for a post]]></description>
|
8105 |
<long-description><![CDATA[]]></long-description>
|
8106 |
+
<tag line="2744" name="since" description="1.10"/>
|
8107 |
+
<tag line="2744" name="param" description="post ID to be evaluated" type="integer" variable="$post_id">
|
8108 |
<type by_reference="false">integer</type>
|
8109 |
</tag>
|
8110 |
+
<tag line="2744" name="param" description="category/scope to evaluate against: custom_field_mapping or single_attachment_mapping" type="string" variable="$category">
|
8111 |
<type by_reference="false">string</type>
|
8112 |
</tag>
|
8113 |
+
<tag line="2744" name="param" description="(optional) custom_field_mapping values, default NULL (use current option value)" type="array" variable="$settings">
|
8114 |
<type by_reference="false">array</type>
|
8115 |
</tag>
|
8116 |
+
<tag line="2744" name="param" description="(optional) attachment_metadata, default NULL (use current postmeta database value)" type="array" variable="$attachment_metadata">
|
8117 |
<type by_reference="false">array</type>
|
8118 |
</tag>
|
8119 |
+
<tag line="2744" name="return" description="Updates suitable for MLAData::mla_update_single_item, if any" type="array">
|
8120 |
<type by_reference="false">array</type>
|
8121 |
</tag>
|
8122 |
</docblock>
|
8123 |
+
<argument line="2756">
|
8124 |
<name>$post_id</name>
|
8125 |
<default><![CDATA[]]></default>
|
8126 |
<type/>
|
8127 |
</argument>
|
8128 |
+
<argument line="2756">
|
8129 |
<name>$category</name>
|
8130 |
<default><![CDATA[]]></default>
|
8131 |
<type/>
|
8132 |
</argument>
|
8133 |
+
<argument line="2756">
|
8134 |
<name>$settings</name>
|
8135 |
<default><![CDATA[NULL]]></default>
|
8136 |
<type/>
|
8137 |
</argument>
|
8138 |
+
<argument line="2756">
|
8139 |
<name>$attachment_metadata</name>
|
8140 |
<default><![CDATA[NULL]]></default>
|
8141 |
<type/>
|
8142 |
</argument>
|
8143 |
</method>
|
8144 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2855" package="Media Library Assistant">
|
8145 |
<name>_compose_custom_field_option_list</name>
|
8146 |
<full_name>_compose_custom_field_option_list</full_name>
|
8147 |
+
<docblock line="2844">
|
8148 |
<description><![CDATA[Compose a Custom Field Options list with current selection]]></description>
|
8149 |
<long-description><![CDATA[]]></long-description>
|
8150 |
+
<tag line="2844" name="since" description="1.10"/>
|
8151 |
+
<tag line="2844" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
|
8152 |
+
<tag line="2844" name="param" description="current selection or 'none' (default)" type="string" variable="$selection">
|
8153 |
<type by_reference="false">string</type>
|
8154 |
</tag>
|
8155 |
+
<tag line="2844" name="param" description="optional list of terms to exclude from the list" type="array" variable="$blacklist">
|
8156 |
<type by_reference="false">array</type>
|
8157 |
</tag>
|
8158 |
+
<tag line="2844" name="return" description="HTML markup with select field options" type="string">
|
8159 |
<type by_reference="false">string</type>
|
8160 |
</tag>
|
8161 |
</docblock>
|
8162 |
+
<argument line="2855">
|
8163 |
<name>$selection</name>
|
8164 |
<default><![CDATA['none']]></default>
|
8165 |
<type/>
|
8166 |
</argument>
|
8167 |
+
<argument line="2855">
|
8168 |
<name>$blacklist</name>
|
8169 |
<default><![CDATA[array()]]></default>
|
8170 |
<type/>
|
8171 |
</argument>
|
8172 |
</method>
|
8173 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2974" package="Media Library Assistant">
|
8174 |
<name>_compose_data_source_option_list</name>
|
8175 |
<full_name>_compose_data_source_option_list</full_name>
|
8176 |
+
<docblock line="2964">
|
8177 |
<description><![CDATA[Compose a (Custom Field) Data Source Options list with current selection]]></description>
|
8178 |
<long-description><![CDATA[]]></long-description>
|
8179 |
+
<tag line="2964" name="since" description="1.10"/>
|
8180 |
+
<tag line="2964" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
|
8181 |
+
<tag line="2964" name="param" description="current selection or 'none' (default)" type="string" variable="$selection">
|
8182 |
<type by_reference="false">string</type>
|
8183 |
</tag>
|
8184 |
+
<tag line="2964" name="return" description="HTML markup with select field options" type="string">
|
8185 |
<type by_reference="false">string</type>
|
8186 |
</tag>
|
8187 |
</docblock>
|
8188 |
+
<argument line="2974">
|
8189 |
<name>$selection</name>
|
8190 |
<default><![CDATA['none']]></default>
|
8191 |
<type/>
|
8192 |
</argument>
|
8193 |
</method>
|
8194 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3038" package="Media Library Assistant">
|
8195 |
<name>_update_custom_field_mapping</name>
|
8196 |
<full_name>_update_custom_field_mapping</full_name>
|
8197 |
+
<docblock line="3028">
|
8198 |
<description><![CDATA[Update custom field mappings]]></description>
|
8199 |
<long-description><![CDATA[]]></long-description>
|
8200 |
+
<tag line="3028" name="since" description="1.10"/>
|
8201 |
+
<tag line="3028" name="param" description="current custom_field_mapping values" type="array" variable="$current_values">
|
8202 |
<type by_reference="false">array</type>
|
8203 |
</tag>
|
8204 |
+
<tag line="3028" name="param" description="new values" type="array" variable="$new_values">
|
8205 |
<type by_reference="false">array</type>
|
8206 |
</tag>
|
8207 |
+
<tag line="3028" name="return" description="( 'message' => HTML message(s) reflecting results, 'values' => updated custom_field_mapping values, 'changed' => true if any changes detected else false )" type="array">
|
8208 |
<type by_reference="false">array</type>
|
8209 |
</tag>
|
8210 |
</docblock>
|
8211 |
+
<argument line="3038">
|
8212 |
<name>$current_values</name>
|
8213 |
<default><![CDATA[]]></default>
|
8214 |
<type/>
|
8215 |
</argument>
|
8216 |
+
<argument line="3038">
|
8217 |
<name>$new_values</name>
|
8218 |
<default><![CDATA[]]></default>
|
8219 |
<type/>
|
8220 |
</argument>
|
8221 |
</method>
|
8222 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="3251" package="Media Library Assistant">
|
8223 |
<name>mla_custom_field_option_handler</name>
|
8224 |
<full_name>mla_custom_field_option_handler</full_name>
|
8225 |
+
<docblock line="3238">
|
8226 |
<description><![CDATA[Render and manage custom field mapping options]]></description>
|
8227 |
<long-description><![CDATA[]]></long-description>
|
8228 |
+
<tag line="3238" name="since" description="1.10"/>
|
8229 |
+
<tag line="3238" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
|
8230 |
+
<tag line="3238" name="param" description="'render', 'update', 'delete', or 'reset'" type="string" variable="$action">
|
8231 |
<type by_reference="false">string</type>
|
8232 |
</tag>
|
8233 |
+
<tag line="3238" name="param" description="option name, e.g., 'custom_field_mapping'" type="string" variable="$key">
|
8234 |
<type by_reference="false">string</type>
|
8235 |
</tag>
|
8236 |
+
<tag line="3238" name="param" description="option parameters" type="array" variable="$value">
|
8237 |
<type by_reference="false">array</type>
|
8238 |
</tag>
|
8239 |
+
<tag line="3238" name="param" description="Optional. null (default) for 'render' else option data, e.g., $_REQUEST" type="array" variable="$args">
|
8240 |
<type by_reference="false">array</type>
|
8241 |
</tag>
|
8242 |
+
<tag line="3238" name="return" description="HTML table row markup for 'render' else message(s) reflecting the results of the operation." type="string">
|
8243 |
<type by_reference="false">string</type>
|
8244 |
</tag>
|
8245 |
</docblock>
|
8246 |
+
<argument line="3251">
|
8247 |
<name>$action</name>
|
8248 |
<default><![CDATA[]]></default>
|
8249 |
<type/>
|
8250 |
</argument>
|
8251 |
+
<argument line="3251">
|
8252 |
<name>$key</name>
|
8253 |
<default><![CDATA[]]></default>
|
8254 |
<type/>
|
8255 |
</argument>
|
8256 |
+
<argument line="3251">
|
8257 |
<name>$value</name>
|
8258 |
<default><![CDATA[]]></default>
|
8259 |
<type/>
|
8260 |
</argument>
|
8261 |
+
<argument line="3251">
|
8262 |
<name>$args</name>
|
8263 |
<default><![CDATA[null]]></default>
|
8264 |
<type/>
|
8265 |
</argument>
|
8266 |
</method>
|
8267 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="3504" package="Media Library Assistant">
|
8268 |
<name>mla_evaluate_iptc_exif_mapping</name>
|
8269 |
<full_name>mla_evaluate_iptc_exif_mapping</full_name>
|
8270 |
+
<docblock line="3492">
|
8271 |
<description><![CDATA[Evaluate IPTC/EXIF mapping updates for a post]]></description>
|
8272 |
<long-description><![CDATA[]]></long-description>
|
8273 |
+
<tag line="3492" name="since" description="1.00"/>
|
8274 |
+
<tag line="3492" name="param" description="post object with current values" type="object" variable="$post">
|
8275 |
<type by_reference="false">object</type>
|
8276 |
</tag>
|
8277 |
+
<tag line="3492" name="param" description="category to evaluate against, e.g., iptc_exif_standard_mapping or iptc_exif_mapping" type="string" variable="$category">
|
8278 |
<type by_reference="false">string</type>
|
8279 |
</tag>
|
8280 |
+
<tag line="3492" name="param" description="(optional) iptc_exif_mapping values, default - current option value" type="array" variable="$settings">
|
8281 |
<type by_reference="false">array</type>
|
8282 |
</tag>
|
8283 |
+
<tag line="3492" name="param" description="(optional) _wp_attachment_metadata, for MLAOptions::mla_update_attachment_metadata_filter" type="array" variable="$attachment_metadata">
|
8284 |
<type by_reference="false">array</type>
|
8285 |
</tag>
|
8286 |
+
<tag line="3492" name="return" description="Updates suitable for MLAData::mla_update_single_item, if any" type="array">
|
8287 |
<type by_reference="false">array</type>
|
8288 |
</tag>
|
8289 |
</docblock>
|
8290 |
+
<argument line="3504">
|
8291 |
<name>$post</name>
|
8292 |
<default><![CDATA[]]></default>
|
8293 |
<type/>
|
8294 |
</argument>
|
8295 |
+
<argument line="3504">
|
8296 |
<name>$category</name>
|
8297 |
<default><![CDATA[]]></default>
|
8298 |
<type/>
|
8299 |
</argument>
|
8300 |
+
<argument line="3504">
|
8301 |
<name>$settings</name>
|
8302 |
<default><![CDATA[NULL]]></default>
|
8303 |
<type/>
|
8304 |
</argument>
|
8305 |
+
<argument line="3504">
|
8306 |
<name>$attachment_metadata</name>
|
8307 |
<default><![CDATA[NULL]]></default>
|
8308 |
<type/>
|
8309 |
</argument>
|
8310 |
</method>
|
8311 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3815" package="Media Library Assistant">
|
8312 |
<name>_compose_iptc_option_list</name>
|
8313 |
<full_name>_compose_iptc_option_list</full_name>
|
8314 |
+
<docblock line="3805">
|
8315 |
<description><![CDATA[Compose an IPTC Options list with current selection]]></description>
|
8316 |
<long-description><![CDATA[]]></long-description>
|
8317 |
+
<tag line="3805" name="since" description="1.00"/>
|
8318 |
+
<tag line="3805" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
|
8319 |
+
<tag line="3805" name="param" description="current selection or 'none' (default)" type="string" variable="$selection">
|
8320 |
<type by_reference="false">string</type>
|
8321 |
</tag>
|
8322 |
+
<tag line="3805" name="return" description="HTML markup with select field options" type="string">
|
8323 |
<type by_reference="false">string</type>
|
8324 |
</tag>
|
8325 |
</docblock>
|
8326 |
+
<argument line="3815">
|
8327 |
<name>$selection</name>
|
8328 |
<default><![CDATA['none']]></default>
|
8329 |
<type/>
|
8330 |
</argument>
|
8331 |
</method>
|
8332 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3848" package="Media Library Assistant">
|
8333 |
<name>_compose_parent_option_list</name>
|
8334 |
<full_name>_compose_parent_option_list</full_name>
|
8335 |
+
<docblock line="3837">
|
8336 |
<description><![CDATA[Compose an hierarchical taxonomy Parent options list with current selection]]></description>
|
8337 |
<long-description><![CDATA[]]></long-description>
|
8338 |
+
<tag line="3837" name="since" description="1.00"/>
|
8339 |
+
<tag line="3837" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
|
8340 |
+
<tag line="3837" name="param" description="taxonomy slug" type="string" variable="$taxonomy">
|
8341 |
<type by_reference="false">string</type>
|
8342 |
</tag>
|
8343 |
+
<tag line="3837" name="param" description="current selection or 0 (zero, default)" type="integer" variable="$selection">
|
8344 |
<type by_reference="false">integer</type>
|
8345 |
</tag>
|
8346 |
+
<tag line="3837" name="return" description="HTML markup with select field options" type="string">
|
8347 |
<type by_reference="false">string</type>
|
8348 |
</tag>
|
8349 |
</docblock>
|
8350 |
+
<argument line="3848">
|
8351 |
<name>$taxonomy</name>
|
8352 |
<default><![CDATA[]]></default>
|
8353 |
<type/>
|
8354 |
</argument>
|
8355 |
+
<argument line="3848">
|
8356 |
<name>$selection</name>
|
8357 |
<default><![CDATA[0]]></default>
|
8358 |
<type/>
|
8359 |
</argument>
|
8360 |
</method>
|
8361 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3894" package="Media Library Assistant">
|
8362 |
<name>_update_iptc_exif_standard_mapping</name>
|
8363 |
<full_name>_update_iptc_exif_standard_mapping</full_name>
|
8364 |
+
<docblock line="3884">
|
8365 |
<description><![CDATA[Update Standard field portion of IPTC/EXIF mappings]]></description>
|
8366 |
<long-description><![CDATA[]]></long-description>
|
8367 |
+
<tag line="3884" name="since" description="1.00"/>
|
8368 |
+
<tag line="3884" name="param" description="current iptc_exif_mapping values" type="array" variable="$current_values">
|
8369 |
<type by_reference="false">array</type>
|
8370 |
</tag>
|
8371 |
+
<tag line="3884" name="param" description="new values" type="array" variable="$new_values">
|
8372 |
<type by_reference="false">array</type>
|
8373 |
</tag>
|
8374 |
+
<tag line="3884" name="return" description="( 'message' => HTML message(s) reflecting results, 'values' => updated iptc_exif_mapping values, 'changed' => true if any changes detected else false )" type="array">
|
8375 |
<type by_reference="false">array</type>
|
8376 |
</tag>
|
8377 |
</docblock>
|
8378 |
+
<argument line="3894">
|
8379 |
<name>$current_values</name>
|
8380 |
<default><![CDATA[]]></default>
|
8381 |
<type/>
|
8382 |
</argument>
|
8383 |
+
<argument line="3894">
|
8384 |
<name>$new_values</name>
|
8385 |
<default><![CDATA[]]></default>
|
8386 |
<type/>
|
8387 |
</argument>
|
8388 |
</method>
|
8389 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3987" package="Media Library Assistant">
|
8390 |
<name>_update_iptc_exif_taxonomy_mapping</name>
|
8391 |
<full_name>_update_iptc_exif_taxonomy_mapping</full_name>
|
8392 |
+
<docblock line="3977">
|
8393 |
<description><![CDATA[Update Taxonomy term portion of IPTC/EXIF mappings]]></description>
|
8394 |
<long-description><![CDATA[]]></long-description>
|
8395 |
+
<tag line="3977" name="since" description="1.00"/>
|
8396 |
+
<tag line="3977" name="param" description="current iptc_exif_mapping values" type="array" variable="$current_values">
|
8397 |
<type by_reference="false">array</type>
|
8398 |
</tag>
|
8399 |
+
<tag line="3977" name="param" description="new values" type="array" variable="$new_values">
|
8400 |
<type by_reference="false">array</type>
|
8401 |
</tag>
|
8402 |
+
<tag line="3977" name="return" description="( 'message' => HTML message(s) reflecting results, 'values' => updated iptc_exif_mapping values, 'changed' => true if any changes detected else false )" type="array">
|
8403 |
<type by_reference="false">array</type>
|
8404 |
</tag>
|
8405 |
</docblock>
|
8406 |
+
<argument line="3987">
|
8407 |
<name>$current_values</name>
|
8408 |
<default><![CDATA[]]></default>
|
8409 |
<type/>
|
8410 |
</argument>
|
8411 |
+
<argument line="3987">
|
8412 |
<name>$new_values</name>
|
8413 |
<default><![CDATA[]]></default>
|
8414 |
<type/>
|
8415 |
</argument>
|
8416 |
</method>
|
8417 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="4102" package="Media Library Assistant">
|
8418 |
<name>_update_iptc_exif_custom_mapping</name>
|
8419 |
<full_name>_update_iptc_exif_custom_mapping</full_name>
|
8420 |
+
<docblock line="4092">
|
8421 |
<description><![CDATA[Update Custom field portion of IPTC/EXIF mappings]]></description>
|
8422 |
<long-description><![CDATA[]]></long-description>
|
8423 |
+
<tag line="4092" name="since" description="1.00"/>
|
8424 |
+
<tag line="4092" name="param" description="current iptc_exif_mapping values" type="array" variable="$current_values">
|
8425 |
<type by_reference="false">array</type>
|
8426 |
</tag>
|
8427 |
+
<tag line="4092" name="param" description="new values" type="array" variable="$new_values">
|
8428 |
<type by_reference="false">array</type>
|
8429 |
</tag>
|
8430 |
+
<tag line="4092" name="return" description="( 'message' => HTML message(s) reflecting results, 'values' => updated iptc_exif_mapping values, 'changed' => true if any changes detected else false )" type="array">
|
8431 |
<type by_reference="false">array</type>
|
8432 |
</tag>
|
8433 |
</docblock>
|
8434 |
+
<argument line="4102">
|
8435 |
<name>$current_values</name>
|
8436 |
<default><![CDATA[]]></default>
|
8437 |
<type/>
|
8438 |
</argument>
|
8439 |
+
<argument line="4102">
|
8440 |
<name>$new_values</name>
|
8441 |
<default><![CDATA[]]></default>
|
8442 |
<type/>
|
8443 |
</argument>
|
8444 |
</method>
|
8445 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="4232" package="Media Library Assistant">
|
8446 |
<name>_get_custom_field_names</name>
|
8447 |
<full_name>_get_custom_field_names</full_name>
|
8448 |
+
<docblock line="4222">
|
8449 |
<description><![CDATA[Generate a list of all (post) Custom Field names]]></description>
|
8450 |
<long-description><![CDATA[<p>The list will include any Custom Field and IPTC/EXIF rules that
|
8451 |
haven't been mapped to any attachments, yet.</p>]]></long-description>
|
8452 |
+
<tag line="4222" name="since" description="1.00"/>
|
8453 |
+
<tag line="4222" name="return" description="Custom field names from the postmeta table and MLA rules" type="array">
|
8454 |
<type by_reference="false">array</type>
|
8455 |
</tag>
|
8456 |
</docblock>
|
8457 |
</method>
|
8458 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="4278" package="Media Library Assistant">
|
8459 |
<name>mla_iptc_exif_option_handler</name>
|
8460 |
<full_name>mla_iptc_exif_option_handler</full_name>
|
8461 |
+
<docblock line="4265">
|
8462 |
<description><![CDATA[Render and manage iptc/exif support options]]></description>
|
8463 |
<long-description><![CDATA[]]></long-description>
|
8464 |
+
<tag line="4265" name="since" description="1.00"/>
|
8465 |
+
<tag line="4265" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
|
8466 |
+
<tag line="4265" name="param" description="'render', 'update', 'delete', or 'reset'" type="string" variable="$action">
|
8467 |
<type by_reference="false">string</type>
|
8468 |
</tag>
|
8469 |
+
<tag line="4265" name="param" description="option name, e.g., 'iptc_exif_mapping'" type="string" variable="$key">
|
8470 |
<type by_reference="false">string</type>
|
8471 |
</tag>
|
8472 |
+
<tag line="4265" name="param" description="option parameters" type="array" variable="$value">
|
8473 |
<type by_reference="false">array</type>
|
8474 |
</tag>
|
8475 |
+
<tag line="4265" name="param" description="Optional. null (default) for 'render' else option data, e.g., $_REQUEST" type="array" variable="$args">
|
8476 |
<type by_reference="false">array</type>
|
8477 |
</tag>
|
8478 |
+
<tag line="4265" name="return" description="HTML table row markup for 'render' else message(s) reflecting the results of the operation." type="string">
|
8479 |
<type by_reference="false">string</type>
|
8480 |
</tag>
|
8481 |
</docblock>
|
8482 |
+
<argument line="4278">
|
8483 |
<name>$action</name>
|
8484 |
<default><![CDATA[]]></default>
|
8485 |
<type/>
|
8486 |
</argument>
|
8487 |
+
<argument line="4278">
|
8488 |
<name>$key</name>
|
8489 |
<default><![CDATA[]]></default>
|
8490 |
<type/>
|
8491 |
</argument>
|
8492 |
+
<argument line="4278">
|
8493 |
<name>$value</name>
|
8494 |
<default><![CDATA[]]></default>
|
8495 |
<type/>
|
8496 |
</argument>
|
8497 |
+
<argument line="4278">
|
8498 |
<name>$args</name>
|
8499 |
<default><![CDATA[null]]></default>
|
8500 |
<type/>
|
8502 |
</method>
|
8503 |
</class>
|
8504 |
</file>
|
8505 |
+
<file path="includes\class-mla-settings.php" hash="0b4fddf126633a5b4218a3f961a80a1e" package="Media Library Assistant">
|
8506 |
<docblock line="2">
|
8507 |
<description><![CDATA[Manages the settings page to edit the plugin option settings]]></description>
|
8508 |
<long-description><![CDATA[]]></long-description>
|
8571 |
</tag>
|
8572 |
</docblock>
|
8573 |
</constant>
|
8574 |
+
<constant namespace="global" line="59" package="Media Library Assistant">
|
8575 |
<name>MLA_SETTINGS_SLUG</name>
|
8576 |
<full_name>MLA_SETTINGS_SLUG</full_name>
|
8577 |
<value><![CDATA['mla-settings-menu']]></value>
|
8578 |
<docblock line="52">
|
8579 |
<description><![CDATA[Provides a unique name for the settings page]]></description>
|
8580 |
<long-description><![CDATA[]]></long-description>
|
8581 |
+
<tag line="52" name="since" description="0.1"/>
|
8582 |
+
<tag line="52" name="var" description="" type="string">
|
8583 |
+
<type by_reference="false">string</type>
|
8584 |
+
</tag>
|
8585 |
</docblock>
|
8586 |
</constant>
|
8587 |
+
<property final="false" static="true" visibility="private" line="68" namespace="global" package="Media Library Assistant">
|
8588 |
<name>$current_page_hook</name>
|
8589 |
<default><![CDATA['']]></default>
|
8590 |
+
<docblock line="61">
|
8591 |
<description><![CDATA[Holds screen id to match help text to corresponding screen]]></description>
|
8592 |
<long-description><![CDATA[]]></long-description>
|
8593 |
+
<tag line="61" name="since" description="1.40"/>
|
8594 |
+
<tag line="61" name="var" description="" type="array">
|
8595 |
<type by_reference="false">array</type>
|
8596 |
</tag>
|
8597 |
</docblock>
|
8598 |
</property>
|
8599 |
+
<property final="false" static="true" visibility="public" line="850" namespace="global" package="Media Library Assistant">
|
8600 |
<name>$page_template_array</name>
|
8601 |
<default><![CDATA[null]]></default>
|
8602 |
+
<docblock line="840">
|
8603 |
<description><![CDATA[Template file for the Settings page(s) and parts]]></description>
|
8604 |
<long-description><![CDATA[<p>This array contains all of the template parts for the Settings page(s). The array is built once
|
8605 |
each page load and cached for subsequent use.</p>]]></long-description>
|
8606 |
+
<tag line="840" name="since" description="0.80"/>
|
8607 |
+
<tag line="840" name="var" description="" type="array">
|
8608 |
<type by_reference="false">array</type>
|
8609 |
</tag>
|
8610 |
</docblock>
|
8611 |
</property>
|
8612 |
+
<property final="false" static="true" visibility="private" line="869" namespace="global" package="Media Library Assistant">
|
8613 |
<name>$mla_tablist</name>
|
8614 |
<default><![CDATA[array()]]></default>
|
8615 |
+
<docblock line="852">
|
8616 |
<description><![CDATA[Definitions for Settings page tab ids, titles and handlers
|
8617 |
Each tab is defined by an array with the following elements:]]></description>
|
8618 |
<long-description><![CDATA[<p>array key => HTML id/name attribute and option database key (OMIT MLA_OPTION_PREFIX)</p>
|
8623 |
|
8624 |
<p>The array must be populated at runtime in MLASettings::mla_localize_tablist(),
|
8625 |
because Localization calls cannot be placed in the "public static" array definition itself.</p>]]></long-description>
|
8626 |
+
<tag line="852" name="since" description="0.80"/>
|
8627 |
+
<tag line="852" name="var" description="" type="array">
|
8628 |
<type by_reference="false">array</type>
|
8629 |
</tag>
|
8630 |
</docblock>
|
8631 |
</property>
|
8632 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="77" package="Media Library Assistant">
|
8633 |
<name>initialize</name>
|
8634 |
<full_name>initialize</full_name>
|
8635 |
+
<docblock line="70">
|
8636 |
<description><![CDATA[Initialization function, similar to __construct()]]></description>
|
8637 |
<long-description><![CDATA[]]></long-description>
|
8638 |
+
<tag line="70" name="since" description="0.1"/>
|
8639 |
+
<tag line="70" name="return" description="" type="void">
|
8640 |
<type by_reference="false">void</type>
|
8641 |
</tag>
|
8642 |
</docblock>
|
8643 |
</method>
|
8644 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="94" package="Media Library Assistant">
|
8645 |
<name>_version_upgrade</name>
|
8646 |
<full_name>_version_upgrade</full_name>
|
8647 |
+
<docblock line="87">
|
8648 |
<description><![CDATA[Database and option update check, for installing new versions]]></description>
|
8649 |
<long-description><![CDATA[]]></long-description>
|
8650 |
+
<tag line="87" name="since" description="0.30"/>
|
8651 |
+
<tag line="87" name="return" description="" type="void">
|
8652 |
<type by_reference="false">void</type>
|
8653 |
</tag>
|
8654 |
</docblock>
|
8655 |
</method>
|
8656 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="217" package="Media Library Assistant">
|
8657 |
<name>mla_activation_hook</name>
|
8658 |
<full_name>mla_activation_hook</full_name>
|
8659 |
+
<docblock line="208">
|
8660 |
<description><![CDATA[Perform one-time actions on plugin activation]]></description>
|
8661 |
<long-description><![CDATA[<p>Adds a view to the database to support sorting the listing on 'ALT Text'.</p>]]></long-description>
|
8662 |
+
<tag line="208" name="since" description="0.40"/>
|
8663 |
+
<tag line="208" name="return" description="" type="void">
|
8664 |
<type by_reference="false">void</type>
|
8665 |
</tag>
|
8666 |
</docblock>
|
8667 |
</method>
|
8668 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="230" package="Media Library Assistant">
|
8669 |
<name>mla_deactivation_hook</name>
|
8670 |
<full_name>mla_deactivation_hook</full_name>
|
8671 |
+
<docblock line="221">
|
8672 |
<description><![CDATA[Perform one-time actions on plugin deactivation]]></description>
|
8673 |
<long-description><![CDATA[<p>Removes (if present) a view from the database that supports sorting the listing on 'ALT Text'.</p>]]></long-description>
|
8674 |
+
<tag line="221" name="since" description="0.40"/>
|
8675 |
+
<tag line="221" name="return" description="" type="void">
|
8676 |
<type by_reference="false">void</type>
|
8677 |
</tag>
|
8678 |
</docblock>
|
8679 |
</method>
|
8680 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="277" package="Media Library Assistant">
|
8681 |
<name>mla_admin_init_action</name>
|
8682 |
<full_name>mla_admin_init_action</full_name>
|
8683 |
+
<docblock line="270">
|
8684 |
<description><![CDATA[Load the plugin's Ajax handler]]></description>
|
8685 |
<long-description><![CDATA[]]></long-description>
|
8686 |
+
<tag line="270" name="since" description="1.40"/>
|
8687 |
+
<tag line="270" name="return" description="" type="void">
|
8688 |
<type by_reference="false">void</type>
|
8689 |
</tag>
|
8690 |
</docblock>
|
8691 |
</method>
|
8692 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="291" package="Media Library Assistant">
|
8693 |
<name>mla_admin_enqueue_scripts_action</name>
|
8694 |
<full_name>mla_admin_enqueue_scripts_action</full_name>
|
8695 |
+
<docblock line="282">
|
8696 |
<description><![CDATA[Load the plugin's Style Sheet and Javascript files]]></description>
|
8697 |
<long-description><![CDATA[]]></long-description>
|
8698 |
+
<tag line="282" name="since" description="1.40"/>
|
8699 |
+
<tag line="282" name="param" description="Name of the page being loaded" type="string" variable="$page_hook">
|
8700 |
<type by_reference="false">string</type>
|
8701 |
</tag>
|
8702 |
+
<tag line="282" name="return" description="" type="void">
|
8703 |
<type by_reference="false">void</type>
|
8704 |
</tag>
|
8705 |
</docblock>
|
8706 |
+
<argument line="291">
|
8707 |
<name>$page_hook</name>
|
8708 |
<default><![CDATA[]]></default>
|
8709 |
<type/>
|
8710 |
</argument>
|
8711 |
</method>
|
8712 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="347" package="Media Library Assistant">
|
8713 |
<name>mla_admin_menu_action</name>
|
8714 |
<full_name>mla_admin_menu_action</full_name>
|
8715 |
+
<docblock line="338">
|
8716 |
<description><![CDATA[Add settings page in the "Settings" section,
|
8717 |
add screen options and help tabs,
|
8718 |
add settings link in the Plugins section entry for MLA.]]></description>
|
8719 |
<long-description><![CDATA[]]></long-description>
|
8720 |
+
<tag line="338" name="since" description="0.1"/>
|
8721 |
+
<tag line="338" name="return" description="" type="void">
|
8722 |
<type by_reference="false">void</type>
|
8723 |
</tag>
|
8724 |
</docblock>
|
8725 |
</method>
|
8726 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="373" package="Media Library Assistant">
|
8727 |
<name>mla_add_menu_options_action</name>
|
8728 |
<full_name>mla_add_menu_options_action</full_name>
|
8729 |
+
<docblock line="366">
|
8730 |
<description><![CDATA[Add the "XX Entries per page" filter to the Screen Options tab]]></description>
|
8731 |
<long-description><![CDATA[]]></long-description>
|
8732 |
+
<tag line="366" name="since" description="1.40"/>
|
8733 |
+
<tag line="366" name="return" description="" type="void">
|
8734 |
<type by_reference="false">void</type>
|
8735 |
</tag>
|
8736 |
</docblock>
|
8737 |
</method>
|
8738 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="418" package="Media Library Assistant">
|
8739 |
<name>mla_add_help_tab_action</name>
|
8740 |
<full_name>mla_add_help_tab_action</full_name>
|
8741 |
+
<docblock line="411">
|
8742 |
<description><![CDATA[Add contextual help tabs to all the MLA pages]]></description>
|
8743 |
<long-description><![CDATA[]]></long-description>
|
8744 |
+
<tag line="411" name="since" description="1.40"/>
|
8745 |
+
<tag line="411" name="return" description="" type="void">
|
8746 |
<type by_reference="false">void</type>
|
8747 |
</tag>
|
8748 |
</docblock>
|
8749 |
</method>
|
8750 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="493" package="Media Library Assistant">
|
8751 |
<name>mla_screen_options_show_screen_filter</name>
|
8752 |
<full_name>mla_screen_options_show_screen_filter</full_name>
|
8753 |
+
<docblock line="483">
|
8754 |
<description><![CDATA[Only show screen options on the View and Upload tabs]]></description>
|
8755 |
<long-description><![CDATA[]]></long-description>
|
8756 |
+
<tag line="483" name="since" description="1.40"/>
|
8757 |
+
<tag line="483" name="param" description="True to display "Screen Options", false to suppress them" type="boolean" variable="$show_screen">
|
8758 |
<type by_reference="false">boolean</type>
|
8759 |
</tag>
|
8760 |
+
<tag line="483" name="param" description="Name of the page being loaded" type="string" variable="$this_screen">
|
8761 |
<type by_reference="false">string</type>
|
8762 |
</tag>
|
8763 |
+
<tag line="483" name="return" description="True to display "Screen Options", false to suppress them" type="boolean">
|
8764 |
<type by_reference="false">boolean</type>
|
8765 |
</tag>
|
8766 |
</docblock>
|
8767 |
+
<argument line="493">
|
8768 |
<name>$show_screen</name>
|
8769 |
<default><![CDATA[]]></default>
|
8770 |
<type/>
|
8771 |
</argument>
|
8772 |
+
<argument line="493">
|
8773 |
<name>$this_screen</name>
|
8774 |
<default><![CDATA[]]></default>
|
8775 |
<type/>
|
8776 |
</argument>
|
8777 |
</method>
|
8778 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="514" package="Media Library Assistant">
|
8779 |
<name>mla_set_screen_option_filter</name>
|
8780 |
<full_name>mla_set_screen_option_filter</full_name>
|
8781 |
+
<docblock line="503">
|
8782 |
<description><![CDATA[Save the "Views/Uploads per page" option set by this user]]></description>
|
8783 |
<long-description><![CDATA[]]></long-description>
|
8784 |
+
<tag line="503" name="since" description="1.40"/>
|
8785 |
+
<tag line="503" name="param" description="false or value returned by previous filter" type="mixed" variable="$status">
|
8786 |
<type by_reference="false">mixed</type>
|
8787 |
</tag>
|
8788 |
+
<tag line="503" name="param" description="Name of the option being changed" type="string" variable="$option">
|
8789 |
<type by_reference="false">string</type>
|
8790 |
</tag>
|
8791 |
+
<tag line="503" name="param" description="New value of the option" type="string" variable="$value">
|
8792 |
<type by_reference="false">string</type>
|
8793 |
</tag>
|
8794 |
+
<tag line="503" name="return" description="New value if this is our option, otherwise nothing" type="string|void">
|
8795 |
<type by_reference="false">string</type>
|
8796 |
<type by_reference="false">void</type>
|
8797 |
</tag>
|
8798 |
</docblock>
|
8799 |
+
<argument line="514">
|
8800 |
<name>$status</name>
|
8801 |
<default><![CDATA[]]></default>
|
8802 |
<type/>
|
8803 |
</argument>
|
8804 |
+
<argument line="514">
|
8805 |
<name>$option</name>
|
8806 |
<default><![CDATA[]]></default>
|
8807 |
<type/>
|
8808 |
</argument>
|
8809 |
+
<argument line="514">
|
8810 |
<name>$value</name>
|
8811 |
<default><![CDATA[]]></default>
|
8812 |
<type/>
|
8813 |
</argument>
|
8814 |
</method>
|
8815 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="531" package="Media Library Assistant">
|
8816 |
<name>mla_inline_edit_view_action</name>
|
8817 |
<full_name>mla_inline_edit_view_action</full_name>
|
8818 |
+
<docblock line="522">
|
8819 |
<description><![CDATA[Ajax handler for Post MIME Types inline editing (quick and bulk edit)]]></description>
|
8820 |
<long-description><![CDATA[<p>Adapted from wp_ajax_inline_save in /wp-admin/includes/ajax-actions.php</p>]]></long-description>
|
8821 |
+
<tag line="522" name="since" description="1.40"/>
|
8822 |
+
<tag line="522" name="return" description="echo HTML <tr> markup for updated row or error message, then die()" type="void">
|
8823 |
<type by_reference="false">void</type>
|
8824 |
</tag>
|
8825 |
</docblock>
|
8826 |
</method>
|
8827 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="574" package="Media Library Assistant">
|
8828 |
<name>mla_inline_edit_upload_action</name>
|
8829 |
<full_name>mla_inline_edit_upload_action</full_name>
|
8830 |
+
<docblock line="565">
|
8831 |
<description><![CDATA[Ajax handler for Upload MIME Types inline editing (quick and bulk edit)]]></description>
|
8832 |
<long-description><![CDATA[<p>Adapted from wp_ajax_inline_save in /wp-admin/includes/ajax-actions.php</p>]]></long-description>
|
8833 |
+
<tag line="565" name="since" description="1.40"/>
|
8834 |
+
<tag line="565" name="return" description="echo HTML <tr> markup for updated row or error message, then die()" type="void">
|
8835 |
<type by_reference="false">void</type>
|
8836 |
</tag>
|
8837 |
</docblock>
|
8838 |
</method>
|
8839 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="614" package="Media Library Assistant">
|
8840 |
<name>mla_add_plugin_settings_link_filter</name>
|
8841 |
<full_name>mla_add_plugin_settings_link_filter</full_name>
|
8842 |
+
<docblock line="604">
|
8843 |
<description><![CDATA[Add the "Settings" link to the MLA entry in the Plugins section]]></description>
|
8844 |
<long-description><![CDATA[]]></long-description>
|
8845 |
+
<tag line="604" name="since" description="0.1"/>
|
8846 |
+
<tag line="604" name="param" description="array of links for the Plugin, e.g., "Activate"" type="array" variable="$links">
|
8847 |
<type by_reference="false">array</type>
|
8848 |
</tag>
|
8849 |
+
<tag line="604" name="param" description="Directory and name of the plugin Index file" type="string" variable="$file">
|
8850 |
<type by_reference="false">string</type>
|
8851 |
</tag>
|
8852 |
+
<tag line="604" name="return" description="Updated array of links for the Plugin" type="array">
|
8853 |
<type by_reference="false">array</type>
|
8854 |
</tag>
|
8855 |
</docblock>
|
8856 |
+
<argument line="614">
|
8857 |
<name>$links</name>
|
8858 |
<default><![CDATA[]]></default>
|
8859 |
<type/>
|
8860 |
</argument>
|
8861 |
+
<argument line="614">
|
8862 |
<name>$file</name>
|
8863 |
<default><![CDATA[]]></default>
|
8864 |
<type/>
|
8865 |
</argument>
|
8866 |
</method>
|
8867 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="634" package="Media Library Assistant">
|
8868 |
<name>_update_option_row</name>
|
8869 |
<full_name>_update_option_row</full_name>
|
8870 |
+
<docblock line="623">
|
8871 |
<description><![CDATA[Update or delete a single MLA option value]]></description>
|
8872 |
<long-description><![CDATA[]]></long-description>
|
8873 |
+
<tag line="623" name="since" description="0.80"/>
|
8874 |
+
<tag line="623" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
|
8875 |
+
<tag line="623" name="param" description="HTML id/name attribute and option database key (OMIT MLA_OPTION_PREFIX)" type="string" variable="$key">
|
8876 |
<type by_reference="false">string</type>
|
8877 |
</tag>
|
8878 |
+
<tag line="623" name="param" description="Option parameters, e.g., 'type', 'std'" type="array" variable="$value">
|
8879 |
<type by_reference="false">array</type>
|
8880 |
</tag>
|
8881 |
+
<tag line="623" name="return" description="HTML markup for the option's table row" type="string">
|
8882 |
<type by_reference="false">string</type>
|
8883 |
</tag>
|
8884 |
</docblock>
|
8885 |
+
<argument line="634">
|
8886 |
<name>$key</name>
|
8887 |
<default><![CDATA[]]></default>
|
8888 |
<type/>
|
8889 |
</argument>
|
8890 |
+
<argument line="634">
|
8891 |
<name>$value</name>
|
8892 |
<default><![CDATA[]]></default>
|
8893 |
<type/>
|
8894 |
</argument>
|
8895 |
</method>
|
8896 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="714" package="Media Library Assistant">
|
8897 |
<name>_compose_option_row</name>
|
8898 |
<full_name>_compose_option_row</full_name>
|
8899 |
+
<docblock line="703">
|
8900 |
<description><![CDATA[Compose the table row for a single MLA option]]></description>
|
8901 |
<long-description><![CDATA[]]></long-description>
|
8902 |
+
<tag line="703" name="since" description="0.80"/>
|
8903 |
+
<tag line="703" name="uses" description="\global\$page_template_array" refers="\global\$page_template_array"/>
|
8904 |
+
<tag line="703" name="param" description="HTML id/name attribute and option database key (OMIT MLA_OPTION_PREFIX)" type="string" variable="$key">
|
8905 |
<type by_reference="false">string</type>
|
8906 |
</tag>
|
8907 |
+
<tag line="703" name="param" description="Option parameters, e.g., 'type', 'std'" type="array" variable="$value">
|
8908 |
<type by_reference="false">array</type>
|
8909 |
</tag>
|
8910 |
+
<tag line="703" name="return" description="HTML markup for the option's table row" type="string">
|
8911 |
<type by_reference="false">string</type>
|
8912 |
</tag>
|
8913 |
</docblock>
|
8914 |
+
<argument line="714">
|
8915 |
<name>$key</name>
|
8916 |
<default><![CDATA[]]></default>
|
8917 |
<type/>
|
8918 |
</argument>
|
8919 |
+
<argument line="714">
|
8920 |
<name>$value</name>
|
8921 |
<default><![CDATA[]]></default>
|
8922 |
<type/>
|
8923 |
</argument>
|
8924 |
</method>
|
8925 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="881" package="Media Library Assistant">
|
8926 |
<name>mla_localize_tablist</name>
|
8927 |
<full_name>mla_localize_tablist</full_name>
|
8928 |
+
<docblock line="871">
|
8929 |
<description><![CDATA[Localize $mla_option_definitions array]]></description>
|
8930 |
<long-description><![CDATA[<p>Localization must be done at runtime, and these calls cannot be placed
|
8931 |
in the "public static" array definition itself.</p>]]></long-description>
|
8932 |
+
<tag line="871" name="since" description="1.70"/>
|
8933 |
+
<tag line="871" name="return" description="" type="void">
|
8934 |
<type by_reference="false">void</type>
|
8935 |
</tag>
|
8936 |
</docblock>
|
8937 |
</method>
|
8938 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="905" package="Media Library Assistant">
|
8939 |
<name>mla_get_options_tablist</name>
|
8940 |
<full_name>mla_get_options_tablist</full_name>
|
8941 |
+
<docblock line="893">
|
8942 |
<description><![CDATA[Localize $mla_option_definitions array]]></description>
|
8943 |
<long-description><![CDATA[<p>Localization must be done at runtime, and these calls cannot be placed
|
8944 |
in the "public static" array definition itself.</p>]]></long-description>
|
8945 |
+
<tag line="893" name="since" description="1.82"/>
|
8946 |
+
<tag line="893" name="param" description="Tab slug, to retrieve a single entry" type="string" variable="$tab">
|
8947 |
<type by_reference="false">string</type>
|
8948 |
</tag>
|
8949 |
+
<tag line="893" name="return" description="The entire tablist ( $tab = NULL ), a single tab entry or false if not found/not allowed" type="array|false">
|
8950 |
<type by_reference="false">array</type>
|
8951 |
<type by_reference="false">false</type>
|
8952 |
</tag>
|
8953 |
</docblock>
|
8954 |
+
<argument line="905">
|
8955 |
<name>$tab</name>
|
8956 |
<default><![CDATA[NULL]]></default>
|
8957 |
<type/>
|
8958 |
</argument>
|
8959 |
</method>
|
8960 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="929" package="Media Library Assistant">
|
8961 |
<name>_compose_settings_tabs</name>
|
8962 |
<full_name>_compose_settings_tabs</full_name>
|
8963 |
+
<docblock line="919">
|
8964 |
<description><![CDATA[Compose the navigation tabs for the Settings subpage]]></description>
|
8965 |
<long-description><![CDATA[]]></long-description>
|
8966 |
+
<tag line="919" name="since" description="0.80"/>
|
8967 |
+
<tag line="919" name="uses" description="\global\$page_template_array" refers="\global\$page_template_array"/>
|
8968 |
+
<tag line="919" name="param" description="Optional data-tab-id value for the active tab, default 'general'" type="string" variable="$active_tab">
|
8969 |
<type by_reference="false">string</type>
|
8970 |
</tag>
|
8971 |
+
<tag line="919" name="return" description="HTML markup for the Settings subpage navigation tabs" type="string">
|
8972 |
<type by_reference="false">string</type>
|
8973 |
</tag>
|
8974 |
</docblock>
|
8975 |
+
<argument line="929">
|
8976 |
<name>$active_tab</name>
|
8977 |
<default><![CDATA['general']]></default>
|
8978 |
<type/>
|
8979 |
</argument>
|
8980 |
</method>
|
8981 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="955" package="Media Library Assistant">
|
8982 |
<name>_compose_general_tab</name>
|
8983 |
<full_name>_compose_general_tab</full_name>
|
8984 |
+
<docblock line="947">
|
8985 |
<description><![CDATA[Compose the General tab content for the Settings subpage]]></description>
|
8986 |
<long-description><![CDATA[]]></long-description>
|
8987 |
+
<tag line="947" name="since" description="0.80"/>
|
8988 |
+
<tag line="947" name="uses" description="\global\$page_template_array" refers="\global\$page_template_array"/>
|
8989 |
+
<tag line="947" name="return" description="'message' => status/error messages, 'body' => tab content" type="array">
|
8990 |
<type by_reference="false">array</type>
|
8991 |
</tag>
|
8992 |
</docblock>
|
8993 |
</method>
|
8994 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1105" package="Media Library Assistant">
|
8995 |
<name>_current_bulk_action</name>
|
8996 |
<full_name>_current_bulk_action</full_name>
|
8997 |
+
<docblock line="1098">
|
8998 |
<description><![CDATA[Get the current action selected from the bulk actions dropdown]]></description>
|
8999 |
<long-description><![CDATA[]]></long-description>
|
9000 |
+
<tag line="1098" name="since" description="1.40"/>
|
9001 |
+
<tag line="1098" name="return" description="The action name or False if no action was selected" type="string|false">
|
9002 |
<type by_reference="false">string</type>
|
9003 |
<type by_reference="false">false</type>
|
9004 |
</tag>
|
9005 |
</docblock>
|
9006 |
</method>
|
9007 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1137" package="Media Library Assistant">
|
9008 |
<name>_compose_edit_view_tab</name>
|
9009 |
<full_name>_compose_edit_view_tab</full_name>
|
9010 |
+
<docblock line="1127">
|
9011 |
<description><![CDATA[Compose the Edit View tab content for the Settings subpage]]></description>
|
9012 |
<long-description><![CDATA[]]></long-description>
|
9013 |
+
<tag line="1127" name="since" description="1.40"/>
|
9014 |
+
<tag line="1127" name="param" description="data values for the item" type="array" variable="$view">
|
9015 |
<type by_reference="false">array</type>
|
9016 |
</tag>
|
9017 |
+
<tag line="1127" name="param" description="Display template" type="string" variable="$template">
|
9018 |
<type by_reference="false">string</type>
|
9019 |
</tag>
|
9020 |
+
<tag line="1127" name="return" description="'message' => status/error messages, 'body' => tab content" type="array">
|
9021 |
<type by_reference="false">array</type>
|
9022 |
</tag>
|
9023 |
</docblock>
|
9024 |
+
<argument line="1137">
|
9025 |
<name>$view</name>
|
9026 |
<default><![CDATA[]]></default>
|
9027 |
<type/>
|
9028 |
</argument>
|
9029 |
+
<argument line="1137">
|
9030 |
<name>$template</name>
|
9031 |
<default><![CDATA[]]></default>
|
9032 |
<type/>
|
9033 |
</argument>
|
9034 |
</method>
|
9035 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1188" package="Media Library Assistant">
|
9036 |
<name>_compose_view_tab</name>
|
9037 |
<full_name>_compose_view_tab</full_name>
|
9038 |
+
<docblock line="1181">
|
9039 |
<description><![CDATA[Compose the Post MIME Type Views tab content for the Settings subpage]]></description>
|
9040 |
<long-description><![CDATA[]]></long-description>
|
9041 |
+
<tag line="1181" name="since" description="1.40"/>
|
9042 |
+
<tag line="1181" name="return" description="'message' => status/error messages, 'body' => tab content" type="array">
|
9043 |
<type by_reference="false">array</type>
|
9044 |
</tag>
|
9045 |
</docblock>
|
9046 |
</method>
|
9047 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1455" package="Media Library Assistant">
|
9048 |
<name>mla_get_icon_type_dropdown</name>
|
9049 |
<full_name>mla_get_icon_type_dropdown</full_name>
|
9050 |
+
<docblock line="1444">
|
9051 |
<description><![CDATA[Get an HTML select element representing a list of icon types]]></description>
|
9052 |
<long-description><![CDATA[]]></long-description>
|
9053 |
+
<tag line="1444" name="since" description="1.40"/>
|
9054 |
+
<tag line="1444" name="param" description="Display template array" type="array" variable="$templates">
|
9055 |
<type by_reference="false">array</type>
|
9056 |
</tag>
|
9057 |
+
<tag line="1444" name="param" description="HTML name attribute value" type="string" variable="$name">
|
9058 |
<type by_reference="false">string</type>
|
9059 |
</tag>
|
9060 |
+
<tag line="1444" name="param" description="currently selected Icon Type" type="string" variable="$selection">
|
9061 |
<type by_reference="false">string</type>
|
9062 |
</tag>
|
9063 |
+
<tag line="1444" name="return" description="HTML select element or empty string on failure." type="string">
|
9064 |
<type by_reference="false">string</type>
|
9065 |
</tag>
|
9066 |
</docblock>
|
9067 |
+
<argument line="1455">
|
9068 |
<name>$templates</name>
|
9069 |
<default><![CDATA[]]></default>
|
9070 |
<type/>
|
9071 |
</argument>
|
9072 |
+
<argument line="1455">
|
9073 |
<name>$name</name>
|
9074 |
<default><![CDATA[]]></default>
|
9075 |
<type/>
|
9076 |
</argument>
|
9077 |
+
<argument line="1455">
|
9078 |
<name>$selection</name>
|
9079 |
<default><![CDATA['.none.']]></default>
|
9080 |
<type/>
|
9081 |
</argument>
|
9082 |
</method>
|
9083 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1497" package="Media Library Assistant">
|
9084 |
<name>_compose_edit_upload_tab</name>
|
9085 |
<full_name>_compose_edit_upload_tab</full_name>
|
9086 |
+
<docblock line="1487">
|
9087 |
<description><![CDATA[Compose the Edit Upload type tab content for the Settings subpage]]></description>
|
9088 |
<long-description><![CDATA[]]></long-description>
|
9089 |
+
<tag line="1487" name="since" description="1.40"/>
|
9090 |
+
<tag line="1487" name="param" description="data values for the item" type="array" variable="$item">
|
9091 |
<type by_reference="false">array</type>
|
9092 |
</tag>
|
9093 |
+
<tag line="1487" name="param" description="Display template array" type="string" variable="$templates">
|
9094 |
<type by_reference="false">string</type>
|
9095 |
</tag>
|
9096 |
+
<tag line="1487" name="return" description="'message' => status/error messages, 'body' => tab content" type="array">
|
9097 |
<type by_reference="false">array</type>
|
9098 |
</tag>
|
9099 |
</docblock>
|
9100 |
+
<argument line="1497">
|
9101 |
<name>$item</name>
|
9102 |
<default><![CDATA[]]></default>
|
9103 |
<type/>
|
9104 |
</argument>
|
9105 |
+
<argument line="1497">
|
9106 |
<name>$templates</name>
|
9107 |
<default><![CDATA[]]></default>
|
9108 |
<type/>
|
9109 |
</argument>
|
9110 |
</method>
|
9111 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1545" package="Media Library Assistant">
|
9112 |
<name>_compose_optional_upload_tab</name>
|
9113 |
<full_name>_compose_optional_upload_tab</full_name>
|
9114 |
+
<docblock line="1536">
|
9115 |
<description><![CDATA[Compose the Optional File Upload MIME Types tab content for the Settings subpage]]></description>
|
9116 |
<long-description><![CDATA[]]></long-description>
|
9117 |
+
<tag line="1536" name="since" description="1.40"/>
|
9118 |
+
<tag line="1536" name="param" description="Display templates" type="string" variable="$page_template_array">
|
9119 |
<type by_reference="false">string</type>
|
9120 |
</tag>
|
9121 |
+
<tag line="1536" name="return" description="'message' => status/error messages, 'body' => tab content" type="array">
|
9122 |
<type by_reference="false">array</type>
|
9123 |
</tag>
|
9124 |
</docblock>
|
9125 |
+
<argument line="1545">
|
9126 |
<name>$page_template_array</name>
|
9127 |
<default><![CDATA[]]></default>
|
9128 |
<type/>
|
9129 |
</argument>
|
9130 |
</method>
|
9131 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1615" package="Media Library Assistant">
|
9132 |
<name>_process_optional_upload_mime</name>
|
9133 |
<full_name>_process_optional_upload_mime</full_name>
|
9134 |
+
<docblock line="1606">
|
9135 |
<description><![CDATA[Process an Optional Upload MIME Type selection]]></description>
|
9136 |
<long-description><![CDATA[]]></long-description>
|
9137 |
+
<tag line="1606" name="since" description="1.40"/>
|
9138 |
+
<tag line="1606" name="param" description="MLA Optional Upload MIME Type ID" type="\intger" variable="$ID">
|
9139 |
<type by_reference="false">\intger</type>
|
9140 |
</tag>
|
9141 |
+
<tag line="1606" name="return" description="'message' => status/error messages, 'body' => tab content" type="array">
|
9142 |
<type by_reference="false">array</type>
|
9143 |
</tag>
|
9144 |
</docblock>
|
9145 |
+
<argument line="1615">
|
9146 |
<name>$ID</name>
|
9147 |
<default><![CDATA[]]></default>
|
9148 |
<type/>
|
9149 |
</argument>
|
9150 |
</method>
|
9151 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1635" package="Media Library Assistant">
|
9152 |
<name>_compose_upload_tab</name>
|
9153 |
<full_name>_compose_upload_tab</full_name>
|
9154 |
+
<docblock line="1628">
|
9155 |
<description><![CDATA[Compose the File Upload MIME Types tab content for the Settings subpage]]></description>
|
9156 |
<long-description><![CDATA[]]></long-description>
|
9157 |
+
<tag line="1628" name="since" description="1.40"/>
|
9158 |
+
<tag line="1628" name="return" description="'message' => status/error messages, 'body' => tab content" type="array">
|
9159 |
<type by_reference="false">array</type>
|
9160 |
</tag>
|
9161 |
</docblock>
|
9162 |
</method>
|
9163 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1923" package="Media Library Assistant">
|
9164 |
<name>_compose_mla_gallery_tab</name>
|
9165 |
<full_name>_compose_mla_gallery_tab</full_name>
|
9166 |
+
<docblock line="1915">
|
9167 |
<description><![CDATA[Compose the MLA Gallery tab content for the Settings subpage]]></description>
|
9168 |
<long-description><![CDATA[]]></long-description>
|
9169 |
+
<tag line="1915" name="since" description="0.80"/>
|
9170 |
+
<tag line="1915" name="uses" description="\global\$page_template_array" refers="\global\$page_template_array"/>
|
9171 |
+
<tag line="1915" name="return" description="'message' => status/error messages, 'body' => tab content" type="array">
|
9172 |
<type by_reference="false">array</type>
|
9173 |
</tag>
|
9174 |
</docblock>
|
9175 |
</method>
|
9176 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2273" package="Media Library Assistant">
|
9177 |
<name>_compose_custom_field_tab</name>
|
9178 |
<full_name>_compose_custom_field_tab</full_name>
|
9179 |
+
<docblock line="2265">
|
9180 |
<description><![CDATA[Compose the Custom Field tab content for the Settings subpage]]></description>
|
9181 |
<long-description><![CDATA[]]></long-description>
|
9182 |
+
<tag line="2265" name="since" description="1.10"/>
|
9183 |
+
<tag line="2265" name="uses" description="\global\$page_template_array" refers="\global\$page_template_array"/>
|
9184 |
+
<tag line="2265" name="return" description="'message' => status/error messages, 'body' => tab content" type="array">
|
9185 |
<type by_reference="false">array</type>
|
9186 |
</tag>
|
9187 |
</docblock>
|
9188 |
</method>
|
9189 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2396" package="Media Library Assistant">
|
9190 |
<name>_compose_iptc_exif_tab</name>
|
9191 |
<full_name>_compose_iptc_exif_tab</full_name>
|
9192 |
+
<docblock line="2388">
|
9193 |
<description><![CDATA[Compose the IPTC/EXIF tab content for the Settings subpage]]></description>
|
9194 |
<long-description><![CDATA[]]></long-description>
|
9195 |
+
<tag line="2388" name="since" description="1.00"/>
|
9196 |
+
<tag line="2388" name="uses" description="\global\$page_template_array" refers="\global\$page_template_array"/>
|
9197 |
+
<tag line="2388" name="return" description="'message' => status/error messages, 'body' => tab content" type="array">
|
9198 |
<type by_reference="false">array</type>
|
9199 |
</tag>
|
9200 |
</docblock>
|
9201 |
</method>
|
9202 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2520" package="Media Library Assistant">
|
9203 |
<name>_compose_documentation_tab</name>
|
9204 |
<full_name>_compose_documentation_tab</full_name>
|
9205 |
+
<docblock line="2512">
|
9206 |
<description><![CDATA[Compose the Documentation tab content for the Settings subpage]]></description>
|
9207 |
<long-description><![CDATA[]]></long-description>
|
9208 |
+
<tag line="2512" name="since" description="0.80"/>
|
9209 |
+
<tag line="2512" name="uses" description="\global\$page_template_array" refers="\global\$page_template_array"/>
|
9210 |
+
<tag line="2512" name="return" description="'message' => status/error messages, 'body' => tab content" type="array">
|
9211 |
<type by_reference="false">array</type>
|
9212 |
</tag>
|
9213 |
</docblock>
|
9214 |
</method>
|
9215 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2540" package="Media Library Assistant">
|
9216 |
<name>mla_render_settings_page</name>
|
9217 |
<full_name>mla_render_settings_page</full_name>
|
9218 |
+
<docblock line="2533">
|
9219 |
<description><![CDATA[Render (echo) the "Media Library Assistant" subpage in the Settings section]]></description>
|
9220 |
<long-description><![CDATA[]]></long-description>
|
9221 |
+
<tag line="2533" name="since" description="0.1"/>
|
9222 |
+
<tag line="2533" name="return" description="Echoes HTML markup for the Settings subpage" type="void">
|
9223 |
<type by_reference="false">void</type>
|
9224 |
</tag>
|
9225 |
</docblock>
|
9226 |
</method>
|
9227 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2603" package="Media Library Assistant">
|
9228 |
<name>_save_gallery_settings</name>
|
9229 |
<full_name>_save_gallery_settings</full_name>
|
9230 |
+
<docblock line="2594">
|
9231 |
<description><![CDATA[Save MLA Gallery settings to the options table]]></description>
|
9232 |
<long-description><![CDATA[]]></long-description>
|
9233 |
+
<tag line="2594" name="since" description="0.80"/>
|
9234 |
+
<tag line="2594" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
|
9235 |
+
<tag line="2594" name="return" description="Message(s) reflecting the results of the operation" type="array">
|
9236 |
<type by_reference="false">array</type>
|
9237 |
</tag>
|
9238 |
</docblock>
|
9239 |
</method>
|
9240 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2870" package="Media Library Assistant">
|
9241 |
<name>_save_view_settings</name>
|
9242 |
<full_name>_save_view_settings</full_name>
|
9243 |
+
<docblock line="2861">
|
9244 |
<description><![CDATA[Save View settings to the options table]]></description>
|
9245 |
<long-description><![CDATA[]]></long-description>
|
9246 |
+
<tag line="2861" name="since" description="1.40"/>
|
9247 |
+
<tag line="2861" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
|
9248 |
+
<tag line="2861" name="return" description="Message(s) reflecting the results of the operation" type="array">
|
9249 |
<type by_reference="false">array</type>
|
9250 |
</tag>
|
9251 |
</docblock>
|
9252 |
</method>
|
9253 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2901" package="Media Library Assistant">
|
9254 |
<name>_save_upload_settings</name>
|
9255 |
<full_name>_save_upload_settings</full_name>
|
9256 |
+
<docblock line="2892">
|
9257 |
<description><![CDATA[Save Upload settings to the options table]]></description>
|
9258 |
<long-description><![CDATA[]]></long-description>
|
9259 |
+
<tag line="2892" name="since" description="1.40"/>
|
9260 |
+
<tag line="2892" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
|
9261 |
+
<tag line="2892" name="return" description="Message(s) reflecting the results of the operation" type="array">
|
9262 |
<type by_reference="false">array</type>
|
9263 |
</tag>
|
9264 |
</docblock>
|
9265 |
</method>
|
9266 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2937" package="Media Library Assistant">
|
9267 |
<name>_process_custom_field_mapping</name>
|
9268 |
<full_name>_process_custom_field_mapping</full_name>
|
9269 |
+
<docblock line="2926">
|
9270 |
<description><![CDATA[Process custom field settings against all image attachments
|
9271 |
without saving the settings to the mla_option]]></description>
|
9272 |
<long-description><![CDATA[]]></long-description>
|
9273 |
+
<tag line="2926" name="since" description="1.10"/>
|
9274 |
+
<tag line="2926" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
|
9275 |
+
<tag line="2926" name="param" description="| NULL specific custom_field_mapping values" type="array" variable="$settings">
|
9276 |
<type by_reference="false">array</type>
|
9277 |
</tag>
|
9278 |
+
<tag line="2926" name="return" description="Message(s) reflecting the results of the operation" type="array">
|
9279 |
<type by_reference="false">array</type>
|
9280 |
</tag>
|
9281 |
</docblock>
|
9282 |
+
<argument line="2937">
|
9283 |
<name>$settings</name>
|
9284 |
<default><![CDATA[NULL]]></default>
|
9285 |
<type/>
|
9286 |
</argument>
|
9287 |
</method>
|
9288 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3001" package="Media Library Assistant">
|
9289 |
<name>_delete_custom_field</name>
|
9290 |
<full_name>_delete_custom_field</full_name>
|
9291 |
+
<docblock line="2992">
|
9292 |
<description><![CDATA[Delete a custom field from the wp_postmeta table]]></description>
|
9293 |
<long-description><![CDATA[]]></long-description>
|
9294 |
+
<tag line="2992" name="since" description="1.10"/>
|
9295 |
+
<tag line="2992" name="param" description="specific custom_field_mapping rule" type="array" variable="$value">
|
9296 |
<type by_reference="false">array</type>
|
9297 |
</tag>
|
9298 |
+
<tag line="2992" name="return" description="Message(s) reflecting the results of the operation" type="array">
|
9299 |
<type by_reference="false">array</type>
|
9300 |
</tag>
|
9301 |
</docblock>
|
9302 |
+
<argument line="3001">
|
9303 |
<name>$value</name>
|
9304 |
<default><![CDATA[]]></default>
|
9305 |
<type/>
|
9306 |
</argument>
|
9307 |
</method>
|
9308 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3028" package="Media Library Assistant">
|
9309 |
<name>_save_custom_field_settings</name>
|
9310 |
<full_name>_save_custom_field_settings</full_name>
|
9311 |
+
<docblock line="3018">
|
9312 |
<description><![CDATA[Save custom field settings to the options table]]></description>
|
9313 |
<long-description><![CDATA[]]></long-description>
|
9314 |
+
<tag line="3018" name="since" description="1.10"/>
|
9315 |
+
<tag line="3018" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
|
9316 |
+
<tag line="3018" name="param" description="| NULL specific custom_field_mapping values" type="array" variable="$new_values">
|
9317 |
<type by_reference="false">array</type>
|
9318 |
</tag>
|
9319 |
+
<tag line="3018" name="return" description="Message(s) reflecting the results of the operation" type="array">
|
9320 |
<type by_reference="false">array</type>
|
9321 |
</tag>
|
9322 |
</docblock>
|
9323 |
+
<argument line="3028">
|
9324 |
<name>$new_values</name>
|
9325 |
<default><![CDATA[NULL]]></default>
|
9326 |
<type/>
|
9327 |
</argument>
|
9328 |
</method>
|
9329 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3069" package="Media Library Assistant">
|
9330 |
<name>_process_iptc_exif_standard</name>
|
9331 |
<full_name>_process_iptc_exif_standard</full_name>
|
9332 |
+
<docblock line="3059">
|
9333 |
<description><![CDATA[Process IPTC/EXIF standard field settings against all image attachments
|
9334 |
without saving the settings to the mla_option]]></description>
|
9335 |
<long-description><![CDATA[]]></long-description>
|
9336 |
+
<tag line="3059" name="since" description="1.00"/>
|
9337 |
+
<tag line="3059" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
|
9338 |
+
<tag line="3059" name="return" description="Message(s) reflecting the results of the operation" type="array">
|
9339 |
<type by_reference="false">array</type>
|
9340 |
</tag>
|
9341 |
</docblock>
|
9342 |
</method>
|
9343 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3129" package="Media Library Assistant">
|
9344 |
<name>_process_iptc_exif_taxonomy</name>
|
9345 |
<full_name>_process_iptc_exif_taxonomy</full_name>
|
9346 |
+
<docblock line="3119">
|
9347 |
<description><![CDATA[Process IPTC/EXIF taxonomy term settings against all image attachments
|
9348 |
without saving the settings to the mla_option]]></description>
|
9349 |
<long-description><![CDATA[]]></long-description>
|
9350 |
+
<tag line="3119" name="since" description="1.00"/>
|
9351 |
+
<tag line="3119" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
|
9352 |
+
<tag line="3119" name="return" description="Message(s) reflecting the results of the operation" type="array">
|
9353 |
<type by_reference="false">array</type>
|
9354 |
</tag>
|
9355 |
</docblock>
|
9356 |
</method>
|
9357 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3191" package="Media Library Assistant">
|
9358 |
<name>_process_iptc_exif_custom</name>
|
9359 |
<full_name>_process_iptc_exif_custom</full_name>
|
9360 |
+
<docblock line="3179">
|
9361 |
<description><![CDATA[Process IPTC/EXIF custom field settings against all image attachments
|
9362 |
without saving the settings to the mla_option]]></description>
|
9363 |
<long-description><![CDATA[]]></long-description>
|
9364 |
+
<tag line="3179" name="since" description="1.00"/>
|
9365 |
+
<tag line="3179" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
|
9366 |
+
<tag line="3179" name="param" description="| NULL specific iptc_exif_custom_mapping values" type="array" variable="$settings">
|
9367 |
<type by_reference="false">array</type>
|
9368 |
</tag>
|
9369 |
+
<tag line="3179" name="return" description="Message(s) reflecting the results of the operation" type="array">
|
9370 |
<type by_reference="false">array</type>
|
9371 |
</tag>
|
9372 |
</docblock>
|
9373 |
+
<argument line="3191">
|
9374 |
<name>$settings</name>
|
9375 |
<default><![CDATA[NULL]]></default>
|
9376 |
<type/>
|
9377 |
</argument>
|
9378 |
</method>
|
9379 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3263" package="Media Library Assistant">
|
9380 |
<name>_save_iptc_exif_custom_settings</name>
|
9381 |
<full_name>_save_iptc_exif_custom_settings</full_name>
|
9382 |
+
<docblock line="3254">
|
9383 |
<description><![CDATA[Save IPTC/EXIF custom field settings to the options table]]></description>
|
9384 |
<long-description><![CDATA[]]></long-description>
|
9385 |
+
<tag line="3254" name="since" description="1.30"/>
|
9386 |
+
<tag line="3254" name="param" description="specific iptc_exif_custom_mapping values" type="array" variable="$new_values">
|
9387 |
<type by_reference="false">array</type>
|
9388 |
</tag>
|
9389 |
+
<tag line="3254" name="return" description="Message(s) reflecting the results of the operation" type="array">
|
9390 |
<type by_reference="false">array</type>
|
9391 |
</tag>
|
9392 |
</docblock>
|
9393 |
+
<argument line="3263">
|
9394 |
<name>$new_values</name>
|
9395 |
<default><![CDATA[]]></default>
|
9396 |
<type/>
|
9397 |
</argument>
|
9398 |
</method>
|
9399 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3279" package="Media Library Assistant">
|
9400 |
<name>_save_iptc_exif_settings</name>
|
9401 |
<full_name>_save_iptc_exif_settings</full_name>
|
9402 |
+
<docblock line="3270">
|
9403 |
<description><![CDATA[Save IPTC/EXIF settings to the options table]]></description>
|
9404 |
<long-description><![CDATA[]]></long-description>
|
9405 |
+
<tag line="3270" name="since" description="1.00"/>
|
9406 |
+
<tag line="3270" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
|
9407 |
+
<tag line="3270" name="return" description="Message(s) reflecting the results of the operation" type="array">
|
9408 |
<type by_reference="false">array</type>
|
9409 |
</tag>
|
9410 |
</docblock>
|
9411 |
</method>
|
9412 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3317" package="Media Library Assistant">
|
9413 |
<name>_save_general_settings</name>
|
9414 |
<full_name>_save_general_settings</full_name>
|
9415 |
+
<docblock line="3308">
|
9416 |
<description><![CDATA[Save General settings to the options table]]></description>
|
9417 |
<long-description><![CDATA[]]></long-description>
|
9418 |
+
<tag line="3308" name="since" description="0.1"/>
|
9419 |
+
<tag line="3308" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
|
9420 |
+
<tag line="3308" name="return" description="Message(s) reflecting the results of the operation" type="array">
|
9421 |
<type by_reference="false">array</type>
|
9422 |
</tag>
|
9423 |
</docblock>
|
9424 |
</method>
|
9425 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3404" package="Media Library Assistant">
|
9426 |
<name>_reset_general_settings</name>
|
9427 |
<full_name>_reset_general_settings</full_name>
|
9428 |
+
<docblock line="3397">
|
9429 |
<description><![CDATA[Delete saved settings, restoring default values]]></description>
|
9430 |
<long-description><![CDATA[]]></long-description>
|
9431 |
+
<tag line="3397" name="since" description="0.1"/>
|
9432 |
+
<tag line="3397" name="return" description="Message(s) reflecting the results of the operation" type="array">
|
9433 |
<type by_reference="false">array</type>
|
9434 |
</tag>
|
9435 |
</docblock>
|
9436 |
</method>
|
9437 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3443" package="Media Library Assistant">
|
9438 |
<name>_compose_import_settings</name>
|
9439 |
<full_name>_compose_import_settings</full_name>
|
9440 |
+
<docblock line="3436">
|
9441 |
<description><![CDATA[Compose HTML markup for the import settings if any settings files exist]]></description>
|
9442 |
<long-description><![CDATA[]]></long-description>
|
9443 |
+
<tag line="3436" name="since" description="1.50"/>
|
9444 |
+
<tag line="3436" name="return" description="HTML markup for the Import All Settings button and dropdown list, if any" type="string">
|
9445 |
<type by_reference="false">string</type>
|
9446 |
</tag>
|
9447 |
</docblock>
|
9448 |
</method>
|
9449 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3498" package="Media Library Assistant">
|
9450 |
<name>_export_settings</name>
|
9451 |
<full_name>_export_settings</full_name>
|
9452 |
+
<docblock line="3489">
|
9453 |
<description><![CDATA[Serialize option settings and write them to a file]]></description>
|
9454 |
<long-description><![CDATA[<p>Options with a default value, i.e., not stored in the database are NOT written to the file.</p>]]></long-description>
|
9455 |
+
<tag line="3489" name="since" description="1.50"/>
|
9456 |
+
<tag line="3489" name="return" description="Message(s) reflecting the results of the operation" type="array">
|
9457 |
<type by_reference="false">array</type>
|
9458 |
</tag>
|
9459 |
</docblock>
|
9460 |
</method>
|
9461 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3585" package="Media Library Assistant">
|
9462 |
<name>_import_settings</name>
|
9463 |
<full_name>_import_settings</full_name>
|
9464 |
+
<docblock line="3578">
|
9465 |
<description><![CDATA[Read a serialized file of option settings and write them to the database]]></description>
|
9466 |
<long-description><![CDATA[]]></long-description>
|
9467 |
+
<tag line="3578" name="since" description="1.50"/>
|
9468 |
+
<tag line="3578" name="return" description="Message(s) reflecting the results of the operation" type="array">
|
9469 |
<type by_reference="false">array</type>
|
9470 |
</tag>
|
9471 |
</docblock>
|
9472 |
</method>
|
9473 |
</class>
|
9474 |
</file>
|
9475 |
+
<file path="includes\class-mla-shortcodes.php" hash="d7d485ef9aaf106a5d1957f49ced8fc0" package="Media Library Assistant">
|
9476 |
<docblock line="2">
|
9477 |
<description><![CDATA[Media Library Assistant Shortcode handler(s)]]></description>
|
9478 |
<long-description><![CDATA[]]></long-description>
|
9554 |
</tag>
|
9555 |
</docblock>
|
9556 |
</property>
|
9557 |
+
<property final="false" static="true" visibility="private" line="3111" namespace="global" package="Media Library Assistant">
|
9558 |
<name>$mla_get_terms_parameters</name>
|
9559 |
<default><![CDATA[array('taxonomy' => 'post_tag', 'post_mime_type' => 'all', 'post_type' => 'attachment', 'post_status' => 'inherit', 'ids' => array(), 'fields' => 't.term_id, t.name, t.slug, t.term_group, tt.term_taxonomy_id, tt.taxonomy, tt.description, tt.parent, COUNT(p.ID) AS `count`', 'include' => '', 'exclude' => '', 'parent' => '', 'minimum' => 0, 'no_count' => false, 'number' => 0, 'orderby' => 'name', 'order' => 'ASC', 'no_orderby' => false, 'preserve_case' => false, 'pad_counts' => false, 'limit' => 0, 'offset' => 0)]]></default>
|
9560 |
+
<docblock line="3104">
|
9561 |
<description><![CDATA[Data selection parameters for [mla_tag_cloud]]]></description>
|
9562 |
<long-description><![CDATA[]]></long-description>
|
9563 |
+
<tag line="3104" name="since" description="1.60"/>
|
9564 |
+
<tag line="3104" name="var" description="" type="array">
|
9565 |
<type by_reference="false">array</type>
|
9566 |
</tag>
|
9567 |
</docblock>
|
9891 |
<type/>
|
9892 |
</argument>
|
9893 |
</method>
|
9894 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2982" package="Media Library Assistant">
|
9895 |
<name>mla_shortcode_query_posts_join_filter</name>
|
9896 |
<full_name>mla_shortcode_query_posts_join_filter</full_name>
|
9897 |
+
<docblock line="2971">
|
9898 |
<description><![CDATA[Filters the JOIN clause for shortcode queries]]></description>
|
9899 |
<long-description><![CDATA[<p>Defined as public because it's a filter.</p>]]></long-description>
|
9900 |
+
<tag line="2971" name="since" description="1.90"/>
|
9901 |
+
<tag line="2971" name="param" description="query clause before modification" type="string" variable="$join_clause">
|
9902 |
<type by_reference="false">string</type>
|
9903 |
</tag>
|
9904 |
+
<tag line="2971" name="return" description="query clause after item modification" type="string">
|
9905 |
<type by_reference="false">string</type>
|
9906 |
</tag>
|
9907 |
</docblock>
|
9908 |
+
<argument line="2982">
|
9909 |
<name>$join_clause</name>
|
9910 |
<default><![CDATA[]]></default>
|
9911 |
<type/>
|
9912 |
</argument>
|
9913 |
</method>
|
9914 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="3011" package="Media Library Assistant">
|
9915 |
<name>mla_shortcode_query_posts_where_filter</name>
|
9916 |
<full_name>mla_shortcode_query_posts_where_filter</full_name>
|
9917 |
+
<docblock line="2997">
|
9918 |
<description><![CDATA[Filters the WHERE clause for shortcode queries]]></description>
|
9919 |
<long-description><![CDATA[<p>Captures debug information. Adds whitespace to the post_type = 'attachment'
|
9920 |
phrase to circumvent subsequent Role Scoper modification of the clause.
|
9921 |
Handles post_parent "any" and "none" cases.
|
9922 |
Defined as public because it's a filter.</p>]]></long-description>
|
9923 |
+
<tag line="2997" name="since" description="0.70"/>
|
9924 |
+
<tag line="2997" name="param" description="query clause before modification" type="string" variable="$where_clause">
|
9925 |
<type by_reference="false">string</type>
|
9926 |
</tag>
|
9927 |
+
<tag line="2997" name="return" description="query clause after modification" type="string">
|
9928 |
<type by_reference="false">string</type>
|
9929 |
</tag>
|
9930 |
</docblock>
|
9931 |
+
<argument line="3011">
|
9932 |
<name>$where_clause</name>
|
9933 |
<default><![CDATA[]]></default>
|
9934 |
<type/>
|
9935 |
</argument>
|
9936 |
</method>
|
9937 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="3053" package="Media Library Assistant">
|
9938 |
<name>mla_shortcode_query_posts_orderby_filter</name>
|
9939 |
<full_name>mla_shortcode_query_posts_orderby_filter</full_name>
|
9940 |
+
<docblock line="3041">
|
9941 |
<description><![CDATA[Filters the ORDERBY clause for shortcode queries]]></description>
|
9942 |
<long-description><![CDATA[<p>This is an enhanced version of the code found in wp-includes/query.php, function get_posts.
|
9943 |
Defined as public because it's a filter.</p>]]></long-description>
|
9944 |
+
<tag line="3041" name="since" description="1.20"/>
|
9945 |
+
<tag line="3041" name="param" description="query clause before modification" type="string" variable="$orderby_clause">
|
9946 |
<type by_reference="false">string</type>
|
9947 |
</tag>
|
9948 |
+
<tag line="3041" name="return" description="query clause after modification" type="string">
|
9949 |
<type by_reference="false">string</type>
|
9950 |
</tag>
|
9951 |
</docblock>
|
9952 |
+
<argument line="3053">
|
9953 |
<name>$orderby_clause</name>
|
9954 |
<default><![CDATA[]]></default>
|
9955 |
<type/>
|
9956 |
</argument>
|
9957 |
</method>
|
9958 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="3080" package="Media Library Assistant">
|
9959 |
<name>mla_shortcode_query_posts_clauses_filter</name>
|
9960 |
<full_name>mla_shortcode_query_posts_clauses_filter</full_name>
|
9961 |
+
<docblock line="3068">
|
9962 |
<description><![CDATA[Filters all clauses for shortcode queries, pre caching plugins]]></description>
|
9963 |
<long-description><![CDATA[<p>This is for debug purposes only.
|
9964 |
Defined as public because it's a filter.</p>]]></long-description>
|
9965 |
+
<tag line="3068" name="since" description="1.30"/>
|
9966 |
+
<tag line="3068" name="param" description="query clauses before modification" type="array" variable="$pieces">
|
9967 |
<type by_reference="false">array</type>
|
9968 |
</tag>
|
9969 |
+
<tag line="3068" name="return" description="query clauses after modification (none)" type="array">
|
9970 |
<type by_reference="false">array</type>
|
9971 |
</tag>
|
9972 |
</docblock>
|
9973 |
+
<argument line="3080">
|
9974 |
<name>$pieces</name>
|
9975 |
<default><![CDATA[]]></default>
|
9976 |
<type/>
|
9977 |
</argument>
|
9978 |
</method>
|
9979 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="3098" package="Media Library Assistant">
|
9980 |
<name>mla_shortcode_query_posts_clauses_request_filter</name>
|
9981 |
<full_name>mla_shortcode_query_posts_clauses_request_filter</full_name>
|
9982 |
+
<docblock line="3086">
|
9983 |
<description><![CDATA[Filters all clauses for shortcode queries, post caching plugins]]></description>
|
9984 |
<long-description><![CDATA[<p>This is for debug purposes only.
|
9985 |
Defined as public because it's a filter.</p>]]></long-description>
|
9986 |
+
<tag line="3086" name="since" description="1.30"/>
|
9987 |
+
<tag line="3086" name="param" description="query clauses before modification" type="array" variable="$pieces">
|
9988 |
<type by_reference="false">array</type>
|
9989 |
</tag>
|
9990 |
+
<tag line="3086" name="return" description="query clauses after modification (none)" type="array">
|
9991 |
<type by_reference="false">array</type>
|
9992 |
</tag>
|
9993 |
</docblock>
|
9994 |
+
<argument line="3098">
|
9995 |
<name>$pieces</name>
|
9996 |
<default><![CDATA[]]></default>
|
9997 |
<type/>
|
9998 |
</argument>
|
9999 |
</method>
|
10000 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="3186" package="Media Library Assistant">
|
10001 |
<name>mla_get_terms</name>
|
10002 |
<full_name>mla_get_terms</full_name>
|
10003 |
+
<docblock line="3134">
|
10004 |
<description><![CDATA[Retrieve the terms in one or more taxonomies.]]></description>
|
10005 |
<long-description><![CDATA[<p>Alternative to WordPress get_terms() function that provides
|
10006 |
an accurate count of attachments associated with each term.</p>
|
10044 |
<p>limit - final number of term objects to return, for pagination. Default 0.</p>
|
10045 |
|
10046 |
<p>offset - number of term objects to skip, for pagination. Default 0.</p>]]></long-description>
|
10047 |
+
<tag line="3134" name="since" description="1.60"/>
|
10048 |
+
<tag line="3134" name="param" description="taxonomies to search and query parameters" type="array" variable="$attr">
|
10049 |
<type by_reference="false">array</type>
|
10050 |
</tag>
|
10051 |
+
<tag line="3134" name="return" description="array of term objects, empty if none found" type="array">
|
10052 |
<type by_reference="false">array</type>
|
10053 |
</tag>
|
10054 |
</docblock>
|
10055 |
+
<argument line="3186">
|
10056 |
<name>$attr</name>
|
10057 |
<default><![CDATA[]]></default>
|
10058 |
<type/>
|
10059 |
</argument>
|
10060 |
</method>
|
10061 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3493" package="Media Library Assistant">
|
10062 |
<name>_pad_term_counts</name>
|
10063 |
<full_name>_pad_term_counts</full_name>
|
10064 |
+
<docblock line="3479">
|
10065 |
<description><![CDATA[Add count of children to parent count.]]></description>
|
10066 |
<long-description><![CDATA[<p>Recalculates term counts by including items from child terms. Assumes all
|
10067 |
relevant children are already in the $terms argument.</p>]]></long-description>
|
10068 |
+
<tag line="3479" name="since" description="1.90"/>
|
10069 |
+
<tag line="3479" name="param" description="Array of Term objects, by reference" type="array" variable="$terms">
|
10070 |
<type by_reference="false">array</type>
|
10071 |
</tag>
|
10072 |
+
<tag line="3479" name="param" description="Term Context" type="string" variable="$taxonomy">
|
10073 |
<type by_reference="false">string</type>
|
10074 |
</tag>
|
10075 |
+
<tag line="3479" name="param" description="Qualifying post type value(s)" type="array" variable="$post_types">
|
10076 |
<type by_reference="false">array</type>
|
10077 |
</tag>
|
10078 |
+
<tag line="3479" name="param" description="Qualifying post status value(s)" type="array" variable="$post_stati">
|
10079 |
<type by_reference="false">array</type>
|
10080 |
</tag>
|
10081 |
+
<tag line="3479" name="return" description="Will break from function if conditions are not met." type="null">
|
10082 |
<type by_reference="false">null</type>
|
10083 |
</tag>
|
10084 |
</docblock>
|
10085 |
+
<argument line="3493">
|
10086 |
<name>$terms</name>
|
10087 |
<default><![CDATA[]]></default>
|
10088 |
<type/>
|
10089 |
</argument>
|
10090 |
+
<argument line="3493">
|
10091 |
<name>$taxonomy</name>
|
10092 |
<default><![CDATA[]]></default>
|
10093 |
<type/>
|
10094 |
</argument>
|
10095 |
+
<argument line="3493">
|
10096 |
<name>$post_types</name>
|
10097 |
<default><![CDATA[NULL]]></default>
|
10098 |
<type/>
|
10099 |
</argument>
|
10100 |
+
<argument line="3493">
|
10101 |
<name>$post_stati</name>
|
10102 |
<default><![CDATA[NULL]]></default>
|
10103 |
<type/>
|
11730 |
</method>
|
11731 |
</class>
|
11732 |
</file>
|
11733 |
+
<file path="includes\mla-main-search-box-template.php" hash="5c9b1f07eb5744e5ee4f2af76c7851cd" package="Media Library Assistant">
|
11734 |
<docblock line="2">
|
11735 |
<description><![CDATA[PHP "template" for Media/Assistant submenu table Search Media box]]></description>
|
11736 |
<long-description><![CDATA[]]></long-description>
|
11815 |
</docblock>
|
11816 |
</function>
|
11817 |
</file>
|
11818 |
+
<file path="index.php" hash="d38f0d36224adec106cd8f3e2eb108f5" package="Media Library Assistant">
|
11819 |
<docblock line="2">
|
11820 |
<description><![CDATA[Provides several enhancements to the handling of images and files held in the WordPress Media Library]]></description>
|
11821 |
<long-description><![CDATA[<p>This file contains several tests for name conflicts with other plugins. Only if the tests are passed
|
11822 |
will the rest of the plugin be loaded and run.</p>]]></long-description>
|
11823 |
<tag line="2" name="package" description="Media Library Assistant"/>
|
11824 |
+
<tag line="2" name="version" description="1.91"/>
|
11825 |
</docblock>
|
11826 |
<include line="148" type="Require Once" package="Media Library Assistant">
|
11827 |
<name>includes/mla-plugin-loader.php</name>
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: dglingren
|
|
3 |
Donate link: http://fairtradejudaica.org/make-a-difference/donate/
|
4 |
Tags: attachment, attachments, documents, gallery, image, images, media, library, media library, tag cloud, media-tags, media tags, tags, media categories, categories, IPTC, EXIF, GPS, PDF, meta, metadata, photo, photos, photograph, photographs, photoblog, photo albums, lightroom, photoshop, MIME, mime-type, icon, upload, file extensions
|
5 |
Requires at least: 3.3
|
6 |
-
Tested up to:
|
7 |
-
Stable tag: 1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -152,6 +152,23 @@ All of the MLA source code has been annotated with "DocBlocks", a special type o
|
|
152 |
|
153 |
== Changelog ==
|
154 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
155 |
= 1.90 =
|
156 |
|
157 |
* New: On the Media/Assistant submenu and Media Manager Modal Window, a **new "Terms Search" popup filter** lets you filter the display by terms whose name contains the keywords and phrases entered in the search box. See the [Other Notes section](http://wordpress.org/extend/plugins/media-library-assistant/other_notes/ "Click here, then scroll down") section for more details.
|
@@ -173,61 +190,11 @@ All of the MLA source code has been annotated with "DocBlocks", a special type o
|
|
173 |
* Fix: For `[mla_gallery]`, the `mla_rollover_text=` parameter has been restored. WordPress 3.7 removed the `title=` attribute from its attachment links, which disabled `mla_rollover_text=` as well.
|
174 |
* Fix: For `[mla_tag_cloud]`, the `number` parameter default is now zero, agreeing with the Documentation.
|
175 |
|
176 |
-
= 1.83 =
|
177 |
-
*
|
178 |
-
*
|
179 |
-
*
|
180 |
-
*
|
181 |
-
|
182 |
-
= 1.82 =
|
183 |
-
* New: A **"Select Parent" popup window** has been added to the Media/Assistant submenu table "Attached To" column, the Quick Edit area and the Media/Edit Media "Parent Information" meta box. You can select a parent from a list of posts/pages, search for parent candidates by keyword(s), and select "(Unattached)" to set the post_parent ID to zero. See the [Other Notes section](http://wordpress.org/extend/plugins/media-library-assistant/other_notes/ "Click here, then scroll down") section for more details.
|
184 |
-
* New: For `[mla_gallery]`, **SVG image files** are rendered appropriately for all registered image sizes. Note that browser support for SVG images is also required.
|
185 |
-
* New: Thumbnail support for **SVG image files** in the Media/Assistant submenu table.
|
186 |
-
* New: A new **mla_get_options_tablist filter** allows you to filter the tabs in the Settings/Media Linrary Assistant submenu. An example added to the added to the MLA Mapping Hooks Example plugin (in the /examples directory) shows how to use the filter to remove a tab from the submenu.
|
187 |
-
* New: **Clickable term lists example** added to the MLA Gallery Hooks Example plugin in the /examples directory.
|
188 |
-
* New: **Formatted file size example** added to the MLA Gallery Hooks Example plugin in the /examples directory.
|
189 |
-
* New: A **"latest images"** page template has been added to the **Mla Child Theme** in the /examples directory.
|
190 |
-
* New: For custom fields ( "custom:" prefix) in `[mla_gallery]` and `[mla_tag_cloud]`, the new ",raw" option lets you return HTML tags for display in the gallery/cloud results.
|
191 |
-
* Fix: IPTC/EXIF mapping rules for taxonomies that no longer exist are now removed when you click "Save Changes" on the Settings/Media Library Assistant IPTC/EXIF tab. This resolves a PHP Fatal Error when the mapping rules are applied.
|
192 |
-
* Fix: The default Media link when Media/Assistant is the default Media submenu has been changed from "admin.php" to "upload.php". This resolves a problem with the WP Document Revisions plugin and its filtering of Document post type attachments.
|
193 |
-
* Fix: For `[mla_gallery]`, the `mla_style=theme` setting will default to "false" for themes that support HTML5.
|
194 |
-
|
195 |
-
= 1.81 =
|
196 |
-
* Important Fix: A **serious defect in the Media Libarary Modal Window has been corrected.** The defect caused drag & drop file uploading to fail under many circumstances.
|
197 |
-
* New: For `[mla_tag_cloud]`, **the "ids" parameter has been added** to support item-specific term clouds, i.e., a cloud containing only those terms assigned to one (or more) items.
|
198 |
-
* New: A **"single image with tag list"** page template has been added to the **Mla Child Theme** in the /examples directory.
|
199 |
-
* Fix: A Load Text Domain function has been added to the /examples/twentytwelve-mla child theme.
|
200 |
-
* Fix: If the Settings/Media Library Assistant General tab "Page Title" and/or "Menu Title" fields are empty, the default values are now used, including translated values if applicable.
|
201 |
-
* Fix: Failure to load translation file from the /plugins/media-library-assistant/languages directory has been fixed. Note that the translation file must include the plugin slug, e.g., media-library-assistant-en_US.mo
|
202 |
-
* Fix: PHP (5.4.x) Strict Standards warning for MLAData::mla_get_attachment_by_id() has been resolved.
|
203 |
-
* Fix: For `[mla_gallery]`, `$wp_filter` debug display with `mla_debug=true` is more reliable.
|
204 |
-
|
205 |
-
= 1.80 =
|
206 |
-
* New: For the Media Manager Modal Window, **Native support for "checkbox-style" and "tag hint-style" taxonomy meta boxes** is available. See the [Other Notes section](http://wordpress.org/extend/plugins/media-library-assistant/other_notes/ "Click here, then scroll down") section for more details.
|
207 |
-
* New: **For flat taxonomies**, e.g., "Tags" or "Att. Tags", **a "checkbox-style" meta box** is available. See the [Other Notes section](http://wordpress.org/extend/plugins/media-library-assistant/other_notes/ "Click here, then scroll down") section for more details.
|
208 |
-
* New: An option (General tab) is provided to **disable term-specific counts** in the Attachments column of the taxonomy edit screens.
|
209 |
-
* New: An option (General tab) is provided to **suppress the MLA-specific metaboxes on the Media/Edit Media screen**. This removes the "Parent Info", "Menu Order", "Attachment Metadata" and the four "where-used" meta boxes.
|
210 |
-
* New: Bulk edit area now includes **Title, Caption, Description, ALT Text, Comments and Pings** fields. Text fields may contain a Content Template, allowing conditional replacement of the field value.
|
211 |
-
* New: **A numeric value in the Media/Assistant search box** will do a text-based search in addition to the post or parent ID search. This eliminates the requirement to add quotes to the value to force a text-based search. You can still add quotes to avoid the parent/post ID part of the search, or avoid the text-based search by unchecking all of the search field boxes.
|
212 |
-
* New: A new option, **Icon Size**, sets the thumbnail/icon size on the Media/Assistant submenu table. Find it in the Table Defaults section of the Settings/Media Library Assistant General tab.
|
213 |
-
* New: More debugging information displayed/logged when Media/Assistant search box begins with ">|<" or <|>".
|
214 |
-
* New: For `[mla_gallery]`, the **Data sources for custom field mapping** are now available as Attachment-specific substitution parameters. A new "commas" option allows better formatting of numeric data source values.
|
215 |
-
* New: For `[mla_gallery]`, **mla_gallery_raw_attributes filter** allows access to the shortcode parameters before they pass through the logic to handle `mla_page_parameter` and "request:" prefix processing. The `mla-hooks-example.php.txt` example has been updated as well.
|
216 |
-
* New: For `[mla_gallery]`, **mla_paginate_rows** allows you to avoid redundant database queries just to create pagination controls, if you have some other way of knowing how many items a gallery contains.
|
217 |
-
* New: For `[mla_gallery]`, **WP_Query caching parameters** allow you to avoid additional database queries just to fill the post, metadata and/or term cache if your application does not require them.
|
218 |
-
* New: For `[mla_tag_cloud]`, **post_mime_type** allows you to filter the tag cloud counts by MIME type so they will match the results delivered by `[mla_gallery]` and other gallery shortcodes.
|
219 |
-
* New: For `[mla_tag_cloud]`, a new `no_count` parameter enables or disables the computation of term-specific attachment counts.
|
220 |
-
* New: For `[mla_gallery]`, the **HTML5 figure, div and figcaption** tags are used for themes that register support for HTML5.
|
221 |
-
* New: For `[mla_gallery]`, a new `mla_style` setting ("theme") lets the theme control use of the MLA style template by hooking the `use_default_gallery_style` filter.
|
222 |
-
* Fix: The term-specific counts computation in the Attachments column of the taxonomy edit screens is significantly more efficient.
|
223 |
-
* Fix: Removed an intermittant PHP Warning message for logged-in users without the "upload_files" capability.
|
224 |
-
* Fix: The `[mla_tag_cloud]` templates are no longer offered in the default `[mla_gallery]` template dropdown list.
|
225 |
-
* Fix: Default descriptions for `mla_upload_mime` option values are no longer stored in the options table, saving space.
|
226 |
-
* Fix: **Support for the "Media Categories" plugin (by Eddie Moya) is no longer required and has been removed.**
|
227 |
-
* Fix: The where-used term **"BAD PARENT"** has been replaced with the less severe **"UNUSED"** to more clearly indicate that the item has a valid parent but is not used for anything in the parent post/page.
|
228 |
-
* Fix: The **"Inserted in" reporting with the "Base" option** setting explicitly tests for all registered intermediate sizes, giving more precise results.
|
229 |
-
* Fix: Peaceful co-existance with **Relevanssi - A Better Search, v3.2+ by Mikko Saari**, using a filter provided by that plugin to disable interference with the Media/Assistant submenu search box and the `[mla_gallery]` shortcode.
|
230 |
-
* Fix: Removed support for the ancient, bug-ridden and unused `[mla_attachment_list]` shortcode.
|
231 |
|
232 |
= 1.70 - 1.71 =
|
233 |
* 1.71: Searchable Category meta boxes for the Media/Edit Media screen. Support for the WordPress "Attachment Display Settings". Six fixes.
|
@@ -276,8 +243,8 @@ All of the MLA source code has been annotated with "DocBlocks", a special type o
|
|
276 |
|
277 |
== Upgrade Notice ==
|
278 |
|
279 |
-
= 1.
|
280 |
-
New "
|
281 |
|
282 |
== Other Notes ==
|
283 |
|
@@ -289,7 +256,38 @@ In this section, scroll down to see highlights from the documentation, including
|
|
289 |
|
290 |
Media Library Assistant includes many images drawn (with permission) from the [Crystal Project Icons](http://www.softicons.com/free-icons/system-icons/crystal-project-icons-by-everaldo-coelho), created by [Everaldo Coelho](http://www.everaldo.com), founder of [Yellowicon](http://www.yellowicon.com).
|
291 |
|
292 |
-
<h4>NEW!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
293 |
The "Terms Search" features let you filter the Media/Assistant submenu table and the Media Manager Modal Window by matching one or more phrases in the Name field of taxonomy terms. There are two ways to access this feature:
|
294 |
|
295 |
<ol>
|
@@ -352,7 +350,7 @@ By default, the Att. Categories and Att. Tags taxonomies are included in the ter
|
|
352 |
|
353 |
In the Search Terms popup window you will find a list of all supported taxonomies, with checkboxes reflecting their participation in the search process. You can add or remove taxonomies from the process on a search-by-search basis.
|
354 |
|
355 |
-
<h4>
|
356 |
The "Select Parent" popup window lets you find the parent post/page/custom post type for one or more attachments. You can access the popup window in four ways:
|
357 |
|
358 |
<ol>
|
3 |
Donate link: http://fairtradejudaica.org/make-a-difference/donate/
|
4 |
Tags: attachment, attachments, documents, gallery, image, images, media, library, media library, tag cloud, media-tags, media tags, tags, media categories, categories, IPTC, EXIF, GPS, PDF, meta, metadata, photo, photos, photograph, photographs, photoblog, photo albums, lightroom, photoshop, MIME, mime-type, icon, upload, file extensions
|
5 |
Requires at least: 3.3
|
6 |
+
Tested up to: 4.0
|
7 |
+
Stable tag: 1.91
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
152 |
|
153 |
== Changelog ==
|
154 |
|
155 |
+
= 1.91 =
|
156 |
+
|
157 |
+
* New: Fourteen filters have been added to the "Edit Media additional meta boxes". You can customize which meta boxes appear and replace their contents. An example plugin has been added to demonstrate their use. See the [Other Notes section](http://wordpress.org/extend/plugins/media-library-assistant/other_notes/ "Click here, then scroll down") section or the Settings/Media Library Assistant Documentation tab for more information.
|
158 |
+
* New: A new hook, `mla_media_modal_initial_filters` has been added to the "Media Manager Enhancement filters (Hooks)".
|
159 |
+
* New: A new "MLA Media Modal Hooks Example" plugin has been created in `/examples/mla-media-modal-hooks-example.php.txt`.
|
160 |
+
* New: Two new examples have been added to the MLA Gallery Hooks example plugin.
|
161 |
+
* New: A new "MLA Tax Query Example" plugin has been created in `/examples/mla-tax-query-example.php.txt`.
|
162 |
+
* New: Two new hooks, `mla_begin_mapping` and `mla_end_mapping` have been added to the "MLA Custom Field and IPTC/EXIF Mapping Actions and Filters (Hooks)".
|
163 |
+
* New: A new "MLA Meta Box Hooks Example" plugin has been created in `/examples/mla-metabox-hooks-example.php.txt`.
|
164 |
+
* New: A new, simplified MLA Mapping Hooks example plugin has been created. The older, more complex example is provided as a separate example plugin, `/examples/mla-metadata-mapping-hooks-example.php.txt`.
|
165 |
+
* Fix: On the Media/Assistant submenu table, the "Set Parent" links now refresh the entire table row, properly updating all of the affected columns and the Quick Edit data.
|
166 |
+
* Fix: A defect that affected certain "front end" file uploads, e.g., changing an avatar in BuddyPress, has been corrected.
|
167 |
+
* Fix: All `like_escape()` calls have been changed to `$wpdb->esc_like()` for WordPress 4.0 and later.
|
168 |
+
* Fix: A defect in multi-word or quoted Search Media box content on the Media/Assistant submenu table has been fixed.
|
169 |
+
* Fix: A defect in WPML support on the Media/Assistant submenu table has been fixed.
|
170 |
+
* Fix: A defect in using fields in the "posts" database table as "Data sources for custom field mapping" has been fixed.
|
171 |
+
|
172 |
= 1.90 =
|
173 |
|
174 |
* New: On the Media/Assistant submenu and Media Manager Modal Window, a **new "Terms Search" popup filter** lets you filter the display by terms whose name contains the keywords and phrases entered in the search box. See the [Other Notes section](http://wordpress.org/extend/plugins/media-library-assistant/other_notes/ "Click here, then scroll down") section for more details.
|
190 |
* Fix: For `[mla_gallery]`, the `mla_rollover_text=` parameter has been restored. WordPress 3.7 removed the `title=` attribute from its attachment links, which disabled `mla_rollover_text=` as well.
|
191 |
* Fix: For `[mla_tag_cloud]`, the `number` parameter default is now zero, agreeing with the Documentation.
|
192 |
|
193 |
+
= 1.80 - 1.83 =
|
194 |
+
* 1.83: Corrects serious defect, restoring Quick Edit, Bulk Edit and Screen Options to Media/Assistant submenu. Three other fixes.
|
195 |
+
* 1.82: "Select Parent" popup window (Media/Edit Media, Attached to column, Quick Edit area), SVG support and several new filter examples. Five other enhancements, three other fixes.
|
196 |
+
* 1.81: Corrects serious defect in Media Manager Modal Window file uploading. Adds item-specific tag clouds. One other enhancement, five other fixes.
|
197 |
+
* 1.80: Full taxonomy meta box support in the Media Manager Modal Window. Checkbox-style meta box for flat taxonomies. Fourteen other enhancements, nine fixes.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
198 |
|
199 |
= 1.70 - 1.71 =
|
200 |
* 1.71: Searchable Category meta boxes for the Media/Edit Media screen. Support for the WordPress "Attachment Display Settings". Six fixes.
|
243 |
|
244 |
== Upgrade Notice ==
|
245 |
|
246 |
+
= 1.91 =
|
247 |
+
WordPress 4.0 support! New "Edit Media meta box" and "Media Modal Initial Values" filters and example plugins. Four other enhancements, six fixes.
|
248 |
|
249 |
== Other Notes ==
|
250 |
|
256 |
|
257 |
Media Library Assistant includes many images drawn (with permission) from the [Crystal Project Icons](http://www.softicons.com/free-icons/system-icons/crystal-project-icons-by-everaldo-coelho), created by [Everaldo Coelho](http://www.everaldo.com), founder of [Yellowicon](http://www.yellowicon.com).
|
258 |
|
259 |
+
<h4>NEW! Hooks for the Edit Media additional meta boxes</h4>
|
260 |
+
Media Library Assistant adds support for the "Custom Fields" meta box to the Media/Edit Media screen. MLA also adds several meta boxes to this screen with more information about the item and where it is used on your site. You can enable/disable the additional meta boxes with an option on the Settings/Media LIbrary Assistant General tab.
|
261 |
+
|
262 |
+
You can also make individual changes in which meta boxes are displayed and in their content by using one or more of the filters MLA provides. An example of using the hooks from a simple, stand-alone plugin can be found at /media-library-assistant/examples/mla-metabox-hooks-example.php.txt. To run the example:
|
263 |
+
|
264 |
+
1. Edit the code to, for example, uncomment the <code>error_log()</code> calls so you can see what is passed to the hooks you are interested in.
|
265 |
+
1. Remove the ".txt" extension and save the "mla-metabox-example.php" file in your plugins directory. You can give the plugin and its file any (unique) name you like.
|
266 |
+
1. Go to the Plugins/Installed Plugins screen and activate the "MLA Meta Box Hooks Example" plugin.
|
267 |
+
1. Make any changes or additions you want to in the example plugin source code. For example, you can modify the <code>mla_inserted_in_metabox</code> example to display a simplified version of the "Inserted in" information.
|
268 |
+
1. View the Media/Edit Media screen for an item to see the effect of your changes.
|
269 |
+
|
270 |
+
The example code documents each hook with comments in the filter function that intercepts the hook. Generally, each meta box filter lets you change the size of the text box (if appropriate) and the content that appears in the box. There is also a second filter for each meta box that lets you replace <strong>all</strong> of the HTML content for most boxes; use these with caution. The current hooks are:
|
271 |
+
|
272 |
+
* <strong>mla_edit_media_support</strong> - suppress the addition of Custom Fields to the Edit Media screen. To suppress Custom Fields, return an empty array, i.e., <code>return array();</code>
|
273 |
+
|
274 |
+
* <strong>mla_edit_media_meta_boxes</strong> - record the original list of meta box slugs. You can also remove elements from the array to suppress one or more meta boxes. To suppress a box, remove it from the array, e.g., <code>unset( $active_boxes['mla-menu-order'] );</code>
|
275 |
+
|
276 |
+
* <strong>mla_parent_info_meta_box</strong> - modify the text portion of the "Parent Info" meta box.
|
277 |
+
|
278 |
+
* <strong>mla_menu_order_meta_box</strong> - modify the "Menu Order" meta box.
|
279 |
+
|
280 |
+
* <strong>mla_image_metadata_meta_box</strong> - modify the rows, columns and content of the "Attachment Metadata" meta box.<br><strong>mla_image_metadata_meta_box_html</strong>
|
281 |
+
|
282 |
+
* <strong>mla_featured_in_meta_box</strong> - modify the rows, columns and content of the "Featured in" meta box.<br><strong>mla_featured_in_meta_box_html</strong>
|
283 |
+
|
284 |
+
* <strong>mla_inserted_in_meta_box</strong> - modify the rows, columns and content of the "Inserted in" meta box.<br><strong>mla_inserted_in_meta_box_html</strong>
|
285 |
+
|
286 |
+
* <strong>mla_gallery_in_meta_box</strong> - modify the rows, columns and content of the "Gallery in" meta box.<br><strong>mla_gallery_in_meta_box_html</strong>
|
287 |
+
|
288 |
+
* <strong>mla_mla_gallery_in_meta_box</strong> - modify the rows, columns and content of the "MLA Gallery in" meta box.<br><strong>mla_mla_gallery_in_meta_box_html</strong>
|
289 |
+
|
290 |
+
<h4>Terms Search</h4>
|
291 |
The "Terms Search" features let you filter the Media/Assistant submenu table and the Media Manager Modal Window by matching one or more phrases in the Name field of taxonomy terms. There are two ways to access this feature:
|
292 |
|
293 |
<ol>
|
350 |
|
351 |
In the Search Terms popup window you will find a list of all supported taxonomies, with checkboxes reflecting their participation in the search process. You can add or remove taxonomies from the process on a search-by-search basis.
|
352 |
|
353 |
+
<h4>Select Parent Popup Window</h4>
|
354 |
The "Select Parent" popup window lets you find the parent post/page/custom post type for one or more attachments. You can access the popup window in four ways:
|
355 |
|
356 |
<ol>
|
tpls/admin-terms-search-form.tpl
CHANGED
@@ -34,7 +34,7 @@
|
|
34 |
<div id="mla-terms-search-radio-phrases-div">
|
35 |
<ul class="mla-terms-search-options">
|
36 |
<li>
|
37 |
-
<input name="mla_terms_search[radio_phrases]" id="mla-terms-search-radio-phrases-and" type="radio"value="AND" [+phrases_and_checked+] />
|
38 |
[+All phrases+]
|
39 |
</li>
|
40 |
<li>
|
@@ -46,7 +46,7 @@
|
|
46 |
<div id="mla-terms-search-radio-terms-div">
|
47 |
<ul class="mla-terms-search-options">
|
48 |
<li>
|
49 |
-
<input name="mla_terms_search[radio_terms]" id="mla-terms-search-radio-terms-and" type="radio"value="AND" [+terms_and_checked+] />
|
50 |
[+All terms+]
|
51 |
</li>
|
52 |
<li>
|
34 |
<div id="mla-terms-search-radio-phrases-div">
|
35 |
<ul class="mla-terms-search-options">
|
36 |
<li>
|
37 |
+
<input name="mla_terms_search[radio_phrases]" id="mla-terms-search-radio-phrases-and" type="radio" value="AND" [+phrases_and_checked+] />
|
38 |
[+All phrases+]
|
39 |
</li>
|
40 |
<li>
|
46 |
<div id="mla-terms-search-radio-terms-div">
|
47 |
<ul class="mla-terms-search-options">
|
48 |
<li>
|
49 |
+
<input name="mla_terms_search[radio_terms]" id="mla-terms-search-radio-terms-and" type="radio" value="AND" [+terms_and_checked+] />
|
50 |
[+All terms+]
|
51 |
</li>
|
52 |
<li>
|
tpls/documentation-settings-tab.tpl
CHANGED
@@ -78,6 +78,12 @@
|
|
78 |
<a href="#select_parent"><strong>Select Parent Popup Window</strong></a>
|
79 |
</li>
|
80 |
<li>
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
<a href="#mla_views"><strong>Library Views/Post MIME Type Processing</strong></a>
|
82 |
</li>
|
83 |
<li>
|
@@ -1352,14 +1358,14 @@ The "smallest=12" and "largest=12" parameters make "font-size" the same for all
|
|
1352 |
The <code>[mla_tag_cloud]</code> shortcode supports a comprehensive set of filters that give you complete control over cloud composition from PHP code in your theme or in another plugin. An example of using the hooks from a simple, stand-alone plugin can be found here: <a title="View the Tag Cloud Hooks Example source code" href="[+examples_url+]mla-cloud-hooks-example.php.txt" target="_blank" style="font-size:14px; font-weight:bold">mla-cloud-hooks-example.php.txt</a>. To run the example:
|
1353 |
<ol>
|
1354 |
<li>Edit the code to, for example, uncomment the <code>error_log()</code> calls so you can see what is passed to the hooks you are interested in.</li>
|
1355 |
-
<li>Remove the ".txt" extension and save the "mla-cloud-hooks-example.php" file in your plugins directory. You can give the plugin and
|
1356 |
<li>Go to the Plugins/Installed Plugins screen and activate the "MLA Tag Cloud Hooks Example" plugin.</li>
|
1357 |
<li>Create a new <code>[mla_tag_cloud]</code> shortcode or modify an existing shortcode, adding the <code>my_filter="color cloud"</code> parameter to activate the example output.</li>
|
1358 |
<li>View the post or page on which the modified shortcode appears to see a tag cloud with a range of colors applied to the terms.</li>
|
1359 |
</ol>
|
1360 |
</p>
|
1361 |
<p>
|
1362 |
-
The example code documents each hook with comments in the filter/action function that intercepts
|
1363 |
</p>
|
1364 |
<table>
|
1365 |
<tr>
|
@@ -1520,6 +1526,10 @@ Use the following parameters to specify the size of each gallery page and the cu
|
|
1520 |
<td>the "current" gallery page; defaults to one (1) if not specified. MLA will usually manage this for you, adding it to the hyperlinks for the previous and next gallery pages. MLA will look for this parameter in the HTML $_REQUEST array if it is not coded in the gallery shortcode.</td>
|
1521 |
</tr>
|
1522 |
<tr>
|
|
|
|
|
|
|
|
|
1523 |
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_paginate_total</td>
|
1524 |
<td>the highest page number you want to display; defaults to (total items / posts_per_page) if not specified, which is usually what you want. </td>
|
1525 |
</tr>
|
@@ -2508,7 +2518,83 @@ Once you have chosen a new parent, click the "Update" button at the lower right
|
|
2508 |
</p>
|
2509 |
<p>
|
2510 |
If you change your mind you can close the window without making a change by clicking the "X" in the upper-right corner of the window or the "Cancel" button in the lower-left corner of the window.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2511 |
<a name="mla_views"></a>
|
|
|
2512 |
</p>
|
2513 |
<p>
|
2514 |
<a href="#backtotop">Go to Top</a>
|
@@ -3729,8 +3815,12 @@ The current mapping hooks are:
|
|
3729 |
</p>
|
3730 |
<table>
|
3731 |
<tr>
|
|
|
|
|
|
|
|
|
3732 |
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_mapping_settings</td>
|
3733 |
-
<td>called before any mapping rules are executed. You can add, change or delete rules from the settings/rules array.</td>
|
3734 |
</tr>
|
3735 |
<tr>
|
3736 |
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_mapping_rule</td>
|
@@ -3752,9 +3842,13 @@ The current mapping hooks are:
|
|
3752 |
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_mapping_updates</td>
|
3753 |
<td>called AFTER all mapping rules are applied. You can add, change or remove updates for the attachment's standard fields, taxonomies and/or custom fields.</td>
|
3754 |
</tr>
|
|
|
|
|
|
|
|
|
3755 |
</table>
|
3756 |
<p>
|
3757 |
-
The current insert attachment/update attachment metadata hooks are:
|
3758 |
</p>
|
3759 |
<table>
|
3760 |
<tr>
|
@@ -3806,6 +3900,15 @@ an opportunity to record or update the metadata after the mapping.
|
|
3806 |
</tr>
|
3807 |
</table>
|
3808 |
<p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3809 |
<a href="#backtotop">Go to Top</a>
|
3810 |
</p>
|
3811 |
</div>
|
78 |
<a href="#select_parent"><strong>Select Parent Popup Window</strong></a>
|
79 |
</li>
|
80 |
<li>
|
81 |
+
<a href="#mla_edit_meta_boxes"><strong>Edit Media additional meta boxes (and Hooks)</strong></a>
|
82 |
+
</li>
|
83 |
+
<li>
|
84 |
+
<a href="#mla_media_modal_filters"><strong>Media Manager Enhancement filters (Hooks)</strong></a>
|
85 |
+
</li>
|
86 |
+
<li>
|
87 |
<a href="#mla_views"><strong>Library Views/Post MIME Type Processing</strong></a>
|
88 |
</li>
|
89 |
<li>
|
1358 |
The <code>[mla_tag_cloud]</code> shortcode supports a comprehensive set of filters that give you complete control over cloud composition from PHP code in your theme or in another plugin. An example of using the hooks from a simple, stand-alone plugin can be found here: <a title="View the Tag Cloud Hooks Example source code" href="[+examples_url+]mla-cloud-hooks-example.php.txt" target="_blank" style="font-size:14px; font-weight:bold">mla-cloud-hooks-example.php.txt</a>. To run the example:
|
1359 |
<ol>
|
1360 |
<li>Edit the code to, for example, uncomment the <code>error_log()</code> calls so you can see what is passed to the hooks you are interested in.</li>
|
1361 |
+
<li>Remove the ".txt" extension and save the "mla-cloud-hooks-example.php" file in your plugins directory. You can give the plugin and its file any (unique) name you like.</li>
|
1362 |
<li>Go to the Plugins/Installed Plugins screen and activate the "MLA Tag Cloud Hooks Example" plugin.</li>
|
1363 |
<li>Create a new <code>[mla_tag_cloud]</code> shortcode or modify an existing shortcode, adding the <code>my_filter="color cloud"</code> parameter to activate the example output.</li>
|
1364 |
<li>View the post or page on which the modified shortcode appears to see a tag cloud with a range of colors applied to the terms.</li>
|
1365 |
</ol>
|
1366 |
</p>
|
1367 |
<p>
|
1368 |
+
The example code documents each hook with comments in the filter/action function that intercepts the hook. Generally, each part of the gallery supports three hooks: 1) a "<strong>values</strong>" hook, which lets you record or update the substitution values for that gallery part, 2) a "<strong>template</strong>" hook, which lets you record/update the template used to generate the HTML markup, and 3) a "<strong>parse</strong>" hook which lets you modify or replace the markup generated for a gallery part. The current hooks are:
|
1369 |
</p>
|
1370 |
<table>
|
1371 |
<tr>
|
1526 |
<td>the "current" gallery page; defaults to one (1) if not specified. MLA will usually manage this for you, adding it to the hyperlinks for the previous and next gallery pages. MLA will look for this parameter in the HTML $_REQUEST array if it is not coded in the gallery shortcode.</td>
|
1527 |
</tr>
|
1528 |
<tr>
|
1529 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_page_parameter</td>
|
1530 |
+
<td>the name of the parameter containing the current page number; default "mla_paginate_current". You can change the name if you need multiple paginated galleries on one post/page. If you use this parameter, make sure you add it to the gallery shortcode and all pagination shortcodes for that gallery, and use the same unique value in all shortcodes for the specific gallery.</td>
|
1531 |
+
</tr>
|
1532 |
+
<tr>
|
1533 |
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_paginate_total</td>
|
1534 |
<td>the highest page number you want to display; defaults to (total items / posts_per_page) if not specified, which is usually what you want. </td>
|
1535 |
</tr>
|
2518 |
</p>
|
2519 |
<p>
|
2520 |
If you change your mind you can close the window without making a change by clicking the "X" in the upper-right corner of the window or the "Cancel" button in the lower-left corner of the window.
|
2521 |
+
<a name="mla_media_modal_filters"></a>
|
2522 |
+
</p>
|
2523 |
+
<p>
|
2524 |
+
<a href="#backtotop">Go to Top</a>
|
2525 |
+
</p>
|
2526 |
+
<h3>Media Manager Enhancement filters (Hooks)</h3>
|
2527 |
+
<p>
|
2528 |
+
Media Library Assistant adds several controls to the toolbar in the Media Manager Modal Window; more MIME type filters, year/month filter, taxonomy term filter and an enhanced Search media box. You can change the initial values set for these controls when the Modal Window opens using a filter that MLA provides.An example of using the hooks from a simple, stand-alone plugin can be found here: <a title="View the Meta Box Hooks Example source code" href="[+examples_url+]mla-media-modal-hooks-example.php.txt" target="_blank" style="font-size:14px; font-weight:bold">mla-media-modal-hooks-example.php.txt</a>. To run the example:
|
2529 |
+
<ol>
|
2530 |
+
<li>Remove the ".txt" extension and save the "mla-media-modal-hooks-example.php" file in your plugins directory. You can give the plugin and its file any (unique) name you like.</li>
|
2531 |
+
<li>Go to the Plugins/Installed Plugins screen and activate the "MLA Media Modal Hooks Example" plugin.</li>
|
2532 |
+
<li>Make any changes or additions you want to in the example plugin source code. For example, you can uncomment the <code>$initial_values</code> assignments and setting a new initial value for one or more controls.</li>
|
2533 |
+
<li>Click the "Add Media" button for a post or page to see the effect of your changes.</li>
|
2534 |
+
</ol>
|
2535 |
+
<a name="mla_edit_meta_boxes"></a>
|
2536 |
+
</p>
|
2537 |
+
<p>
|
2538 |
+
<a href="#backtotop">Go to Top</a>
|
2539 |
+
</p>
|
2540 |
+
<h3>Edit Media additional meta boxes (and Hooks)</h3>
|
2541 |
+
<p>
|
2542 |
+
Media Library Assistant adds support for the "Custom Fields" meta box to the Media/Edit Media screen. MLA also adds several meta boxes to this screen with more information about the item and where it is used on your site. You can enable/disable the additional meta boxes with an option on the Settings/Media LIbrary Assistant General tab.
|
2543 |
+
</p>
|
2544 |
+
<p>
|
2545 |
+
You can also make individual changes in which meta boxes are displayed and in their content by using one or more of the filters MLA provides. An example of using the hooks from a simple, stand-alone plugin can be found here: <a title="View the Meta Box Hooks Example source code" href="[+examples_url+]mla-metabox-hooks-example.php.txt" target="_blank" style="font-size:14px; font-weight:bold">mla-metabox-example.php.txt</a>. To run the example:
|
2546 |
+
<ol>
|
2547 |
+
<li>Edit the code to, for example, uncomment the <code>error_log()</code> calls so you can see what is passed to the hooks you are interested in.</li>
|
2548 |
+
<li>Remove the ".txt" extension and save the "mla-metabox-example.php" file in your plugins directory. You can give the plugin and its file any (unique) name you like.</li>
|
2549 |
+
<li>Go to the Plugins/Installed Plugins screen and activate the "MLA Meta Box Hooks Example" plugin.</li>
|
2550 |
+
<li>Make any changes or additions you want to in the example plugin source code. For example, you can modify the <code>mla_inserted_in_metabox</code> example to display a simplified version of the "Inserted in" information.</li>
|
2551 |
+
<li>View the Media/Edit Media screen for an item to see the effect of your changes.</li>
|
2552 |
+
</ol>
|
2553 |
+
</p>
|
2554 |
+
<p>
|
2555 |
+
The example code documents each hook with comments in the filter function that intercepts the hook. Generally, each meta box filter lets you change the size of the text box (if appropriate) and the content that appears in the box. There is also a second filter for each meta box that lets you replace <strong>all</strong> of the HTML content for most boxes; use these with caution. The current hooks are:
|
2556 |
+
</p>
|
2557 |
+
<table>
|
2558 |
+
<tr>
|
2559 |
+
<td style="padding 0 0 2em 1em; vertical-align: top; font-weight:bold">mla_edit_media_support</td>
|
2560 |
+
<td>suppress the addition of Custom Fields to the Edit Media screen. To suppress Custom Fields, return an empty array, i.e., <code>return array();</code></td>
|
2561 |
+
</tr>
|
2562 |
+
<tr>
|
2563 |
+
<td style="padding 0 0 2em 1em; vertical-align: top; font-weight:bold">mla_edit_media_meta_boxes</td>
|
2564 |
+
<td style="vertical-align: top">record the original list of meta box slugs. You can also remove elements from the array to suppress one or more meta boxes. To suppress a box, remove it from the array, e.g., <code>unset( $active_boxes['mla-menu-order'] );</code></td>
|
2565 |
+
</tr>
|
2566 |
+
<tr>
|
2567 |
+
<td style="padding 0 0 2em 1em; vertical-align: top; font-weight:bold">mla_parent_info_meta_box</td>
|
2568 |
+
<td style="vertical-align: top">modify the text portion of the "Parent Info" meta box.</td>
|
2569 |
+
</tr>
|
2570 |
+
<tr>
|
2571 |
+
<td style="padding 0 0 2em 1em; vertical-align: top; font-weight:bold">mla_menu_order_meta_box</td>
|
2572 |
+
<td style="vertical-align: top">modify the "Menu Order" meta box.</td>
|
2573 |
+
</tr>
|
2574 |
+
<tr>
|
2575 |
+
<td style="padding 0 0 2em 1em; vertical-align: top; font-weight:bold">mla_image_metadata_meta_box<br />mla_image_metadata_meta_box_html</td>
|
2576 |
+
<td style="vertical-align: top">modify the rows, columns and content of the "Attachment Metadata" meta box.</td>
|
2577 |
+
</tr>
|
2578 |
+
<tr>
|
2579 |
+
<td style="padding 0 0 2em 1em; vertical-align: top; font-weight:bold">mla_featured_in_meta_box<br />mla_featured_in_meta_box_html</td>
|
2580 |
+
<td style="vertical-align: top">modify the rows, columns and content of the "Featured in" meta box.</td>
|
2581 |
+
</tr>
|
2582 |
+
<tr>
|
2583 |
+
<td style="padding 0 0 2em 1em; vertical-align: top; font-weight:bold">mla_inserted_in_meta_box<br />mla_inserted_in_meta_box_html</td>
|
2584 |
+
<td style="vertical-align: top">modify the rows, columns and content of the "Inserted in" meta box.</td>
|
2585 |
+
</tr>
|
2586 |
+
<tr>
|
2587 |
+
<td style="padding 0 0 2em 1em; vertical-align: top; font-weight:bold">mla_gallery_in_meta_box<br />mla_gallery_in_meta_box_html</td>
|
2588 |
+
<td style="vertical-align: top">modify the rows, columns and content of the "Gallery in" meta box.</td>
|
2589 |
+
</tr>
|
2590 |
+
<tr>
|
2591 |
+
<td style="padding 0 0 2em 1em; vertical-align: top; font-weight:bold">mla_mla_gallery_in_meta_box<br />mla_mla_gallery_in_meta_box_html</td>
|
2592 |
+
<td style="vertical-align: top">modify the rows, columns and content of the "MLA Gallery in" meta box.</td>
|
2593 |
+
</tr>
|
2594 |
+
</table>
|
2595 |
+
<p>
|
2596 |
<a name="mla_views"></a>
|
2597 |
+
|
2598 |
</p>
|
2599 |
<p>
|
2600 |
<a href="#backtotop">Go to Top</a>
|
3815 |
</p>
|
3816 |
<table>
|
3817 |
<tr>
|
3818 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_begin_mapping</td>
|
3819 |
+
<td>called once, before mapping rules for any/all attachment(s) are executed.</td>
|
3820 |
+
</tr>
|
3821 |
+
<tr>
|
3822 |
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_mapping_settings</td>
|
3823 |
+
<td>called once for each attachment, before any mapping rules are executed. You can add, change or delete rules from the settings/rules array.</td>
|
3824 |
</tr>
|
3825 |
<tr>
|
3826 |
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_mapping_rule</td>
|
3842 |
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_mapping_updates</td>
|
3843 |
<td>called AFTER all mapping rules are applied. You can add, change or remove updates for the attachment's standard fields, taxonomies and/or custom fields.</td>
|
3844 |
</tr>
|
3845 |
+
<tr>
|
3846 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_end_mapping</td>
|
3847 |
+
<td>called once, after mapping rules for any/all attachment(s) are executed. This is a good place to close files, perform cleanup, etc.</td>
|
3848 |
+
</tr>
|
3849 |
</table>
|
3850 |
<p>
|
3851 |
+
A second example plugin, <a title="View the Mapping Hooks Example source code" href="[+examples_url+]mla-metadata-mapping-hooks-example.php.txt" target="_blank" style="font-size:14px; font-weight:bold">mla-metadata-mapping-hooks-example.php.txt</a>, illustrates the metadata hooks. The current insert attachment/update attachment metadata hooks are:
|
3852 |
</p>
|
3853 |
<table>
|
3854 |
<tr>
|
3900 |
</tr>
|
3901 |
</table>
|
3902 |
<p>
|
3903 |
+
The current Settings/Media Library Assistant tab list hook is:
|
3904 |
+
</p>
|
3905 |
+
<table>
|
3906 |
+
<tr>
|
3907 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_get_options_tablist</td>
|
3908 |
+
<td>gives you an opportunity to remove one or more tabs from the list that appears on the Settings/Media Library Assistant screen.</td>
|
3909 |
+
</tr>
|
3910 |
+
</table>
|
3911 |
+
<p>
|
3912 |
<a href="#backtotop">Go to Top</a>
|
3913 |
</p>
|
3914 |
</div>
|