Version Description
- New: Twenty eight (28) filters for the Media/Assistant submenu table support customization of the table display and supporting features like table views, Quick Edit, Bulk Edit and rollover actions.
- New: For the
[mla_gallery]
shortcode, the powerful "date_query" parameter introduced in WordPress Version 3.7 is now supported. - New: On the Media/Assistant submenu table a "Download" rollover action has been added to enable easy, one-click down of Media Library items.
- New: On the Media/Assistant submenu table values in the Base File column can be clicked to filter the table by the column value. This is useful for plugins such as Polylang that assign the same base file to items translated into multiple languages.
- New: On the Media/Assistant submenu table
template:[+empty+]
has been added to the Bulk Edit area processing and IPTC/EXIF Standard Field mapping to support deleting the content of the Title, Caption, Description and ALT Text fields. - New: A "tax_relation" parameter has been added for
[mla_gallery]
simple taxonomy searches that involve two or more taxonomies. - New: A "url" format option has been added for
[mla_gallery]
substitution parameters that must be encoded for use in an HTML href/URL context, e.g., in hyperlink (a
) orimg
tag. - New: An "attr" format option has been added for
[mla_gallery]
substitution parameters that must be encoded for use in an HTML attribute context, e.g., in thetitle=
attribute of a hyperlink (a
) orimg
tag. - New: The "MLA Tax Query Example" plugin in
/examples/mla-tax-query-example.php.txt
has been enhanced to handleorderby
,order
andpost_mime_type
parameters. - New: On the "help" dropdown for Media/Assistant submenu table a new tab has been added to document the "Where-used Reporting" information.
- New: Examples for custom field mapping/use and IPTC/EXIF mapping/use have been added to the Settings/Media Library Assistant Documentation tab.
- Fix: On the Media/Assistant submenu table the table header height is no longer affected by the "Icon Size" option value.
- Fix: On the Media/Assistant submenu table a bug in the "where-used" information for attachments inserted in the body of a post/page but not used in a
[gallery]
,[mla_gallery]
or Featured Image has been fixed. - Fix: For
[mla_gallery]
simple taxonomy searches that involve two or more taxonomies are now processed correctly. - Fix: Improved coverage of
[mla_gallery]
pagination and author parameters (and some others) has been added to the Settings/Media Library Assistant Documentation tab. - Fix: The Title field is now properly encoded when used as the default
title
attribute in[mla_gallery]
item links. - Fix: The
title
attribute no longer appears twice in[mla_gallery]
item links when themla_viewer=true
parameter is specified. - Fix: An occasional problem with double slashes (
//
) in template path names has been corrected.
Download this release
Release Info
Developer | dglingren |
Plugin | Media Library Assistant |
Version | 1.95 |
Comparing to | |
See all releases |
Code changes from version 1.94 to 1.95
- css/mla-style.css +12 -3
- examples/mla-hooks-example.php.txt +1 -1
- examples/mla-list-table-hooks-example.php.txt +780 -0
- examples/mla-project-slug-example.php.txt +106 -0
- examples/mla-tax-query-example.php.txt +377 -30
- includes/class-mla-data.php +85 -60
- includes/class-mla-list-table.php +263 -252
- includes/class-mla-main.php +267 -191
- includes/class-mla-media-modal.php +3 -24
- includes/class-mla-options.php +20 -4
- includes/class-mla-settings.php +2 -2
- includes/class-mla-shortcodes.php +123 -33
- includes/mla-force-download.php +46 -0
- index.php +2 -2
- js/mla-inline-edit-scripts.js +3 -3
- js/mla-inline-edit-scripts.min.js +1 -1
- languages/media-library-assistant-en_US.pot +197 -192
- phpDocs/classes.svg +71 -59
- phpDocs/classes/MLA.html +10 -10
- phpDocs/classes/MLAData.html +21 -2
- phpDocs/classes/MLAEdit.html +1 -1
- phpDocs/classes/MLAMime.html +1 -1
- phpDocs/classes/MLAModal.html +1 -16
- phpDocs/classes/MLAObjects.html +1 -1
- phpDocs/classes/MLAOptions.html +18 -1
- phpDocs/classes/MLASettings.html +1 -1
- phpDocs/classes/MLAShortcodes.html +44 -8
- 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/classes/MNA_Pad_Counts_Walker.html +145 -0
- phpDocs/deprecated.html +1 -1
- phpDocs/errors.html +4 -1
- phpDocs/graph_class.html +1 -1
- phpDocs/index.html +1 -1
- phpDocs/markers.html +2 -2
- phpDocs/namespaces/global.html +8 -1
- phpDocs/packages/Media Library Assistant.MLA.Child.Theme.html +1 -1
- phpDocs/packages/Media Library Assistant.MLA.Child.html +1 -1
- phpDocs/packages/Media Library Assistant.MLA.html +1 -1
- phpDocs/packages/Media Library Assistant.html +9 -1
- phpDocs/structure.xml +1611 -1421
- readme.txt +27 -6
- tests/class-mla-tests.php +1 -1
- tpls/admin-inline-edit-form.tpl +1 -0
- tpls/documentation-settings-tab.tpl +449 -35
- tpls/help-for-media_page_mla-menu.tpl +27 -9
css/mla-style.css
CHANGED
@@ -38,7 +38,8 @@ td.column-ID_parent, th.column-ID_parent {
|
|
38 |
}
|
39 |
|
40 |
/*
|
41 |
-
* MLA List Table
|
|
|
42 |
*/
|
43 |
img.mla_media_thumbnail_64_64 {
|
44 |
max-width: 64px;
|
@@ -50,6 +51,14 @@ img.mla_media_thumbnail_80_60 {
|
|
50 |
max-height: 60px;
|
51 |
}
|
52 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
/*
|
54 |
* MLA Edit single item field labels column
|
55 |
*/
|
@@ -154,7 +163,7 @@ textarea[readonly] {
|
|
154 |
.bulk-edit-row-attachment fieldset.inline-edit-col-right input#bulk-edit-set-parent {
|
155 |
display:inline;
|
156 |
line-height: 16px;
|
157 |
-
margin: .2em .4em;
|
158 |
}
|
159 |
|
160 |
.quick-edit-row-attachment fieldset.inline-edit-col-left label.inline-edit-post-parent-title .input-text-wrap input[type=text] {
|
@@ -170,7 +179,7 @@ textarea[readonly] {
|
|
170 |
width: 3em
|
171 |
}
|
172 |
|
173 |
-
.quick-edit-row-attachment fieldset.inline-edit-col-right label span.title,
|
174 |
.bulk-edit-row-attachment fieldset.inline-edit-col-right label.inline-edit-tags span.title {
|
175 |
width: 99%
|
176 |
}
|
38 |
}
|
39 |
|
40 |
/*
|
41 |
+
* MLA List Table icon/thumbnail column
|
42 |
+
* These can be overridden by an options setting
|
43 |
*/
|
44 |
img.mla_media_thumbnail_64_64 {
|
45 |
max-width: 64px;
|
51 |
max-height: 60px;
|
52 |
}
|
53 |
|
54 |
+
/*
|
55 |
+
* MLA List Table Terms Search and Clear Filter-by buttons
|
56 |
+
*/
|
57 |
+
#mla-terms-search-open,
|
58 |
+
#clear_filter_by {
|
59 |
+
margin: 1px 8px 0 0;
|
60 |
+
}
|
61 |
+
|
62 |
/*
|
63 |
* MLA Edit single item field labels column
|
64 |
*/
|
163 |
.bulk-edit-row-attachment fieldset.inline-edit-col-right input#bulk-edit-set-parent {
|
164 |
display:inline;
|
165 |
line-height: 16px;
|
166 |
+
margin: .2em .4em .2em 0em;
|
167 |
}
|
168 |
|
169 |
.quick-edit-row-attachment fieldset.inline-edit-col-left label.inline-edit-post-parent-title .input-text-wrap input[type=text] {
|
179 |
width: 3em
|
180 |
}
|
181 |
|
182 |
+
.quick-edit-row-attachment fieldset.inline-edit-col-right label.inline-edit-tags span.title,
|
183 |
.bulk-edit-row-attachment fieldset.inline-edit-col-right label.inline-edit-tags span.title {
|
184 |
width: 99%
|
185 |
}
|
examples/mla-hooks-example.php.txt
CHANGED
@@ -46,7 +46,7 @@ Copyright 2013, 2014 David Lingren
|
|
46 |
/**
|
47 |
* Class MLA Gallery Hooks Example hooks all of the filters provided by the [mla_gallery] shortcode
|
48 |
*
|
49 |
-
* Call it anything you want, but give it an unlikely and hopefully unique name. Hiding
|
50 |
* else inside a class means this is the only name you have to worry about.
|
51 |
*
|
52 |
* @package MLA Gallery Hooks Example
|
46 |
/**
|
47 |
* Class MLA Gallery Hooks Example hooks all of the filters provided by the [mla_gallery] shortcode
|
48 |
*
|
49 |
+
* Call it anything you want, but give it an unlikely and hopefully unique name. Hiding everything
|
50 |
* else inside a class means this is the only name you have to worry about.
|
51 |
*
|
52 |
* @package MLA Gallery Hooks Example
|
examples/mla-list-table-hooks-example.php.txt
ADDED
@@ -0,0 +1,780 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Provides an example of hooking the filters provided by the MLA_List_Table class
|
4 |
+
*
|
5 |
+
* @package MLA List Table Hooks Example
|
6 |
+
* @version 1.00
|
7 |
+
*/
|
8 |
+
|
9 |
+
/*
|
10 |
+
Plugin Name: MLA List Table Hooks Example
|
11 |
+
Plugin URI: http://fairtradejudaica.org/media-library-assistant-a-wordpress-plugin/
|
12 |
+
Description: Provides an example of hooking the filters provided by the MLA_List_Table class
|
13 |
+
Author: David Lingren
|
14 |
+
Version: 1.00
|
15 |
+
Author URI: http://fairtradejudaica.org/our-story/staff/
|
16 |
+
|
17 |
+
Copyright 2014 David Lingren
|
18 |
+
|
19 |
+
This program is free software; you can redistribute it and/or modify
|
20 |
+
it under the terms of the GNU General Public License as published by
|
21 |
+
the Free Software Foundation; either version 2 of the License, or
|
22 |
+
(at your option) any later version.
|
23 |
+
|
24 |
+
This program is distributed in the hope that it will be useful,
|
25 |
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
26 |
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
27 |
+
GNU General Public License for more details.
|
28 |
+
|
29 |
+
You can get a copy of the GNU General Public License by writing to the
|
30 |
+
Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
|
31 |
+
*/
|
32 |
+
|
33 |
+
/**
|
34 |
+
* Class MLA List Table Hooks Example hooks all of the filters provided by the MLA_List_Table class
|
35 |
+
*
|
36 |
+
* Call it anything you want, but give it an unlikely and hopefully unique name. Hiding everything
|
37 |
+
* else inside a class means this is the only name you have to worry about.
|
38 |
+
*
|
39 |
+
* @package MLA List Table Hooks Example
|
40 |
+
* @since 1.00
|
41 |
+
*/
|
42 |
+
class MLAListTableHooksExample {
|
43 |
+
/**
|
44 |
+
* Initialization function, similar to __construct()
|
45 |
+
*
|
46 |
+
* @since 1.00
|
47 |
+
*
|
48 |
+
* @return void
|
49 |
+
*/
|
50 |
+
public static function initialize() {
|
51 |
+
/*
|
52 |
+
* The filters are only useful for the admin section; exit in the front-end posts/pages
|
53 |
+
*/
|
54 |
+
if ( ! is_admin() )
|
55 |
+
return;
|
56 |
+
|
57 |
+
/*
|
58 |
+
* add_filter parameters:
|
59 |
+
* $tag - name of the hook you're filtering; defined by [mla_gallery]
|
60 |
+
* $function_to_add - function to be called when [mla_gallery] applies the filter
|
61 |
+
* $priority - default 10; lower runs earlier, higher runs later
|
62 |
+
* $accepted_args - number of arguments your function accepts
|
63 |
+
*/
|
64 |
+
|
65 |
+
/*
|
66 |
+
* Defined in /wp-admin/includes/class-wp-list-table.php
|
67 |
+
*/
|
68 |
+
add_filter( 'views_media_page_mla-menu', 'MLAListTableHooksExample::views_media_page_mla_menu', 10, 1 );
|
69 |
+
add_filter( 'bulk_actions-media_page_mla-menu', 'MLAListTableHooksExample::bulk_actions_media_page_mla_menu', 10, 1 );
|
70 |
+
add_filter( 'months_dropdown_results', 'MLAListTableHooksExample::months_dropdown_results', 10, 2 );
|
71 |
+
add_filter( 'mla_entries_per_page', 'MLAListTableHooksExample::mla_entries_per_page', 10, 1 );
|
72 |
+
add_filter( 'manage_media_page_mla-menu_sortable_columns', 'MLAListTableHooksExample::manage_media_page_mla_menu_sortable_columns', 10, 1 );
|
73 |
+
|
74 |
+
/*
|
75 |
+
* Defined in /media-library-assistant/includes/class-mla-data.php
|
76 |
+
*/
|
77 |
+
add_filter( 'mla_list_table_search_filter_fields', 'MLAListTableHooksExample::mla_list_table_search_filter_fields', 10, 2 );
|
78 |
+
add_filter( 'mla_list_table_search_filter_inner_clause', 'MLAListTableHooksExample::mla_list_table_search_filter_inner_clause', 10, 4 );
|
79 |
+
add_filter( 'mla_fetch_attachment_references', 'MLAListTableHooksExample::mla_fetch_attachment_references', 10, 3 );
|
80 |
+
|
81 |
+
/*
|
82 |
+
* Defined in /media-library-assistant/includes/class-mla-main.php
|
83 |
+
*/
|
84 |
+
add_filter( 'mla_list_table_inline_fields', 'MLAListTableHooksExample::mla_list_table_inline_fields', 10, 1 );
|
85 |
+
add_filter( 'mla_list_table_inline_action', 'MLAListTableHooksExample::mla_list_table_inline_action', 10, 2 );
|
86 |
+
add_filter( 'mla_list_table_bulk_action', 'MLAListTableHooksExample::mla_list_table_bulk_action', 10, 3 );
|
87 |
+
add_filter( 'mla_list_table_custom_bulk_action', 'MLAListTableHooksExample::mla_list_table_custom_bulk_action', 10, 3 );
|
88 |
+
add_filter( 'mla_list_table_single_action', 'MLAListTableHooksExample::mla_list_table_single_action', 10, 3 );
|
89 |
+
add_filter( 'mla_list_table_custom_single_action', 'MLAListTableHooksExample::mla_list_table_custom_single_action', 10, 3 );
|
90 |
+
add_action( 'mla_list_table_clear_filter_by', 'MLAListTableHooksExample::mla_list_table_clear_filter_by' );
|
91 |
+
add_filter( 'mla_list_table_new_instance', 'MLAListTableHooksExample::mla_list_table_new_instance', 10, 1 );
|
92 |
+
add_filter( 'mla_list_table_inline_values', 'MLAListTableHooksExample::mla_list_table_inline_values', 10, 1 );
|
93 |
+
add_filter( 'mla_list_table_inline_template', 'MLAListTableHooksExample::mla_list_table_inline_template', 10, 1 );
|
94 |
+
add_filter( 'mla_list_table_inline_parse', 'MLAListTableHooksExample::mla_list_table_inline_parse', 10, 3 );
|
95 |
+
|
96 |
+
/*
|
97 |
+
* Defined in /media-library-assistant/includes/class-mla-list-table.php
|
98 |
+
*/
|
99 |
+
add_filter( 'mla_list_table_get_columns', 'MLAListTableHooksExample::mla_list_table_get_columns', 10, 1 );
|
100 |
+
add_filter( 'mla_list_table_get_hidden_columns', 'MLAListTableHooksExample::mla_list_table_get_hidden_columns', 10, 1 );
|
101 |
+
add_filter( 'mla_list_table_get_sortable_columns', 'MLAListTableHooksExample::mla_list_table_get_sortable_columns', 10, 1 );
|
102 |
+
add_filter( 'mla_list_table_get_bulk_actions', 'MLAListTableHooksExample::mla_list_table_get_bulk_actions', 10, 1 );
|
103 |
+
add_filter( 'mla_list_table_column_default', 'MLAListTableHooksExample::mla_list_table_column_default', 10, 3 );
|
104 |
+
|
105 |
+
add_filter( 'mla_list_table_submenu_arguments', 'MLAListTableHooksExample::mla_list_table_submenu_arguments', 10, 2 );
|
106 |
+
|
107 |
+
add_filter( 'mla_list_table_prepare_items_pagination', 'MLAListTableHooksExample::mla_list_table_prepare_items_pagination', 10, 2 );
|
108 |
+
add_filter( 'mla_list_table_prepare_items_total_items', 'MLAListTableHooksExample::mla_list_table_prepare_items_total_items', 10, 2 );
|
109 |
+
add_filter( 'mla_list_table_prepare_items_the_items', 'MLAListTableHooksExample::mla_list_table_prepare_items_the_items', 10, 2 );
|
110 |
+
add_action( 'mla_list_table_prepare_items', 'MLAListTableHooksExample::mla_list_table_prepare_items', 10, 1 );
|
111 |
+
|
112 |
+
add_filter( 'mla_list_table_build_rollover_actions', 'MLAListTableHooksExample::mla_list_table_build_rollover_actions', 10, 3 );
|
113 |
+
add_filter( 'mla_list_table_build_inline_data', 'MLAListTableHooksExample::mla_list_table_build_inline_data', 10, 2 );
|
114 |
+
|
115 |
+
// 'views_upload' is only applied when WPML is active
|
116 |
+
add_filter( 'views_upload', 'MLAListTableHooksExample::views_upload', 10, 1 );
|
117 |
+
}
|
118 |
+
|
119 |
+
/**
|
120 |
+
* Views for media page MLA Menu
|
121 |
+
*
|
122 |
+
* This filter gives you an opportunity to filter the list of available list table views.
|
123 |
+
*
|
124 |
+
* @since 1.00
|
125 |
+
*
|
126 |
+
* @param array $views An array of available list table views.
|
127 |
+
* format: view_slug => link to the view, with count
|
128 |
+
*
|
129 |
+
* @return array updated list table views.
|
130 |
+
*/
|
131 |
+
public static function views_media_page_mla_menu( $views ) {
|
132 |
+
//error_log( 'MLAListTableHooksExample::views_media_page_mla_menu $views = ' . var_export( $views, true ), 0 );
|
133 |
+
return $views;
|
134 |
+
} // views_media_page_mla_menu_filter
|
135 |
+
|
136 |
+
/**
|
137 |
+
* Filter the list table Bulk Actions drop-down
|
138 |
+
*
|
139 |
+
* This filter gives you an opportunity to filter the list table Bulk Actions drop-down.
|
140 |
+
*
|
141 |
+
* @since 1.00
|
142 |
+
*
|
143 |
+
* @param array $actions An array of the available bulk actions.
|
144 |
+
* format: action_slug => Action Label
|
145 |
+
*
|
146 |
+
* @return array updated available bulk actions.
|
147 |
+
*/
|
148 |
+
public static function bulk_actions_media_page_mla_menu( $actions ) {
|
149 |
+
//error_log( 'MLAListTableHooksExample::bulk_actions_media_page_mla_menu $actions = ' . var_export( $actions, true ), 0 );
|
150 |
+
return $actions;
|
151 |
+
} // bulk_actions_media_page_mla_menu_filter
|
152 |
+
|
153 |
+
/**
|
154 |
+
* Filter the 'Months' drop-down results
|
155 |
+
*
|
156 |
+
* This filter gives you an opportunity to filter the Months' drop-down.
|
157 |
+
*
|
158 |
+
* @since 1.00
|
159 |
+
*
|
160 |
+
* @param array $months The months drop-down query result objects.
|
161 |
+
* format: index => array( 'year' => year, 'month' => month )
|
162 |
+
* @param string $post_type The post type, e.g., 'attachment'.
|
163 |
+
*
|
164 |
+
* @return array updated months query results.
|
165 |
+
*/
|
166 |
+
public static function months_dropdown_results( $months, $post_type ) {
|
167 |
+
//error_log( "MLAListTableHooksExample::months_dropdown_results ({$post_type}) \$months = " . var_export( $months[0], true ), 0 );
|
168 |
+
return $months;
|
169 |
+
} // months_dropdown_results_filter
|
170 |
+
|
171 |
+
/**
|
172 |
+
* Filter the number of items to be displayed on each page of the list table
|
173 |
+
*
|
174 |
+
* This filter gives you an opportunity to filter the number of items to be displayed
|
175 |
+
* on each page of the list table.
|
176 |
+
*
|
177 |
+
* @since 1.00
|
178 |
+
*
|
179 |
+
* @param integer $per_page Number of items to be displayed. Default 20.
|
180 |
+
*
|
181 |
+
* @return integer updated items to be displayed.
|
182 |
+
*/
|
183 |
+
public static function mla_entries_per_page( $per_page ) {
|
184 |
+
//error_log( 'MLAListTableHooksExample::mla_entries_per_page $per_page = ' . var_export( $per_page, true ), 0 );
|
185 |
+
return $per_page;
|
186 |
+
} // mla_entries_per_page_filter
|
187 |
+
|
188 |
+
/**
|
189 |
+
* Filter the list table sortable columns for a specific screen
|
190 |
+
*
|
191 |
+
* This filter gives you an opportunity to filter the list table sortable columns.
|
192 |
+
*
|
193 |
+
* @since 1.00
|
194 |
+
*
|
195 |
+
* @param array $sortable_columns An array of sortable columns.
|
196 |
+
* Format: 'column_slug' => 'orderby'
|
197 |
+
* or 'column_slug' => array( 'orderby', true )
|
198 |
+
*
|
199 |
+
* The second format will make the initial sorting order be descending.
|
200 |
+
*
|
201 |
+
* @return array updated array of sortable columns.
|
202 |
+
*/
|
203 |
+
public static function manage_media_page_mla_menu_sortable_columns( $sortable_columns ) {
|
204 |
+
//error_log( 'MLAListTableHooksExample::manage_media_page_mla_menu_sortable_columns $sortable_columns = ' . var_export( $sortable_columns, true ), 0 );
|
205 |
+
return $sortable_columns;
|
206 |
+
} // manage_media_page_mla_menu_sortable_columns
|
207 |
+
|
208 |
+
/**
|
209 |
+
* Records the list of active search fields
|
210 |
+
*
|
211 |
+
* @since 1.00
|
212 |
+
*
|
213 |
+
* @var array
|
214 |
+
*/
|
215 |
+
private static $search_fields = array();
|
216 |
+
|
217 |
+
/**
|
218 |
+
* Process the list of fields for keywords search
|
219 |
+
*
|
220 |
+
* This filter gives you an opportunity to add or remove any of the MLA standard fields for Search Media.
|
221 |
+
*
|
222 |
+
* @since 1.00
|
223 |
+
*
|
224 |
+
* @param array $active_fields fields that will be searched.
|
225 |
+
* @param array $all_fields all of the fields that can be searched.
|
226 |
+
*
|
227 |
+
* @return array updated $active_fields.
|
228 |
+
*/
|
229 |
+
public static function mla_list_table_search_filter_fields( $active_fields, $all_fields ) {
|
230 |
+
//error_log( 'MLAListTableHooksExample::mla_list_table_search_filter_fields $active_fields = ' . var_export( $active_fields, true ), 0 );
|
231 |
+
//error_log( 'MLAListTableHooksExample::mla_list_table_search_filter_fields $all_fields = ' . var_export( $all_fields, true ), 0 );
|
232 |
+
|
233 |
+
if ( in_array( 'name', $active_fields ) ) {
|
234 |
+
/* Uncomment next line to add File URL (guid) to the list of active search fields
|
235 |
+
when the "Name" box below the Search Media text box is checked */
|
236 |
+
//$active_fields[] = 'guid';
|
237 |
+
}
|
238 |
+
|
239 |
+
// Uncomment next line to ALWAYS add File URL (guid) to the list of active search fields
|
240 |
+
//$active_fields[] = 'guid';
|
241 |
+
self::$search_fields = $active_fields;
|
242 |
+
|
243 |
+
return $active_fields;
|
244 |
+
} // mla_list_table_search_filter_fields
|
245 |
+
|
246 |
+
/**
|
247 |
+
* Process the inner WHERE clause for keywords search
|
248 |
+
*
|
249 |
+
* This filter gives you an opportunity to modify or add to the inner WHERE clause for Search Media.
|
250 |
+
*
|
251 |
+
* @since 1.00
|
252 |
+
*
|
253 |
+
* @param string $inner_clause current SQL inner WHERE clause.
|
254 |
+
* @param string $inner_connector AND/OR connector between the search field clauses.
|
255 |
+
* @param string $wpdb_posts name of the POSTS database table.
|
256 |
+
* @param string $sql_term keyword value for the search.
|
257 |
+
*
|
258 |
+
* @return string updated $inner_clause.
|
259 |
+
*/
|
260 |
+
public static function mla_list_table_search_filter_inner_clause( $inner_clause, $inner_connector, $wpdb_posts, $sql_term ) {
|
261 |
+
//error_log( 'MLAListTableHooksExample::mla_list_table_search_filter_fields $inner_clause = ' . var_export( $inner_clause, true ), 0 );
|
262 |
+
//error_log( 'MLAListTableHooksExample::mla_list_table_search_filter_fields $inner_connector = ' . var_export( $inner_connector, true ), 0 );
|
263 |
+
//error_log( 'MLAListTableHooksExample::mla_list_table_search_filter_fields $wpdb_posts = ' . var_export( $wpdb_posts, true ), 0 );
|
264 |
+
//error_log( 'MLAListTableHooksExample::mla_list_table_search_filter_fields $sql_term = ' . var_export( $sql_term, true ), 0 );
|
265 |
+
|
266 |
+
if ( in_array( 'guid', self::$search_fields ) ) {
|
267 |
+
$inner_clause .= "{$inner_connector}({$wpdb_posts}.guid LIKE {$sql_term})";
|
268 |
+
}
|
269 |
+
|
270 |
+
return $inner_clause;
|
271 |
+
} // mla_list_table_search_filter_fields
|
272 |
+
|
273 |
+
/**
|
274 |
+
* Process the "where-used" reference reporting results
|
275 |
+
*
|
276 |
+
* This filter gives you an opportunity to modify or add to the "where-used" reference reporting information.
|
277 |
+
*
|
278 |
+
* @since 1.00
|
279 |
+
*
|
280 |
+
* @param array $references current attachment reference information.
|
281 |
+
* @param integer $post_id attachment ID.
|
282 |
+
* @param integer $parent_id attachment's parent ID (or zero).
|
283 |
+
*
|
284 |
+
* @return array updated $references.
|
285 |
+
*/
|
286 |
+
public static function mla_fetch_attachment_references( $references, $post_id, $parent_id ) {
|
287 |
+
//error_log( 'MLAListTableHooksExample::mla_fetch_attachment_references $references = ' . var_export( $references, true ), 0 );
|
288 |
+
//error_log( 'MLAListTableHooksExample::mla_fetch_attachment_references $post_id = ' . var_export( $post_id, true ), 0 );
|
289 |
+
//error_log( 'MLAListTableHooksExample::mla_fetch_attachment_references $parent_id = ' . var_export( $parent_id, true ), 0 );
|
290 |
+
|
291 |
+
/*
|
292 |
+
* $references contains:
|
293 |
+
*
|
294 |
+
* tested_reference true if any of the four where-used types was processed
|
295 |
+
* found_reference true if any where-used array is not empty()
|
296 |
+
* found_parent true if $parent matches a where-used post ID
|
297 |
+
* is_unattached true if $parent is zero (0)
|
298 |
+
* base_file relative path and name of the uploaded file, e.g., 2012/04/image.jpg
|
299 |
+
* path path to the file, relative to the "uploads/" directory, e.g., 2012/04/
|
300 |
+
* file The name portion of the base file, e.g., image.jpg
|
301 |
+
* files base file and any other image size files. Array key is path and file name.
|
302 |
+
* Non-image file value is a string containing file name without path
|
303 |
+
* Image file value is an array with file name, width and height
|
304 |
+
* features Array of objects with the post_type and post_title of each post
|
305 |
+
* that has the attachment as a "Featured Image"
|
306 |
+
* inserts Array of specific files (i.e., sizes) found in one or more posts/pages
|
307 |
+
* as an image (<img>) or link (<a href>). The array key is the path and file name.
|
308 |
+
* The array value is an array with the ID, post_type and post_title of each reference
|
309 |
+
* mla_galleries Array of objects with the post_type and post_title of each post
|
310 |
+
* that was returned by an [mla_gallery] shortcode
|
311 |
+
* galleries Array of objects with the post_type and post_title of each post
|
312 |
+
* that was returned by a [gallery] shortcode
|
313 |
+
* parent_type 'post' or 'page' or the custom post type of the attachment's parent
|
314 |
+
* parent_title post_title of the attachment's parent
|
315 |
+
* parent_errors UNATTACHED, ORPHAN, BAD/INVALID PARENT
|
316 |
+
*/
|
317 |
+
return $references;
|
318 |
+
} // mla_fetch_attachment_references
|
319 |
+
|
320 |
+
/**
|
321 |
+
* Process an MLA_List_Table inline action, i.e., Quick Edit
|
322 |
+
*
|
323 |
+
* This filter gives you an opportunity to pre-process an MLA_List_Table "Quick Edit"
|
324 |
+
* action before the MLA handler.
|
325 |
+
*
|
326 |
+
* @since 1.00
|
327 |
+
*
|
328 |
+
* @param array $item_content NULL, to indicate no handler.
|
329 |
+
* @param integer $post_id the affected attachment.
|
330 |
+
*
|
331 |
+
* @return object updated $item_content. NULL if no handler, otherwise
|
332 |
+
* ( 'message' => error or status message(s), 'body' => '',
|
333 |
+
* 'prevent_default' => true to bypass the MLA handler )
|
334 |
+
*/
|
335 |
+
public static function mla_list_table_inline_action( $item_content, $post_id ) {
|
336 |
+
//error_log( 'MLAListTableHooksExample::mla_list_table_inline_action $item_content = ' . var_export( $item_content, true ), 0 );
|
337 |
+
//error_log( 'MLAListTableHooksExample::mla_list_table_inline_action $post_id = ' . var_export( $post_id, true ), 0 );
|
338 |
+
return $item_content;
|
339 |
+
} // mla_list_table_inline_action
|
340 |
+
|
341 |
+
/**
|
342 |
+
* Process an MLA_List_Table bulk action
|
343 |
+
*
|
344 |
+
* This filter gives you an opportunity to pre-process an MLA_List_Table page-level
|
345 |
+
* or single-item action, standard or custom, before the MLA handler.
|
346 |
+
* The filter is called once for each of the items in $_REQUEST['cb_attachment'].
|
347 |
+
*
|
348 |
+
* @since 1.00
|
349 |
+
*
|
350 |
+
* @param array $item_content NULL, to indicate no handler.
|
351 |
+
* @param string $bulk_action the requested action.
|
352 |
+
* @param integer $post_id the affected attachment.
|
353 |
+
*
|
354 |
+
* @return object updated $item_content. NULL if no handler, otherwise
|
355 |
+
* ( 'message' => error or status message(s), 'body' => '',
|
356 |
+
* 'prevent_default' => true to bypass the MLA handler )
|
357 |
+
*/
|
358 |
+
public static function mla_list_table_bulk_action( $item_content, $bulk_action, $post_id ) {
|
359 |
+
//error_log( 'MLAListTableHooksExample::mla_list_table_bulk_action $item_content = ' . var_export( $item_content, true ), 0 );
|
360 |
+
//error_log( 'MLAListTableHooksExample::mla_list_table_bulk_action $bulk_action = ' . var_export( $bulk_action, true ), 0 );
|
361 |
+
//error_log( 'MLAListTableHooksExample::mla_list_table_bulk_action $post_id = ' . var_export( $post_id, true ), 0 );
|
362 |
+
return $item_content;
|
363 |
+
} // mla_list_table_bulk_action
|
364 |
+
|
365 |
+
/**
|
366 |
+
* Process an MLA_List_Table custom bulk action
|
367 |
+
*
|
368 |
+
* This filter gives you an opportunity to process an MLA_List_Table bulk action
|
369 |
+
* that MLA does not recognize. The filter is called once for each of the items
|
370 |
+
* in $_REQUEST['cb_attachment'].
|
371 |
+
*
|
372 |
+
* @since 1.00
|
373 |
+
*
|
374 |
+
* @param array $item_content NULL, to indicate no handler.
|
375 |
+
* @param string $bulk_action the requested action.
|
376 |
+
* @param integer $post_id the affected attachment.
|
377 |
+
*
|
378 |
+
* @return object updated $item_content. NULL if no handler, otherwise
|
379 |
+
* ( 'message' => error or status message(s), 'body' => '' )
|
380 |
+
*/
|
381 |
+
public static function mla_list_table_custom_bulk_action( $item_content, $bulk_action, $post_id ) {
|
382 |
+
//error_log( 'MLAListTableHooksExample::mla_list_table_custom_bulk_action $item_content = ' . var_export( $item_content, true ), 0 );
|
383 |
+
//error_log( 'MLAListTableHooksExample::mla_list_table_custom_bulk_action $bulk_action = ' . var_export( $bulk_action, true ), 0 );
|
384 |
+
//error_log( 'MLAListTableHooksExample::mla_list_table_custom_bulk_action $post_id = ' . var_export( $post_id, true ), 0 );
|
385 |
+
return $item_content;
|
386 |
+
} // mla_list_table_custom_bulk_action
|
387 |
+
|
388 |
+
/**
|
389 |
+
* Process an MLA_List_Table single action
|
390 |
+
*
|
391 |
+
* This filter gives you an opportunity to pre-process an MLA_List_Table page-level
|
392 |
+
* or single-item action, standard or custom, before the MLA handler.
|
393 |
+
*
|
394 |
+
* @since 1.00
|
395 |
+
*
|
396 |
+
* @param array $page_content NULL, to indicate no handler.
|
397 |
+
* @param string $mla_admin_action the requested action.
|
398 |
+
* @param integer $mla_item_ID zero (0), or the affected attachment.
|
399 |
+
*
|
400 |
+
* @return object updated $page_content. NULL if no handler, otherwise
|
401 |
+
* ( 'message' => error or status message(s),
|
402 |
+
* 'body' => '' or page content in place of the submenu table,
|
403 |
+
* 'prevent_default' => true to bypass the MLA handler )
|
404 |
+
*/
|
405 |
+
public static function mla_list_table_single_action( $page_content, $mla_admin_action, $mla_item_ID ) {
|
406 |
+
//error_log( 'MLAListTableHooksExample::mla_list_table_single_action $page_content = ' . var_export( $page_content, true ), 0 );
|
407 |
+
//error_log( 'MLAListTableHooksExample::mla_list_table_single_action $mla_admin_action = ' . var_export( $mla_admin_action, true ), 0 );
|
408 |
+
//error_log( 'MLAListTableHooksExample::mla_list_table_single_action $mla_item_ID = ' . var_export( $mla_item_ID, true ), 0 );
|
409 |
+
return $page_content;
|
410 |
+
} // mla_list_table_single_action
|
411 |
+
|
412 |
+
/**
|
413 |
+
* Process an MLA_List_Table custom single action
|
414 |
+
*
|
415 |
+
* This filter gives you an opportunity to process an MLA_List_Table page-level
|
416 |
+
* or single-item action that MLA does not recognize.
|
417 |
+
*
|
418 |
+
* @since 1.00
|
419 |
+
*
|
420 |
+
* @param array $page_content NULL, to indicate no handler.
|
421 |
+
* @param string $mla_admin_action the requested action.
|
422 |
+
* @param integer $mla_item_ID zero (0), or the affected attachment.
|
423 |
+
*
|
424 |
+
* @return object updated $page_content. NULL if no handler, otherwise
|
425 |
+
* ( 'message' => error or status message(s),
|
426 |
+
* 'body' => '' or page content in place of the submenu table )
|
427 |
+
*/
|
428 |
+
public static function mla_list_table_custom_single_action( $page_content, $mla_admin_action, $mla_item_ID ) {
|
429 |
+
//error_log( 'MLAListTableHooksExample::mla_list_table_custom_single_action $page_content = ' . var_export( $page_content, true ), 0 );
|
430 |
+
//error_log( 'MLAListTableHooksExample::mla_list_table_custom_single_action $mla_admin_action = ' . var_export( $mla_admin_action, true ), 0 );
|
431 |
+
//error_log( 'MLAListTableHooksExample::mla_list_table_custom_single_action $mla_item_ID = ' . var_export( $mla_item_ID, true ), 0 );
|
432 |
+
return $page_content;
|
433 |
+
} // mla_list_table_custom_single_action
|
434 |
+
|
435 |
+
/**
|
436 |
+
* Clear the custom "Filter-by" parameters
|
437 |
+
*
|
438 |
+
* This action gives you an opportunity to clear any custom submenu "Filter-by" parameters.
|
439 |
+
*
|
440 |
+
* @since 1.00
|
441 |
+
*
|
442 |
+
* @return void
|
443 |
+
*/
|
444 |
+
public static function mla_list_table_clear_filter_by() {
|
445 |
+
//error_log( 'MLAListTableHooksExample::mla_list_table_clear_filter_by $_REQUEST = ' . var_export( $_REQUEST, true ), 0 );
|
446 |
+
} // mla_list_table_clear_filter_by
|
447 |
+
|
448 |
+
/**
|
449 |
+
* Extend the MLA_List_Table class
|
450 |
+
*
|
451 |
+
* This filter gives you an opportunity to extend the MLA_List_Table class.
|
452 |
+
*
|
453 |
+
* @since 1.00
|
454 |
+
*
|
455 |
+
* @param object $mla_list_table NULL, to indicate no extension/use the base class.
|
456 |
+
*
|
457 |
+
* @return object updated mla_list_table object.
|
458 |
+
*/
|
459 |
+
public static function mla_list_table_new_instance( $mla_list_table ) {
|
460 |
+
//error_log( 'MLAListTableHooksExample::mla_list_table_new_instance $mla_list_table = ' . var_export( $mla_list_table, true ), 0 );
|
461 |
+
return $mla_list_table;
|
462 |
+
} // mla_list_table_new_instance
|
463 |
+
|
464 |
+
/**
|
465 |
+
* MLA_List_Table inline edit item values
|
466 |
+
*
|
467 |
+
* This filter gives you a chance to modify and extend the substitution values
|
468 |
+
* for the Quick and Bulk Edit forms.
|
469 |
+
*
|
470 |
+
* @since 1.00
|
471 |
+
*
|
472 |
+
* @param array $item_values parameter_name => parameter_value pairs
|
473 |
+
*
|
474 |
+
* @return array updated substitution parameter name => value pairs
|
475 |
+
*/
|
476 |
+
public static function mla_list_table_inline_values( $item_values ) {
|
477 |
+
//error_log( 'MLAListTableHooksExample::mla_list_table_inline_values $item_values = ' . var_export( $item_values, true ), 0 );
|
478 |
+
return $item_values;
|
479 |
+
} // mla_list_table_inline_values
|
480 |
+
|
481 |
+
/**
|
482 |
+
* MLA_List_Table inline edit template
|
483 |
+
*
|
484 |
+
* This filter gives you a chance to modify and extend the template used
|
485 |
+
* for the Quick and Bulk Edit forms.
|
486 |
+
*
|
487 |
+
* @since 1.00
|
488 |
+
*
|
489 |
+
* @param string template used to generate the HTML markup
|
490 |
+
*
|
491 |
+
* @return string updated template
|
492 |
+
*/
|
493 |
+
public static function mla_list_table_inline_template( $item_template ) {
|
494 |
+
//error_log( 'MLAListTableHooksExample::mla_list_table_inline_template $item_template = ' . var_export( $item_template, true ), 0 );
|
495 |
+
return $item_template;
|
496 |
+
} // mla_list_table_inline_template
|
497 |
+
|
498 |
+
/**
|
499 |
+
* MLA_List_Table inline edit parse
|
500 |
+
*
|
501 |
+
* @since 1.00
|
502 |
+
*
|
503 |
+
* This filter gives you a final chance to modify and extend the HTML
|
504 |
+
* markup used for the Quick and Bulk Edit forms.
|
505 |
+
*
|
506 |
+
* @param string HTML markup returned by the template parser
|
507 |
+
* @param string template used to generate the HTML markup
|
508 |
+
* @param array parameter_name => parameter_value pairs
|
509 |
+
*
|
510 |
+
* @return array updated HTML markup for the Quick and Bulk Edit forms
|
511 |
+
*/
|
512 |
+
public static function mla_list_table_inline_parse( $html_markup, $item_template, $item_values ) {
|
513 |
+
//error_log( 'MLAListTableHooksExample::mla_list_table_inline_parse $html_markup = ' . var_export( $html_markup, true ), 0 );
|
514 |
+
//error_log( 'MLAListTableHooksExample::mla_list_table_inline_parse $item_template = ' . var_export( $item_template, true ), 0 );
|
515 |
+
//error_log( 'MLAListTableHooksExample::mla_list_table_inline_parse $item_values = ' . var_export( $item_values, true ), 0 );
|
516 |
+
return $html_markup;
|
517 |
+
} // mla_gallery_item_parse_filter
|
518 |
+
|
519 |
+
/**
|
520 |
+
* Filter the MLA_List_Table columns
|
521 |
+
*
|
522 |
+
* This MLA-specific filter gives you an opportunity to filter the list table columns.
|
523 |
+
*
|
524 |
+
* @since 1.00
|
525 |
+
*
|
526 |
+
* @param array $columns An array of columns.
|
527 |
+
* format: column_slug => Column Label
|
528 |
+
*
|
529 |
+
* @return array updated array of columns.
|
530 |
+
*/
|
531 |
+
public static function mla_list_table_get_columns( $columns ) {
|
532 |
+
//error_log( 'MLAListTableHooksExample::mla_list_table_get_columns $columns = ' . var_export( $columns, true ), 0 );
|
533 |
+
return $columns;
|
534 |
+
} // mla_list_table_get_columns_filter
|
535 |
+
|
536 |
+
/**
|
537 |
+
* Filter the MLA_List_Table hidden columns
|
538 |
+
*
|
539 |
+
* This MLA-specific filter gives you an opportunity to filter the hidden list table columns.
|
540 |
+
*
|
541 |
+
* @since 1.00
|
542 |
+
*
|
543 |
+
* @param array $hidden_columns An array of columns.
|
544 |
+
* format: index => column_slug
|
545 |
+
*
|
546 |
+
* @return array updated array of columns.
|
547 |
+
*/
|
548 |
+
public static function mla_list_table_get_hidden_columns( $hidden_columns ) {
|
549 |
+
//error_log( 'MLAListTableHooksExample::mla_list_table_get_hidden_columns $hidden_columns = ' . var_export( $hidden_columns, true ), 0 );
|
550 |
+
return $hidden_columns;
|
551 |
+
} // mla_list_table_get_hidden_columns_filter
|
552 |
+
|
553 |
+
/**
|
554 |
+
* Filter the MLA_List_Table sortable columns
|
555 |
+
*
|
556 |
+
* This MLA-specific filter gives you an opportunity to filter the sortable list table
|
557 |
+
* columns; a good alternative to the 'manage_media_page_mla_menu_sortable_columns' filter.
|
558 |
+
*
|
559 |
+
* @since 1.00
|
560 |
+
*
|
561 |
+
* @param array $sortable_columns An array of columns.
|
562 |
+
* Format: 'column_slug' => 'orderby'
|
563 |
+
* or 'column_slug' => array( 'orderby', true )
|
564 |
+
*
|
565 |
+
* The second format will make the initial sorting order be descending.
|
566 |
+
*
|
567 |
+
* @return array updated array of columns.
|
568 |
+
*/
|
569 |
+
public static function mla_list_table_get_sortable_columns( $sortable_columns ) {
|
570 |
+
//error_log( 'MLAListTableHooksExample::mla_list_table_get_sortable_columns $sortable_columns = ' . var_export( $sortable_columns, true ), 0 );
|
571 |
+
return $sortable_columns;
|
572 |
+
} // mla_list_table_get_sortable_columns_filter
|
573 |
+
|
574 |
+
/**
|
575 |
+
* Filter the MLA_List_Table bulk actions
|
576 |
+
*
|
577 |
+
* This MLA-specific filter gives you an opportunity to filter the list of bulk actions;
|
578 |
+
* a good alternative to the 'bulk_actions-media_page_mla-menu' filter.
|
579 |
+
*
|
580 |
+
* @since 1.01
|
581 |
+
*
|
582 |
+
* @param array $actions An array of bulk actions.
|
583 |
+
* Format: 'slug' => 'Label'
|
584 |
+
*
|
585 |
+
* @return array updated array of actions.
|
586 |
+
*/
|
587 |
+
public static function mla_list_table_get_bulk_actions( $actions ) {
|
588 |
+
//error_log( 'MLAListTableHooksExample::mla_list_table_get_bulk_actions $actions = ' . var_export( $actions, true ), 0 );
|
589 |
+
return $actions;
|
590 |
+
} // mla_list_table_get_bulk_actions
|
591 |
+
|
592 |
+
/**
|
593 |
+
* Supply a column value if no column-specific function has been defined
|
594 |
+
*
|
595 |
+
* Called when the MLA_List_Table can't find a value for a given column.
|
596 |
+
*
|
597 |
+
* @since 1.00
|
598 |
+
*
|
599 |
+
* @param string NULL, indicating no default content
|
600 |
+
* @param array A singular item (one full row's worth of data)
|
601 |
+
* @param array The name/slug of the column to be processed
|
602 |
+
* @return string Text or HTML to be placed inside the column
|
603 |
+
*/
|
604 |
+
public static function mla_list_table_column_default( $content, $item, $column_name ) {
|
605 |
+
//error_log( "MLAListTableHooksExample::mla_list_table_column_default ({$column_name}) \$item = " . var_export( $item, true ), 0 );
|
606 |
+
return $content;
|
607 |
+
} // mla_list_table_column_default_filter
|
608 |
+
|
609 |
+
/**
|
610 |
+
* Filter the "sticky" submenu URL parameters
|
611 |
+
*
|
612 |
+
* This filter gives you an opportunity to filter the URL parameters that will be
|
613 |
+
* retained when the submenu page refreshes.
|
614 |
+
*
|
615 |
+
* @since 1.00
|
616 |
+
*
|
617 |
+
* @param array $submenu_arguments Current view, pagination and sort parameters.
|
618 |
+
* @param object $include_filters True to include "filter-by" parameters, e.g., year/month dropdown.
|
619 |
+
*
|
620 |
+
* @return array updated submenu_arguments.
|
621 |
+
*/
|
622 |
+
public static function mla_list_table_submenu_arguments( $submenu_arguments, $include_filters ) {
|
623 |
+
//error_log( 'MLAListTableHooksExample::mla_list_table_submenu_arguments $submenu_arguments = ' . var_export( $submenu_arguments, true ), 0 );
|
624 |
+
//error_log( 'MLAListTableHooksExample::mla_list_table_submenu_arguments $include_filters = ' . var_export( $include_filters, true ), 0 );
|
625 |
+
return $submenu_arguments;
|
626 |
+
} // mla_list_table_submenu_arguments
|
627 |
+
|
628 |
+
/**
|
629 |
+
* Filter the pagination parameters for prepare_items()
|
630 |
+
*
|
631 |
+
* This filter gives you an opportunity to filter the per_page and current_page
|
632 |
+
* parameters used for the prepare_items database query.
|
633 |
+
*
|
634 |
+
* @since 1.00
|
635 |
+
*
|
636 |
+
* @param array $pagination Contains 'per_page', 'current_page'.
|
637 |
+
* @param object $mla_list_table The MLA_List_Table object, passed by reference.
|
638 |
+
*
|
639 |
+
* @return array updated pagination array.
|
640 |
+
*/
|
641 |
+
public static function mla_list_table_prepare_items_pagination( $pagination, $mla_list_table ) {
|
642 |
+
//error_log( 'MLAListTableHooksExample::mla_list_table_prepare_items_pagination $pagination = ' . var_export( $pagination, true ), 0 );
|
643 |
+
//error_log( 'MLAListTableHooksExample::mla_list_table_prepare_items_pagination $mla_list_table->get_pagenum() = ' . var_export( $mla_list_table->get_pagenum(), true ), 0 );
|
644 |
+
return $pagination;
|
645 |
+
} // mla_list_table_prepare_items_pagination_filter
|
646 |
+
|
647 |
+
/**
|
648 |
+
* Filter the total items count for prepare_items()
|
649 |
+
*
|
650 |
+
* This filter gives you an opportunity to substitute your own $total_items
|
651 |
+
* parameter used for the prepare_items database query.
|
652 |
+
*
|
653 |
+
* @since 1.00
|
654 |
+
*
|
655 |
+
* @param integer $total_items NULL, indicating no substitution.
|
656 |
+
* @param object $mla_list_table The MLA_List_Table object, passed by reference.
|
657 |
+
*
|
658 |
+
* @return integer updated total_items.
|
659 |
+
*/
|
660 |
+
public static function mla_list_table_prepare_items_total_items( $total_items, $mla_list_table ) {
|
661 |
+
//error_log( 'MLAListTableHooksExample::mla_list_table_prepare_items_total_items $total_items = ' . var_export( $total_items, true ), 0 );
|
662 |
+
//error_log( 'MLAListTableHooksExample::mla_list_table_prepare_items_total_items $mla_list_table->get_pagenum() = ' . var_export( $mla_list_table->get_pagenum(), true ), 0 );
|
663 |
+
return $total_items;
|
664 |
+
} // mla_list_table_prepare_items_total_items_filter
|
665 |
+
|
666 |
+
/**
|
667 |
+
* Filter the items returned by prepare_items()
|
668 |
+
*
|
669 |
+
* This filter gives you an opportunity to substitute your own items array
|
670 |
+
* in place of the default prepare_items database query.
|
671 |
+
*
|
672 |
+
* @since 1.00
|
673 |
+
*
|
674 |
+
* @param array $items NULL, indicating no substitution.
|
675 |
+
* @param object $mla_list_table The MLA_List_Table object, passed by reference.
|
676 |
+
*
|
677 |
+
* @return array updated $items array.
|
678 |
+
*/
|
679 |
+
public static function mla_list_table_prepare_items_the_items( $items, $mla_list_table ) {
|
680 |
+
//error_log( 'MLAListTableHooksExample::mla_list_table_prepare_items_the_items $items = ' . var_export( $items, true ), 0 );
|
681 |
+
//error_log( 'MLAListTableHooksExample::mla_list_table_prepare_items_the_items $mla_list_table->get_pagenum() = ' . var_export( $mla_list_table->get_pagenum(), true ), 0 );
|
682 |
+
return $items;
|
683 |
+
} // mla_list_table_prepare_items_the_items_filter
|
684 |
+
|
685 |
+
/**
|
686 |
+
* Inspect or modify the results of prepare_items()
|
687 |
+
*
|
688 |
+
* This action gives you an opportunity to record or modify the results of the
|
689 |
+
* prepare_items database query.
|
690 |
+
*
|
691 |
+
* @since 1.00
|
692 |
+
*
|
693 |
+
* @param object $mla_list_table The MLA_List_Table object, passed by reference.
|
694 |
+
*
|
695 |
+
* @return void actions do not return anything.
|
696 |
+
*/
|
697 |
+
public static function mla_list_table_prepare_items( $mla_list_table ) {
|
698 |
+
//error_log( 'MLAListTableHooksExample::mla_list_table_prepare_items $mla_list_table->get_pagenum() = ' . var_export( $mla_list_table->get_pagenum(), true ), 0 );
|
699 |
+
return $mla_list_table;
|
700 |
+
} // mla_list_table_prepare_items
|
701 |
+
|
702 |
+
/**
|
703 |
+
* Filter the list of item "Rollover" actions
|
704 |
+
*
|
705 |
+
* This filter gives you an opportunity to filter the list of "Rollover" actions
|
706 |
+
* giving item-level links such as "Quick Edit", "Move to Trash".
|
707 |
+
*
|
708 |
+
* @since 1.00
|
709 |
+
*
|
710 |
+
* @param array $actions The list of item "Rollover" actions.
|
711 |
+
* @param object $item The current Media Library item.
|
712 |
+
* @param string $column The List Table column slug.
|
713 |
+
*
|
714 |
+
* @return array updated "Rollover" actions.
|
715 |
+
*/
|
716 |
+
public static function mla_list_table_build_rollover_actions( $actions, $item, $column ) {
|
717 |
+
//error_log( "MLAListTableHooksExample::mla_list_table_build_rollover_actions ({$column}) \$actions = " . var_export( $actions, true ), 0 );
|
718 |
+
//error_log( "MLAListTableHooksExample::mla_list_table_build_rollover_actions ({$column}) \$item = " . var_export( $item, true ), 0 );
|
719 |
+
return $actions;
|
720 |
+
} // mla_list_table_build_rollover_actions_filter
|
721 |
+
|
722 |
+
/**
|
723 |
+
* Define the fields for inline (Quick) editing
|
724 |
+
*
|
725 |
+
* This filter gives you an opportunity to name the fields passed to the
|
726 |
+
* JavaScript functions for Quick editing.
|
727 |
+
*
|
728 |
+
* @since 1.00
|
729 |
+
*
|
730 |
+
* @param array $fields The field names for inline data.
|
731 |
+
*
|
732 |
+
* @return string updated fields for inline data.
|
733 |
+
*/
|
734 |
+
public static function mla_list_table_inline_fields( $fields ) {
|
735 |
+
//error_log( 'MLAListTableHooksExample::mla_list_table_inline_fields $fields = ' . var_export( $fields, true ), 0 );
|
736 |
+
return $fields;
|
737 |
+
} // mla_list_table_inline_fields
|
738 |
+
|
739 |
+
/**
|
740 |
+
* Filter the data for inline (Quick and Bulk) editing
|
741 |
+
*
|
742 |
+
* This filter gives you an opportunity to filter the data passed to the
|
743 |
+
* JavaScript functions for Quick and Bulk editing.
|
744 |
+
*
|
745 |
+
* @since 1.00
|
746 |
+
*
|
747 |
+
* @param string $inline_data The HTML markup for inline data.
|
748 |
+
* @param object $item The current Media Library item.
|
749 |
+
*
|
750 |
+
* @return string updated HTML markup for inline data.
|
751 |
+
*/
|
752 |
+
public static function mla_list_table_build_inline_data( $inline_data, $item ) {
|
753 |
+
//error_log( 'MLAListTableHooksExample::mla_list_table_build_inline_data $inline_data = ' . var_export( $inline_data, true ), 0 );
|
754 |
+
//error_log( 'MLAListTableHooksExample::mla_list_table_build_inline_data $item = ' . var_export( $item, true ), 0 );
|
755 |
+
return $inline_data;
|
756 |
+
} // mla_list_table_build_inline_data_filter
|
757 |
+
|
758 |
+
/**
|
759 |
+
* Views for the "upload" page when WPML is active
|
760 |
+
*
|
761 |
+
* This filter is hooked by WPML Media in wpml-media.class.php, and is only
|
762 |
+
* applied when WPML is active.
|
763 |
+
*
|
764 |
+
* @since 1.00
|
765 |
+
*
|
766 |
+
* @param array $views An array of available list table views.
|
767 |
+
*
|
768 |
+
* @return array updated list table views.
|
769 |
+
*/
|
770 |
+
public static function views_upload( $views ) {
|
771 |
+
//error_log( 'MLAListTableHooksExample::views_upload $views = ' . var_export( $views, true ), 0 );
|
772 |
+
return $views;
|
773 |
+
} // views_upload_filter
|
774 |
+
} // Class MLAListTableHooksExample
|
775 |
+
|
776 |
+
/*
|
777 |
+
* Install the filters at an early opportunity
|
778 |
+
*/
|
779 |
+
add_action('init', 'MLAListTableHooksExample::initialize');
|
780 |
+
?>
|
examples/mla-project-slug-example.php.txt
ADDED
@@ -0,0 +1,106 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Creates a taxonomy=slug parameter from a parent's custom field value
|
4 |
+
*
|
5 |
+
* @package MLA Project Slug Example
|
6 |
+
* @version 1.00
|
7 |
+
*/
|
8 |
+
|
9 |
+
/*
|
10 |
+
Plugin Name: MLA Project Slug Example
|
11 |
+
Plugin URI: http://fairtradejudaica.org/media-library-assistant-a-wordpress-plugin/
|
12 |
+
Description: Provides examples of hooking the filters provided by the [mla_gallery] shortcode
|
13 |
+
Author: David Lingren
|
14 |
+
Version: 1.00
|
15 |
+
Author URI: http://fairtradejudaica.org/our-story/staff/
|
16 |
+
|
17 |
+
Copyright 2014 David Lingren
|
18 |
+
|
19 |
+
This program is free software; you can redistribute it and/or modify
|
20 |
+
it under the terms of the GNU General Public License as published by
|
21 |
+
the Free Software Foundation; either version 2 of the License, or
|
22 |
+
(at your option) any later version.
|
23 |
+
|
24 |
+
This program is distributed in the hope that it will be useful,
|
25 |
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
26 |
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
27 |
+
GNU General Public License for more details.
|
28 |
+
|
29 |
+
You can get a copy of the GNU General Public License by writing to the
|
30 |
+
Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
|
31 |
+
*/
|
32 |
+
|
33 |
+
/**
|
34 |
+
* Class MLA Project Slug Example hooks all of the filters provided by the [mla_gallery] shortcode
|
35 |
+
*
|
36 |
+
* Call it anything you want, but give it an unlikely and hopefully unique name. Hiding everything
|
37 |
+
* else inside a class means this is the only name you have to worry about.
|
38 |
+
*
|
39 |
+
* @package MLA Project Slug Example
|
40 |
+
* @since 1.00
|
41 |
+
*/
|
42 |
+
class MLAProjectSlugExample {
|
43 |
+
/**
|
44 |
+
* Initialization function, similar to __construct()
|
45 |
+
*
|
46 |
+
* @since 1.00
|
47 |
+
*
|
48 |
+
* @return void
|
49 |
+
*/
|
50 |
+
public static function initialize() {
|
51 |
+
/*
|
52 |
+
* The filters are only useful for front-end posts/pages; exit if in the admin section
|
53 |
+
*/
|
54 |
+
if ( is_admin() )
|
55 |
+
return;
|
56 |
+
|
57 |
+
/*
|
58 |
+
* add_filter parameters:
|
59 |
+
* $tag - name of the hook you're filtering; defined by [mla_gallery]
|
60 |
+
* $function_to_add - function to be called when [mla_gallery] applies the filter
|
61 |
+
* $priority - default 10; lower runs earlier, higher runs later
|
62 |
+
* $accepted_args - number of arguments your function accepts
|
63 |
+
*/
|
64 |
+
add_filter( 'mla_gallery_attributes', 'MLAProjectSlugExample::mla_gallery_attributes_filter', 10, 1 );
|
65 |
+
}
|
66 |
+
|
67 |
+
/**
|
68 |
+
* MLA Gallery (Display) Attributes
|
69 |
+
*
|
70 |
+
* This filter gives you an opportunity to record or modify the arguments passed in to the shortcode
|
71 |
+
* before they are merged with the default arguments used for the gallery display.
|
72 |
+
*
|
73 |
+
* The $shortcode_attributes array is where you will find any of your own parameters that are coded in the
|
74 |
+
* shortcode, e.g., [mla_gallery my_parameter="my value"].
|
75 |
+
*
|
76 |
+
* @since 1.00
|
77 |
+
*
|
78 |
+
* @param array the shortcode parameters passed in to the shortcode
|
79 |
+
*
|
80 |
+
* @return array updated shortcode attributes
|
81 |
+
*/
|
82 |
+
public static function mla_gallery_attributes_filter( $shortcode_attributes ) {
|
83 |
+
if ( isset( $shortcode_attributes['parent_meta'] ) ) {
|
84 |
+
global $post;
|
85 |
+
|
86 |
+
$values = explode( ',', $shortcode_attributes['parent_meta'] );
|
87 |
+
$meta_key = $values[0];
|
88 |
+
$taxonomy = ( isset( $values[1] ) ) ? $values[1] : 'attachment_category';
|
89 |
+
$values = get_post_meta( $post->ID, $meta_key );
|
90 |
+
|
91 |
+
if ( is_array( $values ) ) {
|
92 |
+
$shortcode_attributes[ $taxonomy ] = implode( ',', $values );
|
93 |
+
unset( $shortcode_attributes['parent_meta'] );
|
94 |
+
}
|
95 |
+
}
|
96 |
+
|
97 |
+
//error_log( 'MLAProjectSlugExample::mla_gallery_attributes_filter $shortcode_attributes = ' . var_export( $shortcode_attributes, true ), 0 );
|
98 |
+
return $shortcode_attributes;
|
99 |
+
} // mla_gallery_attributes_filter
|
100 |
+
} // Class MLAProjectSlugExample
|
101 |
+
|
102 |
+
/*
|
103 |
+
* Install the filters at an early opportunity
|
104 |
+
*/
|
105 |
+
add_action('init', 'MLAProjectSlugExample::initialize');
|
106 |
+
?>
|
examples/mla-tax-query-example.php.txt
CHANGED
@@ -8,13 +8,11 @@
|
|
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 |
-
*
|
12 |
-
*
|
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.
|
18 |
*/
|
19 |
|
20 |
/*
|
@@ -22,7 +20,7 @@ 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.
|
26 |
Author URI: http://fairtradejudaica.org/our-story/staff/
|
27 |
|
28 |
Copyright 2013, 2014 David Lingren
|
@@ -142,14 +140,36 @@ class MLATaxQueryExample {
|
|
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
|
146 |
-
* See the
|
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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
153 |
}
|
154 |
} // my_custom_sql present
|
155 |
|
@@ -173,27 +193,62 @@ class MLATaxQueryExample {
|
|
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 |
-
*
|
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"
|
181 |
-
* is not present, we have nothing to do. If the parameter IS present,
|
182 |
-
* taxonomy values, then builds a custom
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
183 |
*/
|
184 |
if ( isset( self::$shortcode_attributes['my_custom_sql'] ) ) {
|
185 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|
@@ -201,10 +256,10 @@ class MLATaxQueryExample {
|
|
201 |
*
|
202 |
* @return integer|array found_rows or updated query parameters
|
203 |
*/
|
204 |
-
private static function
|
205 |
global $wpdb;
|
206 |
-
//error_log( 'MLATaxQueryExample::
|
207 |
-
//error_log( 'MLATaxQueryExample::
|
208 |
|
209 |
/*
|
210 |
* This example executes a custom SQL query that is much simpler than the usual
|
@@ -214,9 +269,9 @@ class MLATaxQueryExample {
|
|
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
|
218 |
-
* ONLY used for Media Library image items, so we can omit
|
219 |
-
* and post_status.
|
220 |
*/
|
221 |
|
222 |
// Make sure $my_query_vars is an array, even if it's empty
|
@@ -295,11 +350,12 @@ class MLATaxQueryExample {
|
|
295 |
* that WordPress will process after we're done.
|
296 |
* MLA pagination will override WordPress pagination
|
297 |
*/
|
298 |
-
|
299 |
-
|
|
|
300 |
$paged = 0xFFFF; // suppress further output
|
301 |
} else {
|
302 |
-
$paged = $all_query_parameters[
|
303 |
}
|
304 |
} else {
|
305 |
$paged = $all_query_parameters['paged'];
|
@@ -343,14 +399,14 @@ class MLATaxQueryExample {
|
|
343 |
$all_query_parameters['posts_per_page'] = 0;
|
344 |
$all_query_parameters['paged'] = NULL;
|
345 |
$all_query_parameters['offset'] = NULL;
|
346 |
-
$all_query_parameters[
|
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::
|
354 |
return $count;
|
355 |
}
|
356 |
|
@@ -365,9 +421,300 @@ class MLATaxQueryExample {
|
|
365 |
$all_query_parameters['include'] = '1'; // return no images
|
366 |
}
|
367 |
|
368 |
-
//error_log( 'MLATaxQueryExample::
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
369 |
return $all_query_parameters;
|
370 |
-
} //
|
371 |
} // Class MLATaxQueryExample
|
372 |
|
373 |
/*
|
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 |
+
* - The "single_query()" and "double_query()" functions provide simplified, higher-performance
|
12 |
+
* alternatives to the standard WordPress tax_query.
|
|
|
|
|
13 |
*
|
14 |
* @package MLA tax query Example
|
15 |
+
* @version 1.01
|
16 |
*/
|
17 |
|
18 |
/*
|
20 |
Plugin URI: http://fairtradejudaica.org/media-library-assistant-a-wordpress-plugin/
|
21 |
Description: Provides an example of hooking the filters provided by the [mla_gallery] shortcode
|
22 |
Author: David Lingren
|
23 |
+
Version: 1.01
|
24 |
Author URI: http://fairtradejudaica.org/our-story/staff/
|
25 |
|
26 |
Copyright 2013, 2014 David Lingren
|
140 |
public static function mla_gallery_arguments_filter( $all_display_parameters ) {
|
141 |
if ( isset( self::$shortcode_attributes['my_custom_sql'] ) ) {
|
142 |
/*
|
143 |
+
* Determine output type; if it's pagination, count the rows and add the result
|
144 |
+
* to the parameters. See the "single_query()" and "double_query()" functions.
|
145 |
*/
|
146 |
$output_parameters = array_map( 'strtolower', array_map( 'trim', explode( ',', $all_display_parameters['mla_output'] ) ) );
|
147 |
$is_pagination = in_array( $output_parameters[0], array( 'previous_page', 'next_page', 'paginate_links' ) );
|
148 |
|
149 |
if ( $is_pagination ) {
|
150 |
+
// Determine query type
|
151 |
+
if ( isset( self::$shortcode_attributes['post_mime_type'] ) ) {
|
152 |
+
$is_double = true;
|
153 |
+
} else {
|
154 |
+
$my_query_vars = self::$shortcode_attributes['my_custom_sql'];
|
155 |
+
if ( empty( $my_query_vars ) ) {
|
156 |
+
$my_query_vars = array();
|
157 |
+
} elseif ( is_string( $my_query_vars ) ) {
|
158 |
+
$my_query_vars = shortcode_parse_atts( $my_query_vars );
|
159 |
+
}
|
160 |
+
|
161 |
+
if ( isset( $my_query_vars['order'] ) || isset( $my_query_vars['orderby'] ) ) {
|
162 |
+
$is_double = true;
|
163 |
+
} else {
|
164 |
+
$is_double = false;
|
165 |
+
}
|
166 |
+
}
|
167 |
+
|
168 |
+
if ( $is_double ) {
|
169 |
+
$all_display_parameters['mla_paginate_rows'] = self::double_query( NULL, true );
|
170 |
+
} else {
|
171 |
+
$all_display_parameters['mla_paginate_rows'] = self::single_query( NULL, true );
|
172 |
+
}
|
173 |
}
|
174 |
} // my_custom_sql present
|
175 |
|
193 |
*/
|
194 |
public static function mla_gallery_query_arguments_filter( $all_query_parameters ) {
|
195 |
/*
|
196 |
+
* This example executes a custom SQL query that is much simpler than the usual WordPress
|
197 |
+
* WP_Query arguments. See the "single_query()" and "double_query()" functions.
|
198 |
*
|
199 |
* We use a shortcode parameter of our own to apply this filter on a gallery-by-gallery
|
200 |
+
* basis, leaving other [mla_gallery] instances untouched. If the "my_custom_sql"
|
201 |
+
* parameter is not present, we have nothing to do. If the parameter IS present,
|
202 |
+
* single_query() or double_query() extracts taxonomy values, then builds a custom
|
203 |
+
* query that does a simple, high-performance search.
|
204 |
+
*
|
205 |
+
* The "my_custom_sql" parameter accepts these query arguments:
|
206 |
+
* - one or more taxonomy=slug(,slug)... arguments, which will be joined by OR
|
207 |
+
* - include_children=true
|
208 |
+
* - order and/or orderby
|
209 |
+
*
|
210 |
+
* The shortcode can also contain the post_mime_type parameter to further filter
|
211 |
+
* the results. The double_query() function is called when the request contains
|
212 |
+
* either post_mime_type or orderby/order parameters.
|
213 |
*/
|
214 |
if ( isset( self::$shortcode_attributes['my_custom_sql'] ) ) {
|
215 |
+
// Determine query type
|
216 |
+
if ( isset( self::$shortcode_attributes['post_mime_type'] ) ) {
|
217 |
+
$is_double = true;
|
218 |
+
} else {
|
219 |
+
$my_query_vars = self::$shortcode_attributes['my_custom_sql'];
|
220 |
+
if ( empty( $my_query_vars ) ) {
|
221 |
+
$my_query_vars = array();
|
222 |
+
} elseif ( is_string( $my_query_vars ) ) {
|
223 |
+
$my_query_vars = shortcode_parse_atts( $my_query_vars );
|
224 |
+
}
|
225 |
+
|
226 |
+
if ( isset( $my_query_vars['order'] ) || isset( $my_query_vars['orderby'] ) ) {
|
227 |
+
$is_double = true;
|
228 |
+
} else {
|
229 |
+
$is_double = false;
|
230 |
+
}
|
231 |
+
}
|
232 |
+
|
233 |
+
if ( $is_double ) {
|
234 |
+
$all_query_parameters = self::double_query( $all_query_parameters );
|
235 |
+
} else {
|
236 |
+
$all_query_parameters = self::single_query( $all_query_parameters );
|
237 |
+
}
|
238 |
}
|
239 |
|
|
|
240 |
return $all_query_parameters;
|
241 |
} // mla_gallery_query_arguments_filter
|
242 |
|
243 |
/**
|
244 |
+
* Custom query support function, taxonomy terms only
|
245 |
*
|
246 |
* Calculates found_rows for pagination or included attachments for gallery.
|
247 |
*
|
248 |
+
* The queries supported in this function's "my_custom_sql" parameter include:
|
249 |
+
*
|
250 |
+
* - one or more taxonomy term lists, with include_children
|
251 |
+
*
|
252 |
* @since 1.00
|
253 |
*
|
254 |
* @param array shortcode arguments merged with attachment selection defaults, so every possible parameter is present
|
256 |
*
|
257 |
* @return integer|array found_rows or updated query parameters
|
258 |
*/
|
259 |
+
private static function single_query( $all_query_parameters, $is_pagination = false ) {
|
260 |
global $wpdb;
|
261 |
+
//error_log( 'MLATaxQueryExample::single_query $all_query_parameters = ' . var_export( $all_query_parameters, true ), 0 );
|
262 |
+
//error_log( 'MLATaxQueryExample::single_query $is_pagination = ' . var_export( $is_pagination, true ), 0 );
|
263 |
|
264 |
/*
|
265 |
* This example executes a custom SQL query that is much simpler than the usual
|
269 |
* For gallery display, the query results are fed back to the [mla_gallery] shortcode as a
|
270 |
* list of attachments using the "include" parameter.
|
271 |
*
|
272 |
+
* The simplification relies on the assumption that the taxonomy and term(s) given as input
|
273 |
+
* are ONLY used for Media Library image items, so we can omit the term_relationships/posts
|
274 |
+
* JOIN clause for tests on post_mime_type, post_type and post_status.
|
275 |
*/
|
276 |
|
277 |
// Make sure $my_query_vars is an array, even if it's empty
|
350 |
* that WordPress will process after we're done.
|
351 |
* MLA pagination will override WordPress pagination
|
352 |
*/
|
353 |
+
$current_page = self::$shortcode_attributes['mla_page_parameter'];
|
354 |
+
if ( ! empty( $all_query_parameters[ $current_page ] ) ) {
|
355 |
+
if ( isset( $all_query_parameters['mla_paginate_total'] ) && ( $all_query_parameters[ $current_page ] > $all_query_parameters['mla_paginate_total'] ) ) {
|
356 |
$paged = 0xFFFF; // suppress further output
|
357 |
} else {
|
358 |
+
$paged = $all_query_parameters[ $current_page ];
|
359 |
}
|
360 |
} else {
|
361 |
$paged = $all_query_parameters['paged'];
|
399 |
$all_query_parameters['posts_per_page'] = 0;
|
400 |
$all_query_parameters['paged'] = NULL;
|
401 |
$all_query_parameters['offset'] = NULL;
|
402 |
+
$all_query_parameters[ $current_page ] = NULL;
|
403 |
$all_query_parameters['mla_paginate_total'] = NULL ;
|
404 |
} // ! is_pagination
|
405 |
|
406 |
$query = join(' ', $query);
|
407 |
if ( $is_pagination ) {
|
408 |
$count = $wpdb->get_var( $wpdb->prepare( $query, $query_parameters ) );
|
409 |
+
//error_log( 'MLATaxQueryExample::single_query $count = ' . var_export( $count, true ), 0 );
|
410 |
return $count;
|
411 |
}
|
412 |
|
421 |
$all_query_parameters['include'] = '1'; // return no images
|
422 |
}
|
423 |
|
424 |
+
//error_log( 'MLATaxQueryExample::single_query $all_query_parameters = ' . var_export( $all_query_parameters, true ), 0 );
|
425 |
+
return $all_query_parameters;
|
426 |
+
} // single_query
|
427 |
+
|
428 |
+
/**
|
429 |
+
* Custom query support function, taxonomy terms plus post_mime_type and orderby/order fields
|
430 |
+
*
|
431 |
+
* For pagination controls, the number of terms satisfying the query parameters is returned.
|
432 |
+
* For gallery display, the query results are fed back to the [mla_gallery] shortcode as a
|
433 |
+
* list of attachments using the "include" parameter.
|
434 |
+
*
|
435 |
+
* The queries supported in this function's "my_custom_sql" parameter include:
|
436 |
+
*
|
437 |
+
* - one or more taxonomy term lists, with include_children
|
438 |
+
* - one or more post_mime_types
|
439 |
+
* - ORDER BY post table fields
|
440 |
+
*
|
441 |
+
* @since 1.01
|
442 |
+
*
|
443 |
+
* @param array shortcode arguments merged with attachment selection defaults, so every possible parameter is present
|
444 |
+
* @param boolean true for pagination result, false for gallery result
|
445 |
+
*
|
446 |
+
* @return integer|array found_rows or updated query parameters
|
447 |
+
*/
|
448 |
+
private static function double_query( $all_query_parameters, $is_pagination = false ) {
|
449 |
+
global $wpdb;
|
450 |
+
//error_log( 'MLATaxQueryExample::double_query $all_query_parameters = ' . var_export( $all_query_parameters, true ), 0 );
|
451 |
+
//error_log( 'MLATaxQueryExample::double_query $is_pagination = ' . var_export( $is_pagination, true ), 0 );
|
452 |
+
|
453 |
+
/*
|
454 |
+
* This example executes two custom SQL queries that are more efficient than the usual
|
455 |
+
* WordPress WP_Query arguments.
|
456 |
+
*
|
457 |
+
* The first query is on taxonomy and term(s) only, yielding a list of object_id (post ID) values.
|
458 |
+
* The second query filters the list by post_mime_type, orders it and paginates it.
|
459 |
+
*/
|
460 |
+
|
461 |
+
// Make sure $my_query_vars is an array, even if it's empty
|
462 |
+
$my_query_vars = self::$shortcode_attributes['my_custom_sql'];
|
463 |
+
if ( empty( $my_query_vars ) ) {
|
464 |
+
$my_query_vars = array();
|
465 |
+
} elseif ( is_string( $my_query_vars ) ) {
|
466 |
+
$my_query_vars = shortcode_parse_atts( $my_query_vars );
|
467 |
+
}
|
468 |
+
|
469 |
+
// Start with empty parameter values
|
470 |
+
$ttids = array();
|
471 |
+
|
472 |
+
// Find taxonomy argument, if present, and collect terms
|
473 |
+
$taxonomies = get_taxonomies( array( 'object_type' => array( 'attachment' ) ), 'names' );
|
474 |
+
foreach( $taxonomies as $taxonomy ) {
|
475 |
+
if ( empty( $my_query_vars[ $taxonomy ] ) ) {
|
476 |
+
continue;
|
477 |
+
}
|
478 |
+
|
479 |
+
// Found the taxonomy; collect the terms
|
480 |
+
$include_children = isset( $my_query_vars['include_children'] ) && 'true' == strtolower( trim( $my_query_vars['include_children'] ) );
|
481 |
+
|
482 |
+
// Allow for multiple term slug values
|
483 |
+
$terms = array();
|
484 |
+
$slugs = explode( ',', $my_query_vars[ $taxonomy ] );
|
485 |
+
foreach ( $slugs as $slug ) {
|
486 |
+
$args = array( 'slug' => $slug, 'hide_empty' => false );
|
487 |
+
$terms = array_merge( $terms, get_terms( $taxonomy, $args ) );
|
488 |
+
}
|
489 |
+
|
490 |
+
foreach( $terms as $term ) {
|
491 |
+
// Index by ttid to remove duplicates
|
492 |
+
$ttids[ $term->term_taxonomy_id ] = $term->term_taxonomy_id;
|
493 |
+
|
494 |
+
if ( $include_children ) {
|
495 |
+
$args = array( 'child_of' => $term->term_id, 'hide_empty' => false );
|
496 |
+
$children = get_terms( 'attachment_category', $args );
|
497 |
+
foreach( $children as $child ) {
|
498 |
+
$ttids[] = $child->term_taxonomy_id;
|
499 |
+
}
|
500 |
+
} // include_children
|
501 |
+
} // $term
|
502 |
+
|
503 |
+
break;
|
504 |
+
}
|
505 |
+
|
506 |
+
// Build an array of SQL clauses for the term_relationships query
|
507 |
+
$query = array();
|
508 |
+
$query_parameters = array();
|
509 |
+
|
510 |
+
$query[] = "SELECT DISTINCT tr.object_id FROM {$wpdb->term_relationships} as tr";
|
511 |
+
|
512 |
+
$placeholders = array();
|
513 |
+
if ( ! empty( $ttids ) ) {
|
514 |
+
foreach ( $ttids as $ttid ) {
|
515 |
+
$placeholders[] = '%s';
|
516 |
+
$query_parameters[] = $ttid;
|
517 |
+
}
|
518 |
+
} else {
|
519 |
+
$placeholders[] = '%s';
|
520 |
+
$query_parameters[] = '0';
|
521 |
+
}
|
522 |
+
|
523 |
+
$query[] = 'WHERE ( tr.term_taxonomy_id IN (' . join( ',', $placeholders ) . ') )';
|
524 |
+
$query = join(' ', $query);
|
525 |
+
$ids = $wpdb->get_results( $wpdb->prepare( $query, $query_parameters ) );
|
526 |
+
if ( is_array( $ids ) ) {
|
527 |
+
$includes = array();
|
528 |
+
foreach ( $ids as $id ) {
|
529 |
+
$includes[] = $id->object_id;
|
530 |
+
}
|
531 |
+
} else {
|
532 |
+
$all_query_parameters['include'] = '1'; // return no items
|
533 |
+
return $all_query_parameters;
|
534 |
+
}
|
535 |
+
|
536 |
+
// Build an array of SQL clauses for the posts query
|
537 |
+
$query = array();
|
538 |
+
$query_parameters = array();
|
539 |
+
|
540 |
+
if ( $is_pagination ) {
|
541 |
+
$query[] = "SELECT COUNT( * ) FROM {$wpdb->posts} as p";
|
542 |
+
} else {
|
543 |
+
$query[] = "SELECT ID FROM {$wpdb->posts} as p";
|
544 |
+
}
|
545 |
+
|
546 |
+
$placeholders = array();
|
547 |
+
if ( ! empty( $includes ) ) {
|
548 |
+
foreach ( $includes as $include ) {
|
549 |
+
$placeholders[] = '%s';
|
550 |
+
$query_parameters[] = $include;
|
551 |
+
}
|
552 |
+
} else {
|
553 |
+
$placeholders[] = '%s';
|
554 |
+
$query_parameters[] = '0';
|
555 |
+
}
|
556 |
+
|
557 |
+
$query[] = 'WHERE ( ( p.ID IN (' . join( ',', $placeholders ) . ') )';
|
558 |
+
|
559 |
+
if ( ! empty( self::$shortcode_attributes['post_mime_type'] ) ) {
|
560 |
+
if ( 'all' != strtolower( self::$shortcode_attributes['post_mime_type'] ) ) {
|
561 |
+
$query[] = str_replace( '%', '%%', wp_post_mime_type_where( self::$shortcode_attributes['post_mime_type'], 'p' ) );
|
562 |
+
}
|
563 |
+
} else {
|
564 |
+
$query[] = "AND (p.post_mime_type LIKE 'image/%%')";
|
565 |
+
}
|
566 |
+
|
567 |
+
// Close the WHERE clause
|
568 |
+
$query[] = ')';
|
569 |
+
|
570 |
+
/*
|
571 |
+
* ORDER BY clause
|
572 |
+
*/
|
573 |
+
if ( ! empty( $my_query_vars['orderby'] ) ) {
|
574 |
+
$orderby = strtolower( $my_query_vars['orderby'] );
|
575 |
+
} else {
|
576 |
+
$orderby = 'none';
|
577 |
+
}
|
578 |
+
$all_query_parameters['orderby'] = 'post__in';
|
579 |
+
|
580 |
+
if ( ! empty( $my_query_vars['order'] ) ) {
|
581 |
+
$order = strtoupper( $my_query_vars['order'] );
|
582 |
+
if ( 'DESC' != $order ) {
|
583 |
+
$order = 'ASC';
|
584 |
+
}
|
585 |
+
} else {
|
586 |
+
$order = 'ASC';
|
587 |
+
}
|
588 |
+
$all_query_parameters['order'] = 'ASC';
|
589 |
+
|
590 |
+
switch ( $orderby ) {
|
591 |
+
case 'id':
|
592 |
+
$query[] = 'ORDER BY p.ID ' . $order;
|
593 |
+
break;
|
594 |
+
case 'author':
|
595 |
+
$query[] = 'ORDER BY p.post_author ' . $order;
|
596 |
+
break;
|
597 |
+
case 'date':
|
598 |
+
$query[] = 'ORDER BY p.post_date ' . $order;
|
599 |
+
break;
|
600 |
+
case 'description':
|
601 |
+
case 'content':
|
602 |
+
$query[] = 'ORDER BY p.post_content ' . $order;
|
603 |
+
break;
|
604 |
+
case 'title':
|
605 |
+
$query[] = 'ORDER BY p.post_title ' . $order;
|
606 |
+
break;
|
607 |
+
case 'caption':
|
608 |
+
case 'excerpt':
|
609 |
+
$query[] = 'ORDER BY p.post_excerpt ' . $order;
|
610 |
+
break;
|
611 |
+
case 'slug':
|
612 |
+
case 'name':
|
613 |
+
$query[] = 'ORDER BY p.post_name ' . $order;
|
614 |
+
break;
|
615 |
+
case 'modified':
|
616 |
+
$query[] = 'ORDER BY p.post_modified ' . $order;
|
617 |
+
break;
|
618 |
+
case 'parent':
|
619 |
+
$query[] = 'ORDER BY p.post_parent ' . $order;
|
620 |
+
break;
|
621 |
+
case 'menu_order':
|
622 |
+
$query[] = 'ORDER BY p.menu_order ' . $order;
|
623 |
+
break;
|
624 |
+
case 'post_mime_type':
|
625 |
+
$query[] = 'ORDER BY p.post_mime_type ' . $order;
|
626 |
+
break;
|
627 |
+
case 'comment_count':
|
628 |
+
$query[] = 'ORDER BY p.comment_count ' . $order;
|
629 |
+
break;
|
630 |
+
case 'rand':
|
631 |
+
case 'random':
|
632 |
+
$query[] = 'ORDER BY RAND() ' . $order;
|
633 |
+
break;
|
634 |
+
case 'none':
|
635 |
+
default:
|
636 |
+
break;
|
637 |
+
}
|
638 |
+
|
639 |
+
if ( ! $is_pagination ) {
|
640 |
+
/*
|
641 |
+
* Add pagination to our query, then remove it from the query
|
642 |
+
* that WordPress will process after we're done.
|
643 |
+
* MLA pagination will override WordPress pagination
|
644 |
+
*/
|
645 |
+
$current_page = self::$shortcode_attributes['mla_page_parameter'];
|
646 |
+
if ( ! empty( $all_query_parameters[ $current_page ] ) ) {
|
647 |
+
if ( isset( $all_query_parameters['mla_paginate_total'] ) && ( $all_query_parameters[ $current_page ] > $all_query_parameters['mla_paginate_total'] ) ) {
|
648 |
+
$paged = 0xFFFF; // suppress further output
|
649 |
+
} else {
|
650 |
+
$paged = $all_query_parameters[ $current_page ];
|
651 |
+
}
|
652 |
+
} else {
|
653 |
+
$paged = $all_query_parameters['paged'];
|
654 |
+
}
|
655 |
+
|
656 |
+
if ( empty( $paged ) ) {
|
657 |
+
$paged = 1;
|
658 |
+
} elseif ( 'current' == strtolower( $paged ) ) {
|
659 |
+
/*
|
660 |
+
* Note: The query variable 'page' holds the pagenumber for a single paginated
|
661 |
+
* Post or Page that includes the <!--nextpage--> Quicktag in the post content.
|
662 |
+
*/
|
663 |
+
if ( get_query_var( 'page' ) ) {
|
664 |
+
$paged = get_query_var( 'page' );
|
665 |
+
} else {
|
666 |
+
$paged = ( get_query_var('paged') ) ? get_query_var('paged') : 1;
|
667 |
+
}
|
668 |
+
} elseif ( is_numeric( $paged ) ) {
|
669 |
+
$paged = absint( $paged );
|
670 |
+
} elseif ( '' === $paged ) {
|
671 |
+
$paged = 1;
|
672 |
+
}
|
673 |
+
|
674 |
+
$limit = absint( ! empty( $all_query_parameters['posts_per_page'] ) ? $all_query_parameters['posts_per_page'] : $all_query_parameters['numberposts'] );
|
675 |
+
$offset = $limit * ( $paged - 1);
|
676 |
+
if ( 0 < $offset && 0 < $limit ) {
|
677 |
+
$query[] = 'LIMIT %d, %d';
|
678 |
+
$query_parameters[] = $offset;
|
679 |
+
$query_parameters[] = $limit;
|
680 |
+
} elseif ( 0 < $limit ) {
|
681 |
+
$query[] = 'LIMIT %d';
|
682 |
+
$query_parameters[] = $limit;
|
683 |
+
} elseif ( 0 < $offset ) {
|
684 |
+
$query[] = 'LIMIT %d, %d';
|
685 |
+
$query_parameters[] = $offset;
|
686 |
+
$query_parameters[] = 0x7FFFFFFF; // big number!
|
687 |
+
}
|
688 |
+
|
689 |
+
$all_query_parameters['nopaging'] = true;
|
690 |
+
$all_query_parameters['numberposts'] = 0;
|
691 |
+
$all_query_parameters['posts_per_page'] = 0;
|
692 |
+
$all_query_parameters['paged'] = NULL;
|
693 |
+
$all_query_parameters['offset'] = NULL;
|
694 |
+
$all_query_parameters[ $current_page ] = NULL;
|
695 |
+
$all_query_parameters['mla_paginate_total'] = NULL ;
|
696 |
+
} // ! is_pagination
|
697 |
+
|
698 |
+
$query = join(' ', $query);
|
699 |
+
if ( $is_pagination ) {
|
700 |
+
$count = $wpdb->get_var( $wpdb->prepare( $query, $query_parameters ) );
|
701 |
+
return $count;
|
702 |
+
}
|
703 |
+
|
704 |
+
$ids = $wpdb->get_results( $wpdb->prepare( $query, $query_parameters ) );
|
705 |
+
if ( is_array( $ids ) ) {
|
706 |
+
$includes = array();
|
707 |
+
foreach ( $ids as $id ) {
|
708 |
+
$includes[] = $id->ID;
|
709 |
+
}
|
710 |
+
$all_query_parameters['include'] = implode( ',', $includes );
|
711 |
+
} else {
|
712 |
+
$all_query_parameters['include'] = '1'; // return no items
|
713 |
+
}
|
714 |
+
|
715 |
+
//error_log( 'MLATaxQueryExample::double_query $all_query_parameters = ' . var_export( $all_query_parameters, true ), 0 );
|
716 |
return $all_query_parameters;
|
717 |
+
} // double_query
|
718 |
} // Class MLATaxQueryExample
|
719 |
|
720 |
/*
|
includes/class-mla-data.php
CHANGED
@@ -58,7 +58,7 @@ class MLAData {
|
|
58 |
*
|
59 |
* @since 0.1
|
60 |
*
|
61 |
-
* @param string Complete path and name of the template file, option name or the raw template
|
62 |
* @param string Optional type of template source; 'path', 'file' (default), 'option', 'string'
|
63 |
*
|
64 |
* @return string|array|false|NULL
|
@@ -86,7 +86,7 @@ class MLAData {
|
|
86 |
if ( file_exists( $path ) ) {
|
87 |
$source = $path;
|
88 |
} else {
|
89 |
-
$source = MLA_PLUGIN_PATH . '
|
90 |
}
|
91 |
}
|
92 |
// fallthru
|
@@ -1006,18 +1006,28 @@ class MLAData {
|
|
1006 |
'format' => 'raw',
|
1007 |
'option' => 'text' );
|
1008 |
|
1009 |
-
$
|
1010 |
-
|
1011 |
-
|
1012 |
-
|
1013 |
-
|
1014 |
-
$markup_values[ $key ] = $
|
1015 |
}
|
1016 |
-
|
1017 |
break;
|
1018 |
default:
|
1019 |
// ignore anything else
|
1020 |
} // switch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1021 |
} // foreach placeholder
|
1022 |
|
1023 |
if ( $template_count ) {
|
@@ -1094,7 +1104,7 @@ class MLAData {
|
|
1094 |
$tail = substr( $match, 2);
|
1095 |
}
|
1096 |
|
1097 |
-
$match_count = preg_match( '/([^,]+)(,(text|single|export|array|multi|commas|raw))\+\]/', $tail, $matches );
|
1098 |
if ( 1 == $match_count ) {
|
1099 |
$result['value'] = $matches[1];
|
1100 |
|
@@ -1104,6 +1114,12 @@ class MLAData {
|
|
1104 |
} elseif ( 'raw' == $matches[3] ) {
|
1105 |
$result['option'] = 'text';
|
1106 |
$result['format'] = 'raw';
|
|
|
|
|
|
|
|
|
|
|
|
|
1107 |
} else {
|
1108 |
$result['option'] = $matches[3];
|
1109 |
}
|
@@ -1310,6 +1326,16 @@ class MLAData {
|
|
1310 |
} // foreach
|
1311 |
}
|
1312 |
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1313 |
/*
|
1314 |
* post__in and post__not_in are used in the Media Modal Ajax queries
|
1315 |
*/
|
@@ -1346,8 +1372,8 @@ class MLAData {
|
|
1346 |
}
|
1347 |
break;
|
1348 |
case 'detached':
|
1349 |
-
if ( '1' == $value ) {
|
1350 |
-
$clean_request['detached'] =
|
1351 |
}
|
1352 |
|
1353 |
break;
|
@@ -1418,7 +1444,7 @@ class MLAData {
|
|
1418 |
* Pass query parameters to the filters for _execute_list_table_query
|
1419 |
*/
|
1420 |
self::$query_parameters = array( 'use_postmeta_view' => false, 'orderby' => $clean_request['orderby'], 'order' => $clean_request['order'] );
|
1421 |
-
self::$query_parameters['detached'] = isset( $clean_request['detached'] );
|
1422 |
|
1423 |
/*
|
1424 |
* Matching a meta_value to NULL requires a LEFT JOIN to a view and a special WHERE clause
|
@@ -1845,7 +1871,7 @@ class MLAData {
|
|
1845 |
$terms_search = array_map('MLAData::mla_search_terms_tidy', $matches[0]);
|
1846 |
}
|
1847 |
|
1848 |
-
$fields = self::$query_parameters['mla_search_fields'];
|
1849 |
$percent = self::$query_parameters['exact'] ? '' : '%';
|
1850 |
$connector = '';
|
1851 |
|
@@ -1890,6 +1916,8 @@ class MLAData {
|
|
1890 |
if ( in_array( 'name', $fields ) ) {
|
1891 |
$inner_clause .= "{$inner_connector}({$wpdb->posts}.post_name LIKE {$sql_term})";
|
1892 |
}
|
|
|
|
|
1893 |
|
1894 |
if ( ! empty($inner_clause) ) {
|
1895 |
$search_clause .= "{$connector}({$inner_clause})";
|
@@ -1991,7 +2019,7 @@ class MLAData {
|
|
1991 |
}
|
1992 |
|
1993 |
/**
|
1994 |
-
* Adds
|
1995 |
*
|
1996 |
* Modeled after _edit_attachments_query_helper in wp-admin/post.php.
|
1997 |
* Defined as public because it's a filter.
|
@@ -2000,7 +2028,7 @@ class MLAData {
|
|
2000 |
*
|
2001 |
* @param string query clause before modification
|
2002 |
*
|
2003 |
-
* @return string query clause after
|
2004 |
*/
|
2005 |
public static function mla_query_posts_where_filter( $where_clause ) {
|
2006 |
global $wpdb;
|
@@ -2036,8 +2064,12 @@ class MLAData {
|
|
2036 |
/*
|
2037 |
* Unattached items require some help
|
2038 |
*/
|
2039 |
-
if ( self::$query_parameters['detached'] ) {
|
2040 |
-
|
|
|
|
|
|
|
|
|
2041 |
}
|
2042 |
|
2043 |
if ( isset( self::$query_parameters['debug'] ) ) {
|
@@ -2667,13 +2699,21 @@ class MLAData {
|
|
2667 |
$attachment_metadata = get_post_meta( $ID, '_wp_attachment_metadata', true );
|
2668 |
$sizes = isset( $attachment_metadata['sizes'] ) ? $attachment_metadata['sizes'] : NULL;
|
2669 |
if ( ! empty( $sizes ) ) {
|
2670 |
-
|
2671 |
foreach ( $sizes as $size ) {
|
2672 |
$references['files'][ $references['path'] . $size['file'] ] = $size;
|
2673 |
}
|
2674 |
}
|
2675 |
-
|
2676 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2677 |
|
2678 |
/*
|
2679 |
* Process the where-used settings option
|
@@ -2795,7 +2835,7 @@ class MLAData {
|
|
2795 |
|
2796 |
if ( ! empty( $inserts ) ) {
|
2797 |
$references['found_reference'] = true;
|
2798 |
-
$references['inserts'][ $file ] = $inserts;
|
2799 |
|
2800 |
foreach ( $inserts as $insert ) {
|
2801 |
if ( $insert->ID == $parent ) {
|
@@ -2880,6 +2920,7 @@ class MLAData {
|
|
2880 |
$references['parent_errors'] = trim( $errors );
|
2881 |
|
2882 |
$save_id = $ID;
|
|
|
2883 |
return $references;
|
2884 |
}
|
2885 |
|
@@ -2929,18 +2970,18 @@ class MLAData {
|
|
2929 |
$references = array();
|
2930 |
if ( isset( $attachment->mla_wp_attached_file ) ) {
|
2931 |
$references['base_file'] = $attachment->mla_wp_attached_file;
|
2932 |
-
$references['files'][ $references['base_file'] ] = array( 'file' => $references['base_file'] );
|
2933 |
} else {
|
2934 |
$references['base_file'] = '';
|
2935 |
}
|
2936 |
|
2937 |
$pathinfo = pathinfo($references['base_file']);
|
2938 |
-
$references['file'] = $pathinfo['basename'];
|
2939 |
if ( ( ! isset( $pathinfo['dirname'] ) ) || '.' == $pathinfo['dirname'] ) {
|
2940 |
$references['path'] = '/';
|
2941 |
} else {
|
2942 |
$references['path'] = $pathinfo['dirname'] . '/';
|
2943 |
}
|
|
|
|
|
2944 |
|
2945 |
if ( isset( $attachment->mla_wp_attachment_metadata ) ) {
|
2946 |
$attachment_metadata = $attachment->mla_wp_attachment_metadata;
|
@@ -2956,6 +2997,15 @@ class MLAData {
|
|
2956 |
}
|
2957 |
}
|
2958 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2959 |
$files[ $index ] = $references;
|
2960 |
}
|
2961 |
|
@@ -3048,7 +3098,7 @@ class MLAData {
|
|
3048 |
}
|
3049 |
|
3050 |
foreach ( $attachments as $attachment_index => $attachment ) {
|
3051 |
-
$references = $initial_references;
|
3052 |
|
3053 |
/*
|
3054 |
* Fill in Parent data
|
@@ -3066,36 +3116,7 @@ class MLAData {
|
|
3066 |
$references['parent_title'] = $attachment->parent_title;
|
3067 |
}
|
3068 |
}
|
3069 |
-
|
3070 |
-
if ( isset( $attachment->mla_wp_attached_file ) ) {
|
3071 |
-
$references['base_file'] = $attachment->mla_wp_attached_file;
|
3072 |
-
$references['files'][ $references['base_file'] ] = $references['base_file'];
|
3073 |
-
} else {
|
3074 |
-
$references['base_file'] = '';
|
3075 |
-
}
|
3076 |
-
|
3077 |
-
$pathinfo = pathinfo($references['base_file']);
|
3078 |
-
$references['file'] = $pathinfo['basename'];
|
3079 |
-
if ( ( ! isset( $pathinfo['dirname'] ) ) || '.' == $pathinfo['dirname'] ) {
|
3080 |
-
$references['path'] = '/';
|
3081 |
-
} else {
|
3082 |
-
$references['path'] = $pathinfo['dirname'] . '/';
|
3083 |
-
}
|
3084 |
-
|
3085 |
-
if ( isset( $attachment->mla_wp_attachment_metadata ) ) {
|
3086 |
-
$attachment_metadata = $attachment->mla_wp_attachment_metadata;
|
3087 |
-
} else {
|
3088 |
-
$attachment_metadata = '';
|
3089 |
-
}
|
3090 |
-
|
3091 |
-
$sizes = isset( $attachment_metadata['sizes'] ) ? $attachment_metadata['sizes'] : NULL;
|
3092 |
-
if ( ! empty( $sizes ) ) {
|
3093 |
-
/* Using the path and name as the array key ensures each name is added only once */
|
3094 |
-
foreach ( $sizes as $size ) {
|
3095 |
-
$references['files'][ $references['path'] . $size['file'] ] = $size;
|
3096 |
-
}
|
3097 |
-
}
|
3098 |
-
|
3099 |
/*
|
3100 |
* Accumulate reference test types, e.g., 0 = no tests, 4 = all tests
|
3101 |
*/
|
@@ -3125,6 +3146,7 @@ class MLAData {
|
|
3125 |
$reference_tests++;
|
3126 |
|
3127 |
if ( isset( $inserts[ $attachment_index ] ) ) {
|
|
|
3128 |
foreach( $inserts[ $attachment_index ] as $insert ) {
|
3129 |
$ref_insert = clone $insert;
|
3130 |
unset( $ref_insert->file_name );
|
@@ -3136,6 +3158,9 @@ class MLAData {
|
|
3136 |
}
|
3137 |
|
3138 |
$references['inserts'][ $ref_key ][ $insert->ID ] = $ref_insert;
|
|
|
|
|
|
|
3139 |
} // each insert
|
3140 |
} else {
|
3141 |
$references['inserts'] = array();
|
@@ -3213,7 +3238,7 @@ class MLAData {
|
|
3213 |
}
|
3214 |
|
3215 |
$references['parent_errors'] = trim( $errors );
|
3216 |
-
$attachments[ $attachment_index ]->mla_references = $references;
|
3217 |
} // foreach $attachment
|
3218 |
}
|
3219 |
|
@@ -5145,10 +5170,10 @@ class MLAData {
|
|
5145 |
* @return boolean true, to bypass PHP error handler
|
5146 |
*/
|
5147 |
public static function mla_IPTC_EXIF_error_handler( $type, $string, $file, $line ) {
|
5148 |
-
//error_log( 'mla_IPTC_EXIF_error_handler $type = ' . var_export( $type, true ), 0 );
|
5149 |
-
//error_log( 'mla_IPTC_EXIF_error_handler $string = ' . var_export( $string, true ), 0 );
|
5150 |
-
//error_log( 'mla_IPTC_EXIF_error_handler $file = ' . var_export( $file, true ), 0 );
|
5151 |
-
//error_log( 'mla_IPTC_EXIF_error_handler $line = ' . var_export( $line, true ), 0 );
|
5152 |
|
5153 |
switch ( $type ) {
|
5154 |
case E_ERROR:
|
58 |
*
|
59 |
* @since 0.1
|
60 |
*
|
61 |
+
* @param string Complete path and/or name of the template file, option name or the raw template
|
62 |
* @param string Optional type of template source; 'path', 'file' (default), 'option', 'string'
|
63 |
*
|
64 |
* @return string|array|false|NULL
|
86 |
if ( file_exists( $path ) ) {
|
87 |
$source = $path;
|
88 |
} else {
|
89 |
+
$source = MLA_PLUGIN_PATH . 'tpls/' . $source;
|
90 |
}
|
91 |
}
|
92 |
// fallthru
|
1006 |
'format' => 'raw',
|
1007 |
'option' => 'text' );
|
1008 |
|
1009 |
+
$markup_values[ $key ] = MLAOptions::mla_get_data_source( $post_id, 'single_attachment_mapping', $data_value );
|
1010 |
+
} elseif ( isset( $markup_values[ $value['value'] ] ) ) {
|
1011 |
+
/*
|
1012 |
+
* A standard element can have a format modifier, e.g., commas, attr
|
1013 |
+
*/
|
1014 |
+
$markup_values[ $key ] = $markup_values[ $value['value'] ];
|
1015 |
}
|
1016 |
+
|
1017 |
break;
|
1018 |
default:
|
1019 |
// ignore anything else
|
1020 |
} // switch
|
1021 |
+
|
1022 |
+
if ( isset( $markup_values[ $key ] ) ) {
|
1023 |
+
if ( 'attr' == $value['format'] ) {
|
1024 |
+
$markup_values[ $key ] = esc_attr( $markup_values[ $key ] );
|
1025 |
+
} elseif ( 'url' == $value['format'] ) {
|
1026 |
+
$markup_values[ $key ] = urlencode( $markup_values[ $key ] );
|
1027 |
+
} elseif ( ( 'commas' == $value['format'] ) && is_numeric( $markup_values[ $key ] ) ) {
|
1028 |
+
$markup_values[ $key ] = number_format( (float)$markup_values[ $key ] );
|
1029 |
+
}
|
1030 |
+
}
|
1031 |
} // foreach placeholder
|
1032 |
|
1033 |
if ( $template_count ) {
|
1104 |
$tail = substr( $match, 2);
|
1105 |
}
|
1106 |
|
1107 |
+
$match_count = preg_match( '/([^,]+)(,(text|single|export|array|multi|commas|raw|attr|url))\+\]/', $tail, $matches );
|
1108 |
if ( 1 == $match_count ) {
|
1109 |
$result['value'] = $matches[1];
|
1110 |
|
1114 |
} elseif ( 'raw' == $matches[3] ) {
|
1115 |
$result['option'] = 'text';
|
1116 |
$result['format'] = 'raw';
|
1117 |
+
} elseif ( 'attr' == $matches[3] ) {
|
1118 |
+
$result['option'] = 'text';
|
1119 |
+
$result['format'] = 'attr';
|
1120 |
+
} elseif ( 'url' == $matches[3] ) {
|
1121 |
+
$result['option'] = 'text';
|
1122 |
+
$result['format'] = 'url';
|
1123 |
} else {
|
1124 |
$result['option'] = $matches[3];
|
1125 |
}
|
1326 |
} // foreach
|
1327 |
}
|
1328 |
break;
|
1329 |
+
/*
|
1330 |
+
* ids allows hooks to supply a persistent list of items
|
1331 |
+
*/
|
1332 |
+
case 'ids':
|
1333 |
+
if ( is_array( $value ) ) {
|
1334 |
+
$clean_request[ 'post__in' ] = $value;
|
1335 |
+
} else {
|
1336 |
+
$clean_request[ 'post__in' ] = array_map( 'absint', explode( ',', $value ) );
|
1337 |
+
}
|
1338 |
+
break;
|
1339 |
/*
|
1340 |
* post__in and post__not_in are used in the Media Modal Ajax queries
|
1341 |
*/
|
1372 |
}
|
1373 |
break;
|
1374 |
case 'detached':
|
1375 |
+
if ( ( '0' == $value ) || ( '1' == $value ) ) {
|
1376 |
+
$clean_request['detached'] = $value;
|
1377 |
}
|
1378 |
|
1379 |
break;
|
1444 |
* Pass query parameters to the filters for _execute_list_table_query
|
1445 |
*/
|
1446 |
self::$query_parameters = array( 'use_postmeta_view' => false, 'orderby' => $clean_request['orderby'], 'order' => $clean_request['order'] );
|
1447 |
+
self::$query_parameters['detached'] = isset( $clean_request['detached'] ) ? $clean_request['detached'] : NULL;
|
1448 |
|
1449 |
/*
|
1450 |
* Matching a meta_value to NULL requires a LEFT JOIN to a view and a special WHERE clause
|
1871 |
$terms_search = array_map('MLAData::mla_search_terms_tidy', $matches[0]);
|
1872 |
}
|
1873 |
|
1874 |
+
$fields = apply_filters( 'mla_list_table_search_filter_fields', self::$query_parameters['mla_search_fields'], array( 'content', 'title', 'excerpt', 'alt-text', 'name', 'terms' ) );
|
1875 |
$percent = self::$query_parameters['exact'] ? '' : '%';
|
1876 |
$connector = '';
|
1877 |
|
1916 |
if ( in_array( 'name', $fields ) ) {
|
1917 |
$inner_clause .= "{$inner_connector}({$wpdb->posts}.post_name LIKE {$sql_term})";
|
1918 |
}
|
1919 |
+
|
1920 |
+
$inner_clause = apply_filters( 'mla_list_table_search_filter_inner_clause', $inner_clause, $inner_connector, $wpdb->posts, $sql_term );
|
1921 |
|
1922 |
if ( ! empty($inner_clause) ) {
|
1923 |
$search_clause .= "{$connector}({$inner_clause})";
|
2019 |
}
|
2020 |
|
2021 |
/**
|
2022 |
+
* Adds/modifies the WHERE clause for meta values, LIKE patterns and detached items
|
2023 |
*
|
2024 |
* Modeled after _edit_attachments_query_helper in wp-admin/post.php.
|
2025 |
* Defined as public because it's a filter.
|
2028 |
*
|
2029 |
* @param string query clause before modification
|
2030 |
*
|
2031 |
+
* @return string query clause after modification
|
2032 |
*/
|
2033 |
public static function mla_query_posts_where_filter( $where_clause ) {
|
2034 |
global $wpdb;
|
2064 |
/*
|
2065 |
* Unattached items require some help
|
2066 |
*/
|
2067 |
+
if ( isset( self::$query_parameters['detached'] ) ) {
|
2068 |
+
if ( '1' == self::$query_parameters['detached'] ) {
|
2069 |
+
$where_clause .= sprintf( ' AND %1$s.post_parent < 1', $wpdb->posts );
|
2070 |
+
} elseif ( '0' == self::$query_parameters['detached'] ) {
|
2071 |
+
$where_clause .= sprintf( ' AND %1$s.post_parent > 0', $wpdb->posts );
|
2072 |
+
}
|
2073 |
}
|
2074 |
|
2075 |
if ( isset( self::$query_parameters['debug'] ) ) {
|
2699 |
$attachment_metadata = get_post_meta( $ID, '_wp_attachment_metadata', true );
|
2700 |
$sizes = isset( $attachment_metadata['sizes'] ) ? $attachment_metadata['sizes'] : NULL;
|
2701 |
if ( ! empty( $sizes ) ) {
|
2702 |
+
// Using the name as the array key ensures each name is added only once
|
2703 |
foreach ( $sizes as $size ) {
|
2704 |
$references['files'][ $references['path'] . $size['file'] ] = $size;
|
2705 |
}
|
2706 |
}
|
2707 |
+
|
2708 |
+
$base_type = wp_check_filetype( $references['file'] );
|
2709 |
+
$base_reference = array(
|
2710 |
+
'file' => $references['file'],
|
2711 |
+
'width' => isset( $attachment_metadata['width'] ) ? $attachment_metadata['width'] : 0,
|
2712 |
+
'height' => isset( $attachment_metadata['height'] ) ? $attachment_metadata['height'] : 0,
|
2713 |
+
'mime_type' => isset( $base_type['type'] ) ? $base_type['type'] : 'unknown',
|
2714 |
+
);
|
2715 |
+
|
2716 |
+
$references['files'][ $references['base_file'] ] = $base_reference;
|
2717 |
|
2718 |
/*
|
2719 |
* Process the where-used settings option
|
2835 |
|
2836 |
if ( ! empty( $inserts ) ) {
|
2837 |
$references['found_reference'] = true;
|
2838 |
+
$references['inserts'][ $file_data['file'] ] = $inserts;
|
2839 |
|
2840 |
foreach ( $inserts as $insert ) {
|
2841 |
if ( $insert->ID == $parent ) {
|
2920 |
$references['parent_errors'] = trim( $errors );
|
2921 |
|
2922 |
$save_id = $ID;
|
2923 |
+
$references = apply_filters( 'mla_fetch_attachment_references', $references, $ID, $parent );
|
2924 |
return $references;
|
2925 |
}
|
2926 |
|
2970 |
$references = array();
|
2971 |
if ( isset( $attachment->mla_wp_attached_file ) ) {
|
2972 |
$references['base_file'] = $attachment->mla_wp_attached_file;
|
|
|
2973 |
} else {
|
2974 |
$references['base_file'] = '';
|
2975 |
}
|
2976 |
|
2977 |
$pathinfo = pathinfo($references['base_file']);
|
|
|
2978 |
if ( ( ! isset( $pathinfo['dirname'] ) ) || '.' == $pathinfo['dirname'] ) {
|
2979 |
$references['path'] = '/';
|
2980 |
} else {
|
2981 |
$references['path'] = $pathinfo['dirname'] . '/';
|
2982 |
}
|
2983 |
+
|
2984 |
+
$references['file'] = $pathinfo['basename'];
|
2985 |
|
2986 |
if ( isset( $attachment->mla_wp_attachment_metadata ) ) {
|
2987 |
$attachment_metadata = $attachment->mla_wp_attachment_metadata;
|
2997 |
}
|
2998 |
}
|
2999 |
|
3000 |
+
$base_type = wp_check_filetype( $references['file'] );
|
3001 |
+
$base_reference = array(
|
3002 |
+
'file' => $references['file'],
|
3003 |
+
'width' => isset( $attachment_metadata['width'] ) ? $attachment_metadata['width'] : 0,
|
3004 |
+
'height' => isset( $attachment_metadata['height'] ) ? $attachment_metadata['height'] : 0,
|
3005 |
+
'mime_type' => isset( $base_type['type'] ) ? $base_type['type'] : 'unknown',
|
3006 |
+
);
|
3007 |
+
|
3008 |
+
$references['files'][ $references['base_file'] ] = $base_reference;
|
3009 |
$files[ $index ] = $references;
|
3010 |
}
|
3011 |
|
3098 |
}
|
3099 |
|
3100 |
foreach ( $attachments as $attachment_index => $attachment ) {
|
3101 |
+
$references = array_merge( $initial_references, $files[ $attachment_index ] );
|
3102 |
|
3103 |
/*
|
3104 |
* Fill in Parent data
|
3116 |
$references['parent_title'] = $attachment->parent_title;
|
3117 |
}
|
3118 |
}
|
3119 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3120 |
/*
|
3121 |
* Accumulate reference test types, e.g., 0 = no tests, 4 = all tests
|
3122 |
*/
|
3146 |
$reference_tests++;
|
3147 |
|
3148 |
if ( isset( $inserts[ $attachment_index ] ) ) {
|
3149 |
+
$references['found_reference'] = true;
|
3150 |
foreach( $inserts[ $attachment_index ] as $insert ) {
|
3151 |
$ref_insert = clone $insert;
|
3152 |
unset( $ref_insert->file_name );
|
3158 |
}
|
3159 |
|
3160 |
$references['inserts'][ $ref_key ][ $insert->ID ] = $ref_insert;
|
3161 |
+
if ( $insert->ID == $attachment->post_parent ) {
|
3162 |
+
$references['found_parent'] = true;
|
3163 |
+
}
|
3164 |
} // each insert
|
3165 |
} else {
|
3166 |
$references['inserts'] = array();
|
3238 |
}
|
3239 |
|
3240 |
$references['parent_errors'] = trim( $errors );
|
3241 |
+
$attachments[ $attachment_index ]->mla_references = apply_filters( 'mla_fetch_attachment_references', $references, $attachment->ID, (int) $attachment->post_parent );
|
3242 |
} // foreach $attachment
|
3243 |
}
|
3244 |
|
5170 |
* @return boolean true, to bypass PHP error handler
|
5171 |
*/
|
5172 |
public static function mla_IPTC_EXIF_error_handler( $type, $string, $file, $line ) {
|
5173 |
+
//error_log( 'DEBUG: mla_IPTC_EXIF_error_handler $type = ' . var_export( $type, true ), 0 );
|
5174 |
+
//error_log( 'DEBUG: mla_IPTC_EXIF_error_handler $string = ' . var_export( $string, true ), 0 );
|
5175 |
+
//error_log( 'DEBUG: mla_IPTC_EXIF_error_handler $file = ' . var_export( $file, true ), 0 );
|
5176 |
+
//error_log( 'DEBUG: mla_IPTC_EXIF_error_handler $line = ' . var_export( $line, true ), 0 );
|
5177 |
|
5178 |
switch ( $type ) {
|
5179 |
case E_ERROR:
|
includes/class-mla-list-table.php
CHANGED
@@ -35,7 +35,7 @@ class MLA_List_Table extends WP_List_Table {
|
|
35 |
*
|
36 |
* @var int
|
37 |
*/
|
38 |
-
|
39 |
|
40 |
/**
|
41 |
* Currently hidden columns
|
@@ -46,7 +46,7 @@ class MLA_List_Table extends WP_List_Table {
|
|
46 |
*
|
47 |
* @var array
|
48 |
*/
|
49 |
-
|
50 |
|
51 |
/*
|
52 |
* The $default_columns, $default_hidden_columns, and $default_sortable_columns
|
@@ -70,7 +70,7 @@ class MLA_List_Table extends WP_List_Table {
|
|
70 |
*
|
71 |
* @var array
|
72 |
*/
|
73 |
-
|
74 |
|
75 |
/**
|
76 |
* Default values for hidden columns
|
@@ -88,7 +88,7 @@ class MLA_List_Table extends WP_List_Table {
|
|
88 |
*
|
89 |
* @var array
|
90 |
*/
|
91 |
-
|
92 |
// 'ID_parent',
|
93 |
// 'title_name',
|
94 |
'post_title',
|
@@ -121,8 +121,8 @@ class MLA_List_Table extends WP_List_Table {
|
|
121 |
* to sort by. Often, the key and value will be the same, but this is not always
|
122 |
* the case (as the value is a column name from the database, not the list table).
|
123 |
*
|
124 |
-
* The array value also contains a boolean which is 'true' if the
|
125 |
-
*
|
126 |
*
|
127 |
* Taxonomy and custom field columns are added to this array by
|
128 |
* MLA_List_Table::mla_admin_init_action.
|
@@ -131,8 +131,8 @@ class MLA_List_Table extends WP_List_Table {
|
|
131 |
*
|
132 |
* @var array
|
133 |
*/
|
134 |
-
|
135 |
-
'ID_parent' => array('ID',
|
136 |
'title_name' => array('title_name',false),
|
137 |
'post_title' => array('post_title',false),
|
138 |
'post_name' => array('post_name',false),
|
@@ -142,31 +142,20 @@ class MLA_List_Table extends WP_List_Table {
|
|
142 |
// 'inserted' => array('inserted',false),
|
143 |
// 'galleries' => array('galleries',false),
|
144 |
// 'mla_galleries' => array('mla_galleries',false),
|
145 |
-
'alt_text' => array('_wp_attachment_image_alt',
|
146 |
'caption' => array('post_excerpt',false),
|
147 |
'description' => array('post_content',false),
|
148 |
'post_mime_type' => array('post_mime_type',false),
|
149 |
'file_url' => array('guid',false),
|
150 |
'base_file' => array('_wp_attached_file',false),
|
151 |
-
'date' => array('post_date',
|
152 |
-
'modified' => array('post_modified',
|
153 |
'author' => array('post_author',false),
|
154 |
'attached_to' => array('post_parent',false),
|
155 |
// sortable taxonomy columns, if any, added by mla_admin_init_action
|
156 |
// sortable custom field columns, if any, added by mla_admin_init_action
|
157 |
);
|
158 |
|
159 |
-
/**
|
160 |
-
* Access the default list of hidden columns
|
161 |
-
*
|
162 |
-
* @since 0.1
|
163 |
-
*
|
164 |
-
* @return array default list of hidden columns
|
165 |
-
*/
|
166 |
-
private static function _default_hidden_columns( ) {
|
167 |
-
return MLA_List_Table::$default_hidden_columns;
|
168 |
-
}
|
169 |
-
|
170 |
/**
|
171 |
* Get MIME types with one or more attachments for view preparation
|
172 |
*
|
@@ -179,7 +168,7 @@ class MLA_List_Table extends WP_List_Table {
|
|
179 |
*
|
180 |
* @return array Mime type names
|
181 |
*/
|
182 |
-
|
183 |
$available = array();
|
184 |
|
185 |
foreach ( $num_posts as $mime_type => $number ) {
|
@@ -191,6 +180,47 @@ class MLA_List_Table extends WP_List_Table {
|
|
191 |
return $available;
|
192 |
}
|
193 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
194 |
/**
|
195 |
* Get dropdown box of terms to filter by, if available
|
196 |
*
|
@@ -248,14 +278,135 @@ class MLA_List_Table extends WP_List_Table {
|
|
248 |
public static function mla_get_sortable_columns( ) {
|
249 |
$results = array() ;
|
250 |
|
251 |
-
foreach (
|
252 |
-
$value[1] =
|
253 |
$results[ $key ] = $value;
|
254 |
}
|
255 |
|
256 |
return $results;
|
257 |
}
|
258 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
259 |
/**
|
260 |
* Handler for filter 'get_user_option_managemedia_page_mla-menucolumnshidden'
|
261 |
*
|
@@ -276,7 +427,7 @@ class MLA_List_Table extends WP_List_Table {
|
|
276 |
return $result;
|
277 |
}
|
278 |
|
279 |
-
return self
|
280 |
}
|
281 |
|
282 |
/**
|
@@ -291,7 +442,7 @@ class MLA_List_Table extends WP_List_Table {
|
|
291 |
* @return array list of table columns
|
292 |
*/
|
293 |
public static function mla_manage_columns_filter( ) {
|
294 |
-
return
|
295 |
}
|
296 |
|
297 |
/**
|
@@ -307,8 +458,9 @@ class MLA_List_Table extends WP_List_Table {
|
|
307 |
*
|
308 |
* @return array Updated list of available list table views
|
309 |
*/
|
310 |
-
public function mla_views_media_page_mla_menu_filter( $views ) {
|
311 |
-
|
|
|
312 |
return $views;
|
313 |
}
|
314 |
|
@@ -327,7 +479,7 @@ class MLA_List_Table extends WP_List_Table {
|
|
327 |
*
|
328 |
* @return mixed NULL to allow SQL query or replacement count value
|
329 |
*/
|
330 |
-
public function mla_wpml_media_view_upload_count_filter( $count, $key, $view, $lang ) {
|
331 |
// extract the base URL and query parameters
|
332 |
$href_count = preg_match( '/(href=["\'])([\s\S]+?)\?([\s\S]+?)(["\'])/', $view, $href_matches );
|
333 |
if ( $href_count ) {
|
@@ -359,7 +511,7 @@ class MLA_List_Table extends WP_List_Table {
|
|
359 |
*
|
360 |
* @return mixed NULL to allow SQL query or replacement count value
|
361 |
*/
|
362 |
-
public function mla_wpml_media_view_upload_page_count_filter( $count, $lang ) {
|
363 |
global $sitepress;
|
364 |
|
365 |
if ( isset( $_GET['meta_slug'] ) ) {
|
@@ -378,47 +530,6 @@ class MLA_List_Table extends WP_List_Table {
|
|
378 |
return $count;
|
379 |
}
|
380 |
|
381 |
-
/**
|
382 |
-
* Builds the $default_columns array with translated source texts.
|
383 |
-
*
|
384 |
-
* Called from MLA:mla_plugins_loaded_action because the $default_columns information might be
|
385 |
-
* accessed from "front end" posts/pages.
|
386 |
-
*
|
387 |
-
* @since 1.71
|
388 |
-
*
|
389 |
-
* @return void
|
390 |
-
*/
|
391 |
-
public static function mla_localize_default_columns_array( ) {
|
392 |
-
/*
|
393 |
-
* Build the default columns array at runtime to accomodate calls to the localization functions
|
394 |
-
*/
|
395 |
-
self::$default_columns = array(
|
396 |
-
'cb' => '<input type="checkbox" />', //Render a checkbox instead of text
|
397 |
-
'icon' => '',
|
398 |
-
'ID_parent' => _x( 'ID/Parent', 'list_table_column', 'media-library-assistant' ),
|
399 |
-
'title_name' => _x( 'Title/Name', 'list_table_column', 'media-library-assistant' ),
|
400 |
-
'post_title' => _x( 'Title', 'list_table_column', 'media-library-assistant' ),
|
401 |
-
'post_name' => _x( 'Name', 'list_table_column', 'media-library-assistant' ),
|
402 |
-
'parent' => _x( 'Parent ID', 'list_table_column', 'media-library-assistant' ),
|
403 |
-
'menu_order' => _x( 'Menu Order', 'list_table_column', 'media-library-assistant' ),
|
404 |
-
'featured' => _x( 'Featured in', 'list_table_column', 'media-library-assistant' ),
|
405 |
-
'inserted' => _x( 'Inserted in', 'list_table_column', 'media-library-assistant' ),
|
406 |
-
'galleries' => _x( 'Gallery in', 'list_table_column', 'media-library-assistant' ),
|
407 |
-
'mla_galleries' => _x( 'MLA Gallery in', 'list_table_column', 'media-library-assistant' ),
|
408 |
-
'alt_text' => _x( 'ALT Text', 'list_table_column', 'media-library-assistant' ),
|
409 |
-
'caption' => _x( 'Caption', 'list_table_column', 'media-library-assistant' ),
|
410 |
-
'description' => _x( 'Description', 'list_table_column', 'media-library-assistant' ),
|
411 |
-
'post_mime_type' => _x( 'MIME Type', 'list_table_column', 'media-library-assistant' ),
|
412 |
-
'file_url' => _x( 'File URL', 'list_table_column', 'media-library-assistant' ),
|
413 |
-
'base_file' => _x( 'Base File', 'list_table_column', 'media-library-assistant' ),
|
414 |
-
'date' => _x( 'Date', 'list_table_column', 'media-library-assistant' ),
|
415 |
-
'modified' => _x( 'Last Modified', 'list_table_column', 'media-library-assistant' ),
|
416 |
-
'author' => _x( 'Author', 'list_table_column', 'media-library-assistant' ),
|
417 |
-
'attached_to' => _x( 'Attached to', 'list_table_column', 'media-library-assistant' ),
|
418 |
-
// taxonomy and custom field columns added below
|
419 |
-
);
|
420 |
-
}
|
421 |
-
|
422 |
/**
|
423 |
* Adds support for taxonomy and custom field columns
|
424 |
*
|
@@ -435,15 +546,15 @@ class MLA_List_Table extends WP_List_Table {
|
|
435 |
foreach ( $taxonomies as $tax_name ) {
|
436 |
if ( MLAOptions::mla_taxonomy_support( $tax_name ) ) {
|
437 |
$tax_object = get_taxonomy( $tax_name );
|
438 |
-
|
439 |
-
|
440 |
-
//
|
441 |
} // supported taxonomy
|
442 |
} // foreach $tax_name
|
443 |
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
}
|
448 |
|
449 |
/**
|
@@ -479,9 +590,9 @@ class MLA_List_Table extends WP_List_Table {
|
|
479 |
*/
|
480 |
|
481 |
if ( is_object( $sitepress ) ) {
|
482 |
-
add_filter( 'views_media_page_mla-menu',
|
483 |
-
add_filter( 'wpml-media_view-upload-count',
|
484 |
-
add_filter( 'wpml-media_view-upload-page-count',
|
485 |
}
|
486 |
}
|
487 |
|
@@ -530,7 +641,7 @@ class MLA_List_Table extends WP_List_Table {
|
|
530 |
}
|
531 |
} // 't_'
|
532 |
elseif ( 'c_' == substr( $column_name, 0, 2 ) ) {
|
533 |
-
$values = get_post_meta( $item->ID,
|
534 |
if ( empty( $values ) ) {
|
535 |
return '';
|
536 |
}
|
@@ -546,9 +657,9 @@ class MLA_List_Table extends WP_List_Table {
|
|
546 |
} else {
|
547 |
$list[] = sprintf( '<a href="%1$s" title="' . __( 'Filter by', 'media-library-assistant' ) . ' “%2$s”">%3$s</a>', esc_url( add_query_arg( array_merge( self::mla_submenu_arguments( false ), array(
|
548 |
'page' => MLA::ADMIN_PAGE_SLUG,
|
549 |
-
'mla-metakey' => urlencode(
|
550 |
'mla-metavalue' => urlencode( $value ),
|
551 |
-
'heading_suffix' => urlencode(
|
552 |
) ), 'upload.php' ) ), esc_html( substr( $value, 0, 64 ) ), esc_html( $value ) );
|
553 |
}
|
554 |
}
|
@@ -559,9 +670,15 @@ class MLA_List_Table extends WP_List_Table {
|
|
559 |
return $list[0];
|
560 |
}
|
561 |
} else { // 'c_'
|
562 |
-
|
563 |
-
|
564 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
565 |
}
|
566 |
}
|
567 |
|
@@ -641,7 +758,7 @@ class MLA_List_Table extends WP_List_Table {
|
|
641 |
*
|
642 |
* @return array Names and URLs of row-level actions
|
643 |
*/
|
644 |
-
|
645 |
$actions = array();
|
646 |
|
647 |
if ( ( $this->rollover_id != $item->ID ) && !in_array( $column, $this->currently_hidden ) ) {
|
@@ -689,8 +806,17 @@ class MLA_List_Table extends WP_List_Table {
|
|
689 |
}
|
690 |
} // delete_post
|
691 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
692 |
$actions['view'] = '<a href="' . site_url( ) . '?attachment_id=' . $item->ID . '" rel="permalink" title="' . __( 'View', 'media-library-assistant' ) . ' “' . esc_attr( $item->post_title ) . '”">' . __( 'View', 'media-library-assistant' ) . '</a>';
|
693 |
|
|
|
|
|
694 |
$this->rollover_id = $item->ID;
|
695 |
} // $this->rollover_id != $item->ID
|
696 |
|
@@ -706,7 +832,7 @@ class MLA_List_Table extends WP_List_Table {
|
|
706 |
*
|
707 |
* @return string HTML <div> with row data
|
708 |
*/
|
709 |
-
|
710 |
$inline_data = "\r\n" . '<div class="hidden" id="inline_' . $item->ID . "\">\r\n";
|
711 |
$inline_data .= ' <div class="post_title">' . esc_attr( $item->post_title ) . "</div>\r\n";
|
712 |
$inline_data .= ' <div class="post_name">' . esc_attr( $item->post_name ) . "</div>\r\n";
|
@@ -777,7 +903,10 @@ class MLA_List_Table extends WP_List_Table {
|
|
777 |
}
|
778 |
}
|
779 |
|
|
|
|
|
780 |
$inline_data .= "</div>\r\n";
|
|
|
781 |
return $inline_data;
|
782 |
}
|
783 |
|
@@ -1142,7 +1271,12 @@ class MLA_List_Table extends WP_List_Table {
|
|
1142 |
* @return string HTML markup to be placed inside the column
|
1143 |
*/
|
1144 |
function column_base_file( $item ) {
|
1145 |
-
return $
|
|
|
|
|
|
|
|
|
|
|
1146 |
}
|
1147 |
|
1148 |
/**
|
@@ -1265,127 +1399,6 @@ class MLA_List_Table extends WP_List_Table {
|
|
1265 |
return $parent . "<br>\n" . $set_parent . "\n";
|
1266 |
}
|
1267 |
|
1268 |
-
/**
|
1269 |
-
* Process $_REQUEST, building $submenu_arguments
|
1270 |
-
*
|
1271 |
-
* @since 1.42
|
1272 |
-
*
|
1273 |
-
* @param boolean Optional: Include the "click filter" values in the results
|
1274 |
-
*
|
1275 |
-
* @return array non-empty view, search, filter and sort arguments
|
1276 |
-
*/
|
1277 |
-
public static function mla_submenu_arguments( $include_filters = true ) {
|
1278 |
-
global $sitepress;
|
1279 |
-
static $submenu_arguments = NULL, $has_filters = NULL;
|
1280 |
-
|
1281 |
-
if ( is_array( $submenu_arguments ) && ( $has_filters == $include_filters ) ) {
|
1282 |
-
return $submenu_arguments;
|
1283 |
-
}
|
1284 |
-
|
1285 |
-
$submenu_arguments = array();
|
1286 |
-
$has_filters = $include_filters;
|
1287 |
-
|
1288 |
-
/*
|
1289 |
-
* WPML arguments
|
1290 |
-
*/
|
1291 |
-
if ( isset( $_REQUEST['lang'] ) ) {
|
1292 |
-
$submenu_arguments['lang'] = $_REQUEST['lang'];
|
1293 |
-
} elseif ( is_object( $sitepress ) ) {
|
1294 |
-
$submenu_arguments['lang'] = $sitepress->get_current_language();
|
1295 |
-
}
|
1296 |
-
|
1297 |
-
/*
|
1298 |
-
* View arguments
|
1299 |
-
*/
|
1300 |
-
if ( isset( $_REQUEST['post_mime_type'] ) ) {
|
1301 |
-
$submenu_arguments['post_mime_type'] = $_REQUEST['post_mime_type'];
|
1302 |
-
}
|
1303 |
-
|
1304 |
-
if ( isset( $_REQUEST['detached'] ) ) {
|
1305 |
-
$submenu_arguments['detached'] = $_REQUEST['detached'];
|
1306 |
-
}
|
1307 |
-
|
1308 |
-
if ( isset( $_REQUEST['status'] ) ) {
|
1309 |
-
$submenu_arguments['status'] = $_REQUEST['status'];
|
1310 |
-
}
|
1311 |
-
|
1312 |
-
if ( isset( $_REQUEST['meta_query'] ) ) {
|
1313 |
-
$submenu_arguments['meta_query'] = $_REQUEST['meta_query'];
|
1314 |
-
}
|
1315 |
-
|
1316 |
-
/*
|
1317 |
-
* Search box arguments
|
1318 |
-
*/
|
1319 |
-
if ( !empty( $_REQUEST['s'] ) ) {
|
1320 |
-
$submenu_arguments['s'] = urlencode( stripslashes( $_REQUEST['s'] ) );
|
1321 |
-
|
1322 |
-
if ( isset( $_REQUEST['mla_search_connector'] ) ) {
|
1323 |
-
$submenu_arguments['mla_search_connector'] = $_REQUEST['mla_search_connector'];
|
1324 |
-
}
|
1325 |
-
|
1326 |
-
if ( isset( $_REQUEST['mla_search_fields'] ) ) {
|
1327 |
-
$submenu_arguments['mla_search_fields'] = $_REQUEST['mla_search_fields'];
|
1328 |
-
}
|
1329 |
-
}
|
1330 |
-
|
1331 |
-
/*
|
1332 |
-
* Filter arguments (from table header)
|
1333 |
-
*/
|
1334 |
-
if ( isset( $_REQUEST['m'] ) && ( '0' != $_REQUEST['m'] ) ) {
|
1335 |
-
$submenu_arguments['m'] = $_REQUEST['m'];
|
1336 |
-
}
|
1337 |
-
|
1338 |
-
if ( isset( $_REQUEST['mla_filter_term'] ) && ( '0' != $_REQUEST['mla_filter_term'] ) ) {
|
1339 |
-
$submenu_arguments['mla_filter_term'] = $_REQUEST['mla_filter_term'];
|
1340 |
-
}
|
1341 |
-
|
1342 |
-
/*
|
1343 |
-
* Sort arguments (from column header)
|
1344 |
-
*/
|
1345 |
-
if ( isset( $_REQUEST['order'] ) ) {
|
1346 |
-
$submenu_arguments['order'] = $_REQUEST['order'];
|
1347 |
-
}
|
1348 |
-
|
1349 |
-
if ( isset( $_REQUEST['orderby'] ) ) {
|
1350 |
-
$submenu_arguments['orderby'] = $_REQUEST['orderby'];
|
1351 |
-
}
|
1352 |
-
|
1353 |
-
/*
|
1354 |
-
* Filter arguments (from interior table cells)
|
1355 |
-
*/
|
1356 |
-
if ( $include_filters ) {
|
1357 |
-
if ( isset( $_REQUEST['heading_suffix'] ) ) {
|
1358 |
-
$submenu_arguments['heading_suffix'] = $_REQUEST['heading_suffix'];
|
1359 |
-
}
|
1360 |
-
|
1361 |
-
if ( isset( $_REQUEST['parent'] ) ) {
|
1362 |
-
$submenu_arguments['parent'] = $_REQUEST['parent'];
|
1363 |
-
}
|
1364 |
-
|
1365 |
-
if ( isset( $_REQUEST['author'] ) ) {
|
1366 |
-
$submenu_arguments['author'] = $_REQUEST['author'];
|
1367 |
-
}
|
1368 |
-
|
1369 |
-
if ( isset( $_REQUEST['mla-tax'] ) ) {
|
1370 |
-
$submenu_arguments['mla-tax'] = $_REQUEST['mla-tax'];
|
1371 |
-
}
|
1372 |
-
|
1373 |
-
if ( isset( $_REQUEST['mla-term'] ) ) {
|
1374 |
-
$submenu_arguments['mla-term'] = $_REQUEST['mla-term'];
|
1375 |
-
}
|
1376 |
-
|
1377 |
-
if ( isset( $_REQUEST['mla-metakey'] ) ) {
|
1378 |
-
$submenu_arguments['mla-metakey'] = $_REQUEST['mla-metakey'];
|
1379 |
-
}
|
1380 |
-
|
1381 |
-
if ( isset( $_REQUEST['mla-metavalue'] ) ) {
|
1382 |
-
$submenu_arguments['mla-metavalue'] = $_REQUEST['mla-metavalue'];
|
1383 |
-
}
|
1384 |
-
}
|
1385 |
-
|
1386 |
-
return $submenu_arguments;
|
1387 |
-
}
|
1388 |
-
|
1389 |
/**
|
1390 |
* Display the pagination, adding view, search and filter arguments
|
1391 |
*
|
@@ -1409,7 +1422,7 @@ class MLA_List_Table extends WP_List_Table {
|
|
1409 |
* @return array Column information: 'slugs'=>'Visible Titles'
|
1410 |
*/
|
1411 |
function get_columns( ) {
|
1412 |
-
return
|
1413 |
}
|
1414 |
|
1415 |
/**
|
@@ -1424,39 +1437,29 @@ class MLA_List_Table extends WP_List_Table {
|
|
1424 |
$columns = get_user_option( 'managemedia_page_' . MLA::ADMIN_PAGE_SLUG . 'columnshidden' );
|
1425 |
|
1426 |
if ( is_array( $columns ) ) {
|
1427 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
1428 |
}
|
1429 |
-
|
1430 |
-
return
|
1431 |
}
|
1432 |
|
1433 |
/**
|
1434 |
* Returns an array where the key is the column that needs to be sortable
|
1435 |
-
* and the value is db column to sort by.
|
1436 |
-
* if set.
|
1437 |
*
|
1438 |
* @since 0.1
|
1439 |
*
|
1440 |
* @return array Sortable column information,e.g.,
|
1441 |
-
* '
|
1442 |
*/
|
1443 |
function get_sortable_columns( ) {
|
1444 |
-
|
1445 |
-
|
1446 |
-
if ( isset( $_REQUEST['orderby'] ) ) {
|
1447 |
-
$needle = array(
|
1448 |
-
$_REQUEST['orderby'],
|
1449 |
-
false
|
1450 |
-
);
|
1451 |
-
$key = array_search( $needle, $columns );
|
1452 |
-
if ( $key ) {
|
1453 |
-
$columns[ $key ][ 1 ] = true;
|
1454 |
-
}
|
1455 |
-
} else {
|
1456 |
-
$columns['title_name'][ 1 ] = true;
|
1457 |
-
}
|
1458 |
-
|
1459 |
-
return $columns;
|
1460 |
}
|
1461 |
|
1462 |
/**
|
@@ -1503,7 +1506,7 @@ class MLA_List_Table extends WP_List_Table {
|
|
1503 |
|
1504 |
$posts_per_type = (array) wp_count_attachments();
|
1505 |
$post_mime_types = get_post_mime_types();
|
1506 |
-
$avail_post_mime_types =
|
1507 |
$matches = wp_match_mime_types( array_keys( $post_mime_types ), array_keys( $posts_per_type ) );
|
1508 |
|
1509 |
foreach ( $matches as $type => $reals ) {
|
@@ -1682,7 +1685,7 @@ class MLA_List_Table extends WP_List_Table {
|
|
1682 |
}
|
1683 |
}
|
1684 |
|
1685 |
-
return $actions;
|
1686 |
}
|
1687 |
|
1688 |
/**
|
@@ -1737,41 +1740,49 @@ class MLA_List_Table extends WP_List_Table {
|
|
1737 |
* @return void
|
1738 |
*/
|
1739 |
function prepare_items( ) {
|
1740 |
-
$this->_column_headers
|
1741 |
-
|
1742 |
-
$this->get_hidden_columns(),
|
1743 |
-
$this->get_sortable_columns()
|
1744 |
-
);
|
1745 |
|
1746 |
/*
|
1747 |
-
*
|
1748 |
*/
|
1749 |
$user = get_current_user_id();
|
1750 |
-
$
|
1751 |
-
$
|
1752 |
-
$per_page = get_user_meta( $user, $option, true );
|
1753 |
if ( empty( $per_page ) || $per_page < 1 ) {
|
1754 |
-
$per_page = $screen->get_option( 'per_page', 'default' );
|
1755 |
}
|
1756 |
|
1757 |
-
// $current_page = $this->get_pagenum();
|
1758 |
$current_page = isset( $_REQUEST['paged'] ) ? absint( $_REQUEST['paged'] ) : 1;
|
1759 |
|
|
|
|
|
|
|
|
|
1760 |
/*
|
1761 |
-
*
|
1762 |
* it can be used by the rest of the class.
|
1763 |
*/
|
1764 |
-
$total_items =
|
1765 |
-
|
1766 |
-
|
|
|
|
|
1767 |
/*
|
1768 |
-
*
|
1769 |
*/
|
1770 |
$this->set_pagination_args( array(
|
1771 |
'total_items' => $total_items, //WE have to calculate the total number of items
|
1772 |
'per_page' => $per_page, //WE have to determine how many items to show on a page
|
1773 |
'total_pages' => ceil( $total_items / $per_page ) //WE have to calculate the total number of pages
|
1774 |
) );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1775 |
}
|
1776 |
|
1777 |
/**
|
35 |
*
|
36 |
* @var int
|
37 |
*/
|
38 |
+
protected $rollover_id = 0;
|
39 |
|
40 |
/**
|
41 |
* Currently hidden columns
|
46 |
*
|
47 |
* @var array
|
48 |
*/
|
49 |
+
protected $currently_hidden = array();
|
50 |
|
51 |
/*
|
52 |
* The $default_columns, $default_hidden_columns, and $default_sortable_columns
|
70 |
*
|
71 |
* @var array
|
72 |
*/
|
73 |
+
protected static $default_columns = array();
|
74 |
|
75 |
/**
|
76 |
* Default values for hidden columns
|
88 |
*
|
89 |
* @var array
|
90 |
*/
|
91 |
+
protected static $default_hidden_columns = array(
|
92 |
// 'ID_parent',
|
93 |
// 'title_name',
|
94 |
'post_title',
|
121 |
* to sort by. Often, the key and value will be the same, but this is not always
|
122 |
* the case (as the value is a column name from the database, not the list table).
|
123 |
*
|
124 |
+
* The array value also contains a boolean which is 'true' if the initial sort order
|
125 |
+
* for the column is DESC/Descending.
|
126 |
*
|
127 |
* Taxonomy and custom field columns are added to this array by
|
128 |
* MLA_List_Table::mla_admin_init_action.
|
131 |
*
|
132 |
* @var array
|
133 |
*/
|
134 |
+
protected static $default_sortable_columns = array(
|
135 |
+
'ID_parent' => array('ID',true),
|
136 |
'title_name' => array('title_name',false),
|
137 |
'post_title' => array('post_title',false),
|
138 |
'post_name' => array('post_name',false),
|
142 |
// 'inserted' => array('inserted',false),
|
143 |
// 'galleries' => array('galleries',false),
|
144 |
// 'mla_galleries' => array('mla_galleries',false),
|
145 |
+
'alt_text' => array('_wp_attachment_image_alt',true),
|
146 |
'caption' => array('post_excerpt',false),
|
147 |
'description' => array('post_content',false),
|
148 |
'post_mime_type' => array('post_mime_type',false),
|
149 |
'file_url' => array('guid',false),
|
150 |
'base_file' => array('_wp_attached_file',false),
|
151 |
+
'date' => array('post_date',true),
|
152 |
+
'modified' => array('post_modified',true),
|
153 |
'author' => array('post_author',false),
|
154 |
'attached_to' => array('post_parent',false),
|
155 |
// sortable taxonomy columns, if any, added by mla_admin_init_action
|
156 |
// sortable custom field columns, if any, added by mla_admin_init_action
|
157 |
);
|
158 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
159 |
/**
|
160 |
* Get MIME types with one or more attachments for view preparation
|
161 |
*
|
168 |
*
|
169 |
* @return array Mime type names
|
170 |
*/
|
171 |
+
protected static function _avail_mime_types( $num_posts ) {
|
172 |
$available = array();
|
173 |
|
174 |
foreach ( $num_posts as $mime_type => $number ) {
|
180 |
return $available;
|
181 |
}
|
182 |
|
183 |
+
/**
|
184 |
+
* Builds the $default_columns array with translated source texts.
|
185 |
+
*
|
186 |
+
* Called from MLA:mla_plugins_loaded_action because the $default_columns information might be
|
187 |
+
* accessed from "front end" posts/pages.
|
188 |
+
*
|
189 |
+
* @since 1.71
|
190 |
+
*
|
191 |
+
* @return void
|
192 |
+
*/
|
193 |
+
public static function mla_localize_default_columns_array( ) {
|
194 |
+
/*
|
195 |
+
* Build the default columns array at runtime to accomodate calls to the localization functions
|
196 |
+
*/
|
197 |
+
self::$default_columns = array(
|
198 |
+
'cb' => '<input type="checkbox" />', //Render a checkbox instead of text
|
199 |
+
'icon' => '',
|
200 |
+
'ID_parent' => _x( 'ID/Parent', 'list_table_column', 'media-library-assistant' ),
|
201 |
+
'title_name' => _x( 'Title/Name', 'list_table_column', 'media-library-assistant' ),
|
202 |
+
'post_title' => _x( 'Title', 'list_table_column', 'media-library-assistant' ),
|
203 |
+
'post_name' => _x( 'Name', 'list_table_column', 'media-library-assistant' ),
|
204 |
+
'parent' => _x( 'Parent ID', 'list_table_column', 'media-library-assistant' ),
|
205 |
+
'menu_order' => _x( 'Menu Order', 'list_table_column', 'media-library-assistant' ),
|
206 |
+
'featured' => _x( 'Featured in', 'list_table_column', 'media-library-assistant' ),
|
207 |
+
'inserted' => _x( 'Inserted in', 'list_table_column', 'media-library-assistant' ),
|
208 |
+
'galleries' => _x( 'Gallery in', 'list_table_column', 'media-library-assistant' ),
|
209 |
+
'mla_galleries' => _x( 'MLA Gallery in', 'list_table_column', 'media-library-assistant' ),
|
210 |
+
'alt_text' => _x( 'ALT Text', 'list_table_column', 'media-library-assistant' ),
|
211 |
+
'caption' => _x( 'Caption', 'list_table_column', 'media-library-assistant' ),
|
212 |
+
'description' => _x( 'Description', 'list_table_column', 'media-library-assistant' ),
|
213 |
+
'post_mime_type' => _x( 'MIME Type', 'list_table_column', 'media-library-assistant' ),
|
214 |
+
'file_url' => _x( 'File URL', 'list_table_column', 'media-library-assistant' ),
|
215 |
+
'base_file' => _x( 'Base File', 'list_table_column', 'media-library-assistant' ),
|
216 |
+
'date' => _x( 'Date', 'list_table_column', 'media-library-assistant' ),
|
217 |
+
'modified' => _x( 'Last Modified', 'list_table_column', 'media-library-assistant' ),
|
218 |
+
'author' => _x( 'Author', 'list_table_column', 'media-library-assistant' ),
|
219 |
+
'attached_to' => _x( 'Attached to', 'list_table_column', 'media-library-assistant' ),
|
220 |
+
// taxonomy and custom field columns added below
|
221 |
+
);
|
222 |
+
}
|
223 |
+
|
224 |
/**
|
225 |
* Get dropdown box of terms to filter by, if available
|
226 |
*
|
278 |
public static function mla_get_sortable_columns( ) {
|
279 |
$results = array() ;
|
280 |
|
281 |
+
foreach ( self::$default_sortable_columns as $key => $value ) {
|
282 |
+
$value[1] = self::$default_columns[ $key ];
|
283 |
$results[ $key ] = $value;
|
284 |
}
|
285 |
|
286 |
return $results;
|
287 |
}
|
288 |
|
289 |
+
/**
|
290 |
+
* Process $_REQUEST, building $submenu_arguments
|
291 |
+
*
|
292 |
+
* @since 1.42
|
293 |
+
*
|
294 |
+
* @param boolean Optional: Include the "click filter" values in the results
|
295 |
+
*
|
296 |
+
* @return array non-empty view, search, filter and sort arguments
|
297 |
+
*/
|
298 |
+
public static function mla_submenu_arguments( $include_filters = true ) {
|
299 |
+
global $sitepress;
|
300 |
+
static $submenu_arguments = NULL, $has_filters = NULL;
|
301 |
+
|
302 |
+
if ( is_array( $submenu_arguments ) && ( $has_filters == $include_filters ) ) {
|
303 |
+
return $submenu_arguments;
|
304 |
+
}
|
305 |
+
|
306 |
+
$submenu_arguments = array();
|
307 |
+
$has_filters = $include_filters;
|
308 |
+
|
309 |
+
/*
|
310 |
+
* WPML arguments
|
311 |
+
*/
|
312 |
+
if ( isset( $_REQUEST['lang'] ) ) {
|
313 |
+
$submenu_arguments['lang'] = $_REQUEST['lang'];
|
314 |
+
} elseif ( is_object( $sitepress ) ) {
|
315 |
+
$submenu_arguments['lang'] = $sitepress->get_current_language();
|
316 |
+
}
|
317 |
+
|
318 |
+
/*
|
319 |
+
* View arguments
|
320 |
+
*/
|
321 |
+
if ( isset( $_REQUEST['post_mime_type'] ) ) {
|
322 |
+
$submenu_arguments['post_mime_type'] = $_REQUEST['post_mime_type'];
|
323 |
+
}
|
324 |
+
|
325 |
+
if ( isset( $_REQUEST['detached'] ) ) {
|
326 |
+
$submenu_arguments['detached'] = $_REQUEST['detached'];
|
327 |
+
}
|
328 |
+
|
329 |
+
if ( isset( $_REQUEST['status'] ) ) {
|
330 |
+
$submenu_arguments['status'] = $_REQUEST['status'];
|
331 |
+
}
|
332 |
+
|
333 |
+
if ( isset( $_REQUEST['meta_query'] ) ) {
|
334 |
+
$submenu_arguments['meta_query'] = $_REQUEST['meta_query'];
|
335 |
+
}
|
336 |
+
|
337 |
+
/*
|
338 |
+
* Search box arguments
|
339 |
+
*/
|
340 |
+
if ( !empty( $_REQUEST['s'] ) ) {
|
341 |
+
$submenu_arguments['s'] = urlencode( stripslashes( $_REQUEST['s'] ) );
|
342 |
+
|
343 |
+
if ( isset( $_REQUEST['mla_search_connector'] ) ) {
|
344 |
+
$submenu_arguments['mla_search_connector'] = $_REQUEST['mla_search_connector'];
|
345 |
+
}
|
346 |
+
|
347 |
+
if ( isset( $_REQUEST['mla_search_fields'] ) ) {
|
348 |
+
$submenu_arguments['mla_search_fields'] = $_REQUEST['mla_search_fields'];
|
349 |
+
}
|
350 |
+
}
|
351 |
+
|
352 |
+
/*
|
353 |
+
* Filter arguments (from table header)
|
354 |
+
*/
|
355 |
+
if ( isset( $_REQUEST['m'] ) && ( '0' != $_REQUEST['m'] ) ) {
|
356 |
+
$submenu_arguments['m'] = $_REQUEST['m'];
|
357 |
+
}
|
358 |
+
|
359 |
+
if ( isset( $_REQUEST['mla_filter_term'] ) && ( '0' != $_REQUEST['mla_filter_term'] ) ) {
|
360 |
+
$submenu_arguments['mla_filter_term'] = $_REQUEST['mla_filter_term'];
|
361 |
+
}
|
362 |
+
|
363 |
+
/*
|
364 |
+
* Sort arguments (from column header)
|
365 |
+
*/
|
366 |
+
if ( isset( $_REQUEST['order'] ) ) {
|
367 |
+
$submenu_arguments['order'] = $_REQUEST['order'];
|
368 |
+
}
|
369 |
+
|
370 |
+
if ( isset( $_REQUEST['orderby'] ) ) {
|
371 |
+
$submenu_arguments['orderby'] = $_REQUEST['orderby'];
|
372 |
+
}
|
373 |
+
|
374 |
+
/*
|
375 |
+
* Filter arguments (from interior table cells)
|
376 |
+
*/
|
377 |
+
if ( $include_filters ) {
|
378 |
+
if ( isset( $_REQUEST['heading_suffix'] ) ) {
|
379 |
+
$submenu_arguments['heading_suffix'] = $_REQUEST['heading_suffix'];
|
380 |
+
}
|
381 |
+
|
382 |
+
if ( isset( $_REQUEST['parent'] ) ) {
|
383 |
+
$submenu_arguments['parent'] = $_REQUEST['parent'];
|
384 |
+
}
|
385 |
+
|
386 |
+
if ( isset( $_REQUEST['author'] ) ) {
|
387 |
+
$submenu_arguments['author'] = $_REQUEST['author'];
|
388 |
+
}
|
389 |
+
|
390 |
+
if ( isset( $_REQUEST['mla-tax'] ) ) {
|
391 |
+
$submenu_arguments['mla-tax'] = $_REQUEST['mla-tax'];
|
392 |
+
}
|
393 |
+
|
394 |
+
if ( isset( $_REQUEST['mla-term'] ) ) {
|
395 |
+
$submenu_arguments['mla-term'] = $_REQUEST['mla-term'];
|
396 |
+
}
|
397 |
+
|
398 |
+
if ( isset( $_REQUEST['mla-metakey'] ) ) {
|
399 |
+
$submenu_arguments['mla-metakey'] = $_REQUEST['mla-metakey'];
|
400 |
+
}
|
401 |
+
|
402 |
+
if ( isset( $_REQUEST['mla-metavalue'] ) ) {
|
403 |
+
$submenu_arguments['mla-metavalue'] = $_REQUEST['mla-metavalue'];
|
404 |
+
}
|
405 |
+
}
|
406 |
+
|
407 |
+
return apply_filters( 'mla_list_table_submenu_arguments', $submenu_arguments, $include_filters );
|
408 |
+
}
|
409 |
+
|
410 |
/**
|
411 |
* Handler for filter 'get_user_option_managemedia_page_mla-menucolumnshidden'
|
412 |
*
|
427 |
return $result;
|
428 |
}
|
429 |
|
430 |
+
return self::$default_hidden_columns;
|
431 |
}
|
432 |
|
433 |
/**
|
442 |
* @return array list of table columns
|
443 |
*/
|
444 |
public static function mla_manage_columns_filter( ) {
|
445 |
+
return apply_filters( 'mla_list_table_get_columns', self::$default_columns );
|
446 |
}
|
447 |
|
448 |
/**
|
458 |
*
|
459 |
* @return array Updated list of available list table views
|
460 |
*/
|
461 |
+
public static function mla_views_media_page_mla_menu_filter( $views ) {
|
462 |
+
// hooked by WPML Media in wpml-media.class.php
|
463 |
+
$views = apply_filters( 'views_upload', $views );
|
464 |
return $views;
|
465 |
}
|
466 |
|
479 |
*
|
480 |
* @return mixed NULL to allow SQL query or replacement count value
|
481 |
*/
|
482 |
+
public static function mla_wpml_media_view_upload_count_filter( $count, $key, $view, $lang ) {
|
483 |
// extract the base URL and query parameters
|
484 |
$href_count = preg_match( '/(href=["\'])([\s\S]+?)\?([\s\S]+?)(["\'])/', $view, $href_matches );
|
485 |
if ( $href_count ) {
|
511 |
*
|
512 |
* @return mixed NULL to allow SQL query or replacement count value
|
513 |
*/
|
514 |
+
public static function mla_wpml_media_view_upload_page_count_filter( $count, $lang ) {
|
515 |
global $sitepress;
|
516 |
|
517 |
if ( isset( $_GET['meta_slug'] ) ) {
|
530 |
return $count;
|
531 |
}
|
532 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
533 |
/**
|
534 |
* Adds support for taxonomy and custom field columns
|
535 |
*
|
546 |
foreach ( $taxonomies as $tax_name ) {
|
547 |
if ( MLAOptions::mla_taxonomy_support( $tax_name ) ) {
|
548 |
$tax_object = get_taxonomy( $tax_name );
|
549 |
+
self::$default_columns[ 't_' . $tax_name ] = $tax_object->labels->name;
|
550 |
+
self::$default_hidden_columns [] = 't_' . $tax_name;
|
551 |
+
// self::$default_sortable_columns [] = none at this time
|
552 |
} // supported taxonomy
|
553 |
} // foreach $tax_name
|
554 |
|
555 |
+
self::$default_columns = array_merge( self::$default_columns, MLAOptions::mla_custom_field_support( 'default_columns' ) );
|
556 |
+
self::$default_hidden_columns = array_merge( self::$default_hidden_columns, MLAOptions::mla_custom_field_support( 'default_hidden_columns' ) );
|
557 |
+
self::$default_sortable_columns = array_merge( self::$default_sortable_columns, MLAOptions::mla_custom_field_support( 'default_sortable_columns' ) );
|
558 |
}
|
559 |
|
560 |
/**
|
590 |
*/
|
591 |
|
592 |
if ( is_object( $sitepress ) ) {
|
593 |
+
add_filter( 'views_media_page_mla-menu', 'MLA_List_Table::mla_views_media_page_mla_menu_filter', 10, 1 );
|
594 |
+
add_filter( 'wpml-media_view-upload-count', 'MLA_List_Table::mla_wpml_media_view_upload_count_filter', 10, 4 );
|
595 |
+
add_filter( 'wpml-media_view-upload-page-count', 'MLA_List_Table::mla_wpml_media_view_upload_page_count_filter', 10, 2 );
|
596 |
}
|
597 |
}
|
598 |
|
641 |
}
|
642 |
} // 't_'
|
643 |
elseif ( 'c_' == substr( $column_name, 0, 2 ) ) {
|
644 |
+
$values = get_post_meta( $item->ID, self::$default_columns[ $column_name ], false );
|
645 |
if ( empty( $values ) ) {
|
646 |
return '';
|
647 |
}
|
657 |
} else {
|
658 |
$list[] = sprintf( '<a href="%1$s" title="' . __( 'Filter by', 'media-library-assistant' ) . ' “%2$s”">%3$s</a>', esc_url( add_query_arg( array_merge( self::mla_submenu_arguments( false ), array(
|
659 |
'page' => MLA::ADMIN_PAGE_SLUG,
|
660 |
+
'mla-metakey' => urlencode( self::$default_columns[ $column_name ] ),
|
661 |
'mla-metavalue' => urlencode( $value ),
|
662 |
+
'heading_suffix' => urlencode( self::$default_columns[ $column_name ] . ': ' . $value )
|
663 |
) ), 'upload.php' ) ), esc_html( substr( $value, 0, 64 ) ), esc_html( $value ) );
|
664 |
}
|
665 |
}
|
670 |
return $list[0];
|
671 |
}
|
672 |
} else { // 'c_'
|
673 |
+
|
674 |
+
$content = apply_filters( 'mla_list_table_column_default', NULL, $item, $column_name );
|
675 |
+
if ( is_null( $content ) ) {
|
676 |
+
//Show the whole array for troubleshooting purposes
|
677 |
+
/* translators: 1: column_name 2: column_values */
|
678 |
+
return sprintf( __( 'column_default: %1$s, %2$s', 'media-library-assistant' ), $column_name, print_r( $item, true ) );
|
679 |
+
} else {
|
680 |
+
return $content;
|
681 |
+
}
|
682 |
}
|
683 |
}
|
684 |
|
758 |
*
|
759 |
* @return array Names and URLs of row-level actions
|
760 |
*/
|
761 |
+
protected function _build_rollover_actions( $item, $column ) {
|
762 |
$actions = array();
|
763 |
|
764 |
if ( ( $this->rollover_id != $item->ID ) && !in_array( $column, $this->currently_hidden ) ) {
|
806 |
}
|
807 |
} // delete_post
|
808 |
|
809 |
+
if ( current_user_can( 'upload_files' ) ) {
|
810 |
+
$file = get_attached_file( $item->ID );
|
811 |
+
$download_args = array( 'mla_download_file' => $file, 'mla_download_type' => $item->post_mime_type );
|
812 |
+
|
813 |
+
$actions['download'] = '<a href="' . add_query_arg( $download_args, MLA_PLUGIN_URL . 'includes/mla-force-download.php' ) . '" title="' . __( 'Download', 'media-library-assistant' ) . ' “' . esc_attr( $item->post_title ) . '”">' . __( 'Download', 'media-library-assistant' ) . '</a>';
|
814 |
+
}
|
815 |
+
|
816 |
$actions['view'] = '<a href="' . site_url( ) . '?attachment_id=' . $item->ID . '" rel="permalink" title="' . __( 'View', 'media-library-assistant' ) . ' “' . esc_attr( $item->post_title ) . '”">' . __( 'View', 'media-library-assistant' ) . '</a>';
|
817 |
|
818 |
+
$actions = apply_filters( 'mla_list_table_build_rollover_actions', $actions, $item, $column );
|
819 |
+
|
820 |
$this->rollover_id = $item->ID;
|
821 |
} // $this->rollover_id != $item->ID
|
822 |
|
832 |
*
|
833 |
* @return string HTML <div> with row data
|
834 |
*/
|
835 |
+
protected function _build_inline_data( $item ) {
|
836 |
$inline_data = "\r\n" . '<div class="hidden" id="inline_' . $item->ID . "\">\r\n";
|
837 |
$inline_data .= ' <div class="post_title">' . esc_attr( $item->post_title ) . "</div>\r\n";
|
838 |
$inline_data .= ' <div class="post_name">' . esc_attr( $item->post_name ) . "</div>\r\n";
|
903 |
}
|
904 |
}
|
905 |
|
906 |
+
$inline_data = apply_filters( 'mla_list_table_build_inline_data', $inline_data, $item );
|
907 |
+
|
908 |
$inline_data .= "</div>\r\n";
|
909 |
+
|
910 |
return $inline_data;
|
911 |
}
|
912 |
|
1271 |
* @return string HTML markup to be placed inside the column
|
1272 |
*/
|
1273 |
function column_base_file( $item ) {
|
1274 |
+
return sprintf( '<a href="%1$s" title="' . __( 'Filter by', 'media-library-assistant' ) . ' “%2$s”">%2$s</a>', esc_url( add_query_arg( array_merge( self::mla_submenu_arguments( false ), array(
|
1275 |
+
'page' => MLA::ADMIN_PAGE_SLUG,
|
1276 |
+
'mla-metakey' => urlencode( '_wp_attached_file' ),
|
1277 |
+
'mla-metavalue' => urlencode( $item->mla_references['base_file'] ),
|
1278 |
+
'heading_suffix' => urlencode( __( 'Base File', 'media-library-assistant' ) . ': ' . $item->mla_references['base_file'] )
|
1279 |
+
) ), 'upload.php' ) ), esc_html( $item->mla_references['base_file'] ) );
|
1280 |
}
|
1281 |
|
1282 |
/**
|
1399 |
return $parent . "<br>\n" . $set_parent . "\n";
|
1400 |
}
|
1401 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1402 |
/**
|
1403 |
* Display the pagination, adding view, search and filter arguments
|
1404 |
*
|
1422 |
* @return array Column information: 'slugs'=>'Visible Titles'
|
1423 |
*/
|
1424 |
function get_columns( ) {
|
1425 |
+
return self::mla_manage_columns_filter();
|
1426 |
}
|
1427 |
|
1428 |
/**
|
1437 |
$columns = get_user_option( 'managemedia_page_' . MLA::ADMIN_PAGE_SLUG . 'columnshidden' );
|
1438 |
|
1439 |
if ( is_array( $columns ) ) {
|
1440 |
+
foreach ( $columns as $index => $value ){
|
1441 |
+
if ( empty( $value ) ) {
|
1442 |
+
unset( $columns[ $index ] );
|
1443 |
+
}
|
1444 |
+
}
|
1445 |
+
} else {
|
1446 |
+
$columns = self::$default_hidden_columns;
|
1447 |
}
|
1448 |
+
|
1449 |
+
return apply_filters( 'mla_list_table_get_hidden_columns', $columns );
|
1450 |
}
|
1451 |
|
1452 |
/**
|
1453 |
* Returns an array where the key is the column that needs to be sortable
|
1454 |
+
* and the value is db column (or other criteria) to sort by.
|
|
|
1455 |
*
|
1456 |
* @since 0.1
|
1457 |
*
|
1458 |
* @return array Sortable column information,e.g.,
|
1459 |
+
* 'slug' => array('data_value', (boolean) initial_descending )
|
1460 |
*/
|
1461 |
function get_sortable_columns( ) {
|
1462 |
+
return apply_filters( 'mla_list_table_get_sortable_columns', self::$default_sortable_columns );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1463 |
}
|
1464 |
|
1465 |
/**
|
1506 |
|
1507 |
$posts_per_type = (array) wp_count_attachments();
|
1508 |
$post_mime_types = get_post_mime_types();
|
1509 |
+
$avail_post_mime_types = self::_avail_mime_types( $posts_per_type );
|
1510 |
$matches = wp_match_mime_types( array_keys( $post_mime_types ), array_keys( $posts_per_type ) );
|
1511 |
|
1512 |
foreach ( $matches as $type => $reals ) {
|
1685 |
}
|
1686 |
}
|
1687 |
|
1688 |
+
return apply_filters( 'mla_list_table_get_bulk_actions', $actions );
|
1689 |
}
|
1690 |
|
1691 |
/**
|
1740 |
* @return void
|
1741 |
*/
|
1742 |
function prepare_items( ) {
|
1743 |
+
// Initialize $this->_column_headers
|
1744 |
+
$this->get_column_info();
|
|
|
|
|
|
|
1745 |
|
1746 |
/*
|
1747 |
+
* Calculate and filter pagination arguments.
|
1748 |
*/
|
1749 |
$user = get_current_user_id();
|
1750 |
+
$option = $this->screen->get_option( 'per_page', 'option' );
|
1751 |
+
$per_page = (integer) get_user_meta( $user, $option, true );
|
|
|
1752 |
if ( empty( $per_page ) || $per_page < 1 ) {
|
1753 |
+
$per_page = (integer) $this->screen->get_option( 'per_page', 'default' );
|
1754 |
}
|
1755 |
|
|
|
1756 |
$current_page = isset( $_REQUEST['paged'] ) ? absint( $_REQUEST['paged'] ) : 1;
|
1757 |
|
1758 |
+
$pagination = apply_filters_ref_array( 'mla_list_table_prepare_items_pagination', array( compact( array( 'per_page', 'current_page' ) ), &$this ) );
|
1759 |
+
$per_page = isset( $pagination[ 'per_page' ] ) ? $pagination[ 'per_page' ] : $per_page;
|
1760 |
+
$current_page = isset( $pagination[ 'current_page' ] ) ? $pagination[ 'current_page' ] : $current_page;
|
1761 |
+
|
1762 |
/*
|
1763 |
+
* Assign sorted and paginated data to the items property, where
|
1764 |
* it can be used by the rest of the class.
|
1765 |
*/
|
1766 |
+
$total_items = apply_filters_ref_array( 'mla_list_table_prepare_items_total_items', array( NULL, &$this ) );
|
1767 |
+
if ( is_null( $total_items ) ) {
|
1768 |
+
$total_items = MLAData::mla_count_list_table_items( $_REQUEST, ( ( $current_page - 1 ) * $per_page ), $per_page );
|
1769 |
+
}
|
1770 |
+
|
1771 |
/*
|
1772 |
+
* Register the pagination options & calculations.
|
1773 |
*/
|
1774 |
$this->set_pagination_args( array(
|
1775 |
'total_items' => $total_items, //WE have to calculate the total number of items
|
1776 |
'per_page' => $per_page, //WE have to determine how many items to show on a page
|
1777 |
'total_pages' => ceil( $total_items / $per_page ) //WE have to calculate the total number of pages
|
1778 |
) );
|
1779 |
+
|
1780 |
+
$this->items = apply_filters_ref_array( 'mla_list_table_prepare_items_the_items', array( NULL, &$this ) );
|
1781 |
+
if ( is_null( $this->items ) ) {
|
1782 |
+
$this->items = MLAData::mla_query_list_table_items( $_REQUEST, ( ( $current_page - 1 ) * $per_page ), $per_page );
|
1783 |
+
}
|
1784 |
+
|
1785 |
+
do_action_ref_array( 'mla_list_table_prepare_items', array( &$this ) );
|
1786 |
}
|
1787 |
|
1788 |
/**
|
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
|
@@ -173,7 +173,7 @@ class MLA {
|
|
173 |
*
|
174 |
* @var string
|
175 |
*/
|
176 |
-
const
|
177 |
|
178 |
/**
|
179 |
* Holds screen ids to match help text to corresponding screen
|
@@ -347,6 +347,8 @@ class MLA {
|
|
347 |
$fields[] = $slug;
|
348 |
}
|
349 |
|
|
|
|
|
350 |
$script_variables = array(
|
351 |
'fields' => $fields,
|
352 |
'ajaxFailError' => __( 'An ajax.fail error has occurred. Please reload the page and try again.', 'media-library-assistant' ),
|
@@ -750,7 +752,9 @@ class MLA {
|
|
750 |
private static function _process_bulk_value( $post_id, $bulk_value ) {
|
751 |
$new_value = trim( $bulk_value );
|
752 |
|
753 |
-
if ( 'template:' ==
|
|
|
|
|
754 |
$data_value = array(
|
755 |
'data_source' => 'template',
|
756 |
'meta_name' => substr( $new_value, 9 ),
|
@@ -762,8 +766,7 @@ class MLA {
|
|
762 |
if ( ' ' == $new_value ) {
|
763 |
$new_value = '';
|
764 |
}
|
765 |
-
}
|
766 |
-
elseif ( ! empty( $new_value ) ) {
|
767 |
// preserve leading/trailing whitespace on non-empty entered values
|
768 |
return $bulk_value;
|
769 |
}
|
@@ -846,119 +849,152 @@ class MLA {
|
|
846 |
}
|
847 |
|
848 |
foreach ( $_REQUEST['cb_attachment'] as $index => $post_id ) {
|
849 |
-
|
850 |
-
|
851 |
-
|
852 |
-
|
853 |
-
|
854 |
-
|
855 |
-
|
856 |
-
|
857 |
-
|
858 |
-
|
859 |
-
|
860 |
-
|
861 |
-
$
|
862 |
-
$updates = MLAOptions::mla_evaluate_iptc_exif_mapping( $item, 'iptc_exif_mapping' );
|
863 |
-
$item_content = MLAData::mla_update_single_item( $post_id, $updates );
|
864 |
break;
|
865 |
-
|
866 |
-
|
867 |
-
|
868 |
-
|
869 |
-
|
870 |
-
*/
|
871 |
-
$new_data = array() ;
|
872 |
-
if ( isset( $_REQUEST['post_title'] ) ) {
|
873 |
-
$test_value = self::_process_bulk_value( $post_id, $_REQUEST['post_title'] );
|
874 |
-
if ( ! empty( $test_value ) ) {
|
875 |
-
$new_data['post_title'] = $test_value;
|
876 |
}
|
877 |
-
|
878 |
-
|
879 |
-
|
880 |
-
|
881 |
-
|
882 |
-
|
883 |
}
|
884 |
-
|
885 |
-
|
886 |
-
|
887 |
-
|
888 |
-
|
889 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
890 |
}
|
891 |
-
|
892 |
-
|
893 |
-
|
894 |
-
|
895 |
-
|
896 |
-
|
897 |
-
|
898 |
-
|
899 |
-
if ( ! empty( $test_value ) ) {
|
900 |
-
$new_data['bulk_image_alt'] = $test_value;
|
901 |
}
|
902 |
-
|
903 |
-
|
904 |
-
|
905 |
-
|
906 |
-
|
|
|
|
|
|
|
907 |
}
|
908 |
-
|
909 |
-
|
910 |
-
|
911 |
-
|
912 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
913 |
}
|
914 |
-
|
915 |
-
|
916 |
-
|
917 |
-
|
918 |
-
|
919 |
}
|
920 |
-
|
921 |
-
|
922 |
-
|
923 |
-
|
924 |
-
|
925 |
}
|
926 |
-
|
927 |
-
|
928 |
-
|
929 |
-
|
930 |
-
*/
|
931 |
-
$custom_fields = array();
|
932 |
-
foreach (MLAOptions::mla_custom_field_support( 'bulk_edit' ) as $slug => $label ) {
|
933 |
-
if ( isset( $_REQUEST[ $slug ] ) ) {
|
934 |
-
if ( ! empty( $_REQUEST[ $slug ] ) ) {
|
935 |
-
$custom_fields[ $label ] = $_REQUEST[ $slug ];
|
936 |
}
|
937 |
}
|
938 |
-
|
939 |
-
|
940 |
-
|
941 |
-
|
942 |
-
|
943 |
-
|
944 |
-
|
945 |
-
|
946 |
-
|
947 |
-
|
948 |
-
|
949 |
-
|
950 |
-
|
951 |
-
|
952 |
-
|
953 |
-
|
954 |
-
|
955 |
-
|
956 |
-
|
957 |
-
|
958 |
-
|
959 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
960 |
|
961 |
-
|
|
|
|
|
962 |
} // foreach cb_attachment
|
963 |
|
964 |
if ( !empty( $_REQUEST['bulk_custom_field_map'] ) || !empty( $_REQUEST['bulk_map'] ) ) {
|
@@ -998,6 +1034,7 @@ class MLA {
|
|
998 |
unset( $_REQUEST['mla-term'] );
|
999 |
unset( $_REQUEST['mla-metakey'] );
|
1000 |
unset( $_REQUEST['mla-metavalue'] );
|
|
|
1001 |
}
|
1002 |
|
1003 |
/*
|
@@ -1031,76 +1068,93 @@ class MLA {
|
|
1031 |
if ( !empty( $_REQUEST['mla_admin_action'] ) ) {
|
1032 |
check_admin_referer( self::MLA_ADMIN_NONCE );
|
1033 |
|
1034 |
-
|
1035 |
-
|
1036 |
-
|
1037 |
-
|
1038 |
-
|
1039 |
-
|
1040 |
-
|
1041 |
-
|
1042 |
-
case self::MLA_ADMIN_SINGLE_EDIT_UPDATE:
|
1043 |
-
if ( !empty( $_REQUEST['update'] ) ) {
|
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(
|
1053 |
-
/* translators: 1: post ID */
|
1054 |
-
'message' => sprintf( __( 'Item %1$d cancelled.', 'media-library-assistant' ), $_REQUEST['mla_item_ID'] ),
|
1055 |
-
'body' => ''
|
1056 |
-
);
|
1057 |
-
}
|
1058 |
-
break;
|
1059 |
-
case self::MLA_ADMIN_SINGLE_RESTORE:
|
1060 |
-
$page_content = self::_restore_single_item( $_REQUEST['mla_item_ID'] );
|
1061 |
-
break;
|
1062 |
-
case self::MLA_ADMIN_SINGLE_TRASH:
|
1063 |
-
$page_content = self::_trash_single_item( $_REQUEST['mla_item_ID'] );
|
1064 |
-
break;
|
1065 |
-
case self::MLA_ADMIN_SET_PARENT:
|
1066 |
-
$new_data = array( 'post_parent' => $_REQUEST['found_post_id'] );
|
1067 |
-
|
1068 |
-
foreach( $_REQUEST['children'] as $child ) {
|
1069 |
-
$item_content = MLAData::mla_update_single_item( $child, $new_data );
|
1070 |
-
$page_content['message'] .= $item_content['message'] . '<br>';
|
1071 |
-
}
|
1072 |
|
1073 |
-
|
1074 |
-
|
1075 |
-
|
1076 |
-
|
1077 |
-
|
1078 |
-
|
1079 |
-
|
1080 |
-
|
1081 |
-
|
1082 |
-
|
1083 |
-
|
1084 |
-
|
1085 |
-
|
1086 |
-
|
1087 |
-
|
1088 |
-
|
1089 |
-
|
1090 |
-
|
1091 |
-
|
1092 |
-
|
1093 |
-
|
1094 |
-
|
1095 |
-
|
1096 |
-
|
1097 |
-
|
1098 |
-
|
1099 |
-
|
1100 |
-
|
1101 |
-
|
1102 |
-
|
1103 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1104 |
} // (!empty($_REQUEST['mla_admin_action'])
|
1105 |
|
1106 |
if ( !empty( $page_content['body'] ) ) {
|
@@ -1183,8 +1237,8 @@ class MLA {
|
|
1183 |
echo " #icon.column-icon {\n";
|
1184 |
echo " width: {$option_value};\n";
|
1185 |
echo " max-width: {$option_value};\n";
|
1186 |
-
echo " height: {$option_value};\n";
|
1187 |
-
echo " max-height: {$option_value};\n";
|
1188 |
echo " }\n";
|
1189 |
echo " img.{$class} {\n";
|
1190 |
echo " width: {$option_value};\n";
|
@@ -1196,7 +1250,10 @@ class MLA {
|
|
1196 |
}
|
1197 |
|
1198 |
// Create an instance of our package class...
|
1199 |
-
$MLAListTable =
|
|
|
|
|
|
|
1200 |
|
1201 |
// Fetch, prepare, sort, and filter our data...
|
1202 |
$MLAListTable->prepare_items();
|
@@ -1209,12 +1266,12 @@ class MLA {
|
|
1209 |
$form_url = 'upload.php?page=' . self::ADMIN_PAGE_SLUG;
|
1210 |
}
|
1211 |
|
1212 |
-
// Forms are NOT created automatically,
|
1213 |
echo '<form action="' . admin_url( $form_url ) . '" method="post" id="mla-filter">' . "\n";
|
1214 |
/*
|
1215 |
* Include the Search Media box
|
1216 |
*/
|
1217 |
-
require_once MLA_PLUGIN_PATH . '
|
1218 |
|
1219 |
/*
|
1220 |
* We also need to ensure that the form posts back to our current page and remember all the view arguments
|
@@ -1249,7 +1306,7 @@ class MLA {
|
|
1249 |
/*
|
1250 |
* Insert the hidden form and table for inline edits (quick & bulk)
|
1251 |
*/
|
1252 |
-
echo self::_build_inline_edit_form($MLAListTable);
|
1253 |
|
1254 |
echo "<div id=\"ajax-response\"></div>\n";
|
1255 |
echo "<br class=\"clear\" />\n";
|
@@ -1382,7 +1439,7 @@ class MLA {
|
|
1382 |
}
|
1383 |
|
1384 |
/**
|
1385 |
-
* Ajax handler for inline editing (quick
|
1386 |
*
|
1387 |
* Adapted from wp_ajax_inline_save in /wp-admin/includes/ajax-actions.php
|
1388 |
*
|
@@ -1468,9 +1525,26 @@ class MLA {
|
|
1468 |
} else { // ! empty( $_REQUEST['tax_input'] )
|
1469 |
$tax_output = NULL;
|
1470 |
}
|
|
|
|
|
1471 |
|
1472 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1473 |
$new_item = (object) MLAData::mla_get_attachment_by_id( $post_id );
|
|
|
1474 |
|
1475 |
// Create an instance of our package class and echo the new HTML
|
1476 |
$MLAListTable = new MLA_List_Table();
|
@@ -1530,7 +1604,7 @@ class MLA {
|
|
1530 |
*/
|
1531 |
public static function mla_set_parent_form( $return_form = true ) {
|
1532 |
$set_parent_template = MLAData::mla_load_template( 'admin-set-parent-form.tpl' );
|
1533 |
-
if ( !
|
1534 |
/* translators: 1: function name 2: non-array value */
|
1535 |
error_log( sprintf( _x( 'ERROR: %1$s non-array "%2$s"', 'error_log', 'media-library-assistant' ), 'MLA::_build_inline_edit_form', var_export( $set_parent_template, true ) ), 0 );
|
1536 |
return '';
|
@@ -1605,7 +1679,7 @@ class MLA {
|
|
1605 |
}
|
1606 |
|
1607 |
$page_template_array = MLAData::mla_load_template( 'admin-inline-edit-form.tpl' );
|
1608 |
-
if ( !
|
1609 |
/* translators: 1: function name 2: non-array value */
|
1610 |
error_log( sprintf( _x( 'ERROR: %1$s non-array "%2$s"', 'error_log', 'media-library-assistant' ), 'MLA::_build_inline_edit_form', var_export( $page_template_array, true ) ), 0 );
|
1611 |
return '';
|
@@ -1764,9 +1838,11 @@ class MLA {
|
|
1764 |
'Map Custom Field metadata' => __( 'Map Custom Field Metadata', 'media-library-assistant' ),
|
1765 |
'set_parent_form' => $set_parent_form,
|
1766 |
);
|
1767 |
-
|
1768 |
-
$
|
1769 |
-
|
|
|
|
|
1770 |
}
|
1771 |
|
1772 |
/**
|
@@ -1876,7 +1952,7 @@ class MLA {
|
|
1876 |
*
|
1877 |
* @since 0.1
|
1878 |
*
|
1879 |
-
* @param
|
1880 |
*
|
1881 |
* @return array message and/or HTML content
|
1882 |
*/
|
@@ -2157,7 +2233,7 @@ class MLA {
|
|
2157 |
*
|
2158 |
* @since 0.1
|
2159 |
*
|
2160 |
-
* @param
|
2161 |
*
|
2162 |
* @return array success/failure message and NULL content
|
2163 |
*/
|
@@ -2197,7 +2273,7 @@ class MLA {
|
|
2197 |
*
|
2198 |
* @since 0.1
|
2199 |
*
|
2200 |
-
* @param
|
2201 |
*
|
2202 |
* @return array success/failure message and NULL content
|
2203 |
*/
|
29 |
*
|
30 |
* @var string
|
31 |
*/
|
32 |
+
const CURRENT_MLA_VERSION = '1.95';
|
33 |
|
34 |
/**
|
35 |
* Slug for registering and enqueueing plugin style sheet
|
173 |
*
|
174 |
* @var string
|
175 |
*/
|
176 |
+
const MLA_ADMIN_TERMS_SEARCH = 'terms_search';
|
177 |
|
178 |
/**
|
179 |
* Holds screen ids to match help text to corresponding screen
|
347 |
$fields[] = $slug;
|
348 |
}
|
349 |
|
350 |
+
$fields = apply_filters( 'mla_list_table_inline_fields', $fields );
|
351 |
+
|
352 |
$script_variables = array(
|
353 |
'fields' => $fields,
|
354 |
'ajaxFailError' => __( 'An ajax.fail error has occurred. Please reload the page and try again.', 'media-library-assistant' ),
|
752 |
private static function _process_bulk_value( $post_id, $bulk_value ) {
|
753 |
$new_value = trim( $bulk_value );
|
754 |
|
755 |
+
if ( 'template:[+empty+]' == $new_value ) {
|
756 |
+
return NULL;
|
757 |
+
} elseif ( 'template:' == substr( $new_value, 0, 9 ) ) {
|
758 |
$data_value = array(
|
759 |
'data_source' => 'template',
|
760 |
'meta_name' => substr( $new_value, 9 ),
|
766 |
if ( ' ' == $new_value ) {
|
767 |
$new_value = '';
|
768 |
}
|
769 |
+
} elseif ( ! empty( $new_value ) ) {
|
|
|
770 |
// preserve leading/trailing whitespace on non-empty entered values
|
771 |
return $bulk_value;
|
772 |
}
|
849 |
}
|
850 |
|
851 |
foreach ( $_REQUEST['cb_attachment'] as $index => $post_id ) {
|
852 |
+
$item_content = apply_filters( 'mla_list_table_bulk_action', NULL, $bulk_action, $post_id );
|
853 |
+
if ( is_null( $item_content ) ) {
|
854 |
+
$prevent_default = false;
|
855 |
+
$custom_message = '';
|
856 |
+
} else {
|
857 |
+
$prevent_default = isset( $item_content['prevent_default'] ) ? $item_content['prevent_default'] : false;
|
858 |
+
$custom_message = isset( $item_content['message'] ) ? $item_content['message'] : '';
|
859 |
+
}
|
860 |
+
|
861 |
+
if ( ! $prevent_default ) {
|
862 |
+
switch ( $bulk_action ) {
|
863 |
+
case 'delete':
|
864 |
+
$item_content = self::_delete_single_item( $post_id );
|
|
|
|
|
865 |
break;
|
866 |
+
case 'edit':
|
867 |
+
if ( !empty( $_REQUEST['bulk_custom_field_map'] ) ) {
|
868 |
+
$updates = MLAOptions::mla_evaluate_custom_field_mapping( $post_id, 'single_attachment_mapping' );
|
869 |
+
$item_content = MLAData::mla_update_single_item( $post_id, $updates );
|
870 |
+
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
871 |
}
|
872 |
+
|
873 |
+
if ( !empty( $_REQUEST['bulk_map'] ) ) {
|
874 |
+
$item = get_post( $post_id );
|
875 |
+
$updates = MLAOptions::mla_evaluate_iptc_exif_mapping( $item, 'iptc_exif_mapping' );
|
876 |
+
$item_content = MLAData::mla_update_single_item( $post_id, $updates );
|
877 |
+
break;
|
878 |
}
|
879 |
+
|
880 |
+
/*
|
881 |
+
* Copy the edit form contents to $new_data
|
882 |
+
* Trim text values for testing purposes only
|
883 |
+
*/
|
884 |
+
$new_data = array() ;
|
885 |
+
if ( isset( $_REQUEST['post_title'] ) ) {
|
886 |
+
$test_value = self::_process_bulk_value( $post_id, $_REQUEST['post_title'] );
|
887 |
+
if ( ! empty( $test_value ) ) {
|
888 |
+
$new_data['post_title'] = $test_value;
|
889 |
+
} elseif ( is_null( $test_value ) ) {
|
890 |
+
$new_data['post_title'] = '';
|
891 |
+
}
|
892 |
}
|
893 |
+
|
894 |
+
if ( isset( $_REQUEST['post_excerpt'] ) ) {
|
895 |
+
$test_value = self::_process_bulk_value( $post_id, $_REQUEST['post_excerpt'] );
|
896 |
+
if ( ! empty( $test_value ) ) {
|
897 |
+
$new_data['post_excerpt'] = $test_value;
|
898 |
+
} elseif ( is_null( $test_value ) ) {
|
899 |
+
$new_data['post_excerpt'] = '';
|
900 |
+
}
|
|
|
|
|
901 |
}
|
902 |
+
|
903 |
+
if ( isset( $_REQUEST['post_content'] ) ) {
|
904 |
+
$test_value = self::_process_bulk_value( $post_id, $_REQUEST['post_content'] );
|
905 |
+
if ( ! empty( $test_value ) ) {
|
906 |
+
$new_data['post_content'] = $test_value;
|
907 |
+
} elseif ( is_null( $test_value ) ) {
|
908 |
+
$new_data['post_content'] = '';
|
909 |
+
}
|
910 |
}
|
911 |
+
|
912 |
+
/*
|
913 |
+
* image_alt requires a separate key because some attachment types
|
914 |
+
* should not get a value, e.g., text or PDF documents
|
915 |
+
*/
|
916 |
+
if ( isset( $_REQUEST['image_alt'] ) ) {
|
917 |
+
$test_value = self::_process_bulk_value( $post_id, $_REQUEST['image_alt'] );
|
918 |
+
if ( ! empty( $test_value ) ) {
|
919 |
+
$new_data['bulk_image_alt'] = $test_value;
|
920 |
+
} elseif ( is_null( $test_value ) ) {
|
921 |
+
$new_data['bulk_image_alt'] = '';
|
922 |
+
}
|
923 |
}
|
924 |
+
|
925 |
+
if ( isset( $_REQUEST['post_parent'] ) ) {
|
926 |
+
if ( is_numeric( $_REQUEST['post_parent'] ) ) {
|
927 |
+
$new_data['post_parent'] = $_REQUEST['post_parent'];
|
928 |
+
}
|
929 |
}
|
930 |
+
|
931 |
+
if ( isset( $_REQUEST['post_author'] ) ) {
|
932 |
+
if ( -1 != $_REQUEST['post_author'] ) {
|
933 |
+
$new_data['post_author'] = $_REQUEST['post_author'];
|
934 |
+
}
|
935 |
}
|
936 |
+
|
937 |
+
if ( isset( $_REQUEST['comment_status'] ) ) {
|
938 |
+
if ( -1 != $_REQUEST['comment_status'] ) {
|
939 |
+
$new_data['comment_status'] = $_REQUEST['comment_status'];
|
|
|
|
|
|
|
|
|
|
|
|
|
940 |
}
|
941 |
}
|
942 |
+
|
943 |
+
if ( isset( $_REQUEST['ping_status'] ) ) {
|
944 |
+
if ( -1 != $_REQUEST['ping_status'] ) {
|
945 |
+
$new_data['ping_status'] = $_REQUEST['ping_status'];
|
946 |
+
}
|
947 |
+
}
|
948 |
+
|
949 |
+
/*
|
950 |
+
* Custom field support
|
951 |
+
*/
|
952 |
+
$custom_fields = array();
|
953 |
+
foreach (MLAOptions::mla_custom_field_support( 'bulk_edit' ) as $slug => $label ) {
|
954 |
+
if ( isset( $_REQUEST[ $slug ] ) ) {
|
955 |
+
if ( ! empty( $_REQUEST[ $slug ] ) ) {
|
956 |
+
$custom_fields[ $label ] = $_REQUEST[ $slug ];
|
957 |
+
}
|
958 |
+
}
|
959 |
+
} // foreach
|
960 |
+
|
961 |
+
if ( ! empty( $custom_fields ) ) {
|
962 |
+
$new_data[ 'custom_updates' ] = $custom_fields;
|
963 |
+
}
|
964 |
+
|
965 |
+
$item_content = MLAData::mla_update_single_item( $post_id, $new_data, $_REQUEST['tax_input'], $_REQUEST['tax_action'] );
|
966 |
+
break;
|
967 |
+
case 'restore':
|
968 |
+
$item_content = self::_restore_single_item( $post_id );
|
969 |
+
break;
|
970 |
+
//case 'tag':
|
971 |
+
case 'trash':
|
972 |
+
$item_content = self::_trash_single_item( $post_id );
|
973 |
+
break;
|
974 |
+
default:
|
975 |
+
$item_content = apply_filters( 'mla_list_table_custom_bulk_action', NULL, $bulk_action, $post_id );
|
976 |
+
if ( is_null( $item_content ) ) {
|
977 |
+
$item_content = array(
|
978 |
+
/* translators: 1: bulk_action, e.g., delete, edit, restore, trash */
|
979 |
+
'message' => sprintf( __( 'Unknown bulk action %1$s', 'media-library-assistant' ), $bulk_action ),
|
980 |
+
'body' => ''
|
981 |
+
);
|
982 |
+
} // unknown bulk_action
|
983 |
+
} // switch $bulk_action
|
984 |
+
} // ! $prevent_default
|
985 |
+
|
986 |
+
if ( ! empty( $custom_message ) ) {
|
987 |
+
$no_changes = sprintf( __( 'Item %1$d, no changes detected.', 'media-library-assistant' ), $post_id );
|
988 |
+
if ( $no_changes == $item_content['message'] ) {
|
989 |
+
$item_content['message'] = $custom_message;
|
990 |
+
} else {
|
991 |
+
$item_content['message'] = $custom_message . '<br>' . $item_content['message'];
|
992 |
+
}
|
993 |
+
}
|
994 |
|
995 |
+
if ( ! empty( $item_content['message'] ) ) {
|
996 |
+
$page_content['message'] .= $item_content['message'] . '<br>';
|
997 |
+
}
|
998 |
} // foreach cb_attachment
|
999 |
|
1000 |
if ( !empty( $_REQUEST['bulk_custom_field_map'] ) || !empty( $_REQUEST['bulk_map'] ) ) {
|
1034 |
unset( $_REQUEST['mla-term'] );
|
1035 |
unset( $_REQUEST['mla-metakey'] );
|
1036 |
unset( $_REQUEST['mla-metavalue'] );
|
1037 |
+
do_action( 'mla_list_table_clear_filter_by' );
|
1038 |
}
|
1039 |
|
1040 |
/*
|
1068 |
if ( !empty( $_REQUEST['mla_admin_action'] ) ) {
|
1069 |
check_admin_referer( self::MLA_ADMIN_NONCE );
|
1070 |
|
1071 |
+
$page_content = apply_filters( 'mla_list_table_single_action', NULL, $_REQUEST['mla_admin_action'], ( isset( $_REQUEST['mla_item_ID'] ) ? $_REQUEST['mla_item_ID'] : 0 ) );
|
1072 |
+
if ( is_null( $page_content ) ) {
|
1073 |
+
$prevent_default = false;
|
1074 |
+
$custom_message = '';
|
1075 |
+
} else {
|
1076 |
+
$prevent_default = isset( $page_content['prevent_default'] ) ? $page_content['prevent_default'] : false;
|
1077 |
+
$custom_message = isset( $page_content['message'] ) ? $page_content['message'] : '';
|
1078 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1079 |
|
1080 |
+
if ( ! $prevent_default ) {
|
1081 |
+
switch ( $_REQUEST['mla_admin_action'] ) {
|
1082 |
+
case self::MLA_ADMIN_SINGLE_DELETE:
|
1083 |
+
$page_content = self::_delete_single_item( $_REQUEST['mla_item_ID'] );
|
1084 |
+
break;
|
1085 |
+
case self::MLA_ADMIN_SINGLE_EDIT_DISPLAY:
|
1086 |
+
echo ' - ' . __( 'Edit single item', 'media-library-assistant' ) . '</h2>';
|
1087 |
+
$page_content = self::_display_single_item( $_REQUEST['mla_item_ID'] );
|
1088 |
+
break;
|
1089 |
+
case self::MLA_ADMIN_SINGLE_EDIT_UPDATE:
|
1090 |
+
if ( !empty( $_REQUEST['update'] ) ) {
|
1091 |
+
$page_content = MLAData::mla_update_single_item( $_REQUEST['mla_item_ID'], $_REQUEST['attachments'][ $_REQUEST['mla_item_ID'] ], $_REQUEST['tax_input'] );
|
1092 |
+
} elseif ( !empty( $_REQUEST['map-iptc-exif'] ) ) {
|
1093 |
+
$item = get_post( $_REQUEST['mla_item_ID'] );
|
1094 |
+
do_action( 'mla_begin_mapping', 'single_iptc_exif', $_REQUEST['mla_item_ID'] );
|
1095 |
+
$updates = MLAOptions::mla_evaluate_iptc_exif_mapping( $item, 'iptc_exif_mapping' );
|
1096 |
+
do_action( 'mla_end_mapping' );
|
1097 |
+
$page_content = MLAData::mla_update_single_item( $_REQUEST['mla_item_ID'], $updates );
|
1098 |
+
} else {
|
1099 |
+
$page_content = array(
|
1100 |
+
/* translators: 1: post ID */
|
1101 |
+
'message' => sprintf( __( 'Item %1$d cancelled.', 'media-library-assistant' ), $_REQUEST['mla_item_ID'] ),
|
1102 |
+
'body' => ''
|
1103 |
+
);
|
1104 |
+
}
|
1105 |
+
break;
|
1106 |
+
case self::MLA_ADMIN_SINGLE_RESTORE:
|
1107 |
+
$page_content = self::_restore_single_item( $_REQUEST['mla_item_ID'] );
|
1108 |
+
break;
|
1109 |
+
case self::MLA_ADMIN_SINGLE_TRASH:
|
1110 |
+
$page_content = self::_trash_single_item( $_REQUEST['mla_item_ID'] );
|
1111 |
+
break;
|
1112 |
+
case self::MLA_ADMIN_SET_PARENT:
|
1113 |
+
$new_data = array( 'post_parent' => $_REQUEST['found_post_id'] );
|
1114 |
+
|
1115 |
+
foreach( $_REQUEST['children'] as $child ) {
|
1116 |
+
$item_content = MLAData::mla_update_single_item( $child, $new_data );
|
1117 |
+
$page_content['message'] .= $item_content['message'] . '<br>';
|
1118 |
+
}
|
1119 |
+
|
1120 |
+
unset( $_REQUEST['parent'] );
|
1121 |
+
unset( $_REQUEST['children'] );
|
1122 |
+
unset( $_REQUEST['mla-set-parent-ajax-nonce'] );
|
1123 |
+
unset( $_REQUEST['mla_set_parent_search_text'] );
|
1124 |
+
unset( $_REQUEST['found_post_id'] );
|
1125 |
+
unset( $_REQUEST['mla-set-parent-submit'] );
|
1126 |
+
break;
|
1127 |
+
case self::MLA_ADMIN_TERMS_SEARCH:
|
1128 |
+
/*
|
1129 |
+
* This will be handled as a database query argument,
|
1130 |
+
* but validate the arguments here
|
1131 |
+
*/
|
1132 |
+
$mla_terms_search = isset( $_REQUEST['mla_terms_search'] ) ? $_REQUEST['mla_terms_search'] : array( 'phrases' => '', 'taxonomies' => array() );
|
1133 |
+
if ( ! is_array( $mla_terms_search ) || empty( $mla_terms_search['phrases'] ) || empty( $mla_terms_search['taxonomies'] ) ) {
|
1134 |
+
unset( $_REQUEST['mla_terms_search'] );
|
1135 |
+
$page_content = array(
|
1136 |
+
'message' => __( 'Empty Terms Search; ignored', 'media-library-assistant' ),
|
1137 |
+
'body' => ''
|
1138 |
+
);
|
1139 |
+
} else {
|
1140 |
+
unset( $_REQUEST['mla_terms_search']['submit'] );
|
1141 |
+
}
|
1142 |
+
break;
|
1143 |
+
default:
|
1144 |
+
$page_content = apply_filters( 'mla_list_table_custom_single_action', NULL, $_REQUEST['mla_admin_action'], ( isset( $_REQUEST['mla_item_ID'] ) ? $_REQUEST['mla_item_ID'] : 0 ) );
|
1145 |
+
if ( is_null( $page_content ) ) {
|
1146 |
+
$page_content = array(
|
1147 |
+
/* translators: 1: row-level action, e.g., single_item_delete, single_item_edit */
|
1148 |
+
'message' => sprintf( __( 'Unknown mla_admin_action - "%1$s"', 'media-library-assistant' ), $_REQUEST['mla_admin_action'] ),
|
1149 |
+
'body' => ''
|
1150 |
+
);
|
1151 |
+
} // Unknown mla_admin_action
|
1152 |
+
} // switch ($_REQUEST['mla_admin_action'])
|
1153 |
+
} // ! $prevent_default
|
1154 |
+
|
1155 |
+
if ( ! empty( $custom_message ) ) {
|
1156 |
+
$page_content['message'] = $custom_message . $page_content['message'];
|
1157 |
+
}
|
1158 |
} // (!empty($_REQUEST['mla_admin_action'])
|
1159 |
|
1160 |
if ( !empty( $page_content['body'] ) ) {
|
1237 |
echo " #icon.column-icon {\n";
|
1238 |
echo " width: {$option_value};\n";
|
1239 |
echo " max-width: {$option_value};\n";
|
1240 |
+
//echo " height: {$option_value};\n";
|
1241 |
+
//echo " max-height: {$option_value};\n";
|
1242 |
echo " }\n";
|
1243 |
echo " img.{$class} {\n";
|
1244 |
echo " width: {$option_value};\n";
|
1250 |
}
|
1251 |
|
1252 |
// Create an instance of our package class...
|
1253 |
+
$MLAListTable = apply_filters( 'mla_list_table_new_instance', NULL );
|
1254 |
+
if ( is_null( $MLAListTable ) ) {
|
1255 |
+
$MLAListTable = new MLA_List_Table();
|
1256 |
+
}
|
1257 |
|
1258 |
// Fetch, prepare, sort, and filter our data...
|
1259 |
$MLAListTable->prepare_items();
|
1266 |
$form_url = 'upload.php?page=' . self::ADMIN_PAGE_SLUG;
|
1267 |
}
|
1268 |
|
1269 |
+
// Forms are NOT created automatically, wrap the table in one to use features like bulk actions
|
1270 |
echo '<form action="' . admin_url( $form_url ) . '" method="post" id="mla-filter">' . "\n";
|
1271 |
/*
|
1272 |
* Include the Search Media box
|
1273 |
*/
|
1274 |
+
require_once MLA_PLUGIN_PATH . 'includes/mla-main-search-box-template.php';
|
1275 |
|
1276 |
/*
|
1277 |
* We also need to ensure that the form posts back to our current page and remember all the view arguments
|
1306 |
/*
|
1307 |
* Insert the hidden form and table for inline edits (quick & bulk)
|
1308 |
*/
|
1309 |
+
echo self::_build_inline_edit_form( $MLAListTable );
|
1310 |
|
1311 |
echo "<div id=\"ajax-response\"></div>\n";
|
1312 |
echo "<br class=\"clear\" />\n";
|
1439 |
}
|
1440 |
|
1441 |
/**
|
1442 |
+
* Ajax handler for inline editing (quick edit only)
|
1443 |
*
|
1444 |
* Adapted from wp_ajax_inline_save in /wp-admin/includes/ajax-actions.php
|
1445 |
*
|
1525 |
} else { // ! empty( $_REQUEST['tax_input'] )
|
1526 |
$tax_output = NULL;
|
1527 |
}
|
1528 |
+
//error_log( "mla_inline_edit_ajax_action ({$post_id}) \$_REQUEST = " . var_export( $_REQUEST, true ), 0 );
|
1529 |
+
//error_log( "mla_inline_edit_ajax_action ({$post_id}) \$tax_output = " . var_export( $tax_output, true ), 0 );
|
1530 |
|
1531 |
+
$item_content = apply_filters( 'mla_list_table_inline_action', NULL, $post_id );
|
1532 |
+
if ( is_null( $item_content ) ) {
|
1533 |
+
$prevent_default = false;
|
1534 |
+
$custom_message = '';
|
1535 |
+
} else {
|
1536 |
+
$prevent_default = isset( $item_content['prevent_default'] ) ? $item_content['prevent_default'] : false;
|
1537 |
+
$custom_message = isset( $item_content['message'] ) ? $page_content['message'] : '';
|
1538 |
+
}
|
1539 |
+
|
1540 |
+
//error_log( "mla_inline_edit_ajax_action ({$post_id}) \$item_content = " . var_export( $item_content, true ), 0 );
|
1541 |
+
//error_log( "mla_inline_edit_ajax_action ({$post_id}) \$prevent_default = " . var_export( $prevent_default, true ), 0 );
|
1542 |
+
if ( ! $prevent_default ) {
|
1543 |
+
$results = MLAData::mla_update_single_item( $post_id, $_REQUEST, $tax_output );
|
1544 |
+
}
|
1545 |
+
|
1546 |
$new_item = (object) MLAData::mla_get_attachment_by_id( $post_id );
|
1547 |
+
//error_log( "mla_inline_edit_ajax_action ({$post_id}) \$new_item = " . var_export( $new_item, true ), 0 );
|
1548 |
|
1549 |
// Create an instance of our package class and echo the new HTML
|
1550 |
$MLAListTable = new MLA_List_Table();
|
1604 |
*/
|
1605 |
public static function mla_set_parent_form( $return_form = true ) {
|
1606 |
$set_parent_template = MLAData::mla_load_template( 'admin-set-parent-form.tpl' );
|
1607 |
+
if ( ! is_array( $set_parent_template ) ) {
|
1608 |
/* translators: 1: function name 2: non-array value */
|
1609 |
error_log( sprintf( _x( 'ERROR: %1$s non-array "%2$s"', 'error_log', 'media-library-assistant' ), 'MLA::_build_inline_edit_form', var_export( $set_parent_template, true ) ), 0 );
|
1610 |
return '';
|
1679 |
}
|
1680 |
|
1681 |
$page_template_array = MLAData::mla_load_template( 'admin-inline-edit-form.tpl' );
|
1682 |
+
if ( ! is_array( $page_template_array ) ) {
|
1683 |
/* translators: 1: function name 2: non-array value */
|
1684 |
error_log( sprintf( _x( 'ERROR: %1$s non-array "%2$s"', 'error_log', 'media-library-assistant' ), 'MLA::_build_inline_edit_form', var_export( $page_template_array, true ) ), 0 );
|
1685 |
return '';
|
1838 |
'Map Custom Field metadata' => __( 'Map Custom Field Metadata', 'media-library-assistant' ),
|
1839 |
'set_parent_form' => $set_parent_form,
|
1840 |
);
|
1841 |
+
|
1842 |
+
$page_values = apply_filters( 'mla_list_table_inline_values', $page_values );
|
1843 |
+
$page_template = apply_filters( 'mla_list_table_inline_template', $page_template_array['page'] );
|
1844 |
+
$parse_value = MLAData::mla_parse_template( $page_template, $page_values );
|
1845 |
+
return apply_filters( 'mla_list_table_inline_parse', $parse_value, $page_template, $page_values );
|
1846 |
}
|
1847 |
|
1848 |
/**
|
1952 |
*
|
1953 |
* @since 0.1
|
1954 |
*
|
1955 |
+
* @param integer The WordPress Post ID of the attachment item
|
1956 |
*
|
1957 |
* @return array message and/or HTML content
|
1958 |
*/
|
2233 |
*
|
2234 |
* @since 0.1
|
2235 |
*
|
2236 |
+
* @param integer The WordPress Post ID of the attachment item
|
2237 |
*
|
2238 |
* @return array success/failure message and NULL content
|
2239 |
*/
|
2273 |
*
|
2274 |
* @since 0.1
|
2275 |
*
|
2276 |
+
* @param integer The WordPress Post ID of the attachment item
|
2277 |
*
|
2278 |
* @return array success/failure message and NULL content
|
2279 |
*/
|
includes/class-mla-media-modal.php
CHANGED
@@ -584,29 +584,8 @@ class MLAModal {
|
|
584 |
}
|
585 |
}
|
586 |
|
587 |
-
/*
|
588 |
-
* Compose the Search Media box
|
589 |
-
* /
|
590 |
-
if ( isset( $_REQUEST['query']['mla_search_value'] ) ) {
|
591 |
-
$search_value = esc_attr( stripslashes( trim( $_REQUEST['query']['mla_search_value'] ) ) );
|
592 |
-
} else {
|
593 |
-
$search_value = self::$mla_media_modal_settings['query']['initial']['searchValue'];
|
594 |
-
}
|
595 |
-
|
596 |
-
if ( isset( $_REQUEST['query']['mla_search_fields'] ) ) {
|
597 |
-
$search_fields = $_REQUEST['query']['mla_search_fields'];
|
598 |
-
} else {
|
599 |
-
$search_fields = self::$mla_media_modal_settings['query']['initial']['searchFields'];
|
600 |
-
}
|
601 |
-
|
602 |
-
if ( isset( $_REQUEST['query']['mla_search_connector'] ) ) {
|
603 |
-
$search_connector = $_REQUEST['query']['mla_search_connector'];
|
604 |
-
} else {
|
605 |
-
$search_connector = self::$mla_media_modal_settings['query']['initial']['searchConnector'];
|
606 |
-
} // */
|
607 |
-
|
608 |
// Include mla javascript templates
|
609 |
-
require_once MLA_PLUGIN_PATH . '
|
610 |
} // mla_print_media_templates_action
|
611 |
|
612 |
/**
|
@@ -1192,7 +1171,7 @@ class MLAModal {
|
|
1192 |
*/
|
1193 |
public static function mla_terms_search_form() {
|
1194 |
$page_template_array = MLAData::mla_load_template( 'admin-terms-search-form.tpl' );
|
1195 |
-
if ( !
|
1196 |
/* translators: 1: function name 2: non-array value */
|
1197 |
error_log( sprintf( _x( 'ERROR: %1$s non-array "%2$s"', 'error_log', 'media-library-assistant' ), 'MLA::_build_terms_search_form', var_export( $page_template_array, true ) ), 0 );
|
1198 |
return '';
|
@@ -1240,7 +1219,7 @@ class MLAModal {
|
|
1240 |
|
1241 |
$page_values = array(
|
1242 |
'mla_terms_search_url' => esc_url( add_query_arg( array_merge( MLA_List_Table::mla_submenu_arguments( false ), array( 'page' => MLA::ADMIN_PAGE_SLUG ) ), admin_url( 'upload.php' ) ) ),
|
1243 |
-
'mla_terms_search_action' => MLA::
|
1244 |
'wpnonce' => wp_nonce_field( MLA::MLA_ADMIN_NONCE, '_wpnonce', true, false ),
|
1245 |
'mla_terms_search_div' => $terms_search_tpl,
|
1246 |
);
|
584 |
}
|
585 |
}
|
586 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
587 |
// Include mla javascript templates
|
588 |
+
require_once MLA_PLUGIN_PATH . 'includes/mla-media-modal-js-template.php';
|
589 |
} // mla_print_media_templates_action
|
590 |
|
591 |
/**
|
1171 |
*/
|
1172 |
public static function mla_terms_search_form() {
|
1173 |
$page_template_array = MLAData::mla_load_template( 'admin-terms-search-form.tpl' );
|
1174 |
+
if ( ! is_array( $page_template_array ) ) {
|
1175 |
/* translators: 1: function name 2: non-array value */
|
1176 |
error_log( sprintf( _x( 'ERROR: %1$s non-array "%2$s"', 'error_log', 'media-library-assistant' ), 'MLA::_build_terms_search_form', var_export( $page_template_array, true ) ), 0 );
|
1177 |
return '';
|
1219 |
|
1220 |
$page_values = array(
|
1221 |
'mla_terms_search_url' => esc_url( add_query_arg( array_merge( MLA_List_Table::mla_submenu_arguments( false ), array( 'page' => MLA::ADMIN_PAGE_SLUG ) ), admin_url( 'upload.php' ) ) ),
|
1222 |
+
'mla_terms_search_action' => MLA::MLA_ADMIN_TERMS_SEARCH,
|
1223 |
'wpnonce' => wp_nonce_field( MLA::MLA_ADMIN_NONCE, '_wpnonce', true, false ),
|
1224 |
'mla_terms_search_div' => $terms_search_tpl,
|
1225 |
);
|
includes/class-mla-options.php
CHANGED
@@ -2081,7 +2081,8 @@ class MLAOptions {
|
|
2081 |
break;
|
2082 |
case 'default_sortable_columns':
|
2083 |
if ( $value['mla_column'] ) {
|
2084 |
-
|
|
|
2085 |
}
|
2086 |
break;
|
2087 |
case 'quick_edit':
|
@@ -3551,7 +3552,9 @@ class MLAOptions {
|
|
3551 |
|
3552 |
$iptc_value = apply_filters( 'mla_mapping_iptc_value', $iptc_value, $setting_key, $post->ID, 'iptc_exif_standard_mapping', $attachment_metadata );
|
3553 |
|
3554 |
-
if ( 'template:' ==
|
|
|
|
|
3555 |
$data_value = array(
|
3556 |
'name' => $setting_key,
|
3557 |
'data_source' => 'template',
|
@@ -3576,7 +3579,7 @@ class MLAOptions {
|
|
3576 |
$new_text = $exif_value;
|
3577 |
}
|
3578 |
} else {
|
3579 |
-
if ( ! empty( $exif_value ) ) {
|
3580 |
$new_text = $exif_value;
|
3581 |
} else {
|
3582 |
$new_text = $iptc_value;
|
@@ -3587,6 +3590,19 @@ class MLAOptions {
|
|
3587 |
$new_text = implode( ',', $new_text );
|
3588 |
}
|
3589 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3590 |
$new_text = trim( convert_chars( $new_text ) );
|
3591 |
if ( !empty( $new_text ) ) {
|
3592 |
switch ( $setting_key ) {
|
@@ -3652,7 +3668,7 @@ class MLAOptions {
|
|
3652 |
'format' => 'native',
|
3653 |
'option' => 'array' );
|
3654 |
|
3655 |
-
$exif_value =
|
3656 |
} else {
|
3657 |
$exif_value = MLAData::mla_exif_metadata_value( $setting_value['exif_value'], $image_metadata );
|
3658 |
}
|
2081 |
break;
|
2082 |
case 'default_sortable_columns':
|
2083 |
if ( $value['mla_column'] ) {
|
2084 |
+
// columns without NULL values should sort descending
|
2085 |
+
$results[ $slug ] = array( $slug, $value['no_null'] );
|
2086 |
}
|
2087 |
break;
|
2088 |
case 'quick_edit':
|
3552 |
|
3553 |
$iptc_value = apply_filters( 'mla_mapping_iptc_value', $iptc_value, $setting_key, $post->ID, 'iptc_exif_standard_mapping', $attachment_metadata );
|
3554 |
|
3555 |
+
if ( 'template:[+empty+]' == $setting_value['exif_value'] ) {
|
3556 |
+
$exif_value = NULL;
|
3557 |
+
} elseif ( 'template:' == substr( $setting_value['exif_value'], 0, 9 ) ) {
|
3558 |
$data_value = array(
|
3559 |
'name' => $setting_key,
|
3560 |
'data_source' => 'template',
|
3579 |
$new_text = $exif_value;
|
3580 |
}
|
3581 |
} else {
|
3582 |
+
if ( ( ! empty( $exif_value ) ) || is_null( $exif_value ) ) {
|
3583 |
$new_text = $exif_value;
|
3584 |
} else {
|
3585 |
$new_text = $iptc_value;
|
3590 |
$new_text = implode( ',', $new_text );
|
3591 |
}
|
3592 |
|
3593 |
+
// Handle 'template:[+empty+]'
|
3594 |
+
if ( is_null( $new_text ) ) {
|
3595 |
+
$updates[ $setting_key ] = '';
|
3596 |
+
continue;
|
3597 |
+
}
|
3598 |
+
|
3599 |
+
/*
|
3600 |
+
* See /wp-includes/formatting.php, function convert_chars()
|
3601 |
+
*
|
3602 |
+
* Metadata tags <<title>> and <<category>> are removed, <<br>> and <<hr>> are
|
3603 |
+
* converted into correct XHTML and Unicode characters are converted to the
|
3604 |
+
* valid range.
|
3605 |
+
*/
|
3606 |
$new_text = trim( convert_chars( $new_text ) );
|
3607 |
if ( !empty( $new_text ) ) {
|
3608 |
switch ( $setting_key ) {
|
3668 |
'format' => 'native',
|
3669 |
'option' => 'array' );
|
3670 |
|
3671 |
+
$exif_value = self::_evaluate_data_source( $post->ID, 'single_attachment_mapping', $data_value, $attachment_metadata );
|
3672 |
} else {
|
3673 |
$exif_value = MLAData::mla_exif_metadata_value( $setting_value['exif_value'], $image_metadata );
|
3674 |
}
|
includes/class-mla-settings.php
CHANGED
@@ -1187,7 +1187,7 @@ class MLASettings {
|
|
1187 |
*/
|
1188 |
private static function _compose_view_tab( ) {
|
1189 |
$page_template_array = MLAData::mla_load_template( 'admin-display-settings-view-tab.tpl' );
|
1190 |
-
if ( !
|
1191 |
/* translators: 1: function name 2: non-array value */
|
1192 |
error_log( sprintf( _x( 'ERROR: %1$s non-array "%2$s"', 'error_log', 'media-library-assistant' ), 'MLASettings::_compose_view_tab', var_export( $page_template_array, true ) ), 0 );
|
1193 |
return '';
|
@@ -1634,7 +1634,7 @@ class MLASettings {
|
|
1634 |
*/
|
1635 |
private static function _compose_upload_tab( ) {
|
1636 |
$page_template_array = MLAData::mla_load_template( 'admin-display-settings-upload-tab.tpl' );
|
1637 |
-
if ( !
|
1638 |
/* translators: 1: function name 2: non-array value */
|
1639 |
error_log( sprintf( _x( 'ERROR: %1$s non-array "%2$s"', 'error_log', 'media-library-assistant' ), 'MLASettings::_compose_upload_tab', var_export( $page_template_array, true ) ), 0 );
|
1640 |
return '';
|
1187 |
*/
|
1188 |
private static function _compose_view_tab( ) {
|
1189 |
$page_template_array = MLAData::mla_load_template( 'admin-display-settings-view-tab.tpl' );
|
1190 |
+
if ( ! is_array( $page_template_array ) ) {
|
1191 |
/* translators: 1: function name 2: non-array value */
|
1192 |
error_log( sprintf( _x( 'ERROR: %1$s non-array "%2$s"', 'error_log', 'media-library-assistant' ), 'MLASettings::_compose_view_tab', var_export( $page_template_array, true ) ), 0 );
|
1193 |
return '';
|
1634 |
*/
|
1635 |
private static function _compose_upload_tab( ) {
|
1636 |
$page_template_array = MLAData::mla_load_template( 'admin-display-settings-upload-tab.tpl' );
|
1637 |
+
if ( ! is_array( $page_template_array ) ) {
|
1638 |
/* translators: 1: function name 2: non-array value */
|
1639 |
error_log( sprintf( _x( 'ERROR: %1$s non-array "%2$s"', 'error_log', 'media-library-assistant' ), 'MLASettings::_compose_upload_tab', var_export( $page_template_array, true ) ), 0 );
|
1640 |
return '';
|
includes/class-mla-shortcodes.php
CHANGED
@@ -31,8 +31,23 @@ class MLAShortcodes {
|
|
31 |
if ( version_compare( get_bloginfo('version'), '4.0', '>=' ) ) {
|
32 |
add_filter( 'no_texturize_shortcodes', 'MLAShortcodes::mla_no_texturize_shortcodes_filter', 10, 1 );
|
33 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
}
|
35 |
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
/**
|
37 |
* Prevents wptexturizing of the [mla_gallery] shortcode, avoiding a bug in WP 4.0.
|
38 |
*
|
@@ -778,7 +793,7 @@ class MLAShortcodes {
|
|
778 |
$item_values['pagelink'] = preg_replace( '/height=\"[^\"]*\"/', sprintf( 'height="%1$d"', $dimensions[0] ), $thumb );
|
779 |
$thumb = preg_replace( '/width=\"[^\"]*\"/', sprintf( 'width="%1$d"', $dimensions[1] ), $item_values['filelink'] );
|
780 |
$item_values['filelink'] = preg_replace( '/height=\"[^\"]*\"/', sprintf( 'height="%1$d"', $dimensions[0] ), $thumb );
|
781 |
-
}
|
782 |
|
783 |
/*
|
784 |
* Apply the Gallery Display Content parameters.
|
@@ -805,7 +820,7 @@ class MLAShortcodes {
|
|
805 |
$item_values['filelink'] = preg_replace('# title=\"([^\"]*)\"#', " title=\"{$rollover_text}\"", $item_values['filelink'] );
|
806 |
}
|
807 |
} else {
|
808 |
-
$rollover_text = $item_values['title'];
|
809 |
}
|
810 |
|
811 |
if ( ! empty( $arguments['mla_target'] ) ) {
|
@@ -989,11 +1004,16 @@ class MLAShortcodes {
|
|
989 |
$item_values['thumbnail_content'] = sprintf( '<img %1$ssrc="http://docs.google.com/viewer?url=%2$s&a=bi&pagenumber=%3$d&w=%4$d"%5$s%6$s>', $image_attributes, $item_values['filelink_url'], $arguments['mla_viewer_page'], $arguments['mla_viewer_width'], $image_class, $image_alt );
|
990 |
|
991 |
/*
|
992 |
-
* Filelink, pagelink and link
|
|
|
993 |
*/
|
994 |
-
|
995 |
-
|
996 |
-
|
|
|
|
|
|
|
|
|
997 |
if ( ! empty( $link_href ) ) {
|
998 |
$item_values['link'] = sprintf( '<a %1$shref="%2$s" title="%3$s">%4$s</a>', $link_attributes, $link_href, $rollover_text, $item_values['thumbnail_content'] );
|
999 |
} elseif ( 'permalink' == $arguments['link'] ) {
|
@@ -2322,7 +2342,7 @@ class MLAShortcodes {
|
|
2322 |
*/
|
2323 |
private static function _sanitize_query_specification( $specification ) {
|
2324 |
$specification = wp_specialchars_decode( $specification );
|
2325 |
-
$specification = str_replace( array( '<br />', '<p>', '</p>', "\r", "\n" ), ' ', $specification );
|
2326 |
return $specification;
|
2327 |
}
|
2328 |
|
@@ -2459,7 +2479,7 @@ class MLAShortcodes {
|
|
2459 |
'exclude' => array(),
|
2460 |
// MLA extensions, from WP_Query
|
2461 |
// Force 'get_children' style query
|
2462 |
-
'post_parent' => NULL, // post/page ID
|
2463 |
// Author
|
2464 |
'author' => NULL,
|
2465 |
'author_name' => '',
|
@@ -2480,8 +2500,9 @@ class MLAShortcodes {
|
|
2480 |
// Taxonomy parameters are handled separately
|
2481 |
// {tax_slug} => 'term' | array ( 'term', 'term', ... )
|
2482 |
// 'tax_query' => ''
|
2483 |
-
'
|
2484 |
-
'
|
|
|
2485 |
// Post
|
2486 |
'post_type' => 'attachment',
|
2487 |
'post_status' => 'inherit',
|
@@ -2496,7 +2517,8 @@ class MLAShortcodes {
|
|
2496 |
'mla_page_parameter' => 'mla_paginate_current',
|
2497 |
'mla_paginate_current' => NULL,
|
2498 |
'mla_paginate_total' => NULL,
|
2499 |
-
//
|
|
|
2500 |
// Custom Field
|
2501 |
'meta_key' => '',
|
2502 |
'meta_value' => '',
|
@@ -2555,7 +2577,7 @@ class MLAShortcodes {
|
|
2555 |
|
2556 |
/*
|
2557 |
* The "where used" queries have no $_REQUEST context available to them,
|
2558 |
-
* so tax_ and meta_query evaluation will fail if they contain "{+request:"
|
2559 |
* parameters. Ignore these errors.
|
2560 |
*/
|
2561 |
if ( isset( $attr['where_used_query'] ) && ( 'this-is-a-where-used-query' == $attr['where_used_query'] ) ) {
|
@@ -2616,9 +2638,10 @@ class MLAShortcodes {
|
|
2616 |
/*
|
2617 |
* Extract taxonomy arguments
|
2618 |
*/
|
2619 |
-
$taxonomies = get_taxonomies( array ( 'show_ui' => true ), 'names' ); // 'objects'
|
2620 |
$query_arguments = array();
|
2621 |
if ( ! empty( $attr ) ) {
|
|
|
|
|
2622 |
foreach ( $attr as $key => $value ) {
|
2623 |
if ( 'tax_query' == $key ) {
|
2624 |
if ( is_array( $value ) ) {
|
@@ -2641,34 +2664,70 @@ class MLAShortcodes {
|
|
2641 |
|
2642 |
if ( is_array( $tax_query ) ) {
|
2643 |
$query_arguments[ $key ] = $tax_query;
|
|
|
2644 |
} else {
|
2645 |
return '<p>' . __( 'ERROR: Invalid mla_gallery', 'media-library-assistant' ) . ' tax_query = ' . var_export( $value, true ) . '</p>';
|
2646 |
}
|
2647 |
} // not array
|
2648 |
-
} /* tax_query */ elseif (
|
2649 |
-
$
|
2650 |
-
}
|
2651 |
-
|
2652 |
-
|
2653 |
-
|
2654 |
-
|
2655 |
-
|
2656 |
-
|
2657 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2658 |
}
|
2659 |
-
} else {
|
2660 |
-
$arguments['tax_include_children'] = true;
|
2661 |
}
|
2662 |
-
|
2663 |
-
|
2664 |
-
|
2665 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2666 |
}
|
2667 |
-
}
|
2668 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2669 |
} // ! empty
|
2670 |
-
unset( $arguments['tax_operator'] );
|
2671 |
-
unset( $arguments['tax_include_children'] );
|
2672 |
|
2673 |
/*
|
2674 |
* $query_arguments has been initialized in the taxonomy code above.
|
@@ -2872,6 +2931,37 @@ class MLAShortcodes {
|
|
2872 |
}
|
2873 |
}
|
2874 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2875 |
unset( $arguments[ $key ] );
|
2876 |
break;
|
2877 |
case 'meta_query':
|
31 |
if ( version_compare( get_bloginfo('version'), '4.0', '>=' ) ) {
|
32 |
add_filter( 'no_texturize_shortcodes', 'MLAShortcodes::mla_no_texturize_shortcodes_filter', 10, 1 );
|
33 |
}
|
34 |
+
|
35 |
+
// add_filter( 'date_query_valid_columns', 'MLAShortcodes::mla_date_query_valid_columns_filter', 10, 1 );
|
36 |
+
// add_filter( 'get_date_sql', 'MLAShortcodes::mla_get_date_sql_filter', 10, 2 );
|
37 |
+
}
|
38 |
+
|
39 |
+
/* public static function mla_date_query_valid_columns_filter( $valid_columns ) {
|
40 |
+
$valid_columns[] = 'meta_value';
|
41 |
+
|
42 |
+
return $valid_columns;
|
43 |
}
|
44 |
|
45 |
+
public static function mla_get_date_sql_filter( $where, $date_query ) {
|
46 |
+
//error_log( ' $where = ' . var_export( $where, true ), 0 );
|
47 |
+
|
48 |
+
return $where;
|
49 |
+
} // */
|
50 |
+
|
51 |
/**
|
52 |
* Prevents wptexturizing of the [mla_gallery] shortcode, avoiding a bug in WP 4.0.
|
53 |
*
|
793 |
$item_values['pagelink'] = preg_replace( '/height=\"[^\"]*\"/', sprintf( 'height="%1$d"', $dimensions[0] ), $thumb );
|
794 |
$thumb = preg_replace( '/width=\"[^\"]*\"/', sprintf( 'width="%1$d"', $dimensions[1] ), $item_values['filelink'] );
|
795 |
$item_values['filelink'] = preg_replace( '/height=\"[^\"]*\"/', sprintf( 'height="%1$d"', $dimensions[0] ), $thumb );
|
796 |
+
} // SVG thumbnail
|
797 |
|
798 |
/*
|
799 |
* Apply the Gallery Display Content parameters.
|
820 |
$item_values['filelink'] = preg_replace('# title=\"([^\"]*)\"#', " title=\"{$rollover_text}\"", $item_values['filelink'] );
|
821 |
}
|
822 |
} else {
|
823 |
+
$rollover_text = esc_attr( $item_values['title'] );
|
824 |
}
|
825 |
|
826 |
if ( ! empty( $arguments['mla_target'] ) ) {
|
1004 |
$item_values['thumbnail_content'] = sprintf( '<img %1$ssrc="http://docs.google.com/viewer?url=%2$s&a=bi&pagenumber=%3$d&w=%4$d"%5$s%6$s>', $image_attributes, $item_values['filelink_url'], $arguments['mla_viewer_page'], $arguments['mla_viewer_width'], $image_class, $image_alt );
|
1005 |
|
1006 |
/*
|
1007 |
+
* Filelink, pagelink and link.
|
1008 |
+
* The "title=" attribute is in $link_attributes for WP 3.7+.
|
1009 |
*/
|
1010 |
+
if ( false === strpos( $link_attributes, 'title=' ) ) {
|
1011 |
+
$item_values['pagelink'] = sprintf( '<a %1$shref="%2$s" title="%3$s">%4$s</a>', $link_attributes, $item_values['pagelink_url'], $rollover_text, $item_values['thumbnail_content'] );
|
1012 |
+
$item_values['filelink'] = sprintf( '<a %1$shref="%2$s" title="%3$s">%4$s</a>', $link_attributes, $item_values['filelink_url'], $rollover_text, $item_values['thumbnail_content'] );
|
1013 |
+
} else {
|
1014 |
+
$item_values['pagelink'] = sprintf( '<a %1$shref="%2$s">%3$s</a>', $link_attributes, $item_values['pagelink_url'], $item_values['thumbnail_content'] );
|
1015 |
+
$item_values['filelink'] = sprintf( '<a %1$shref="%2$s">%3$s</a>', $link_attributes, $item_values['filelink_url'], $item_values['thumbnail_content'] );
|
1016 |
+
}
|
1017 |
if ( ! empty( $link_href ) ) {
|
1018 |
$item_values['link'] = sprintf( '<a %1$shref="%2$s" title="%3$s">%4$s</a>', $link_attributes, $link_href, $rollover_text, $item_values['thumbnail_content'] );
|
1019 |
} elseif ( 'permalink' == $arguments['link'] ) {
|
2342 |
*/
|
2343 |
private static function _sanitize_query_specification( $specification ) {
|
2344 |
$specification = wp_specialchars_decode( $specification );
|
2345 |
+
$specification = str_replace( array( '<br>', '<br />', '<p>', '</p>', "\r", "\n" ), ' ', $specification );
|
2346 |
return $specification;
|
2347 |
}
|
2348 |
|
2479 |
'exclude' => array(),
|
2480 |
// MLA extensions, from WP_Query
|
2481 |
// Force 'get_children' style query
|
2482 |
+
'post_parent' => NULL, // post/page ID, 'none', 'any', 'current' or 'all'
|
2483 |
// Author
|
2484 |
'author' => NULL,
|
2485 |
'author_name' => '',
|
2500 |
// Taxonomy parameters are handled separately
|
2501 |
// {tax_slug} => 'term' | array ( 'term', 'term', ... )
|
2502 |
// 'tax_query' => ''
|
2503 |
+
// 'tax_relation' => 'OR', 'AND' (default),
|
2504 |
+
// 'tax_operator' => 'OR' (default), 'IN', 'NOT IN', 'AND',
|
2505 |
+
// 'tax_include_children' => true (default), false
|
2506 |
// Post
|
2507 |
'post_type' => 'attachment',
|
2508 |
'post_status' => 'inherit',
|
2517 |
'mla_page_parameter' => 'mla_paginate_current',
|
2518 |
'mla_paginate_current' => NULL,
|
2519 |
'mla_paginate_total' => NULL,
|
2520 |
+
// Date and Time Queries
|
2521 |
+
'date_query' => '',
|
2522 |
// Custom Field
|
2523 |
'meta_key' => '',
|
2524 |
'meta_value' => '',
|
2577 |
|
2578 |
/*
|
2579 |
* The "where used" queries have no $_REQUEST context available to them,
|
2580 |
+
* so tax_, date_ and meta_query evaluation will fail if they contain "{+request:"
|
2581 |
* parameters. Ignore these errors.
|
2582 |
*/
|
2583 |
if ( isset( $attr['where_used_query'] ) && ( 'this-is-a-where-used-query' == $attr['where_used_query'] ) ) {
|
2638 |
/*
|
2639 |
* Extract taxonomy arguments
|
2640 |
*/
|
|
|
2641 |
$query_arguments = array();
|
2642 |
if ( ! empty( $attr ) ) {
|
2643 |
+
$all_taxonomies = get_taxonomies( array ( 'show_ui' => true ), 'names' );
|
2644 |
+
$simple_tax_queries = array();
|
2645 |
foreach ( $attr as $key => $value ) {
|
2646 |
if ( 'tax_query' == $key ) {
|
2647 |
if ( is_array( $value ) ) {
|
2664 |
|
2665 |
if ( is_array( $tax_query ) ) {
|
2666 |
$query_arguments[ $key ] = $tax_query;
|
2667 |
+
break; // Done - the tax_query overrides all other taxonomy parameters
|
2668 |
} else {
|
2669 |
return '<p>' . __( 'ERROR: Invalid mla_gallery', 'media-library-assistant' ) . ' tax_query = ' . var_export( $value, true ) . '</p>';
|
2670 |
}
|
2671 |
} // not array
|
2672 |
+
} /* tax_query */ elseif ( array_key_exists( $key, $all_taxonomies ) ) {
|
2673 |
+
$simple_tax_queries[ $key ] = implode(',', array_filter( array_map( 'trim', explode( ',', $value ) ) ) );
|
2674 |
+
} // array_key_exists
|
2675 |
+
} //foreach $attr
|
2676 |
+
|
2677 |
+
/*
|
2678 |
+
* One of five outcomes:
|
2679 |
+
* 1) An explicit tax_query was found; use it and ignore all other taxonomy parameters
|
2680 |
+
* 2) No tax query is present; no further processing required
|
2681 |
+
* 3) Two or more simple tax queries are present; compose a tax_query
|
2682 |
+
* 4) One simple tax query and (tax_operator or tax_include_children) are present; compose a tax_query
|
2683 |
+
* 5) One simple tax query is present; use it as-is or convert 'category' to 'category_name'
|
2684 |
+
*/
|
2685 |
+
if ( isset( $query_arguments['tax_query'] ) || empty( $simple_tax_queries ) ) {
|
2686 |
+
// No further action required
|
2687 |
+
} elseif ( ( 1 < count( $simple_tax_queries ) ) || isset( $attr['tax_operator'] ) || isset( $attr['tax_include_children'] ) ) {
|
2688 |
+
// Build a tax_query
|
2689 |
+
if ( 1 < count( $simple_tax_queries ) ) {
|
2690 |
+
$tax_relation = 'AND';
|
2691 |
+
if ( isset( $attr['tax_relation'] ) ) {
|
2692 |
+
if ( 'OR' == strtoupper( $attr['tax_relation'] ) ) {
|
2693 |
+
$tax_relation = 'OR';
|
2694 |
}
|
|
|
|
|
2695 |
}
|
2696 |
+
$tax_query = array ('relation' => $tax_relation );
|
2697 |
+
} else {
|
2698 |
+
$tax_query = array ();
|
2699 |
+
}
|
2700 |
+
|
2701 |
+
// Validate other tax_query parameters or set defaults
|
2702 |
+
$tax_operator = 'IN';
|
2703 |
+
if ( isset( $attr['tax_operator'] ) ) {
|
2704 |
+
$attr_value = strtoupper( $attr['tax_operator'] );
|
2705 |
+
if ( in_array( $attr_value, array( 'IN', 'NOT IN', 'AND' ) ) ) {
|
2706 |
+
$tax_operator = $attr_value;
|
2707 |
}
|
2708 |
+
}
|
2709 |
+
|
2710 |
+
$tax_include_children = true;
|
2711 |
+
if ( isset( $attr['tax_include_children'] ) ) {
|
2712 |
+
if ( 'FALSE' == strtoupper( $attr['tax_include_children'] ) ) {
|
2713 |
+
$tax_include_children = false;
|
2714 |
+
}
|
2715 |
+
}
|
2716 |
+
|
2717 |
+
foreach( $simple_tax_queries as $key => $value ) {
|
2718 |
+
$tax_query[] = array( 'taxonomy' => $key, 'field' => 'slug', 'terms' => explode( ',', $value ), 'operator' => $tax_operator, 'include_children' => $tax_include_children );
|
2719 |
+
}
|
2720 |
+
|
2721 |
+
$query_arguments['tax_query'] = $tax_query;
|
2722 |
+
} else {
|
2723 |
+
// exactly one simple query is present
|
2724 |
+
if ( isset( $simple_tax_queries['category'] ) ) {
|
2725 |
+
$arguments['category_name'] = $simple_tax_queries['category'];
|
2726 |
+
} else {
|
2727 |
+
$query_arguments = $simple_tax_queries;
|
2728 |
+
}
|
2729 |
+
}
|
2730 |
} // ! empty
|
|
|
|
|
2731 |
|
2732 |
/*
|
2733 |
* $query_arguments has been initialized in the taxonomy code above.
|
2931 |
}
|
2932 |
}
|
2933 |
|
2934 |
+
unset( $arguments[ $key ] );
|
2935 |
+
break;
|
2936 |
+
case 'date_query':
|
2937 |
+
if ( ! empty( $value ) ) {
|
2938 |
+
if ( is_array( $value ) ) {
|
2939 |
+
$query_arguments[ $key ] = $value;
|
2940 |
+
} else {
|
2941 |
+
$date_query = NULL;
|
2942 |
+
$value = self::_sanitize_query_specification( $value );
|
2943 |
+
|
2944 |
+
/*
|
2945 |
+
* Replace invalid queries from "where-used" callers with a harmless equivalent
|
2946 |
+
*/
|
2947 |
+
if ( $where_used_query && ( false !== strpos( $value, '{+' ) ) ) {
|
2948 |
+
$value = "array( array( 'key' => 'unlikely', 'value' => 'none or otherwise unlikely' ) )";
|
2949 |
+
}
|
2950 |
+
|
2951 |
+
$function = @create_function('', 'return ' . $value . ';' );
|
2952 |
+
if ( is_callable( $function ) ) {
|
2953 |
+
$date_query = $function();
|
2954 |
+
}
|
2955 |
+
|
2956 |
+
if ( is_array( $date_query ) ) {
|
2957 |
+
$query_arguments[ $key ] = $date_query;
|
2958 |
+
} else {
|
2959 |
+
return '<p>' . __( 'ERROR: Invalid mla_gallery', 'media-library-assistant' ) . ' date_query = ' . var_export( $value, true ) . '</p>';
|
2960 |
+
}
|
2961 |
+
} // not array
|
2962 |
+
|
2963 |
+
$use_children = false;
|
2964 |
+
}
|
2965 |
unset( $arguments[ $key ] );
|
2966 |
break;
|
2967 |
case 'meta_query':
|
includes/mla-force-download.php
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Provides Ajax support for downloading a file to the client
|
4 |
+
*
|
5 |
+
* @package Media Library Assistant
|
6 |
+
* @since 1.95
|
7 |
+
*/
|
8 |
+
|
9 |
+
if ( isset( $_REQUEST['mla_download_file'] ) && isset( $_REQUEST['mla_download_type'] ) ) {
|
10 |
+
if( ini_get( 'zlib.output_compression' ) ) {
|
11 |
+
ini_set( 'zlib.output_compression', 'Off' );
|
12 |
+
}
|
13 |
+
|
14 |
+
$file_name = $_REQUEST['mla_download_file'];
|
15 |
+
$pathinfo = pathinfo( $file_name );
|
16 |
+
|
17 |
+
header('Pragma: public'); // required
|
18 |
+
header('Expires: 0'); // no cache
|
19 |
+
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
|
20 |
+
header('Last-Modified: '.gmdate ('D, d M Y H:i:s', filemtime ($file_name)).' GMT');
|
21 |
+
header('Cache-Control: private',false);
|
22 |
+
header('Content-Type: '.$_REQUEST['mla_download_type']);
|
23 |
+
header('Content-Disposition: attachment; filename="'.basename($file_name).'"');
|
24 |
+
header('Content-Transfer-Encoding: binary');
|
25 |
+
header('Content-Length: '.filesize($file_name)); // provide file size
|
26 |
+
header('Connection: close');
|
27 |
+
|
28 |
+
readfile( $_REQUEST['mla_download_file'] );
|
29 |
+
exit();
|
30 |
+
} else {
|
31 |
+
$message = 'ERROR: download argument(s) not set.';
|
32 |
+
}
|
33 |
+
|
34 |
+
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">';
|
35 |
+
echo '<html xmlns="http://www.w3.org/1999/xhtml">';
|
36 |
+
echo '<head>';
|
37 |
+
echo '<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />';
|
38 |
+
echo '<title>Download Error</title>';
|
39 |
+
echo '</head>';
|
40 |
+
echo '';
|
41 |
+
echo '<body>';
|
42 |
+
echo $message;
|
43 |
+
echo '</body>';
|
44 |
+
echo '</html> ';
|
45 |
+
exit();
|
46 |
+
?>
|
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 suppor
|
|
16 |
Author: David Lingren, Fair Trade Judaica
|
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.95
|
10 |
*/
|
11 |
|
12 |
/*
|
16 |
Author: David Lingren, Fair Trade Judaica
|
17 |
Text Domain: media-library-assistant
|
18 |
Domain Path: /languages
|
19 |
+
Version: 1.95
|
20 |
Author URI: http://fairtradejudaica.org/our-story/staff/
|
21 |
|
22 |
Copyright 2011-2014 David Lingren
|
js/mla-inline-edit-scripts.js
CHANGED
@@ -218,7 +218,7 @@ var jQuery,
|
|
218 |
if ( typeof(id) == 'object' )
|
219 |
id = this.getId(id);
|
220 |
|
221 |
-
$('table.widefat .inline-edit-save .
|
222 |
|
223 |
params = {
|
224 |
action: mla.settings.ajax_action,
|
@@ -235,7 +235,7 @@ var jQuery,
|
|
235 |
// make ajax request
|
236 |
$.post( ajaxurl, params,
|
237 |
function( response ) {
|
238 |
-
$( 'table.widefat .inline-edit-save .
|
239 |
|
240 |
if ( response ) {
|
241 |
if ( -1 != response.indexOf( '<tr' ) ) {
|
@@ -376,7 +376,7 @@ var jQuery,
|
|
376 |
var id = $('table.widefat tr.inline-editor').attr('id');
|
377 |
|
378 |
if ( id ) {
|
379 |
-
$('table.widefat .inline-edit-save .
|
380 |
|
381 |
if ( 'bulk-edit' == id ) {
|
382 |
$('table.widefat #bulk-edit').removeClass('inline-editor').hide();
|
218 |
if ( typeof(id) == 'object' )
|
219 |
id = this.getId(id);
|
220 |
|
221 |
+
$('table.widefat .inline-edit-save .spinner').show();
|
222 |
|
223 |
params = {
|
224 |
action: mla.settings.ajax_action,
|
235 |
// make ajax request
|
236 |
$.post( ajaxurl, params,
|
237 |
function( response ) {
|
238 |
+
$( 'table.widefat .inline-edit-save .spinner' ).hide();
|
239 |
|
240 |
if ( response ) {
|
241 |
if ( -1 != response.indexOf( '<tr' ) ) {
|
376 |
var id = $('table.widefat tr.inline-editor').attr('id');
|
377 |
|
378 |
if ( id ) {
|
379 |
+
$('table.widefat .inline-edit-save .spinner').hide();
|
380 |
|
381 |
if ( 'bulk-edit' == id ) {
|
382 |
$('table.widefat #bulk-edit').removeClass('inline-editor').hide();
|
js/mla-inline-edit-scripts.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
var jQuery,mla_inline_edit_vars,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(){c.revert();a('select[name^="action"]').val("-1")})},toggle:function(c){var b=this;if("none"==a(b.what+b.getId(c)).css("display")){b.revert()}else{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(){if(a(this).prop("checked")){d=false;var e=a(this).val(),c;c=a("#inline_"+e+" .post_title").text()||mla.settings.noTitle;b+='<div id="ttle'+e+'"><a id="_'+e+'" class="ntdelbutton" title="'+mla.settings.ntdelTitle+'">X</a>'+c+"</div>"}});if(d){return this.revert()}a("#bulk-titles").html(b);a("#bulk-titles a").click(function(){var c=a(this).attr("id").substr(1);a('table.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(),i;if(h){i=a(this).attr("id").replace("_"+g,"");a("ul."+i+"-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 .
|
1 |
+
var jQuery,mla_inline_edit_vars,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(){c.revert();a('select[name^="action"]').val("-1")})},toggle:function(c){var b=this;if("none"==a(b.what+b.getId(c)).css("display")){b.revert()}else{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(){if(a(this).prop("checked")){d=false;var e=a(this).val(),c;c=a("#inline_"+e+" .post_title").text()||mla.settings.noTitle;b+='<div id="ttle'+e+'"><a id="_'+e+'" class="ntdelbutton" title="'+mla.settings.ntdelTitle+'">X</a>'+c+"</div>"}});if(d){return this.revert()}a("#bulk-titles").html(b);a("#bulk-titles a").click(function(){var c=a(this).attr("id").substr(1);a('table.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(),i;if(h){i=a(this).attr("id").replace("_"+g,"");a("ul."+i+"-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 .spinner").show();d={action:mla.settings.ajax_action,nonce:mla.settings.ajax_nonce,post_type:"attachment",post_ID:e,edit_date:"true",post_status:c};b=a("#edit-"+e+" :input").serialize();d=b+"&"+a.param(d);a.post(ajaxurl,d,function(f){a("table.widefat .inline-edit-save .spinner").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 .spinner").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);
|
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"
|
@@ -80,7 +80,7 @@ msgid "ERROR: _evaluate_template_node unknown type \"%1$s\"."
|
|
80 |
msgstr ""
|
81 |
|
82 |
#. translators: 1: template excerpt
|
83 |
-
#: includes/class-mla-data.php:
|
84 |
#, php-format
|
85 |
msgctxt "error_log"
|
86 |
msgid ""
|
@@ -89,7 +89,7 @@ msgid ""
|
|
89 |
msgstr ""
|
90 |
|
91 |
#. translators: 1: function name 2: non-array value
|
92 |
-
#: includes/class-mla-data.php:
|
93 |
#: includes/class-mla-main.php:1610 includes/class-mla-media-modal.php:1197
|
94 |
#: includes/class-mla-mime-types.php:483
|
95 |
#: includes/class-mla-mime-types.php:1218
|
@@ -101,246 +101,246 @@ msgid "ERROR: %1$s non-array \"%2$s\""
|
|
101 |
msgstr ""
|
102 |
|
103 |
#. translators: 1: query filter details
|
104 |
-
#: includes/class-mla-data.php:
|
105 |
#, php-format
|
106 |
msgid "_execute_list_table_query $wp_filter = \"%1$s\"."
|
107 |
msgstr ""
|
108 |
|
109 |
#. translators: 1: query filter details
|
110 |
-
#: includes/class-mla-data.php:
|
111 |
#, php-format
|
112 |
msgctxt "error_log"
|
113 |
msgid "DEBUG: _execute_list_table_query $wp_filter = \"%1$s\"."
|
114 |
msgstr ""
|
115 |
|
116 |
#. translators: 1: query details
|
117 |
-
#: includes/class-mla-data.php:
|
118 |
#, php-format
|
119 |
msgid "_execute_list_table_query WP_Query = \"%1$s\"."
|
120 |
msgstr ""
|
121 |
|
122 |
#. translators: 1: SQL statement
|
123 |
-
#: includes/class-mla-data.php:
|
124 |
#, php-format
|
125 |
msgid "_execute_list_table_query SQL_request = \"%1$s\"."
|
126 |
msgstr ""
|
127 |
|
128 |
#. translators: 1: query details
|
129 |
-
#: includes/class-mla-data.php:
|
130 |
#, php-format
|
131 |
msgctxt "error_log"
|
132 |
msgid "DEBUG: _execute_list_table_query WP_Query = \"%1$s\"."
|
133 |
msgstr ""
|
134 |
|
135 |
#. translators: 1: SQL statement
|
136 |
-
#: includes/class-mla-data.php:
|
137 |
#, php-format
|
138 |
msgctxt "error_log"
|
139 |
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 |
-
#: includes/class-mla-list-table.php:
|
236 |
msgid "NO REFERENCE TESTS"
|
237 |
msgstr ""
|
238 |
|
239 |
-
#: includes/class-mla-data.php:
|
240 |
#: includes/class-mla-options.php:2641 includes/class-mla-options.php:2642
|
241 |
msgid "ORPHAN"
|
242 |
msgstr ""
|
243 |
|
244 |
-
#: includes/class-mla-data.php:
|
245 |
msgid "UNUSED"
|
246 |
msgstr ""
|
247 |
|
248 |
-
#: includes/class-mla-data.php:
|
249 |
msgid "UNATTACHED"
|
250 |
msgstr ""
|
251 |
|
252 |
-
#: includes/class-mla-data.php:
|
253 |
msgid "INVALID PARENT"
|
254 |
msgstr ""
|
255 |
|
256 |
#. translators: 1: post_type, 2: post_title, 3: post ID, 4: query string, 5: error message
|
257 |
-
#: includes/class-mla-data.php:
|
258 |
#, php-format
|
259 |
msgid "(%1$s) %2$s (ID %3$d) query \"%4$s\" failed, returning \"%5$s\""
|
260 |
msgstr ""
|
261 |
|
262 |
#. translators: 1: index
|
263 |
-
#: includes/class-mla-data.php:
|
264 |
#, php-format
|
265 |
msgctxt "error_log"
|
266 |
msgid "ERROR: _build_pdf_indirect_objects bad value at $index = \"%1$d\"."
|
267 |
msgstr ""
|
268 |
|
269 |
#. translators: 1: source offset 2: nest level
|
270 |
-
#: includes/class-mla-data.php:
|
271 |
#, php-format
|
272 |
msgctxt "error_log"
|
273 |
msgid "ERROR: _parse_pdf_dictionary offset = %1$d, nest = %2$d."
|
274 |
msgstr ""
|
275 |
|
276 |
#. translators: 1: dictionary excerpt
|
277 |
-
#: includes/class-mla-data.php:
|
278 |
#, php-format
|
279 |
msgctxt "error_log"
|
280 |
msgid "ERROR: _parse_pdf_dictionary no end delimiter dump = %1$s."
|
281 |
msgstr ""
|
282 |
|
283 |
#. translators: 1: entry name 2: value excerpt
|
284 |
-
#: includes/class-mla-data.php:
|
285 |
#, php-format
|
286 |
msgctxt "error_log"
|
287 |
msgid "ERROR: _parse_pdf_dictionary bad value [ %1$s ] dump = %2$s"
|
288 |
msgstr ""
|
289 |
|
290 |
-
#: includes/class-mla-data.php:
|
291 |
msgctxt "error_log"
|
292 |
msgid "ERROR: _parse_xmp_metadata xml_parse_into_struct failed."
|
293 |
msgstr ""
|
294 |
|
295 |
-
#: includes/class-mla-data.php:
|
296 |
msgctxt "error_log"
|
297 |
msgid "ERROR: _parse_xmp_metadata set option failed."
|
298 |
msgstr ""
|
299 |
|
300 |
#. translators: 1: path and file
|
301 |
-
#: includes/class-mla-data.php:
|
302 |
#, php-format
|
303 |
msgctxt "error_log"
|
304 |
msgid "ERROR: File \"%1$s\", startxref not found."
|
305 |
msgstr ""
|
306 |
|
307 |
#. translators: 1: meta_key
|
308 |
-
#: includes/class-mla-data.php:
|
309 |
#, php-format
|
310 |
msgid "Deleting meta:%1$s"
|
311 |
msgstr ""
|
312 |
|
313 |
#. translators: 1: meta_key
|
314 |
-
#: includes/class-mla-data.php:
|
315 |
#, php-format
|
316 |
msgid "ERROR: meta:%1$s not found"
|
317 |
msgstr ""
|
318 |
|
319 |
#. translators: 1: meta_key 2: meta_value
|
320 |
-
#: includes/class-mla-data.php:
|
321 |
#, php-format
|
322 |
msgid "Adding meta:%1$s = %2$s"
|
323 |
msgstr ""
|
324 |
|
325 |
#. translators: 1: meta_key
|
326 |
-
#: includes/class-mla-data.php:
|
327 |
#, php-format
|
328 |
msgid "ERROR: Adding meta:%1$s; not found"
|
329 |
msgstr ""
|
330 |
|
331 |
#. translators: 1: meta_key
|
332 |
-
#: includes/class-mla-data.php:
|
333 |
#, php-format
|
334 |
msgid "Deleting Null meta:%1$s"
|
335 |
msgstr ""
|
336 |
|
337 |
#. translators: 1: element name 2: old_value 3: new_value
|
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-data.php:
|
344 |
#: includes/class-mla-mime-types.php:1052
|
345 |
#: includes/class-mla-mime-types.php:2125
|
346 |
#, php-format
|
@@ -348,46 +348,46 @@ msgid "Changing %1$s from \"%2$s\" to \"%3$s\""
|
|
348 |
msgstr ""
|
349 |
|
350 |
#. translators: 1: meta_key
|
351 |
-
#: includes/class-mla-data.php:
|
352 |
#, php-format
|
353 |
msgid "ERROR: Changing meta:%1$s; not found"
|
354 |
msgstr ""
|
355 |
|
356 |
#. translators: 1: meta_key
|
357 |
-
#: includes/class-mla-data.php:
|
358 |
#, php-format
|
359 |
msgid "Deleting %1$s"
|
360 |
msgstr ""
|
361 |
|
362 |
#. translators: 1: meta_key 2: new_value
|
363 |
-
#: includes/class-mla-data.php:
|
364 |
#, php-format
|
365 |
msgid "Adding %1$s = [%2$s]"
|
366 |
msgstr ""
|
367 |
|
368 |
#. translators: 1: meta_key 2: meta_value
|
369 |
-
#: includes/class-mla-data.php:
|
370 |
#, php-format
|
371 |
msgid "Adding %1$s = %2$s"
|
372 |
msgstr ""
|
373 |
|
374 |
#. translators: 1: meta_key
|
375 |
-
#: includes/class-mla-data.php:
|
376 |
#, php-format
|
377 |
msgid "Deleting old %1$s values"
|
378 |
msgstr ""
|
379 |
|
380 |
#. translators: 1: meta_key 2: old_value 3: new_value 4: update count
|
381 |
-
#: includes/class-mla-data.php:
|
382 |
#, php-format
|
383 |
msgid "Changing %1$s from \"%2$s\" to \"%3$s\"; %4$d updates"
|
384 |
msgstr ""
|
385 |
|
386 |
-
#: includes/class-mla-data.php:
|
387 |
msgid "ERROR: Could not retrieve Attachment."
|
388 |
msgstr ""
|
389 |
|
390 |
-
#: includes/class-mla-data.php:
|
391 |
#: includes/class-mla-main.php:1549 includes/class-mla-main.php:1739
|
392 |
#: includes/class-mla-main.php:2110 includes/class-mla-objects.php:275
|
393 |
#: includes/class-mla-options.php:1017 includes/class-mla-options.php:1777
|
@@ -397,29 +397,29 @@ msgid "Title"
|
|
397 |
msgstr ""
|
398 |
|
399 |
#. translators: 1: old_value
|
400 |
-
#: includes/class-mla-data.php:
|
401 |
#, php-format
|
402 |
msgid "ERROR: Could not change Name/Slug \"%1$s\"; name already exists"
|
403 |
msgstr ""
|
404 |
|
405 |
-
#: includes/class-mla-data.php:
|
406 |
#: includes/class-mla-main.php:2113 includes/class-mla-options.php:1024
|
407 |
msgid "Name/Slug"
|
408 |
msgstr ""
|
409 |
|
410 |
#. translators: 1: old_value
|
411 |
-
#: includes/class-mla-data.php:
|
412 |
#, php-format
|
413 |
msgid "Deleting ALT Text, was \"%1$s\""
|
414 |
msgstr ""
|
415 |
|
416 |
#. translators: 1: old_value
|
417 |
-
#: includes/class-mla-data.php:
|
418 |
#, php-format
|
419 |
msgid "ERROR: Could not delete ALT Text, remains \"%1$s\""
|
420 |
msgstr ""
|
421 |
|
422 |
-
#: includes/class-mla-data.php:
|
423 |
#: includes/class-mla-main.php:1743 includes/class-mla-main.php:2116
|
424 |
#: includes/class-mla-options.php:1031 includes/class-mla-options.php:1783
|
425 |
#: includes/mla-main-search-box-template.php:44
|
@@ -428,12 +428,12 @@ msgid "ALT Text"
|
|
428 |
msgstr ""
|
429 |
|
430 |
#. translators: 1: old_value 2: new_value
|
431 |
-
#: includes/class-mla-data.php:
|
432 |
#, php-format
|
433 |
msgid "ERROR: Could not change ALT Text from \"%1$s\" to \"%2$s\""
|
434 |
msgstr ""
|
435 |
|
436 |
-
#: includes/class-mla-data.php:
|
437 |
#: includes/class-mla-main.php:2119 includes/class-mla-options.php:1038
|
438 |
#: includes/class-mla-options.php:1786
|
439 |
#: includes/mla-main-search-box-template.php:45
|
@@ -441,7 +441,7 @@ msgstr ""
|
|
441 |
msgid "Caption"
|
442 |
msgstr ""
|
443 |
|
444 |
-
#: includes/class-mla-data.php:
|
445 |
#: includes/class-mla-main.php:2121 includes/class-mla-options.php:1045
|
446 |
#: includes/class-mla-options.php:1789 includes/class-mla-settings.php:1158
|
447 |
#: includes/class-mla-settings.php:1415 includes/class-mla-settings.php:1514
|
@@ -451,80 +451,80 @@ msgstr ""
|
|
451 |
msgid "Description"
|
452 |
msgstr ""
|
453 |
|
454 |
-
#: includes/class-mla-data.php:
|
455 |
-
#: includes/class-mla-list-table.php:
|
456 |
#: includes/class-mla-options.php:4439
|
457 |
msgid "Parent"
|
458 |
msgstr ""
|
459 |
|
460 |
-
#: includes/class-mla-data.php:
|
461 |
#: includes/class-mla-edit-media.php:447 includes/class-mla-main.php:1746
|
462 |
#: includes/class-mla-main.php:2127 includes/class-mla-settings.php:1156
|
463 |
#: includes/class-mla-settings.php:1413
|
464 |
msgid "Menu Order"
|
465 |
msgstr ""
|
466 |
|
467 |
-
#: includes/class-mla-data.php:
|
468 |
#: includes/class-mla-main.php:1616 includes/class-mla-main.php:1718
|
469 |
#: includes/class-mla-main.php:1941
|
470 |
msgid "Author"
|
471 |
msgstr ""
|
472 |
|
473 |
-
#: includes/class-mla-data.php:
|
474 |
msgid "Comments"
|
475 |
msgstr ""
|
476 |
|
477 |
-
#: includes/class-mla-data.php:
|
478 |
msgid "Pings"
|
479 |
msgstr ""
|
480 |
|
481 |
-
#: includes/class-mla-data.php:
|
482 |
msgid "Adding"
|
483 |
msgstr ""
|
484 |
|
485 |
-
#: includes/class-mla-data.php:
|
486 |
msgid "Removing"
|
487 |
msgstr ""
|
488 |
|
489 |
-
#: includes/class-mla-data.php:
|
490 |
msgid "Replacing"
|
491 |
msgstr ""
|
492 |
|
493 |
-
#: includes/class-mla-data.php:
|
494 |
msgid "Ignoring"
|
495 |
msgstr ""
|
496 |
|
497 |
#. translators: 1: action_name, 2: taxonomy
|
498 |
-
#: includes/class-mla-data.php:
|
499 |
#, php-format
|
500 |
msgid "%1$s \"%2$s\" terms"
|
501 |
msgstr ""
|
502 |
|
503 |
#. translators: 1: taxonomy
|
504 |
-
#: includes/class-mla-data.php:
|
505 |
#, php-format
|
506 |
msgid "You cannot assign \"%1$s\" terms"
|
507 |
msgstr ""
|
508 |
|
509 |
#. translators: 1: post ID
|
510 |
-
#: includes/class-mla-data.php:
|
511 |
#, php-format
|
512 |
msgid "Item %1$d, no changes detected."
|
513 |
msgstr ""
|
514 |
|
515 |
#. translators: 1: post ID
|
516 |
-
#: includes/class-mla-data.php:
|
517 |
#, php-format
|
518 |
msgid "Item %1$d updated."
|
519 |
msgstr ""
|
520 |
|
521 |
#. translators: 1: post ID
|
522 |
-
#: includes/class-mla-data.php:
|
523 |
#, php-format
|
524 |
msgid "ERROR: Item %1$d update failed."
|
525 |
msgstr ""
|
526 |
|
527 |
-
#: includes/class-mla-data.php:
|
528 |
#: includes/class-mla-edit-media.php:170 includes/class-mla-main.php:330
|
529 |
#: includes/class-mla-main.php:358 includes/class-mla-main.php:1444
|
530 |
#: includes/class-mla-settings.php:311 includes/class-mla-settings.php:329
|
@@ -627,9 +627,9 @@ msgstr ""
|
|
627 |
|
628 |
#: includes/class-mla-edit-media.php:494 includes/class-mla-edit-media.php:532
|
629 |
#: includes/class-mla-edit-media.php:568 includes/class-mla-edit-media.php:603
|
630 |
-
#: includes/class-mla-list-table.php:
|
631 |
-
#: includes/class-mla-list-table.php:
|
632 |
-
#: includes/class-mla-list-table.php:
|
633 |
#: includes/class-mla-main.php:1973 includes/class-mla-main.php:1990
|
634 |
#: includes/class-mla-main.php:2006
|
635 |
msgid "PARENT"
|
@@ -659,67 +659,67 @@ msgstr ""
|
|
659 |
msgid "No"
|
660 |
msgstr ""
|
661 |
|
662 |
-
#: includes/class-mla-list-table.php:
|
663 |
msgctxt "list_table_column"
|
664 |
msgid "ID/Parent"
|
665 |
msgstr ""
|
666 |
|
667 |
-
#: includes/class-mla-list-table.php:
|
668 |
msgctxt "list_table_column"
|
669 |
msgid "Title/Name"
|
670 |
msgstr ""
|
671 |
|
672 |
-
#: includes/class-mla-list-table.php:
|
673 |
msgctxt "list_table_column"
|
674 |
msgid "Title"
|
675 |
msgstr ""
|
676 |
|
677 |
-
#: includes/class-mla-list-table.php:
|
678 |
msgctxt "list_table_column"
|
679 |
msgid "Name"
|
680 |
msgstr ""
|
681 |
|
682 |
-
#: includes/class-mla-list-table.php:
|
683 |
msgctxt "list_table_column"
|
684 |
msgid "Parent ID"
|
685 |
msgstr ""
|
686 |
|
687 |
-
#: includes/class-mla-list-table.php:
|
688 |
msgctxt "list_table_column"
|
689 |
msgid "Menu Order"
|
690 |
msgstr ""
|
691 |
|
692 |
-
#: includes/class-mla-list-table.php:
|
693 |
msgctxt "list_table_column"
|
694 |
msgid "Featured in"
|
695 |
msgstr ""
|
696 |
|
697 |
-
#: includes/class-mla-list-table.php:
|
698 |
msgctxt "list_table_column"
|
699 |
msgid "Inserted in"
|
700 |
msgstr ""
|
701 |
|
702 |
-
#: includes/class-mla-list-table.php:
|
703 |
msgctxt "list_table_column"
|
704 |
msgid "Gallery in"
|
705 |
msgstr ""
|
706 |
|
707 |
-
#: includes/class-mla-list-table.php:
|
708 |
msgctxt "list_table_column"
|
709 |
msgid "MLA Gallery in"
|
710 |
msgstr ""
|
711 |
|
712 |
-
#: includes/class-mla-list-table.php:
|
713 |
msgctxt "list_table_column"
|
714 |
msgid "ALT Text"
|
715 |
msgstr ""
|
716 |
|
717 |
-
#: includes/class-mla-list-table.php:
|
718 |
msgctxt "list_table_column"
|
719 |
msgid "Caption"
|
720 |
msgstr ""
|
721 |
|
722 |
-
#: includes/class-mla-list-table.php:
|
723 |
#: includes/class-mla-upload-list-table.php:186
|
724 |
#: includes/class-mla-upload-optional-list-table.php:171
|
725 |
#: includes/class-mla-view-list-table.php:179
|
@@ -727,62 +727,62 @@ msgctxt "list_table_column"
|
|
727 |
msgid "Description"
|
728 |
msgstr ""
|
729 |
|
730 |
-
#: includes/class-mla-list-table.php:
|
731 |
#: includes/class-mla-upload-list-table.php:178
|
732 |
#: includes/class-mla-upload-optional-list-table.php:168
|
733 |
msgctxt "list_table_column"
|
734 |
msgid "MIME Type"
|
735 |
msgstr ""
|
736 |
|
737 |
-
#: includes/class-mla-list-table.php:
|
738 |
msgctxt "list_table_column"
|
739 |
msgid "File URL"
|
740 |
msgstr ""
|
741 |
|
742 |
-
#: includes/class-mla-list-table.php:
|
743 |
msgctxt "list_table_column"
|
744 |
msgid "Base File"
|
745 |
msgstr ""
|
746 |
|
747 |
-
#: includes/class-mla-list-table.php:
|
748 |
msgctxt "list_table_column"
|
749 |
msgid "Date"
|
750 |
msgstr ""
|
751 |
|
752 |
-
#: includes/class-mla-list-table.php:
|
753 |
msgctxt "list_table_column"
|
754 |
msgid "Last Modified"
|
755 |
msgstr ""
|
756 |
|
757 |
-
#: includes/class-mla-list-table.php:
|
758 |
msgctxt "list_table_column"
|
759 |
msgid "Author"
|
760 |
msgstr ""
|
761 |
|
762 |
-
#: includes/class-mla-list-table.php:
|
763 |
msgctxt "list_table_column"
|
764 |
msgid "Attached to"
|
765 |
msgstr ""
|
766 |
|
767 |
-
#: includes/class-mla-list-table.php:
|
768 |
-
#: includes/class-mla-list-table.php:
|
769 |
#: includes/class-mla-options.php:775 includes/class-mla-options.php:799
|
770 |
#: includes/class-mla-options.php:813 includes/class-mla-settings.php:1962
|
771 |
msgid "None"
|
772 |
msgstr ""
|
773 |
|
774 |
-
#: includes/class-mla-list-table.php:
|
775 |
-
#: includes/class-mla-list-table.php:
|
776 |
-
#: includes/class-mla-list-table.php:
|
777 |
msgid "Filter by"
|
778 |
msgstr ""
|
779 |
|
780 |
-
#: includes/class-mla-list-table.php:
|
781 |
msgid "not supported"
|
782 |
msgstr ""
|
783 |
|
784 |
#. translators: 1: column_name 2: column_values
|
785 |
-
#: includes/class-mla-list-table.php:
|
786 |
#: includes/class-mla-upload-list-table.php:247
|
787 |
#: includes/class-mla-upload-optional-list-table.php:228
|
788 |
#: includes/class-mla-view-list-table.php:236
|
@@ -790,20 +790,20 @@ msgstr ""
|
|
790 |
msgid "column_default: %1$s, %2$s"
|
791 |
msgstr ""
|
792 |
|
793 |
-
#: includes/class-mla-list-table.php:
|
794 |
-
#: includes/class-mla-list-table.php:
|
795 |
#: includes/class-mla-upload-list-table.php:312
|
796 |
#: includes/class-mla-view-list-table.php:302
|
797 |
msgid "Edit this item"
|
798 |
msgstr ""
|
799 |
|
800 |
-
#: includes/class-mla-list-table.php:
|
801 |
-
#: includes/class-mla-list-table.php:
|
802 |
-
#: includes/class-mla-list-table.php:
|
803 |
-
#: includes/class-mla-list-table.php:
|
804 |
-
#: includes/class-mla-list-table.php:
|
805 |
-
#: includes/class-mla-list-table.php:
|
806 |
-
#: includes/class-mla-list-table.php:
|
807 |
#: includes/class-mla-upload-list-table.php:312
|
808 |
#: includes/class-mla-upload-list-table.php:610
|
809 |
#: includes/class-mla-view-list-table.php:302
|
@@ -811,72 +811,76 @@ msgstr ""
|
|
811 |
msgid "Edit"
|
812 |
msgstr ""
|
813 |
|
814 |
-
#: includes/class-mla-list-table.php:
|
815 |
msgid "Restore this item from the Trash"
|
816 |
msgstr ""
|
817 |
|
818 |
-
#: includes/class-mla-list-table.php:
|
819 |
-
#: includes/class-mla-list-table.php:
|
820 |
msgid "Restore"
|
821 |
msgstr ""
|
822 |
|
823 |
-
#: includes/class-mla-list-table.php:
|
824 |
#: includes/class-mla-upload-list-table.php:314
|
825 |
#: includes/class-mla-view-list-table.php:304
|
826 |
msgid "Edit this item inline"
|
827 |
msgstr ""
|
828 |
|
829 |
-
#: includes/class-mla-list-table.php:
|
830 |
#: includes/class-mla-options.php:3202 includes/class-mla-options.php:3474
|
831 |
#: includes/class-mla-upload-list-table.php:314
|
832 |
#: includes/class-mla-view-list-table.php:304
|
833 |
msgid "Quick Edit"
|
834 |
msgstr ""
|
835 |
|
836 |
-
#: includes/class-mla-list-table.php:
|
837 |
msgid "Move this item to the Trash"
|
838 |
msgstr ""
|
839 |
|
840 |
-
#: includes/class-mla-list-table.php:
|
841 |
-
#: includes/class-mla-list-table.php:
|
842 |
msgid "Move to Trash"
|
843 |
msgstr ""
|
844 |
|
845 |
-
#: includes/class-mla-list-table.php:
|
846 |
#: includes/class-mla-upload-list-table.php:318
|
847 |
#: includes/class-mla-view-list-table.php:310
|
848 |
msgid "Delete this item Permanently"
|
849 |
msgstr ""
|
850 |
|
851 |
-
#: includes/class-mla-list-table.php:
|
852 |
-
#: includes/class-mla-list-table.php:
|
853 |
-
#: includes/class-mla-list-table.php:
|
854 |
#: includes/class-mla-upload-list-table.php:318
|
855 |
#: includes/class-mla-view-list-table.php:310
|
856 |
#: includes/class-mla-view-list-table.php:514
|
857 |
msgid "Delete Permanently"
|
858 |
msgstr ""
|
859 |
|
860 |
-
#: includes/class-mla-list-table.php:
|
|
|
|
|
|
|
|
|
861 |
msgid "View"
|
862 |
msgstr ""
|
863 |
|
864 |
-
#: includes/class-mla-list-table.php:
|
865 |
#: includes/class-mla-main.php:356 includes/class-mla-main.php:1309
|
866 |
msgid "(no title)"
|
867 |
msgstr ""
|
868 |
|
869 |
-
#: includes/class-mla-list-table.php:
|
870 |
msgid "Filter by Parent ID"
|
871 |
msgstr ""
|
872 |
|
873 |
-
#: includes/class-mla-list-table.php:
|
874 |
msgid "(no title: bad ID)"
|
875 |
msgstr ""
|
876 |
|
877 |
-
#: includes/class-mla-list-table.php:
|
878 |
-
#: includes/class-mla-list-table.php:
|
879 |
-
#: includes/class-mla-list-table.php:
|
880 |
#: includes/class-mla-main.php:1982 includes/class-mla-main.php:1998
|
881 |
#: includes/class-mla-main.php:2014 includes/class-mla-options.php:466
|
882 |
#: includes/class-mla-options.php:475 includes/class-mla-options.php:484
|
@@ -884,72 +888,72 @@ msgstr ""
|
|
884 |
msgid "Disabled"
|
885 |
msgstr ""
|
886 |
|
887 |
-
#: includes/class-mla-list-table.php:
|
888 |
#: includes/class-mla-settings.php:1872
|
889 |
msgid "MIME Type"
|
890 |
msgstr ""
|
891 |
|
892 |
-
#: includes/class-mla-list-table.php:
|
893 |
-
#: includes/class-mla-list-table.php:
|
894 |
msgid "Unpublished"
|
895 |
msgstr ""
|
896 |
|
897 |
#. translators: 1: upload/last modified date and time
|
898 |
-
#: includes/class-mla-list-table.php:
|
899 |
-
#: includes/class-mla-list-table.php:
|
900 |
#, php-format
|
901 |
msgid "%1$s from now"
|
902 |
msgstr ""
|
903 |
|
904 |
#. translators: 1: upload/last modified date and time
|
905 |
-
#: includes/class-mla-list-table.php:
|
906 |
-
#: includes/class-mla-list-table.php:
|
907 |
#, php-format
|
908 |
msgid "%1$s ago"
|
909 |
msgstr ""
|
910 |
|
911 |
#. translators: format for upload/last modified date
|
912 |
#. translators: date format in table columns, see http://php.net/date
|
913 |
-
#: includes/class-mla-list-table.php:
|
914 |
-
#: includes/class-mla-list-table.php:
|
915 |
-
#: includes/class-mla-list-table.php:
|
916 |
msgid "Y/m/d"
|
917 |
msgstr ""
|
918 |
|
919 |
-
#: includes/class-mla-list-table.php:
|
920 |
msgid "Filter by Author ID"
|
921 |
msgstr ""
|
922 |
|
923 |
-
#: includes/class-mla-list-table.php:
|
924 |
msgctxt "post_mime_types_singular"
|
925 |
msgid "Unattached"
|
926 |
msgstr ""
|
927 |
|
928 |
-
#: includes/class-mla-list-table.php:
|
929 |
msgid "Set Parent"
|
930 |
msgstr ""
|
931 |
|
932 |
-
#: includes/class-mla-list-table.php:
|
933 |
msgctxt "uploaded files"
|
934 |
msgid "All"
|
935 |
msgid_plural "All"
|
936 |
msgstr[0] ""
|
937 |
msgstr[1] ""
|
938 |
|
939 |
-
#: includes/class-mla-list-table.php:
|
940 |
msgid "Filter"
|
941 |
msgstr ""
|
942 |
|
943 |
-
#: includes/class-mla-list-table.php:
|
944 |
#: includes/mla-media-modal-js-template.php:58
|
945 |
msgid "Terms Search"
|
946 |
msgstr ""
|
947 |
|
948 |
-
#: includes/class-mla-list-table.php:
|
949 |
msgid "Clear Filter-by"
|
950 |
msgstr ""
|
951 |
|
952 |
-
#: includes/class-mla-list-table.php:
|
953 |
msgid "Empty Trash"
|
954 |
msgstr ""
|
955 |
|
@@ -1008,8 +1012,8 @@ msgstr ""
|
|
1008 |
#: includes/class-mla-settings.php:1224 includes/class-mla-settings.php:1301
|
1009 |
#: includes/class-mla-settings.php:1690 includes/class-mla-settings.php:1769
|
1010 |
#: includes/class-mla-settings.php:2320 includes/class-mla-settings.php:2443
|
1011 |
-
#: includes/class-mla-settings.php:2578 includes/class-mla-shortcodes.php:
|
1012 |
-
#: includes/class-mla-shortcodes.php:
|
1013 |
msgid "ERROR:"
|
1014 |
msgstr ""
|
1015 |
|
@@ -3890,116 +3894,117 @@ msgstr ""
|
|
3890 |
msgid "Settings imported; %1$s updated, %2$s unchanged."
|
3891 |
msgstr ""
|
3892 |
|
3893 |
-
#: includes/class-mla-shortcodes.php:
|
3894 |
-
#: includes/class-mla-shortcodes.php:
|
3895 |
-
#: includes/class-mla-shortcodes.php:
|
3896 |
-
#: includes/class-mla-shortcodes.php:
|
3897 |
msgid "Previous"
|
3898 |
msgstr ""
|
3899 |
|
3900 |
-
#: includes/class-mla-shortcodes.php:
|
3901 |
-
#: includes/class-mla-shortcodes.php:
|
3902 |
-
#: includes/class-mla-shortcodes.php:
|
3903 |
-
#: includes/class-mla-shortcodes.php:
|
3904 |
msgid "Next"
|
3905 |
msgstr ""
|
3906 |
|
3907 |
-
#: includes/class-mla-shortcodes.php:
|
3908 |
msgid "mla_debug empty gallery"
|
3909 |
msgstr ""
|
3910 |
|
3911 |
-
#: includes/class-mla-shortcodes.php:
|
3912 |
msgid ""
|
3913 |
"<strong>Photonic-enhanced [mla_gallery]</strong> type must be "
|
3914 |
"<strong>default</strong>, query = "
|
3915 |
msgstr ""
|
3916 |
|
3917 |
-
#: includes/class-mla-shortcodes.php:
|
3918 |
msgid "unattached"
|
3919 |
msgstr ""
|
3920 |
|
3921 |
-
#: includes/class-mla-shortcodes.php:
|
3922 |
msgid "unknown"
|
3923 |
msgstr ""
|
3924 |
|
3925 |
-
#: includes/class-mla-shortcodes.php:
|
3926 |
msgid "mla_debug attributes"
|
3927 |
msgstr ""
|
3928 |
|
3929 |
-
#: includes/class-mla-shortcodes.php:
|
3930 |
msgid "mla_debug arguments"
|
3931 |
msgstr ""
|
3932 |
|
3933 |
-
#: includes/class-mla-shortcodes.php:
|
3934 |
msgid "mla_debug empty cloud"
|
3935 |
msgstr ""
|
3936 |
|
3937 |
-
#: includes/class-mla-shortcodes.php:
|
3938 |
-
#: includes/class-mla-shortcodes.php:
|
|
|
3939 |
msgid "ERROR: Invalid mla_gallery"
|
3940 |
msgstr ""
|
3941 |
|
3942 |
-
#: includes/class-mla-shortcodes.php:
|
3943 |
msgid "mla_debug query"
|
3944 |
msgstr ""
|
3945 |
|
3946 |
-
#: includes/class-mla-shortcodes.php:
|
3947 |
msgid "mla_debug request"
|
3948 |
msgstr ""
|
3949 |
|
3950 |
-
#: includes/class-mla-shortcodes.php:
|
3951 |
msgid "mla_debug query_vars"
|
3952 |
msgstr ""
|
3953 |
|
3954 |
-
#: includes/class-mla-shortcodes.php:
|
3955 |
msgid "mla_debug post_count"
|
3956 |
msgstr ""
|
3957 |
|
3958 |
-
#: includes/class-mla-shortcodes.php:
|
3959 |
msgid "mla_debug WHERE filter"
|
3960 |
msgstr ""
|
3961 |
|
3962 |
-
#: includes/class-mla-shortcodes.php:
|
3963 |
msgid "mla_debug modified WHERE filter"
|
3964 |
msgstr ""
|
3965 |
|
3966 |
-
#: includes/class-mla-shortcodes.php:
|
3967 |
msgid "mla_debug ORDER BY filter, incoming"
|
3968 |
msgstr ""
|
3969 |
|
3970 |
-
#: includes/class-mla-shortcodes.php:
|
3971 |
msgid "Replacement ORDER BY clause"
|
3972 |
msgstr ""
|
3973 |
|
3974 |
-
#: includes/class-mla-shortcodes.php:
|
3975 |
msgid "mla_debug posts_clauses filter"
|
3976 |
msgstr ""
|
3977 |
|
3978 |
-
#: includes/class-mla-shortcodes.php:
|
3979 |
msgid "mla_debug posts_clauses_request filter"
|
3980 |
msgstr ""
|
3981 |
|
3982 |
-
#: includes/class-mla-shortcodes.php:
|
3983 |
msgid "Invalid taxonomy"
|
3984 |
msgstr ""
|
3985 |
|
3986 |
-
#: includes/class-mla-shortcodes.php:
|
3987 |
msgid "mla_debug query arguments"
|
3988 |
msgstr ""
|
3989 |
|
3990 |
-
#: includes/class-mla-shortcodes.php:
|
3991 |
msgid "mla_debug last_query"
|
3992 |
msgstr ""
|
3993 |
|
3994 |
-
#: includes/class-mla-shortcodes.php:
|
3995 |
msgid "mla_debug last_error"
|
3996 |
msgstr ""
|
3997 |
|
3998 |
-
#: includes/class-mla-shortcodes.php:
|
3999 |
msgid "mla_debug num_rows"
|
4000 |
msgstr ""
|
4001 |
|
4002 |
-
#: includes/class-mla-shortcodes.php:
|
4003 |
msgid "mla_debug found_rows"
|
4004 |
msgstr ""
|
4005 |
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Media Library Assistant\n"
|
4 |
+
"POT-Creation-Date: 2014-10-27 20:13-0800\n"
|
5 |
+
"PO-Revision-Date: 2014-10-27 20:14-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"
|
80 |
msgstr ""
|
81 |
|
82 |
#. translators: 1: template excerpt
|
83 |
+
#: includes/class-mla-data.php:1063
|
84 |
#, php-format
|
85 |
msgctxt "error_log"
|
86 |
msgid ""
|
89 |
msgstr ""
|
90 |
|
91 |
#. translators: 1: function name 2: non-array value
|
92 |
+
#: includes/class-mla-data.php:1267 includes/class-mla-main.php:1535
|
93 |
#: includes/class-mla-main.php:1610 includes/class-mla-media-modal.php:1197
|
94 |
#: includes/class-mla-mime-types.php:483
|
95 |
#: includes/class-mla-mime-types.php:1218
|
101 |
msgstr ""
|
102 |
|
103 |
#. translators: 1: query filter details
|
104 |
+
#: includes/class-mla-data.php:1670
|
105 |
#, php-format
|
106 |
msgid "_execute_list_table_query $wp_filter = \"%1$s\"."
|
107 |
msgstr ""
|
108 |
|
109 |
#. translators: 1: query filter details
|
110 |
+
#: includes/class-mla-data.php:1673
|
111 |
#, php-format
|
112 |
msgctxt "error_log"
|
113 |
msgid "DEBUG: _execute_list_table_query $wp_filter = \"%1$s\"."
|
114 |
msgstr ""
|
115 |
|
116 |
#. translators: 1: query details
|
117 |
+
#: includes/class-mla-data.php:1690
|
118 |
#, php-format
|
119 |
msgid "_execute_list_table_query WP_Query = \"%1$s\"."
|
120 |
msgstr ""
|
121 |
|
122 |
#. translators: 1: SQL statement
|
123 |
+
#: includes/class-mla-data.php:1692
|
124 |
#, php-format
|
125 |
msgid "_execute_list_table_query SQL_request = \"%1$s\"."
|
126 |
msgstr ""
|
127 |
|
128 |
#. translators: 1: query details
|
129 |
+
#: includes/class-mla-data.php:1695
|
130 |
#, php-format
|
131 |
msgctxt "error_log"
|
132 |
msgid "DEBUG: _execute_list_table_query WP_Query = \"%1$s\"."
|
133 |
msgstr ""
|
134 |
|
135 |
#. translators: 1: SQL statement
|
136 |
+
#: includes/class-mla-data.php:1697
|
137 |
#, php-format
|
138 |
msgctxt "error_log"
|
139 |
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:1994
|
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:1997
|
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:2059
|
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:2062
|
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:2113
|
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:2116
|
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:2215
|
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:2218
|
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:2254
|
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:2257
|
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:2278
|
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:2281
|
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:2313
|
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:2319
|
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:2871 includes/class-mla-data.php:3206
|
235 |
+
#: includes/class-mla-list-table.php:843
|
236 |
msgid "NO REFERENCE TESTS"
|
237 |
msgstr ""
|
238 |
|
239 |
+
#: includes/class-mla-data.php:2877 includes/class-mla-data.php:3212
|
240 |
#: includes/class-mla-options.php:2641 includes/class-mla-options.php:2642
|
241 |
msgid "ORPHAN"
|
242 |
msgstr ""
|
243 |
|
244 |
+
#: includes/class-mla-data.php:2881 includes/class-mla-data.php:3216
|
245 |
msgid "UNUSED"
|
246 |
msgstr ""
|
247 |
|
248 |
+
#: includes/class-mla-data.php:2886 includes/class-mla-data.php:3221
|
249 |
msgid "UNATTACHED"
|
250 |
msgstr ""
|
251 |
|
252 |
+
#: includes/class-mla-data.php:2888 includes/class-mla-data.php:3223
|
253 |
msgid "INVALID PARENT"
|
254 |
msgstr ""
|
255 |
|
256 |
#. translators: 1: post_type, 2: post_title, 3: post ID, 4: query string, 5: error message
|
257 |
+
#: includes/class-mla-data.php:3402
|
258 |
#, php-format
|
259 |
msgid "(%1$s) %2$s (ID %3$d) query \"%4$s\" failed, returning \"%5$s\""
|
260 |
msgstr ""
|
261 |
|
262 |
#. translators: 1: index
|
263 |
+
#: includes/class-mla-data.php:3648
|
264 |
#, php-format
|
265 |
msgctxt "error_log"
|
266 |
msgid "ERROR: _build_pdf_indirect_objects bad value at $index = \"%1$d\"."
|
267 |
msgstr ""
|
268 |
|
269 |
#. translators: 1: source offset 2: nest level
|
270 |
+
#: includes/class-mla-data.php:3973
|
271 |
#, php-format
|
272 |
msgctxt "error_log"
|
273 |
msgid "ERROR: _parse_pdf_dictionary offset = %1$d, nest = %2$d."
|
274 |
msgstr ""
|
275 |
|
276 |
#. translators: 1: dictionary excerpt
|
277 |
+
#: includes/class-mla-data.php:3975
|
278 |
#, php-format
|
279 |
msgctxt "error_log"
|
280 |
msgid "ERROR: _parse_pdf_dictionary no end delimiter dump = %1$s."
|
281 |
msgstr ""
|
282 |
|
283 |
#. translators: 1: entry name 2: value excerpt
|
284 |
+
#: includes/class-mla-data.php:4021
|
285 |
#, php-format
|
286 |
msgctxt "error_log"
|
287 |
msgid "ERROR: _parse_pdf_dictionary bad value [ %1$s ] dump = %2$s"
|
288 |
msgstr ""
|
289 |
|
290 |
+
#: includes/class-mla-data.php:4135
|
291 |
msgctxt "error_log"
|
292 |
msgid "ERROR: _parse_xmp_metadata xml_parse_into_struct failed."
|
293 |
msgstr ""
|
294 |
|
295 |
+
#: includes/class-mla-data.php:4138
|
296 |
msgctxt "error_log"
|
297 |
msgid "ERROR: _parse_xmp_metadata set option failed."
|
298 |
msgstr ""
|
299 |
|
300 |
#. translators: 1: path and file
|
301 |
+
#: includes/class-mla-data.php:4495
|
302 |
#, php-format
|
303 |
msgctxt "error_log"
|
304 |
msgid "ERROR: File \"%1$s\", startxref not found."
|
305 |
msgstr ""
|
306 |
|
307 |
#. translators: 1: meta_key
|
308 |
+
#: includes/class-mla-data.php:5412
|
309 |
#, php-format
|
310 |
msgid "Deleting meta:%1$s"
|
311 |
msgstr ""
|
312 |
|
313 |
#. translators: 1: meta_key
|
314 |
+
#: includes/class-mla-data.php:5415
|
315 |
#, php-format
|
316 |
msgid "ERROR: meta:%1$s not found"
|
317 |
msgstr ""
|
318 |
|
319 |
#. translators: 1: meta_key 2: meta_value
|
320 |
+
#: includes/class-mla-data.php:5424
|
321 |
#, php-format
|
322 |
msgid "Adding meta:%1$s = %2$s"
|
323 |
msgstr ""
|
324 |
|
325 |
#. translators: 1: meta_key
|
326 |
+
#: includes/class-mla-data.php:5428
|
327 |
#, php-format
|
328 |
msgid "ERROR: Adding meta:%1$s; not found"
|
329 |
msgstr ""
|
330 |
|
331 |
#. translators: 1: meta_key
|
332 |
+
#: includes/class-mla-data.php:5435
|
333 |
#, php-format
|
334 |
msgid "Deleting Null meta:%1$s"
|
335 |
msgstr ""
|
336 |
|
337 |
#. translators: 1: element name 2: old_value 3: new_value
|
338 |
+
#: includes/class-mla-data.php:5445 includes/class-mla-data.php:5596
|
339 |
+
#: includes/class-mla-data.php:5657 includes/class-mla-data.php:5683
|
340 |
+
#: includes/class-mla-data.php:5717 includes/class-mla-data.php:5730
|
341 |
+
#: includes/class-mla-data.php:5739 includes/class-mla-data.php:5750
|
342 |
+
#: includes/class-mla-data.php:5761 includes/class-mla-data.php:5774
|
343 |
+
#: includes/class-mla-data.php:5783 includes/class-mla-data.php:5792
|
344 |
#: includes/class-mla-mime-types.php:1052
|
345 |
#: includes/class-mla-mime-types.php:2125
|
346 |
#, php-format
|
348 |
msgstr ""
|
349 |
|
350 |
#. translators: 1: meta_key
|
351 |
+
#: includes/class-mla-data.php:5450
|
352 |
#, php-format
|
353 |
msgid "ERROR: Changing meta:%1$s; not found"
|
354 |
msgstr ""
|
355 |
|
356 |
#. translators: 1: meta_key
|
357 |
+
#: includes/class-mla-data.php:5510
|
358 |
#, php-format
|
359 |
msgid "Deleting %1$s"
|
360 |
msgstr ""
|
361 |
|
362 |
#. translators: 1: meta_key 2: new_value
|
363 |
+
#: includes/class-mla-data.php:5521
|
364 |
#, php-format
|
365 |
msgid "Adding %1$s = [%2$s]"
|
366 |
msgstr ""
|
367 |
|
368 |
#. translators: 1: meta_key 2: meta_value
|
369 |
+
#: includes/class-mla-data.php:5527
|
370 |
#, php-format
|
371 |
msgid "Adding %1$s = %2$s"
|
372 |
msgstr ""
|
373 |
|
374 |
#. translators: 1: meta_key
|
375 |
+
#: includes/class-mla-data.php:5551
|
376 |
#, php-format
|
377 |
msgid "Deleting old %1$s values"
|
378 |
msgstr ""
|
379 |
|
380 |
#. translators: 1: meta_key 2: old_value 3: new_value 4: update count
|
381 |
+
#: includes/class-mla-data.php:5581
|
382 |
#, php-format
|
383 |
msgid "Changing %1$s from \"%2$s\" to \"%3$s\"; %4$d updates"
|
384 |
msgstr ""
|
385 |
|
386 |
+
#: includes/class-mla-data.php:5639 includes/class-mla-main.php:1892
|
387 |
msgid "ERROR: Could not retrieve Attachment."
|
388 |
msgstr ""
|
389 |
|
390 |
+
#: includes/class-mla-data.php:5657 includes/class-mla-main.php:1305
|
391 |
#: includes/class-mla-main.php:1549 includes/class-mla-main.php:1739
|
392 |
#: includes/class-mla-main.php:2110 includes/class-mla-objects.php:275
|
393 |
#: includes/class-mla-options.php:1017 includes/class-mla-options.php:1777
|
397 |
msgstr ""
|
398 |
|
399 |
#. translators: 1: old_value
|
400 |
+
#: includes/class-mla-data.php:5680
|
401 |
#, php-format
|
402 |
msgid "ERROR: Could not change Name/Slug \"%1$s\"; name already exists"
|
403 |
msgstr ""
|
404 |
|
405 |
+
#: includes/class-mla-data.php:5683 includes/class-mla-main.php:1740
|
406 |
#: includes/class-mla-main.php:2113 includes/class-mla-options.php:1024
|
407 |
msgid "Name/Slug"
|
408 |
msgstr ""
|
409 |
|
410 |
#. translators: 1: old_value
|
411 |
+
#: includes/class-mla-data.php:5709
|
412 |
#, php-format
|
413 |
msgid "Deleting ALT Text, was \"%1$s\""
|
414 |
msgstr ""
|
415 |
|
416 |
#. translators: 1: old_value
|
417 |
+
#: includes/class-mla-data.php:5712
|
418 |
#, php-format
|
419 |
msgid "ERROR: Could not delete ALT Text, remains \"%1$s\""
|
420 |
msgstr ""
|
421 |
|
422 |
+
#: includes/class-mla-data.php:5717 includes/class-mla-list-table.php:1088
|
423 |
#: includes/class-mla-main.php:1743 includes/class-mla-main.php:2116
|
424 |
#: includes/class-mla-options.php:1031 includes/class-mla-options.php:1783
|
425 |
#: includes/mla-main-search-box-template.php:44
|
428 |
msgstr ""
|
429 |
|
430 |
#. translators: 1: old_value 2: new_value
|
431 |
+
#: includes/class-mla-data.php:5720
|
432 |
#, php-format
|
433 |
msgid "ERROR: Could not change ALT Text from \"%1$s\" to \"%2$s\""
|
434 |
msgstr ""
|
435 |
|
436 |
+
#: includes/class-mla-data.php:5730 includes/class-mla-main.php:1741
|
437 |
#: includes/class-mla-main.php:2119 includes/class-mla-options.php:1038
|
438 |
#: includes/class-mla-options.php:1786
|
439 |
#: includes/mla-main-search-box-template.php:45
|
441 |
msgid "Caption"
|
442 |
msgstr ""
|
443 |
|
444 |
+
#: includes/class-mla-data.php:5739 includes/class-mla-main.php:1742
|
445 |
#: includes/class-mla-main.php:2121 includes/class-mla-options.php:1045
|
446 |
#: includes/class-mla-options.php:1789 includes/class-mla-settings.php:1158
|
447 |
#: includes/class-mla-settings.php:1415 includes/class-mla-settings.php:1514
|
451 |
msgid "Description"
|
452 |
msgstr ""
|
453 |
|
454 |
+
#: includes/class-mla-data.php:5750 includes/class-mla-list-table.php:817
|
455 |
+
#: includes/class-mla-list-table.php:909 includes/class-mla-options.php:4099
|
456 |
#: includes/class-mla-options.php:4439
|
457 |
msgid "Parent"
|
458 |
msgstr ""
|
459 |
|
460 |
+
#: includes/class-mla-data.php:5761 includes/class-mla-edit-media.php:307
|
461 |
#: includes/class-mla-edit-media.php:447 includes/class-mla-main.php:1746
|
462 |
#: includes/class-mla-main.php:2127 includes/class-mla-settings.php:1156
|
463 |
#: includes/class-mla-settings.php:1413
|
464 |
msgid "Menu Order"
|
465 |
msgstr ""
|
466 |
|
467 |
+
#: includes/class-mla-data.php:5774 includes/class-mla-list-table.php:1237
|
468 |
#: includes/class-mla-main.php:1616 includes/class-mla-main.php:1718
|
469 |
#: includes/class-mla-main.php:1941
|
470 |
msgid "Author"
|
471 |
msgstr ""
|
472 |
|
473 |
+
#: includes/class-mla-data.php:5783 includes/class-mla-main.php:1757
|
474 |
msgid "Comments"
|
475 |
msgstr ""
|
476 |
|
477 |
+
#: includes/class-mla-data.php:5792 includes/class-mla-main.php:1758
|
478 |
msgid "Pings"
|
479 |
msgstr ""
|
480 |
|
481 |
+
#: includes/class-mla-data.php:5826
|
482 |
msgid "Adding"
|
483 |
msgstr ""
|
484 |
|
485 |
+
#: includes/class-mla-data.php:5830
|
486 |
msgid "Removing"
|
487 |
msgstr ""
|
488 |
|
489 |
+
#: includes/class-mla-data.php:5835
|
490 |
msgid "Replacing"
|
491 |
msgstr ""
|
492 |
|
493 |
+
#: includes/class-mla-data.php:5839
|
494 |
msgid "Ignoring"
|
495 |
msgstr ""
|
496 |
|
497 |
#. translators: 1: action_name, 2: taxonomy
|
498 |
+
#: includes/class-mla-data.php:5851
|
499 |
#, php-format
|
500 |
msgid "%1$s \"%2$s\" terms"
|
501 |
msgstr ""
|
502 |
|
503 |
#. translators: 1: taxonomy
|
504 |
+
#: includes/class-mla-data.php:5855
|
505 |
#, php-format
|
506 |
msgid "You cannot assign \"%1$s\" terms"
|
507 |
msgstr ""
|
508 |
|
509 |
#. translators: 1: post ID
|
510 |
+
#: includes/class-mla-data.php:5867
|
511 |
#, php-format
|
512 |
msgid "Item %1$d, no changes detected."
|
513 |
msgstr ""
|
514 |
|
515 |
#. translators: 1: post ID
|
516 |
+
#: includes/class-mla-data.php:5879
|
517 |
#, php-format
|
518 |
msgid "Item %1$d updated."
|
519 |
msgstr ""
|
520 |
|
521 |
#. translators: 1: post ID
|
522 |
+
#: includes/class-mla-data.php:5893
|
523 |
#, php-format
|
524 |
msgid "ERROR: Item %1$d update failed."
|
525 |
msgstr ""
|
526 |
|
527 |
+
#: includes/class-mla-data.php:5916 includes/class-mla-edit-media.php:125
|
528 |
#: includes/class-mla-edit-media.php:170 includes/class-mla-main.php:330
|
529 |
#: includes/class-mla-main.php:358 includes/class-mla-main.php:1444
|
530 |
#: includes/class-mla-settings.php:311 includes/class-mla-settings.php:329
|
627 |
|
628 |
#: includes/class-mla-edit-media.php:494 includes/class-mla-edit-media.php:532
|
629 |
#: includes/class-mla-edit-media.php:568 includes/class-mla-edit-media.php:603
|
630 |
+
#: includes/class-mla-list-table.php:945 includes/class-mla-list-table.php:982
|
631 |
+
#: includes/class-mla-list-table.php:1017
|
632 |
+
#: includes/class-mla-list-table.php:1051 includes/class-mla-main.php:1954
|
633 |
#: includes/class-mla-main.php:1973 includes/class-mla-main.php:1990
|
634 |
#: includes/class-mla-main.php:2006
|
635 |
msgid "PARENT"
|
659 |
msgid "No"
|
660 |
msgstr ""
|
661 |
|
662 |
+
#: includes/class-mla-list-table.php:399
|
663 |
msgctxt "list_table_column"
|
664 |
msgid "ID/Parent"
|
665 |
msgstr ""
|
666 |
|
667 |
+
#: includes/class-mla-list-table.php:400
|
668 |
msgctxt "list_table_column"
|
669 |
msgid "Title/Name"
|
670 |
msgstr ""
|
671 |
|
672 |
+
#: includes/class-mla-list-table.php:401
|
673 |
msgctxt "list_table_column"
|
674 |
msgid "Title"
|
675 |
msgstr ""
|
676 |
|
677 |
+
#: includes/class-mla-list-table.php:402
|
678 |
msgctxt "list_table_column"
|
679 |
msgid "Name"
|
680 |
msgstr ""
|
681 |
|
682 |
+
#: includes/class-mla-list-table.php:403
|
683 |
msgctxt "list_table_column"
|
684 |
msgid "Parent ID"
|
685 |
msgstr ""
|
686 |
|
687 |
+
#: includes/class-mla-list-table.php:404
|
688 |
msgctxt "list_table_column"
|
689 |
msgid "Menu Order"
|
690 |
msgstr ""
|
691 |
|
692 |
+
#: includes/class-mla-list-table.php:405
|
693 |
msgctxt "list_table_column"
|
694 |
msgid "Featured in"
|
695 |
msgstr ""
|
696 |
|
697 |
+
#: includes/class-mla-list-table.php:406
|
698 |
msgctxt "list_table_column"
|
699 |
msgid "Inserted in"
|
700 |
msgstr ""
|
701 |
|
702 |
+
#: includes/class-mla-list-table.php:407
|
703 |
msgctxt "list_table_column"
|
704 |
msgid "Gallery in"
|
705 |
msgstr ""
|
706 |
|
707 |
+
#: includes/class-mla-list-table.php:408
|
708 |
msgctxt "list_table_column"
|
709 |
msgid "MLA Gallery in"
|
710 |
msgstr ""
|
711 |
|
712 |
+
#: includes/class-mla-list-table.php:409
|
713 |
msgctxt "list_table_column"
|
714 |
msgid "ALT Text"
|
715 |
msgstr ""
|
716 |
|
717 |
+
#: includes/class-mla-list-table.php:410
|
718 |
msgctxt "list_table_column"
|
719 |
msgid "Caption"
|
720 |
msgstr ""
|
721 |
|
722 |
+
#: includes/class-mla-list-table.php:411
|
723 |
#: includes/class-mla-upload-list-table.php:186
|
724 |
#: includes/class-mla-upload-optional-list-table.php:171
|
725 |
#: includes/class-mla-view-list-table.php:179
|
727 |
msgid "Description"
|
728 |
msgstr ""
|
729 |
|
730 |
+
#: includes/class-mla-list-table.php:412
|
731 |
#: includes/class-mla-upload-list-table.php:178
|
732 |
#: includes/class-mla-upload-optional-list-table.php:168
|
733 |
msgctxt "list_table_column"
|
734 |
msgid "MIME Type"
|
735 |
msgstr ""
|
736 |
|
737 |
+
#: includes/class-mla-list-table.php:413
|
738 |
msgctxt "list_table_column"
|
739 |
msgid "File URL"
|
740 |
msgstr ""
|
741 |
|
742 |
+
#: includes/class-mla-list-table.php:414
|
743 |
msgctxt "list_table_column"
|
744 |
msgid "Base File"
|
745 |
msgstr ""
|
746 |
|
747 |
+
#: includes/class-mla-list-table.php:415
|
748 |
msgctxt "list_table_column"
|
749 |
msgid "Date"
|
750 |
msgstr ""
|
751 |
|
752 |
+
#: includes/class-mla-list-table.php:416
|
753 |
msgctxt "list_table_column"
|
754 |
msgid "Last Modified"
|
755 |
msgstr ""
|
756 |
|
757 |
+
#: includes/class-mla-list-table.php:417
|
758 |
msgctxt "list_table_column"
|
759 |
msgid "Author"
|
760 |
msgstr ""
|
761 |
|
762 |
+
#: includes/class-mla-list-table.php:418
|
763 |
msgctxt "list_table_column"
|
764 |
msgid "Attached to"
|
765 |
msgstr ""
|
766 |
|
767 |
+
#: includes/class-mla-list-table.php:514
|
768 |
+
#: includes/class-mla-list-table.php:1146 includes/class-mla-options.php:593
|
769 |
#: includes/class-mla-options.php:775 includes/class-mla-options.php:799
|
770 |
#: includes/class-mla-options.php:813 includes/class-mla-settings.php:1962
|
771 |
msgid "None"
|
772 |
msgstr ""
|
773 |
|
774 |
+
#: includes/class-mla-list-table.php:520 includes/class-mla-list-table.php:548
|
775 |
+
#: includes/class-mla-list-table.php:1084
|
776 |
+
#: includes/class-mla-list-table.php:1128
|
777 |
msgid "Filter by"
|
778 |
msgstr ""
|
779 |
|
780 |
+
#: includes/class-mla-list-table.php:530
|
781 |
msgid "not supported"
|
782 |
msgstr ""
|
783 |
|
784 |
#. translators: 1: column_name 2: column_values
|
785 |
+
#: includes/class-mla-list-table.php:565
|
786 |
#: includes/class-mla-upload-list-table.php:247
|
787 |
#: includes/class-mla-upload-optional-list-table.php:228
|
788 |
#: includes/class-mla-view-list-table.php:236
|
790 |
msgid "column_default: %1$s, %2$s"
|
791 |
msgstr ""
|
792 |
|
793 |
+
#: includes/class-mla-list-table.php:628 includes/class-mla-list-table.php:673
|
794 |
+
#: includes/class-mla-list-table.php:675
|
795 |
#: includes/class-mla-upload-list-table.php:312
|
796 |
#: includes/class-mla-view-list-table.php:302
|
797 |
msgid "Edit this item"
|
798 |
msgstr ""
|
799 |
|
800 |
+
#: includes/class-mla-list-table.php:628 includes/class-mla-list-table.php:631
|
801 |
+
#: includes/class-mla-list-table.php:673 includes/class-mla-list-table.php:675
|
802 |
+
#: includes/class-mla-list-table.php:950 includes/class-mla-list-table.php:987
|
803 |
+
#: includes/class-mla-list-table.php:1022
|
804 |
+
#: includes/class-mla-list-table.php:1056
|
805 |
+
#: includes/class-mla-list-table.php:1254
|
806 |
+
#: includes/class-mla-list-table.php:1689
|
807 |
#: includes/class-mla-upload-list-table.php:312
|
808 |
#: includes/class-mla-upload-list-table.php:610
|
809 |
#: includes/class-mla-view-list-table.php:302
|
811 |
msgid "Edit"
|
812 |
msgstr ""
|
813 |
|
814 |
+
#: includes/class-mla-list-table.php:661
|
815 |
msgid "Restore this item from the Trash"
|
816 |
msgstr ""
|
817 |
|
818 |
+
#: includes/class-mla-list-table.php:661
|
819 |
+
#: includes/class-mla-list-table.php:1686
|
820 |
msgid "Restore"
|
821 |
msgstr ""
|
822 |
|
823 |
+
#: includes/class-mla-list-table.php:678
|
824 |
#: includes/class-mla-upload-list-table.php:314
|
825 |
#: includes/class-mla-view-list-table.php:304
|
826 |
msgid "Edit this item inline"
|
827 |
msgstr ""
|
828 |
|
829 |
+
#: includes/class-mla-list-table.php:678 includes/class-mla-main.php:1738
|
830 |
#: includes/class-mla-options.php:3202 includes/class-mla-options.php:3474
|
831 |
#: includes/class-mla-upload-list-table.php:314
|
832 |
#: includes/class-mla-view-list-table.php:304
|
833 |
msgid "Quick Edit"
|
834 |
msgstr ""
|
835 |
|
836 |
+
#: includes/class-mla-list-table.php:684
|
837 |
msgid "Move this item to the Trash"
|
838 |
msgstr ""
|
839 |
|
840 |
+
#: includes/class-mla-list-table.php:684
|
841 |
+
#: includes/class-mla-list-table.php:1692
|
842 |
msgid "Move to Trash"
|
843 |
msgstr ""
|
844 |
|
845 |
+
#: includes/class-mla-list-table.php:689
|
846 |
#: includes/class-mla-upload-list-table.php:318
|
847 |
#: includes/class-mla-view-list-table.php:310
|
848 |
msgid "Delete this item Permanently"
|
849 |
msgstr ""
|
850 |
|
851 |
+
#: includes/class-mla-list-table.php:689
|
852 |
+
#: includes/class-mla-list-table.php:1687
|
853 |
+
#: includes/class-mla-list-table.php:1694
|
854 |
#: includes/class-mla-upload-list-table.php:318
|
855 |
#: includes/class-mla-view-list-table.php:310
|
856 |
#: includes/class-mla-view-list-table.php:514
|
857 |
msgid "Delete Permanently"
|
858 |
msgstr ""
|
859 |
|
860 |
+
#: includes/class-mla-list-table.php:697
|
861 |
+
msgid "Download"
|
862 |
+
msgstr ""
|
863 |
+
|
864 |
+
#: includes/class-mla-list-table.php:700
|
865 |
msgid "View"
|
866 |
msgstr ""
|
867 |
|
868 |
+
#: includes/class-mla-list-table.php:740 includes/class-mla-list-table.php:811
|
869 |
#: includes/class-mla-main.php:356 includes/class-mla-main.php:1309
|
870 |
msgid "(no title)"
|
871 |
msgstr ""
|
872 |
|
873 |
+
#: includes/class-mla-list-table.php:814 includes/class-mla-list-table.php:906
|
874 |
msgid "Filter by Parent ID"
|
875 |
msgstr ""
|
876 |
|
877 |
+
#: includes/class-mla-list-table.php:903
|
878 |
msgid "(no title: bad ID)"
|
879 |
msgstr ""
|
880 |
|
881 |
+
#: includes/class-mla-list-table.php:938 includes/class-mla-list-table.php:972
|
882 |
+
#: includes/class-mla-list-table.php:1010
|
883 |
+
#: includes/class-mla-list-table.php:1044 includes/class-mla-main.php:1962
|
884 |
#: includes/class-mla-main.php:1982 includes/class-mla-main.php:1998
|
885 |
#: includes/class-mla-main.php:2014 includes/class-mla-options.php:466
|
886 |
#: includes/class-mla-options.php:475 includes/class-mla-options.php:484
|
888 |
msgid "Disabled"
|
889 |
msgstr ""
|
890 |
|
891 |
+
#: includes/class-mla-list-table.php:1131 includes/class-mla-settings.php:1507
|
892 |
#: includes/class-mla-settings.php:1872
|
893 |
msgid "MIME Type"
|
894 |
msgstr ""
|
895 |
|
896 |
+
#: includes/class-mla-list-table.php:1171
|
897 |
+
#: includes/class-mla-list-table.php:1203
|
898 |
msgid "Unpublished"
|
899 |
msgstr ""
|
900 |
|
901 |
#. translators: 1: upload/last modified date and time
|
902 |
+
#: includes/class-mla-list-table.php:1179
|
903 |
+
#: includes/class-mla-list-table.php:1210
|
904 |
#, php-format
|
905 |
msgid "%1$s from now"
|
906 |
msgstr ""
|
907 |
|
908 |
#. translators: 1: upload/last modified date and time
|
909 |
+
#: includes/class-mla-list-table.php:1182
|
910 |
+
#: includes/class-mla-list-table.php:1212
|
911 |
#, php-format
|
912 |
msgid "%1$s ago"
|
913 |
msgstr ""
|
914 |
|
915 |
#. translators: format for upload/last modified date
|
916 |
#. translators: date format in table columns, see http://php.net/date
|
917 |
+
#: includes/class-mla-list-table.php:1186
|
918 |
+
#: includes/class-mla-list-table.php:1215
|
919 |
+
#: includes/class-mla-list-table.php:1271 includes/class-mla-main.php:1332
|
920 |
msgid "Y/m/d"
|
921 |
msgstr ""
|
922 |
|
923 |
+
#: includes/class-mla-list-table.php:1234
|
924 |
msgid "Filter by Author ID"
|
925 |
msgstr ""
|
926 |
|
927 |
+
#: includes/class-mla-list-table.php:1273 includes/class-mla-options.php:1134
|
928 |
msgctxt "post_mime_types_singular"
|
929 |
msgid "Unattached"
|
930 |
msgstr ""
|
931 |
|
932 |
+
#: includes/class-mla-list-table.php:1276
|
933 |
msgid "Set Parent"
|
934 |
msgstr ""
|
935 |
|
936 |
+
#: includes/class-mla-list-table.php:1538
|
937 |
msgctxt "uploaded files"
|
938 |
msgid "All"
|
939 |
msgid_plural "All"
|
940 |
msgstr[0] ""
|
941 |
msgstr[1] ""
|
942 |
|
943 |
+
#: includes/class-mla-list-table.php:1720
|
944 |
msgid "Filter"
|
945 |
msgstr ""
|
946 |
|
947 |
+
#: includes/class-mla-list-table.php:1724
|
948 |
#: includes/mla-media-modal-js-template.php:58
|
949 |
msgid "Terms Search"
|
950 |
msgstr ""
|
951 |
|
952 |
+
#: includes/class-mla-list-table.php:1730
|
953 |
msgid "Clear Filter-by"
|
954 |
msgstr ""
|
955 |
|
956 |
+
#: includes/class-mla-list-table.php:1734
|
957 |
msgid "Empty Trash"
|
958 |
msgstr ""
|
959 |
|
1012 |
#: includes/class-mla-settings.php:1224 includes/class-mla-settings.php:1301
|
1013 |
#: includes/class-mla-settings.php:1690 includes/class-mla-settings.php:1769
|
1014 |
#: includes/class-mla-settings.php:2320 includes/class-mla-settings.php:2443
|
1015 |
+
#: includes/class-mla-settings.php:2578 includes/class-mla-shortcodes.php:1318
|
1016 |
+
#: includes/class-mla-shortcodes.php:1392
|
1017 |
msgid "ERROR:"
|
1018 |
msgstr ""
|
1019 |
|
3894 |
msgid "Settings imported; %1$s updated, %2$s unchanged."
|
3895 |
msgstr ""
|
3896 |
|
3897 |
+
#: includes/class-mla-shortcodes.php:205
|
3898 |
+
#: includes/class-mla-shortcodes.php:1134
|
3899 |
+
#: includes/class-mla-shortcodes.php:2026
|
3900 |
+
#: includes/class-mla-shortcodes.php:2303
|
3901 |
msgid "Previous"
|
3902 |
msgstr ""
|
3903 |
|
3904 |
+
#: includes/class-mla-shortcodes.php:206
|
3905 |
+
#: includes/class-mla-shortcodes.php:1135
|
3906 |
+
#: includes/class-mla-shortcodes.php:2073
|
3907 |
+
#: includes/class-mla-shortcodes.php:2309
|
3908 |
msgid "Next"
|
3909 |
msgstr ""
|
3910 |
|
3911 |
+
#: includes/class-mla-shortcodes.php:287
|
3912 |
msgid "mla_debug empty gallery"
|
3913 |
msgstr ""
|
3914 |
|
3915 |
+
#: includes/class-mla-shortcodes.php:351
|
3916 |
msgid ""
|
3917 |
"<strong>Photonic-enhanced [mla_gallery]</strong> type must be "
|
3918 |
"<strong>default</strong>, query = "
|
3919 |
msgstr ""
|
3920 |
|
3921 |
+
#: includes/class-mla-shortcodes.php:668
|
3922 |
msgid "unattached"
|
3923 |
msgstr ""
|
3924 |
|
3925 |
+
#: includes/class-mla-shortcodes.php:689
|
3926 |
msgid "unknown"
|
3927 |
msgstr ""
|
3928 |
|
3929 |
+
#: includes/class-mla-shortcodes.php:1241
|
3930 |
msgid "mla_debug attributes"
|
3931 |
msgstr ""
|
3932 |
|
3933 |
+
#: includes/class-mla-shortcodes.php:1242
|
3934 |
msgid "mla_debug arguments"
|
3935 |
msgstr ""
|
3936 |
|
3937 |
+
#: includes/class-mla-shortcodes.php:1334
|
3938 |
msgid "mla_debug empty cloud"
|
3939 |
msgstr ""
|
3940 |
|
3941 |
+
#: includes/class-mla-shortcodes.php:2666
|
3942 |
+
#: includes/class-mla-shortcodes.php:2921
|
3943 |
+
#: includes/class-mla-shortcodes.php:2952
|
3944 |
msgid "ERROR: Invalid mla_gallery"
|
3945 |
msgstr ""
|
3946 |
|
3947 |
+
#: includes/class-mla-shortcodes.php:3111
|
3948 |
msgid "mla_debug query"
|
3949 |
msgstr ""
|
3950 |
|
3951 |
+
#: includes/class-mla-shortcodes.php:3112
|
3952 |
msgid "mla_debug request"
|
3953 |
msgstr ""
|
3954 |
|
3955 |
+
#: includes/class-mla-shortcodes.php:3113
|
3956 |
msgid "mla_debug query_vars"
|
3957 |
msgstr ""
|
3958 |
|
3959 |
+
#: includes/class-mla-shortcodes.php:3114
|
3960 |
msgid "mla_debug post_count"
|
3961 |
msgstr ""
|
3962 |
|
3963 |
+
#: includes/class-mla-shortcodes.php:3166
|
3964 |
msgid "mla_debug WHERE filter"
|
3965 |
msgstr ""
|
3966 |
|
3967 |
+
#: includes/class-mla-shortcodes.php:3185
|
3968 |
msgid "mla_debug modified WHERE filter"
|
3969 |
msgstr ""
|
3970 |
|
3971 |
+
#: includes/class-mla-shortcodes.php:3208
|
3972 |
msgid "mla_debug ORDER BY filter, incoming"
|
3973 |
msgstr ""
|
3974 |
|
3975 |
+
#: includes/class-mla-shortcodes.php:3208
|
3976 |
msgid "Replacement ORDER BY clause"
|
3977 |
msgstr ""
|
3978 |
|
3979 |
+
#: includes/class-mla-shortcodes.php:3231
|
3980 |
msgid "mla_debug posts_clauses filter"
|
3981 |
msgstr ""
|
3982 |
|
3983 |
+
#: includes/class-mla-shortcodes.php:3249
|
3984 |
msgid "mla_debug posts_clauses_request filter"
|
3985 |
msgstr ""
|
3986 |
|
3987 |
+
#: includes/class-mla-shortcodes.php:3433
|
3988 |
msgid "Invalid taxonomy"
|
3989 |
msgstr ""
|
3990 |
|
3991 |
+
#: includes/class-mla-shortcodes.php:3612
|
3992 |
msgid "mla_debug query arguments"
|
3993 |
msgstr ""
|
3994 |
|
3995 |
+
#: includes/class-mla-shortcodes.php:3613
|
3996 |
msgid "mla_debug last_query"
|
3997 |
msgstr ""
|
3998 |
|
3999 |
+
#: includes/class-mla-shortcodes.php:3614
|
4000 |
msgid "mla_debug last_error"
|
4001 |
msgstr ""
|
4002 |
|
4003 |
+
#: includes/class-mla-shortcodes.php:3615
|
4004 |
msgid "mla_debug num_rows"
|
4005 |
msgstr ""
|
4006 |
|
4007 |
+
#: includes/class-mla-shortcodes.php:3616
|
4008 |
msgid "mla_debug found_rows"
|
4009 |
msgstr ""
|
4010 |
|
phpDocs/classes.svg
CHANGED
@@ -4,174 +4,186 @@
|
|
4 |
<!-- Generated by graphviz version 2.28.0 (20110507.0327)
|
5 |
-->
|
6 |
<!-- Title: G Pages: 1 -->
|
7 |
-
<svg width="472pt" height="
|
8 |
-
viewBox="0.00 0.00 472.00
|
9 |
-
<g id="graph1" class="graph" transform="scale(1 1) rotate(0) translate(4
|
10 |
<title>G</title>
|
11 |
-
<polygon fill="white" stroke="white" points="-4,5 -4,-
|
12 |
<g id="graph2" class="cluster"><title>cluster_global</title>
|
13 |
<polyline fill="none" stroke="gray" points="232,-8 444,-8 "/>
|
14 |
<path fill="none" stroke="gray" d="M444,-8C450,-8 456,-14 456,-20"/>
|
15 |
-
<polyline fill="none" stroke="gray" points="456,-20 456,-
|
16 |
-
<path fill="none" stroke="gray" d="M456,-
|
17 |
-
<polyline fill="none" stroke="gray" points="444,-
|
18 |
-
<path fill="none" stroke="gray" d="M232,-
|
19 |
-
<polyline fill="none" stroke="gray" points="220,-
|
20 |
<path fill="none" stroke="gray" d="M220,-20C220,-14 226,-8 232,-8"/>
|
21 |
-
<text text-anchor="middle" x="338" y="-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
</g>
|
23 |
<!-- \\MLAData -->
|
24 |
-
<g id="
|
25 |
<a xlink:href="includes.class-mla-data.html" xlink:title="MLAData" target="_parent">
|
26 |
<polygon fill="none" stroke="black" points="370,-862 306,-862 306,-826 370,-826 370,-862"/>
|
27 |
<text text-anchor="middle" x="338" y="-841.2" font-family="Courier,monospace" font-size="11.00">MLAData</text>
|
28 |
</a>
|
29 |
</g>
|
30 |
<!-- \\MLAEdit -->
|
31 |
-
<g id="
|
32 |
<a xlink:href="includes.class-mla-edit-media.html" xlink:title="MLAEdit" target="_parent">
|
33 |
<polygon fill="none" stroke="black" points="370,-808 306,-808 306,-772 370,-772 370,-808"/>
|
34 |
<text text-anchor="middle" x="338" y="-787.2" font-family="Courier,monospace" font-size="11.00">MLAEdit</text>
|
35 |
</a>
|
36 |
</g>
|
37 |
<!-- \\MLA_Checklist_Walker -->
|
38 |
-
<g id="
|
39 |
<a xlink:href="includes.class-mla-edit-media.html" xlink:title="MLA_Checklist_Walker" target="_parent">
|
40 |
-
<polygon fill="none" stroke="black" points="414,-
|
41 |
-
<text text-anchor="middle" x="338" y="-
|
42 |
</a>
|
43 |
</g>
|
44 |
-
<!-- \\Walker_Category -->
|
45 |
-
<g id="node19" class="node"><title>\\Walker_Category</title>
|
46 |
-
<ellipse fill="none" stroke="black" cx="78" cy="-736" rx="77.1866" ry="18"/>
|
47 |
-
<text text-anchor="middle" x="78" y="-732.3" font-family="Times New Roman,serif" font-size="14.00" fill="gray">\Walker_Category</text>
|
48 |
-
</g>
|
49 |
<!-- \\MLA_Checklist_Walker->\\Walker_Category -->
|
50 |
-
<g id="
|
51 |
-
<path fill="none" stroke="black" d="M261.
|
52 |
-
<polygon fill="none" stroke="black" points="
|
53 |
</g>
|
54 |
<!-- \\MLA_List_Table -->
|
55 |
-
<g id="
|
56 |
<a xlink:href="includes.class-mla-list-table.html" xlink:title="MLA_List_Table" target="_parent">
|
57 |
-
<polygon fill="none" stroke="black" points="393.5,-
|
58 |
-
<text text-anchor="middle" x="338" y="-
|
59 |
</a>
|
60 |
</g>
|
61 |
<!-- \\WP_List_Table -->
|
62 |
-
<g id="
|
63 |
<ellipse fill="none" stroke="black" cx="78" cy="-304" rx="71.4873" ry="18"/>
|
64 |
<text text-anchor="middle" x="78" y="-300.3" font-family="Times New Roman,serif" font-size="14.00" fill="gray">\WP_List_Table</text>
|
65 |
</g>
|
66 |
<!-- \\MLA_List_Table->\\WP_List_Table -->
|
67 |
-
<g id="
|
68 |
-
<path fill="none" stroke="black" d="M282.
|
69 |
-
<polygon fill="none" stroke="black" points="
|
70 |
</g>
|
71 |
<!-- \\MLA -->
|
72 |
-
<g id="
|
73 |
<a xlink:href="includes.class-mla-main.html" xlink:title="MLA" target="_parent">
|
74 |
<polygon fill="none" stroke="black" points="365,-646 311,-646 311,-610 365,-610 365,-646"/>
|
75 |
<text text-anchor="middle" x="338" y="-625.2" font-family="Courier,monospace" font-size="11.00">MLA</text>
|
76 |
</a>
|
77 |
</g>
|
78 |
<!-- \\MLAModal -->
|
79 |
-
<g id="
|
80 |
<a xlink:href="includes.class-mla-media-modal.html" xlink:title="MLAModal" target="_parent">
|
81 |
<polygon fill="none" stroke="black" points="373.5,-592 302.5,-592 302.5,-556 373.5,-556 373.5,-592"/>
|
82 |
<text text-anchor="middle" x="338" y="-571.2" font-family="Courier,monospace" font-size="11.00">MLAModal</text>
|
83 |
</a>
|
84 |
</g>
|
85 |
<!-- \\MLAMime -->
|
86 |
-
<g id="
|
87 |
<a xlink:href="includes.class-mla-mime-types.html" xlink:title="MLAMime" target="_parent">
|
88 |
<polygon fill="none" stroke="black" points="370,-538 306,-538 306,-502 370,-502 370,-538"/>
|
89 |
<text text-anchor="middle" x="338" y="-517.2" font-family="Courier,monospace" font-size="11.00">MLAMime</text>
|
90 |
</a>
|
91 |
</g>
|
92 |
<!-- \\MLAObjects -->
|
93 |
-
<g id="
|
94 |
<a xlink:href="includes.class-mla-objects.html" xlink:title="MLAObjects" target="_parent">
|
95 |
<polygon fill="none" stroke="black" points="380,-484 296,-484 296,-448 380,-448 380,-484"/>
|
96 |
<text text-anchor="middle" x="338" y="-463.2" font-family="Courier,monospace" font-size="11.00">MLAObjects</text>
|
97 |
</a>
|
98 |
</g>
|
99 |
<!-- \\MLATextWidget -->
|
100 |
-
<g id="
|
101 |
<a xlink:href="includes.class-mla-objects.html" xlink:title="MLATextWidget" target="_parent">
|
102 |
<polygon fill="none" stroke="black" points="390,-106 286,-106 286,-70 390,-70 390,-106"/>
|
103 |
<text text-anchor="middle" x="338" y="-85.2" font-family="Courier,monospace" font-size="11.00">MLATextWidget</text>
|
104 |
</a>
|
105 |
</g>
|
106 |
<!-- \\WP_Widget -->
|
107 |
-
<g id="
|
108 |
<ellipse fill="none" stroke="black" cx="78" cy="-88" rx="58.4896" ry="18"/>
|
109 |
<text text-anchor="middle" x="78" y="-84.3" font-family="Times New Roman,serif" font-size="14.00" fill="gray">\WP_Widget</text>
|
110 |
</g>
|
111 |
<!-- \\MLATextWidget->\\WP_Widget -->
|
112 |
-
<g id="
|
113 |
<path fill="none" stroke="black" d="M285.719,-88C245.993,-88 190.59,-88 147.139,-88"/>
|
114 |
<polygon fill="none" stroke="black" points="146.933,-84.5001 136.933,-88 146.933,-91.5001 146.933,-84.5001"/>
|
115 |
</g>
|
116 |
<!-- \\MLAOptions -->
|
117 |
-
<g id="
|
118 |
<a xlink:href="includes.class-mla-options.html" xlink:title="MLAOptions" target="_parent">
|
119 |
<polygon fill="none" stroke="black" points="380,-376 296,-376 296,-340 380,-340 380,-376"/>
|
120 |
<text text-anchor="middle" x="338" y="-355.2" font-family="Courier,monospace" font-size="11.00">MLAOptions</text>
|
121 |
</a>
|
122 |
</g>
|
123 |
<!-- \\MLASettings -->
|
124 |
-
<g id="
|
125 |
<a xlink:href="includes.class-mla-settings.html" xlink:title="MLASettings" target="_parent">
|
126 |
<polygon fill="none" stroke="black" points="383.5,-322 292.5,-322 292.5,-286 383.5,-286 383.5,-322"/>
|
127 |
<text text-anchor="middle" x="338" y="-301.2" font-family="Courier,monospace" font-size="11.00">MLASettings</text>
|
128 |
</a>
|
129 |
</g>
|
130 |
<!-- \\MLAShortcodes -->
|
131 |
-
<g id="
|
132 |
<a xlink:href="includes.class-mla-shortcodes.html" xlink:title="MLAShortcodes" target="_parent">
|
133 |
<polygon fill="none" stroke="black" points="390,-268 286,-268 286,-232 390,-232 390,-268"/>
|
134 |
<text text-anchor="middle" x="338" y="-247.2" font-family="Courier,monospace" font-size="11.00">MLAShortcodes</text>
|
135 |
</a>
|
136 |
</g>
|
137 |
<!-- \\MLA_Upload_List_Table -->
|
138 |
-
<g id="
|
139 |
<a xlink:href="includes.class-mla-upload-list-table.html" xlink:title="MLA_Upload_List_Table" target="_parent">
|
140 |
-
<polygon fill="none" stroke="black" points="417,-
|
141 |
-
<text text-anchor="middle" x="338" y="-
|
142 |
</a>
|
143 |
</g>
|
144 |
<!-- \\MLA_Upload_List_Table->\\WP_List_Table -->
|
145 |
-
<g id="
|
146 |
-
<path fill="none" stroke="black" d="M258.926,-
|
147 |
-
<polygon fill="none" stroke="black" points="
|
148 |
</g>
|
149 |
<!-- \\MLA_Upload_Optional_List_Table -->
|
150 |
-
<g id="
|
151 |
<a xlink:href="includes.class-mla-upload-optional-list-table.html" xlink:title="MLA_Upload_Optional_List_Table" target="_parent">
|
152 |
-
<polygon fill="none" stroke="black" points="447.5,-
|
153 |
-
<text text-anchor="middle" x="338" y="-
|
154 |
</a>
|
155 |
</g>
|
156 |
<!-- \\MLA_Upload_Optional_List_Table->\\WP_List_Table -->
|
157 |
-
<g id="
|
158 |
-
<path fill="none" stroke="black" d="
|
159 |
-
<polygon fill="none" stroke="black" points="
|
160 |
</g>
|
161 |
<!-- \\MLA_View_List_Table -->
|
162 |
-
<g id="
|
163 |
<a xlink:href="includes.class-mla-view-list-table.html" xlink:title="MLA_View_List_Table" target="_parent">
|
164 |
-
<polygon fill="none" stroke="black" points="410.5,-
|
165 |
-
<text text-anchor="middle" x="338" y="-
|
166 |
</a>
|
167 |
</g>
|
168 |
<!-- \\MLA_View_List_Table->\\WP_List_Table -->
|
169 |
-
<g id="
|
170 |
-
<path fill="none" stroke="black" d="M265.
|
171 |
-
<polygon fill="none" stroke="black" points="
|
172 |
</g>
|
173 |
<!-- \\MLATest -->
|
174 |
-
<g id="
|
175 |
<a xlink:href="tests.class-mla-tests.html" xlink:title="MLATest" target="_parent">
|
176 |
<polygon fill="none" stroke="black" points="370,-52 306,-52 306,-16 370,-16 370,-52"/>
|
177 |
<text text-anchor="middle" x="338" y="-31.2" font-family="Courier,monospace" font-size="11.00">MLATest</text>
|
4 |
<!-- Generated by graphviz version 2.28.0 (20110507.0327)
|
5 |
-->
|
6 |
<!-- Title: G Pages: 1 -->
|
7 |
+
<svg width="472pt" height="960pt"
|
8 |
+
viewBox="0.00 0.00 472.00 960.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
9 |
+
<g id="graph1" class="graph" transform="scale(1 1) rotate(0) translate(4 956)">
|
10 |
<title>G</title>
|
11 |
+
<polygon fill="white" stroke="white" points="-4,5 -4,-956 469,-956 469,5 -4,5"/>
|
12 |
<g id="graph2" class="cluster"><title>cluster_global</title>
|
13 |
<polyline fill="none" stroke="gray" points="232,-8 444,-8 "/>
|
14 |
<path fill="none" stroke="gray" d="M444,-8C450,-8 456,-14 456,-20"/>
|
15 |
+
<polyline fill="none" stroke="gray" points="456,-20 456,-932 "/>
|
16 |
+
<path fill="none" stroke="gray" d="M456,-932C456,-938 450,-944 444,-944"/>
|
17 |
+
<polyline fill="none" stroke="gray" points="444,-944 232,-944 "/>
|
18 |
+
<path fill="none" stroke="gray" d="M232,-944C226,-944 220,-938 220,-932"/>
|
19 |
+
<polyline fill="none" stroke="gray" points="220,-932 220,-20 "/>
|
20 |
<path fill="none" stroke="gray" d="M220,-20C220,-14 226,-8 232,-8"/>
|
21 |
+
<text text-anchor="middle" x="338" y="-931.2" font-family="Times New Roman,serif" font-size="11.00" fill="gray">global</text>
|
22 |
+
</g>
|
23 |
+
<!-- \\MNA_Pad_Counts_Walker -->
|
24 |
+
<g id="node2" class="node"><title>\\MNA_Pad_Counts_Walker</title>
|
25 |
+
<a xlink:href="examples.twentytwelve-mla.content-tosca30-dropdown.html" xlink:title="MNA_Pad_Counts_Walker" target="_parent">
|
26 |
+
<polygon fill="none" stroke="black" points="417,-754 259,-754 259,-718 417,-718 417,-754"/>
|
27 |
+
<text text-anchor="middle" x="338" y="-733.2" font-family="Courier,monospace" font-size="11.00">MNA_Pad_Counts_Walker</text>
|
28 |
+
</a>
|
29 |
+
</g>
|
30 |
+
<!-- \\Walker_Category -->
|
31 |
+
<g id="node20" class="node"><title>\\Walker_Category</title>
|
32 |
+
<ellipse fill="none" stroke="black" cx="78" cy="-817" rx="77.1866" ry="18"/>
|
33 |
+
<text text-anchor="middle" x="78" y="-813.3" font-family="Times New Roman,serif" font-size="14.00" fill="gray">\Walker_Category</text>
|
34 |
+
</g>
|
35 |
+
<!-- \\MNA_Pad_Counts_Walker->\\Walker_Category -->
|
36 |
+
<g id="edge3" class="edge"><title>\\MNA_Pad_Counts_Walker->\\Walker_Category</title>
|
37 |
+
<path fill="none" stroke="black" d="M258.874,-752.438C245.812,-755.64 232.461,-759.196 220,-763 187.818,-772.824 152.458,-786.373 125.199,-797.441"/>
|
38 |
+
<polygon fill="none" stroke="black" points="123.842,-794.215 115.914,-801.243 126.494,-800.693 123.842,-794.215"/>
|
39 |
</g>
|
40 |
<!-- \\MLAData -->
|
41 |
+
<g id="node3" class="node"><title>\\MLAData</title>
|
42 |
<a xlink:href="includes.class-mla-data.html" xlink:title="MLAData" target="_parent">
|
43 |
<polygon fill="none" stroke="black" points="370,-862 306,-862 306,-826 370,-826 370,-862"/>
|
44 |
<text text-anchor="middle" x="338" y="-841.2" font-family="Courier,monospace" font-size="11.00">MLAData</text>
|
45 |
</a>
|
46 |
</g>
|
47 |
<!-- \\MLAEdit -->
|
48 |
+
<g id="node4" class="node"><title>\\MLAEdit</title>
|
49 |
<a xlink:href="includes.class-mla-edit-media.html" xlink:title="MLAEdit" target="_parent">
|
50 |
<polygon fill="none" stroke="black" points="370,-808 306,-808 306,-772 370,-772 370,-808"/>
|
51 |
<text text-anchor="middle" x="338" y="-787.2" font-family="Courier,monospace" font-size="11.00">MLAEdit</text>
|
52 |
</a>
|
53 |
</g>
|
54 |
<!-- \\MLA_Checklist_Walker -->
|
55 |
+
<g id="node5" class="node"><title>\\MLA_Checklist_Walker</title>
|
56 |
<a xlink:href="includes.class-mla-edit-media.html" xlink:title="MLA_Checklist_Walker" target="_parent">
|
57 |
+
<polygon fill="none" stroke="black" points="414,-916 262,-916 262,-880 414,-880 414,-916"/>
|
58 |
+
<text text-anchor="middle" x="338" y="-895.2" font-family="Courier,monospace" font-size="11.00">MLA_Checklist_Walker</text>
|
59 |
</a>
|
60 |
</g>
|
|
|
|
|
|
|
|
|
|
|
61 |
<!-- \\MLA_Checklist_Walker->\\Walker_Category -->
|
62 |
+
<g id="edge5" class="edge"><title>\\MLA_Checklist_Walker->\\Walker_Category</title>
|
63 |
+
<path fill="none" stroke="black" d="M261.691,-882.248C247.739,-878.871 233.359,-875.078 220,-871 187.818,-861.176 152.458,-847.627 125.199,-836.559"/>
|
64 |
+
<polygon fill="none" stroke="black" points="126.494,-833.307 115.914,-832.757 123.842,-839.785 126.494,-833.307"/>
|
65 |
</g>
|
66 |
<!-- \\MLA_List_Table -->
|
67 |
+
<g id="node6" class="node"><title>\\MLA_List_Table</title>
|
68 |
<a xlink:href="includes.class-mla-list-table.html" xlink:title="MLA_List_Table" target="_parent">
|
69 |
+
<polygon fill="none" stroke="black" points="393.5,-430 282.5,-430 282.5,-394 393.5,-394 393.5,-430"/>
|
70 |
+
<text text-anchor="middle" x="338" y="-409.2" font-family="Courier,monospace" font-size="11.00">MLA_List_Table</text>
|
71 |
</a>
|
72 |
</g>
|
73 |
<!-- \\WP_List_Table -->
|
74 |
+
<g id="node23" class="node"><title>\\WP_List_Table</title>
|
75 |
<ellipse fill="none" stroke="black" cx="78" cy="-304" rx="71.4873" ry="18"/>
|
76 |
<text text-anchor="middle" x="78" y="-300.3" font-family="Times New Roman,serif" font-size="14.00" fill="gray">\WP_List_Table</text>
|
77 |
</g>
|
78 |
<!-- \\MLA_List_Table->\\WP_List_Table -->
|
79 |
+
<g id="edge7" class="edge"><title>\\MLA_List_Table->\\WP_List_Table</title>
|
80 |
+
<path fill="none" stroke="black" d="M282.408,-402.879C262.387,-398.635 239.793,-392.771 220,-385 180.875,-369.639 139.567,-344.748 111.849,-326.607"/>
|
81 |
+
<polygon fill="none" stroke="black" points="113.616,-323.58 103.347,-320.976 109.751,-329.416 113.616,-323.58"/>
|
82 |
</g>
|
83 |
<!-- \\MLA -->
|
84 |
+
<g id="node7" class="node"><title>\\MLA</title>
|
85 |
<a xlink:href="includes.class-mla-main.html" xlink:title="MLA" target="_parent">
|
86 |
<polygon fill="none" stroke="black" points="365,-646 311,-646 311,-610 365,-610 365,-646"/>
|
87 |
<text text-anchor="middle" x="338" y="-625.2" font-family="Courier,monospace" font-size="11.00">MLA</text>
|
88 |
</a>
|
89 |
</g>
|
90 |
<!-- \\MLAModal -->
|
91 |
+
<g id="node8" class="node"><title>\\MLAModal</title>
|
92 |
<a xlink:href="includes.class-mla-media-modal.html" xlink:title="MLAModal" target="_parent">
|
93 |
<polygon fill="none" stroke="black" points="373.5,-592 302.5,-592 302.5,-556 373.5,-556 373.5,-592"/>
|
94 |
<text text-anchor="middle" x="338" y="-571.2" font-family="Courier,monospace" font-size="11.00">MLAModal</text>
|
95 |
</a>
|
96 |
</g>
|
97 |
<!-- \\MLAMime -->
|
98 |
+
<g id="node9" class="node"><title>\\MLAMime</title>
|
99 |
<a xlink:href="includes.class-mla-mime-types.html" xlink:title="MLAMime" target="_parent">
|
100 |
<polygon fill="none" stroke="black" points="370,-538 306,-538 306,-502 370,-502 370,-538"/>
|
101 |
<text text-anchor="middle" x="338" y="-517.2" font-family="Courier,monospace" font-size="11.00">MLAMime</text>
|
102 |
</a>
|
103 |
</g>
|
104 |
<!-- \\MLAObjects -->
|
105 |
+
<g id="node10" class="node"><title>\\MLAObjects</title>
|
106 |
<a xlink:href="includes.class-mla-objects.html" xlink:title="MLAObjects" target="_parent">
|
107 |
<polygon fill="none" stroke="black" points="380,-484 296,-484 296,-448 380,-448 380,-484"/>
|
108 |
<text text-anchor="middle" x="338" y="-463.2" font-family="Courier,monospace" font-size="11.00">MLAObjects</text>
|
109 |
</a>
|
110 |
</g>
|
111 |
<!-- \\MLATextWidget -->
|
112 |
+
<g id="node11" class="node"><title>\\MLATextWidget</title>
|
113 |
<a xlink:href="includes.class-mla-objects.html" xlink:title="MLATextWidget" target="_parent">
|
114 |
<polygon fill="none" stroke="black" points="390,-106 286,-106 286,-70 390,-70 390,-106"/>
|
115 |
<text text-anchor="middle" x="338" y="-85.2" font-family="Courier,monospace" font-size="11.00">MLATextWidget</text>
|
116 |
</a>
|
117 |
</g>
|
118 |
<!-- \\WP_Widget -->
|
119 |
+
<g id="node25" class="node"><title>\\WP_Widget</title>
|
120 |
<ellipse fill="none" stroke="black" cx="78" cy="-88" rx="58.4896" ry="18"/>
|
121 |
<text text-anchor="middle" x="78" y="-84.3" font-family="Times New Roman,serif" font-size="14.00" fill="gray">\WP_Widget</text>
|
122 |
</g>
|
123 |
<!-- \\MLATextWidget->\\WP_Widget -->
|
124 |
+
<g id="edge9" class="edge"><title>\\MLATextWidget->\\WP_Widget</title>
|
125 |
<path fill="none" stroke="black" d="M285.719,-88C245.993,-88 190.59,-88 147.139,-88"/>
|
126 |
<polygon fill="none" stroke="black" points="146.933,-84.5001 136.933,-88 146.933,-91.5001 146.933,-84.5001"/>
|
127 |
</g>
|
128 |
<!-- \\MLAOptions -->
|
129 |
+
<g id="node12" class="node"><title>\\MLAOptions</title>
|
130 |
<a xlink:href="includes.class-mla-options.html" xlink:title="MLAOptions" target="_parent">
|
131 |
<polygon fill="none" stroke="black" points="380,-376 296,-376 296,-340 380,-340 380,-376"/>
|
132 |
<text text-anchor="middle" x="338" y="-355.2" font-family="Courier,monospace" font-size="11.00">MLAOptions</text>
|
133 |
</a>
|
134 |
</g>
|
135 |
<!-- \\MLASettings -->
|
136 |
+
<g id="node13" class="node"><title>\\MLASettings</title>
|
137 |
<a xlink:href="includes.class-mla-settings.html" xlink:title="MLASettings" target="_parent">
|
138 |
<polygon fill="none" stroke="black" points="383.5,-322 292.5,-322 292.5,-286 383.5,-286 383.5,-322"/>
|
139 |
<text text-anchor="middle" x="338" y="-301.2" font-family="Courier,monospace" font-size="11.00">MLASettings</text>
|
140 |
</a>
|
141 |
</g>
|
142 |
<!-- \\MLAShortcodes -->
|
143 |
+
<g id="node14" class="node"><title>\\MLAShortcodes</title>
|
144 |
<a xlink:href="includes.class-mla-shortcodes.html" xlink:title="MLAShortcodes" target="_parent">
|
145 |
<polygon fill="none" stroke="black" points="390,-268 286,-268 286,-232 390,-232 390,-268"/>
|
146 |
<text text-anchor="middle" x="338" y="-247.2" font-family="Courier,monospace" font-size="11.00">MLAShortcodes</text>
|
147 |
</a>
|
148 |
</g>
|
149 |
<!-- \\MLA_Upload_List_Table -->
|
150 |
+
<g id="node15" class="node"><title>\\MLA_Upload_List_Table</title>
|
151 |
<a xlink:href="includes.class-mla-upload-list-table.html" xlink:title="MLA_Upload_List_Table" target="_parent">
|
152 |
+
<polygon fill="none" stroke="black" points="417,-214 259,-214 259,-178 417,-178 417,-214"/>
|
153 |
+
<text text-anchor="middle" x="338" y="-193.2" font-family="Courier,monospace" font-size="11.00">MLA_Upload_List_Table</text>
|
154 |
</a>
|
155 |
</g>
|
156 |
<!-- \\MLA_Upload_List_Table->\\WP_List_Table -->
|
157 |
+
<g id="edge11" class="edge"><title>\\MLA_Upload_List_Table->\\WP_List_Table</title>
|
158 |
+
<path fill="none" stroke="black" d="M258.926,-210.634C245.73,-214.063 232.322,-218.162 220,-223 180.875,-238.361 139.567,-263.252 111.849,-281.393"/>
|
159 |
+
<polygon fill="none" stroke="black" points="109.751,-278.584 103.347,-287.024 113.616,-284.42 109.751,-278.584"/>
|
160 |
</g>
|
161 |
<!-- \\MLA_Upload_Optional_List_Table -->
|
162 |
+
<g id="node16" class="node"><title>\\MLA_Upload_Optional_List_Table</title>
|
163 |
<a xlink:href="includes.class-mla-upload-optional-list-table.html" xlink:title="MLA_Upload_Optional_List_Table" target="_parent">
|
164 |
+
<polygon fill="none" stroke="black" points="447.5,-160 228.5,-160 228.5,-124 447.5,-124 447.5,-160"/>
|
165 |
+
<text text-anchor="middle" x="338" y="-139.2" font-family="Courier,monospace" font-size="11.00">MLA_Upload_Optional_List_Table</text>
|
166 |
</a>
|
167 |
</g>
|
168 |
<!-- \\MLA_Upload_Optional_List_Table->\\WP_List_Table -->
|
169 |
+
<g id="edge13" class="edge"><title>\\MLA_Upload_Optional_List_Table->\\WP_List_Table</title>
|
170 |
+
<path fill="none" stroke="black" d="M239.712,-160.099C232.88,-162.682 226.236,-165.632 220,-169 169.304,-196.382 123.755,-246.937 98.877,-277.809"/>
|
171 |
+
<polygon fill="none" stroke="black" points="95.887,-275.946 92.4211,-285.958 101.374,-280.293 95.887,-275.946"/>
|
172 |
</g>
|
173 |
<!-- \\MLA_View_List_Table -->
|
174 |
+
<g id="node17" class="node"><title>\\MLA_View_List_Table</title>
|
175 |
<a xlink:href="includes.class-mla-view-list-table.html" xlink:title="MLA_View_List_Table" target="_parent">
|
176 |
+
<polygon fill="none" stroke="black" points="410.5,-700 265.5,-700 265.5,-664 410.5,-664 410.5,-700"/>
|
177 |
+
<text text-anchor="middle" x="338" y="-679.2" font-family="Courier,monospace" font-size="11.00">MLA_View_List_Table</text>
|
178 |
</a>
|
179 |
</g>
|
180 |
<!-- \\MLA_View_List_Table->\\WP_List_Table -->
|
181 |
+
<g id="edge15" class="edge"><title>\\MLA_View_List_Table->\\WP_List_Table</title>
|
182 |
+
<path fill="none" stroke="black" d="M265.408,-676.714C249.051,-672.629 232.75,-665.911 220,-655 119.09,-568.649 89.6198,-399.672 81.6923,-332.511"/>
|
183 |
+
<polygon fill="none" stroke="black" points="85.1381,-331.827 80.56,-322.273 78.1806,-332.597 85.1381,-331.827"/>
|
184 |
</g>
|
185 |
<!-- \\MLATest -->
|
186 |
+
<g id="node18" class="node"><title>\\MLATest</title>
|
187 |
<a xlink:href="tests.class-mla-tests.html" xlink:title="MLATest" target="_parent">
|
188 |
<polygon fill="none" stroke="black" points="370,-52 306,-52 306,-16 370,-16 370,-52"/>
|
189 |
<text text-anchor="middle" x="338" y="-31.2" font-family="Courier,monospace" font-size="11.00">MLATest</text>
|
phpDocs/classes/MLA.html
CHANGED
@@ -107,7 +107,7 @@ change the meta data for a single attachment.</span><pre>_display_single_item()<
|
|
107 |
<li class="constant "><a href="#MLA_ADMIN_SINGLE_MAP" title="MLA_ADMIN_SINGLE_MAP :: mla_admin_action value for mapping IPTC/EXIF metadata"><span class="description">mla_admin_action value for mapping IPTC/EXIF metadata</span><pre>MLA_ADMIN_SINGLE_MAP</pre></a></li>
|
108 |
<li class="constant "><a href="#MLA_ADMIN_SINGLE_RESTORE" title="MLA_ADMIN_SINGLE_RESTORE :: mla_admin_action value for restoring a single item from the trash"><span class="description">mla_admin_action value for restoring a single item from the trash</span><pre>MLA_ADMIN_SINGLE_RESTORE</pre></a></li>
|
109 |
<li class="constant "><a href="#MLA_ADMIN_SINGLE_TRASH" title="MLA_ADMIN_SINGLE_TRASH :: mla_admin_action value for moving a single item to the trash"><span class="description">mla_admin_action value for moving a single item to the trash</span><pre>MLA_ADMIN_SINGLE_TRASH</pre></a></li>
|
110 |
-
<li class="constant "><a href="#
|
111 |
<li class="constant "><a href="#STYLESHEET_SLUG" title="STYLESHEET_SLUG :: Slug for registering and enqueueing plugin style sheet"><span class="description">Slug for registering and enqueueing plugin style sheet</span><pre>STYLESHEET_SLUG</pre></a></li>
|
112 |
</ul>
|
113 |
</div>
|
@@ -516,7 +516,7 @@ Defined as public because it's an action.</p></p>
|
|
516 |
<a name="_display_single_item" id="_display_single_item"></a><div class="element clickable method private _display_single_item" data-toggle="collapse" data-target="._display_single_item .collapse">
|
517 |
<h2>Display a single item sub page; prepare the form to
|
518 |
change the meta data for a single attachment.</h2>
|
519 |
-
<pre>_display_single_item(
|
520 |
<div class="labels"></div>
|
521 |
<div class="row collapse"><div class="detail-description">
|
522 |
<p class="long_description"><p>This function is not used in WordPress 3.5 and later.</p></p>
|
@@ -527,7 +527,7 @@ change the meta data for a single attachment.</h2>
|
|
527 |
<h3>Parameters</h3>
|
528 |
<div class="subelement argument">
|
529 |
<h4>$post_id</h4>
|
530 |
-
<code>
|
531 |
<h3>Returns</h3>
|
532 |
<div class="subelement response">
|
533 |
<code>array</code>message and/or HTML content</div>
|
@@ -557,7 +557,7 @@ change the meta data for a single attachment.</h2>
|
|
557 |
</div>
|
558 |
<a name="_restore_single_item" id="_restore_single_item"></a><div class="element clickable method private _restore_single_item" data-toggle="collapse" data-target="._restore_single_item .collapse">
|
559 |
<h2>Restore a single item from the Trash</h2>
|
560 |
-
<pre>_restore_single_item(
|
561 |
<div class="labels"></div>
|
562 |
<div class="row collapse"><div class="detail-description">
|
563 |
<p class="long_description"></p>
|
@@ -568,7 +568,7 @@ change the meta data for a single attachment.</h2>
|
|
568 |
<h3>Parameters</h3>
|
569 |
<div class="subelement argument">
|
570 |
<h4>$post_id</h4>
|
571 |
-
<code>
|
572 |
<h3>Returns</h3>
|
573 |
<div class="subelement response">
|
574 |
<code>array</code>success/failure message and NULL content</div>
|
@@ -576,7 +576,7 @@ change the meta data for a single attachment.</h2>
|
|
576 |
</div>
|
577 |
<a name="_trash_single_item" id="_trash_single_item"></a><div class="element clickable method private _trash_single_item" data-toggle="collapse" data-target="._trash_single_item .collapse">
|
578 |
<h2>Move a single item to Trash</h2>
|
579 |
-
<pre>_trash_single_item(
|
580 |
<div class="labels"></div>
|
581 |
<div class="row collapse"><div class="detail-description">
|
582 |
<p class="long_description"></p>
|
@@ -587,7 +587,7 @@ change the meta data for a single attachment.</h2>
|
|
587 |
<h3>Parameters</h3>
|
588 |
<div class="subelement argument">
|
589 |
<h4>$post_id</h4>
|
590 |
-
<code>
|
591 |
<h3>Returns</h3>
|
592 |
<div class="subelement response">
|
593 |
<code>array</code>success/failure message and NULL content</div>
|
@@ -789,9 +789,9 @@ change the meta data for a single attachment.</h2>
|
|
789 |
</tr></table>
|
790 |
</div></div>
|
791 |
</div>
|
792 |
-
<a name="
|
793 |
<h2>mla_admin_action value for searching taxonomy terms</h2>
|
794 |
-
<pre>
|
795 |
<div class="labels"></div>
|
796 |
<div class="row collapse"><div class="detail-description">
|
797 |
<p class="long_description"></p>
|
@@ -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>
|
107 |
<li class="constant "><a href="#MLA_ADMIN_SINGLE_MAP" title="MLA_ADMIN_SINGLE_MAP :: mla_admin_action value for mapping IPTC/EXIF metadata"><span class="description">mla_admin_action value for mapping IPTC/EXIF metadata</span><pre>MLA_ADMIN_SINGLE_MAP</pre></a></li>
|
108 |
<li class="constant "><a href="#MLA_ADMIN_SINGLE_RESTORE" title="MLA_ADMIN_SINGLE_RESTORE :: mla_admin_action value for restoring a single item from the trash"><span class="description">mla_admin_action value for restoring a single item from the trash</span><pre>MLA_ADMIN_SINGLE_RESTORE</pre></a></li>
|
109 |
<li class="constant "><a href="#MLA_ADMIN_SINGLE_TRASH" title="MLA_ADMIN_SINGLE_TRASH :: mla_admin_action value for moving a single item to the trash"><span class="description">mla_admin_action value for moving a single item to the trash</span><pre>MLA_ADMIN_SINGLE_TRASH</pre></a></li>
|
110 |
+
<li class="constant "><a href="#MLA_ADMIN_TERMS_SEARCH" title="MLA_ADMIN_TERMS_SEARCH :: mla_admin_action value for searching taxonomy terms"><span class="description">mla_admin_action value for searching taxonomy terms</span><pre>MLA_ADMIN_TERMS_SEARCH</pre></a></li>
|
111 |
<li class="constant "><a href="#STYLESHEET_SLUG" title="STYLESHEET_SLUG :: Slug for registering and enqueueing plugin style sheet"><span class="description">Slug for registering and enqueueing plugin style sheet</span><pre>STYLESHEET_SLUG</pre></a></li>
|
112 |
</ul>
|
113 |
</div>
|
516 |
<a name="_display_single_item" id="_display_single_item"></a><div class="element clickable method private _display_single_item" data-toggle="collapse" data-target="._display_single_item .collapse">
|
517 |
<h2>Display a single item sub page; prepare the form to
|
518 |
change the meta data for a single attachment.</h2>
|
519 |
+
<pre>_display_single_item(integer $post_id) : array</pre>
|
520 |
<div class="labels"></div>
|
521 |
<div class="row collapse"><div class="detail-description">
|
522 |
<p class="long_description"><p>This function is not used in WordPress 3.5 and later.</p></p>
|
527 |
<h3>Parameters</h3>
|
528 |
<div class="subelement argument">
|
529 |
<h4>$post_id</h4>
|
530 |
+
<code>integer</code><p>The WordPress Post ID of the attachment item</p></div>
|
531 |
<h3>Returns</h3>
|
532 |
<div class="subelement response">
|
533 |
<code>array</code>message and/or HTML content</div>
|
557 |
</div>
|
558 |
<a name="_restore_single_item" id="_restore_single_item"></a><div class="element clickable method private _restore_single_item" data-toggle="collapse" data-target="._restore_single_item .collapse">
|
559 |
<h2>Restore a single item from the Trash</h2>
|
560 |
+
<pre>_restore_single_item(integer $post_id) : array</pre>
|
561 |
<div class="labels"></div>
|
562 |
<div class="row collapse"><div class="detail-description">
|
563 |
<p class="long_description"></p>
|
568 |
<h3>Parameters</h3>
|
569 |
<div class="subelement argument">
|
570 |
<h4>$post_id</h4>
|
571 |
+
<code>integer</code><p>The WordPress Post ID of the attachment item</p></div>
|
572 |
<h3>Returns</h3>
|
573 |
<div class="subelement response">
|
574 |
<code>array</code>success/failure message and NULL content</div>
|
576 |
</div>
|
577 |
<a name="_trash_single_item" id="_trash_single_item"></a><div class="element clickable method private _trash_single_item" data-toggle="collapse" data-target="._trash_single_item .collapse">
|
578 |
<h2>Move a single item to Trash</h2>
|
579 |
+
<pre>_trash_single_item(integer $post_id) : array</pre>
|
580 |
<div class="labels"></div>
|
581 |
<div class="row collapse"><div class="detail-description">
|
582 |
<p class="long_description"></p>
|
587 |
<h3>Parameters</h3>
|
588 |
<div class="subelement argument">
|
589 |
<h4>$post_id</h4>
|
590 |
+
<code>integer</code><p>The WordPress Post ID of the attachment item</p></div>
|
591 |
<h3>Returns</h3>
|
592 |
<div class="subelement response">
|
593 |
<code>array</code>success/failure message and NULL content</div>
|
789 |
</tr></table>
|
790 |
</div></div>
|
791 |
</div>
|
792 |
+
<a name="MLA_ADMIN_TERMS_SEARCH" id="MLA_ADMIN_TERMS_SEARCH"> </a><div class="element clickable constant MLA_ADMIN_TERMS_SEARCH" data-toggle="collapse" data-target=".MLA_ADMIN_TERMS_SEARCH .collapse">
|
793 |
<h2>mla_admin_action value for searching taxonomy terms</h2>
|
794 |
+
<pre>MLA_ADMIN_TERMS_SEARCH : string</pre>
|
795 |
<div class="labels"></div>
|
796 |
<div class="row collapse"><div class="detail-description">
|
797 |
<p class="long_description"></p>
|
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-10-27T20:22:36-07:00.<br></footer></div>
|
824 |
</div>
|
825 |
</body>
|
826 |
</html>
|
phpDocs/classes/MLAData.html
CHANGED
@@ -60,6 +60,7 @@
|
|
60 |
<li class="method public "><a href="#_hex_dump" title="_hex_dump :: Format printable version of binary data"><span class="description">Format printable version of binary data</span><pre>_hex_dump()</pre></a></li>
|
61 |
<li class="method public "><a href="#initialize" title="initialize :: Initialization function, similar to __construct()"><span class="description">Initialization function, similar to __construct()</span><pre>initialize()</pre></a></li>
|
62 |
<li class="method public "><a href="#mla_IPTC_EXIF_error_handler" title="mla_IPTC_EXIF_error_handler :: Intercept IPTC and EXIF parse errors"><span class="description">Intercept IPTC and EXIF parse errors</span><pre>mla_IPTC_EXIF_error_handler()</pre></a></li>
|
|
|
63 |
<li class="method public "><a href="#mla_count_list_table_items" title="mla_count_list_table_items :: Get the total number of attachment posts"><span class="description">Get the total number of attachment posts</span><pre>mla_count_list_table_items()</pre></a></li>
|
64 |
<li class="method public "><a href="#mla_exif_metadata_value" title="mla_exif_metadata_value :: Parse one EXIF metadata field"><span class="description">Parse one EXIF metadata field</span><pre>mla_exif_metadata_value()</pre></a></li>
|
65 |
<li class="method public "><a href="#mla_expand_field_level_parameters" title="mla_expand_field_level_parameters :: Analyze a template, expanding Field-level Markup Substitution Parameters"><span class="description">Analyze a template, expanding Field-level Markup Substitution Parameters</span><pre>mla_expand_field_level_parameters()</pre></a></li>
|
@@ -246,6 +247,23 @@ Templates separate HTML markup from PHP code for easier maintenance and localiza
|
|
246 |
<code>boolean</code>true, to bypass PHP error handler</div>
|
247 |
</div></div>
|
248 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
249 |
<a name="mla_count_list_table_items" id="mla_count_list_table_items"></a><div class="element clickable method public mla_count_list_table_items" data-toggle="collapse" data-target=".mla_count_list_table_items .collapse">
|
250 |
<h2>Get the total number of attachment posts</h2>
|
251 |
<pre>mla_count_list_table_items(array $request, int $offset, int $count) : integer</pre>
|
@@ -557,7 +575,8 @@ where "key" becomes the key part of the array.</p></p>
|
|
557 |
<h3>Parameters</h3>
|
558 |
<div class="subelement argument">
|
559 |
<h4>$source</h4>
|
560 |
-
<code>string</code><p>Complete path and name of the template file, option name or the raw template</p
|
|
|
561 |
<div class="subelement argument">
|
562 |
<h4>$type</h4>
|
563 |
<code>string</code><p>Optional type of template source; 'path', 'file' (default), 'option', 'string'</p>
|
@@ -1857,7 +1876,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>
|
60 |
<li class="method public "><a href="#_hex_dump" title="_hex_dump :: Format printable version of binary data"><span class="description">Format printable version of binary data</span><pre>_hex_dump()</pre></a></li>
|
61 |
<li class="method public "><a href="#initialize" title="initialize :: Initialization function, similar to __construct()"><span class="description">Initialization function, similar to __construct()</span><pre>initialize()</pre></a></li>
|
62 |
<li class="method public "><a href="#mla_IPTC_EXIF_error_handler" title="mla_IPTC_EXIF_error_handler :: Intercept IPTC and EXIF parse errors"><span class="description">Intercept IPTC and EXIF parse errors</span><pre>mla_IPTC_EXIF_error_handler()</pre></a></li>
|
63 |
+
<li class="method public "><a href="#mla_attachment_array_fetch_references" title="mla_attachment_array_fetch_references :: Add Featured Image and inserted image/link references to an array of attachments"><span class="description">Add Featured Image and inserted image/link references to an array of attachments</span><pre>mla_attachment_array_fetch_references()</pre></a></li>
|
64 |
<li class="method public "><a href="#mla_count_list_table_items" title="mla_count_list_table_items :: Get the total number of attachment posts"><span class="description">Get the total number of attachment posts</span><pre>mla_count_list_table_items()</pre></a></li>
|
65 |
<li class="method public "><a href="#mla_exif_metadata_value" title="mla_exif_metadata_value :: Parse one EXIF metadata field"><span class="description">Parse one EXIF metadata field</span><pre>mla_exif_metadata_value()</pre></a></li>
|
66 |
<li class="method public "><a href="#mla_expand_field_level_parameters" title="mla_expand_field_level_parameters :: Analyze a template, expanding Field-level Markup Substitution Parameters"><span class="description">Analyze a template, expanding Field-level Markup Substitution Parameters</span><pre>mla_expand_field_level_parameters()</pre></a></li>
|
247 |
<code>boolean</code>true, to bypass PHP error handler</div>
|
248 |
</div></div>
|
249 |
</div>
|
250 |
+
<a name="mla_attachment_array_fetch_references" id="mla_attachment_array_fetch_references"></a><div class="element clickable method public mla_attachment_array_fetch_references" data-toggle="collapse" data-target=".mla_attachment_array_fetch_references .collapse">
|
251 |
+
<h2>Add Featured Image and inserted image/link references to an array of attachments</h2>
|
252 |
+
<pre>mla_attachment_array_fetch_references(array $attachments) : void</pre>
|
253 |
+
<div class="labels"></div>
|
254 |
+
<div class="row collapse"><div class="detail-description">
|
255 |
+
<p class="long_description"><p>Searches all post and page content to see if the attachmenta are used
|
256 |
+
as a Featured Image or inserted in the post as an image or link.</p></p>
|
257 |
+
<table class="table table-bordered"><tr>
|
258 |
+
<th>since</th>
|
259 |
+
<td>1.94</td>
|
260 |
+
</tr></table>
|
261 |
+
<h3>Parameters</h3>
|
262 |
+
<div class="subelement argument">
|
263 |
+
<h4>$attachments</h4>
|
264 |
+
<code>array</code><p>WP_Post objects, passed by reference</p></div>
|
265 |
+
</div></div>
|
266 |
+
</div>
|
267 |
<a name="mla_count_list_table_items" id="mla_count_list_table_items"></a><div class="element clickable method public mla_count_list_table_items" data-toggle="collapse" data-target=".mla_count_list_table_items .collapse">
|
268 |
<h2>Get the total number of attachment posts</h2>
|
269 |
<pre>mla_count_list_table_items(array $request, int $offset, int $count) : integer</pre>
|
575 |
<h3>Parameters</h3>
|
576 |
<div class="subelement argument">
|
577 |
<h4>$source</h4>
|
578 |
+
<code>string</code><p>Complete path and/or name of the template file, option name or the raw template</p>
|
579 |
+
</div>
|
580 |
<div class="subelement argument">
|
581 |
<h4>$type</h4>
|
582 |
<code>string</code><p>Optional type of template source; 'path', 'file' (default), 'option', 'string'</p>
|
1876 |
<div class="row"><footer class="span12">
|
1877 |
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>
|
1878 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
1879 |
+
generated on 2014-10-27T20:22:36-07:00.<br></footer></div>
|
1880 |
</div>
|
1881 |
</body>
|
1882 |
</html>
|
phpDocs/classes/MLAEdit.html
CHANGED
@@ -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>
|
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-10-27T20:22:36-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-10-27T20:22:36-07:00.<br></footer></div>
|
1292 |
</div>
|
1293 |
</body>
|
1294 |
</html>
|
phpDocs/classes/MLAModal.html
CHANGED
@@ -86,7 +86,6 @@ 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="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,20 +422,6 @@ and mla_print_media_templates_action</h2>
|
|
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,7 +515,7 @@ WP 4.0 Media Grid display.</p></p>
|
|
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-
|
534 |
</div>
|
535 |
</body>
|
536 |
</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="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 |
</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 |
<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-10-27T20:22:36-07:00.<br></footer></div>
|
519 |
</div>
|
520 |
</body>
|
521 |
</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-10-27T20:22:36-07:00.<br></footer></div>
|
176 |
</div>
|
177 |
</body>
|
178 |
</html>
|
phpDocs/classes/MLAOptions.html
CHANGED
@@ -128,6 +128,10 @@ settings are being updated or reset.</span><pre>mla_taxonomy_support()</pre></a>
|
|
128 |
<li class="constant "><a href="#MLA_FEATURED_IN_TUNING" title="MLA_FEATURED_IN_TUNING :: Provides a unique name for a database tuning option"><span class="description">Provides a unique name for a database tuning option</span><pre>MLA_FEATURED_IN_TUNING</pre></a></li>
|
129 |
<li class="constant "><a href="#MLA_GALLERY_IN_TUNING" title="MLA_GALLERY_IN_TUNING :: Provides a unique name for a database tuning option"><span class="description">Provides a unique name for a database tuning option</span><pre>MLA_GALLERY_IN_TUNING</pre></a></li>
|
130 |
<li class="constant "><a href="#MLA_INSERTED_IN_TUNING" title="MLA_INSERTED_IN_TUNING :: Provides a unique name for a database tuning option"><span class="description">Provides a unique name for a database tuning option</span><pre>MLA_INSERTED_IN_TUNING</pre></a></li>
|
|
|
|
|
|
|
|
|
131 |
<li class="constant "><a href="#MLA_MEDIA_MODAL_DETAILS_CATEGORY_METABOX" title='MLA_MEDIA_MODAL_DETAILS_CATEGORY_METABOX :: Provides a unique name for the Media Manager Attachment Details searchable taxonomy option
|
132 |
This option is for hierarchical taxonomies, e.g., "Att.'><span class="description">Provides a unique name for the Media Manager Attachment Details searchable taxonomy option
|
133 |
This option is for hierarchical taxonomies, e.g., "Att.</span><pre>MLA_MEDIA_MODAL_DETAILS_CATEGORY_METABOX</pre></a></li>
|
@@ -1401,6 +1405,19 @@ added to the Media Library.</p></p>
|
|
1401 |
<div class="labels"></div>
|
1402 |
<div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
|
1403 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1404 |
<a name="MLA_MEDIA_MODAL_DETAILS_CATEGORY_METABOX" id="MLA_MEDIA_MODAL_DETAILS_CATEGORY_METABOX"> </a><div class="element clickable constant MLA_MEDIA_MODAL_DETAILS_CATEGORY_METABOX" data-toggle="collapse" data-target=".MLA_MEDIA_MODAL_DETAILS_CATEGORY_METABOX .collapse">
|
1405 |
<h2>Provides a unique name for the Media Manager Attachment Details searchable taxonomy option
|
1406 |
This option is for hierarchical taxonomies, e.g., "Att.</h2>
|
@@ -1579,7 +1596,7 @@ also controls the ATTACHMENT DETAILS enhancements</h2>
|
|
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-
|
1583 |
</div>
|
1584 |
</body>
|
1585 |
</html>
|
128 |
<li class="constant "><a href="#MLA_FEATURED_IN_TUNING" title="MLA_FEATURED_IN_TUNING :: Provides a unique name for a database tuning option"><span class="description">Provides a unique name for a database tuning option</span><pre>MLA_FEATURED_IN_TUNING</pre></a></li>
|
129 |
<li class="constant "><a href="#MLA_GALLERY_IN_TUNING" title="MLA_GALLERY_IN_TUNING :: Provides a unique name for a database tuning option"><span class="description">Provides a unique name for a database tuning option</span><pre>MLA_GALLERY_IN_TUNING</pre></a></li>
|
130 |
<li class="constant "><a href="#MLA_INSERTED_IN_TUNING" title="MLA_INSERTED_IN_TUNING :: Provides a unique name for a database tuning option"><span class="description">Provides a unique name for a database tuning option</span><pre>MLA_INSERTED_IN_TUNING</pre></a></li>
|
131 |
+
<li class="constant "><a href="#MLA_MEDIA_GRID_TOOLBAR" title="MLA_MEDIA_GRID_TOOLBAR :: Provides a unique name for the Media Grid toolbar option, which
|
132 |
+
also controls the ATTACHMENT DETAILS enhancements"><span class="description">Provides a unique name for the Media Grid toolbar option, which
|
133 |
+
also controls the ATTACHMENT DETAILS enhancements</span><pre>MLA_MEDIA_GRID_TOOLBAR</pre></a></li>
|
134 |
+
<li class="constant "><a href="#MLA_MEDIA_MODAL_DETAILS_AUTOFILL" title="MLA_MEDIA_MODAL_DETAILS_AUTOFILL :: Provides a unique name for the Media Manager Attachment Details auto-fill option"><span class="description">Provides a unique name for the Media Manager Attachment Details auto-fill option</span><pre>MLA_MEDIA_MODAL_DETAILS_AUTOFILL</pre></a></li>
|
135 |
<li class="constant "><a href="#MLA_MEDIA_MODAL_DETAILS_CATEGORY_METABOX" title='MLA_MEDIA_MODAL_DETAILS_CATEGORY_METABOX :: Provides a unique name for the Media Manager Attachment Details searchable taxonomy option
|
136 |
This option is for hierarchical taxonomies, e.g., "Att.'><span class="description">Provides a unique name for the Media Manager Attachment Details searchable taxonomy option
|
137 |
This option is for hierarchical taxonomies, e.g., "Att.</span><pre>MLA_MEDIA_MODAL_DETAILS_CATEGORY_METABOX</pre></a></li>
|
1405 |
<div class="labels"></div>
|
1406 |
<div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
|
1407 |
</div>
|
1408 |
+
<a name="MLA_MEDIA_GRID_TOOLBAR" id="MLA_MEDIA_GRID_TOOLBAR"> </a><div class="element clickable constant MLA_MEDIA_GRID_TOOLBAR" data-toggle="collapse" data-target=".MLA_MEDIA_GRID_TOOLBAR .collapse">
|
1409 |
+
<h2>Provides a unique name for the Media Grid toolbar option, which
|
1410 |
+
also controls the ATTACHMENT DETAILS enhancements</h2>
|
1411 |
+
<pre>MLA_MEDIA_GRID_TOOLBAR </pre>
|
1412 |
+
<div class="labels"></div>
|
1413 |
+
<div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
|
1414 |
+
</div>
|
1415 |
+
<a name="MLA_MEDIA_MODAL_DETAILS_AUTOFILL" id="MLA_MEDIA_MODAL_DETAILS_AUTOFILL"> </a><div class="element clickable constant MLA_MEDIA_MODAL_DETAILS_AUTOFILL" data-toggle="collapse" data-target=".MLA_MEDIA_MODAL_DETAILS_AUTOFILL .collapse">
|
1416 |
+
<h2>Provides a unique name for the Media Manager Attachment Details auto-fill option</h2>
|
1417 |
+
<pre>MLA_MEDIA_MODAL_DETAILS_AUTOFILL </pre>
|
1418 |
+
<div class="labels"></div>
|
1419 |
+
<div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
|
1420 |
+
</div>
|
1421 |
<a name="MLA_MEDIA_MODAL_DETAILS_CATEGORY_METABOX" id="MLA_MEDIA_MODAL_DETAILS_CATEGORY_METABOX"> </a><div class="element clickable constant MLA_MEDIA_MODAL_DETAILS_CATEGORY_METABOX" data-toggle="collapse" data-target=".MLA_MEDIA_MODAL_DETAILS_CATEGORY_METABOX .collapse">
|
1422 |
<h2>Provides a unique name for the Media Manager Attachment Details searchable taxonomy option
|
1423 |
This option is for hierarchical taxonomies, e.g., "Att.</h2>
|
1596 |
<div class="row"><footer class="span12">
|
1597 |
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>
|
1598 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
1599 |
+
generated on 2014-10-27T20:22:36-07:00.<br></footer></div>
|
1600 |
</div>
|
1601 |
</body>
|
1602 |
</html>
|
phpDocs/classes/MLASettings.html
CHANGED
@@ -1199,7 +1199,7 @@ because Localization calls cannot be placed in the "public static" array definit
|
|
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-
|
1203 |
</div>
|
1204 |
</body>
|
1205 |
</html>
|
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-10-27T20:22:36-07:00.<br></footer></div>
|
1203 |
</div>
|
1204 |
</body>
|
1205 |
</html>
|
phpDocs/classes/MLAShortcodes.html
CHANGED
@@ -62,6 +62,7 @@
|
|
62 |
<li class="method public "><a href="#mla_gallery_shortcode" title="mla_gallery_shortcode :: The MLA Gallery shortcode."><span class="description">The MLA Gallery shortcode.</span><pre>mla_gallery_shortcode()</pre></a></li>
|
63 |
<li class="method public "><a href="#mla_get_shortcode_attachments" title="mla_get_shortcode_attachments :: Parses shortcode parameters and returns the gallery objects"><span class="description">Parses shortcode parameters and returns the gallery objects</span><pre>mla_get_shortcode_attachments()</pre></a></li>
|
64 |
<li class="method public "><a href="#mla_get_terms" title="mla_get_terms :: Retrieve the terms in one or more taxonomies."><span class="description">Retrieve the terms in one or more taxonomies.</span><pre>mla_get_terms()</pre></a></li>
|
|
|
65 |
<li class="method public "><a href="#mla_shortcode_query_posts_clauses_filter" title="mla_shortcode_query_posts_clauses_filter :: Filters all clauses for shortcode queries, pre caching plugins"><span class="description">Filters all clauses for shortcode queries, pre caching plugins</span><pre>mla_shortcode_query_posts_clauses_filter()</pre></a></li>
|
66 |
<li class="method public "><a href="#mla_shortcode_query_posts_clauses_request_filter" title="mla_shortcode_query_posts_clauses_request_filter :: Filters all clauses for shortcode queries, post caching plugins"><span class="description">Filters all clauses for shortcode queries, post caching plugins</span><pre>mla_shortcode_query_posts_clauses_request_filter()</pre></a></li>
|
67 |
<li class="method public "><a href="#mla_shortcode_query_posts_join_filter" title="mla_shortcode_query_posts_join_filter :: Filters the JOIN clause for shortcode queries"><span class="description">Filters the JOIN clause for shortcode queries</span><pre>mla_shortcode_query_posts_join_filter()</pre></a></li>
|
@@ -193,7 +194,7 @@ Enhancements include many additional selection parameters and full taxonomy supp
|
|
193 |
<pre>mla_get_terms(array $attr) : array</pre>
|
194 |
<div class="labels"></div>
|
195 |
<div class="row collapse"><div class="detail-description">
|
196 |
-
<p class="long_description"><p>Alternative to WordPress get_terms()
|
197 |
an accurate count of attachments associated with each term.</p>
|
198 |
|
199 |
<p>taxonomy - string containing one or more (comma-delimited) taxonomy names
|
@@ -201,9 +202,11 @@ or an array of taxonomy names. Default 'post_tag'.</p>
|
|
201 |
|
202 |
<p>post_mime_type - MIME type(s) of the items to include in the term-specific counts. Default 'all'.</p>
|
203 |
|
204 |
-
<p>post_type - The post type(s) of the items to include in the term-specific counts.
|
|
|
205 |
|
206 |
-
<p>post_status - The post status value(s) of the items to include in the term-specific counts.
|
|
|
207 |
|
208 |
<p>ids - A comma-separated list of attachment ID values for an item-specific cloud.</p>
|
209 |
|
@@ -220,7 +223,7 @@ from the return array. If 'include' is non-empty, 'exclude' is ignored.</p>
|
|
220 |
<p>no_count - 'true', 'false' (default) to suppress term-specific attachment-counting process.</p>
|
221 |
|
222 |
<p>number - maximum number of term objects to return. Terms are ordered by count,
|
223 |
-
descending and then by term_id before this value is applied. Default
|
224 |
|
225 |
<p>orderby - 'count', 'id', 'name' (default), 'none', 'random', 'slug'</p>
|
226 |
|
@@ -230,7 +233,7 @@ descending and then by term_id before this value is applied. Default 45.</p>
|
|
230 |
|
231 |
<p>preserve_case - 'true', 'false' (default) to make orderby case-sensitive.</p>
|
232 |
|
233 |
-
<p>pad_counts - 'true', 'false' (default) to
|
234 |
|
235 |
<p>limit - final number of term objects to return, for pagination. Default 0.</p>
|
236 |
|
@@ -248,6 +251,26 @@ descending and then by term_id before this value is applied. Default 45.</p>
|
|
248 |
<code>array</code>array of term objects, empty if none found</div>
|
249 |
</div></div>
|
250 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
251 |
<a name="mla_shortcode_query_posts_clauses_filter" id="mla_shortcode_query_posts_clauses_filter"></a><div class="element clickable method public mla_shortcode_query_posts_clauses_filter" data-toggle="collapse" data-target=".mla_shortcode_query_posts_clauses_filter .collapse">
|
252 |
<h2>Filters all clauses for shortcode queries, pre caching plugins</h2>
|
253 |
<pre>mla_shortcode_query_posts_clauses_filter(array $pieces) : array</pre>
|
@@ -547,7 +570,7 @@ relevant children are already in the $terms argument.</p></p>
|
|
547 |
</div>
|
548 |
<a name="_validate_sql_orderby" id="_validate_sql_orderby"></a><div class="element clickable method private _validate_sql_orderby" data-toggle="collapse" data-target="._validate_sql_orderby .collapse">
|
549 |
<h2>Translates query parameters to a valid SQL order by clause.</h2>
|
550 |
-
<pre>_validate_sql_orderby(array $query_parameters) : string | bool</pre>
|
551 |
<div class="labels"></div>
|
552 |
<div class="row collapse"><div class="detail-description">
|
553 |
<p class="long_description"><p>Accepts one or more valid columns, with or without ASC/DESC.
|
@@ -559,7 +582,20 @@ Enhanced version of /wp-includes/formatting.php function sanitize_sql_orderby().
|
|
559 |
<h3>Parameters</h3>
|
560 |
<div class="subelement argument">
|
561 |
<h4>$query_parameters</h4>
|
562 |
-
<code>array</code><p>Validated query parameters
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
563 |
<h3>Returns</h3>
|
564 |
<div class="subelement response">
|
565 |
<code>string</code><code>bool</code>Returns the orderby clause if present, false otherwise.</div>
|
@@ -651,7 +687,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>
|
62 |
<li class="method public "><a href="#mla_gallery_shortcode" title="mla_gallery_shortcode :: The MLA Gallery shortcode."><span class="description">The MLA Gallery shortcode.</span><pre>mla_gallery_shortcode()</pre></a></li>
|
63 |
<li class="method public "><a href="#mla_get_shortcode_attachments" title="mla_get_shortcode_attachments :: Parses shortcode parameters and returns the gallery objects"><span class="description">Parses shortcode parameters and returns the gallery objects</span><pre>mla_get_shortcode_attachments()</pre></a></li>
|
64 |
<li class="method public "><a href="#mla_get_terms" title="mla_get_terms :: Retrieve the terms in one or more taxonomies."><span class="description">Retrieve the terms in one or more taxonomies.</span><pre>mla_get_terms()</pre></a></li>
|
65 |
+
<li class="method public "><a href="#mla_no_texturize_shortcodes_filter" title="mla_no_texturize_shortcodes_filter :: Prevents wptexturizing of the [mla_gallery] shortcode, avoiding a bug in WP 4.0."><span class="description">Prevents wptexturizing of the [mla_gallery] shortcode, avoiding a bug in WP 4.0.</span><pre>mla_no_texturize_shortcodes_filter()</pre></a></li>
|
66 |
<li class="method public "><a href="#mla_shortcode_query_posts_clauses_filter" title="mla_shortcode_query_posts_clauses_filter :: Filters all clauses for shortcode queries, pre caching plugins"><span class="description">Filters all clauses for shortcode queries, pre caching plugins</span><pre>mla_shortcode_query_posts_clauses_filter()</pre></a></li>
|
67 |
<li class="method public "><a href="#mla_shortcode_query_posts_clauses_request_filter" title="mla_shortcode_query_posts_clauses_request_filter :: Filters all clauses for shortcode queries, post caching plugins"><span class="description">Filters all clauses for shortcode queries, post caching plugins</span><pre>mla_shortcode_query_posts_clauses_request_filter()</pre></a></li>
|
68 |
<li class="method public "><a href="#mla_shortcode_query_posts_join_filter" title="mla_shortcode_query_posts_join_filter :: Filters the JOIN clause for shortcode queries"><span class="description">Filters the JOIN clause for shortcode queries</span><pre>mla_shortcode_query_posts_join_filter()</pre></a></li>
|
194 |
<pre>mla_get_terms(array $attr) : array</pre>
|
195 |
<div class="labels"></div>
|
196 |
<div class="row collapse"><div class="detail-description">
|
197 |
+
<p class="long_description"><p>Alternative to WordPress /wp-includes/taxonomy.php function get_terms() that provides
|
198 |
an accurate count of attachments associated with each term.</p>
|
199 |
|
200 |
<p>taxonomy - string containing one or more (comma-delimited) taxonomy names
|
202 |
|
203 |
<p>post_mime_type - MIME type(s) of the items to include in the term-specific counts. Default 'all'.</p>
|
204 |
|
205 |
+
<p>post_type - The post type(s) of the items to include in the term-specific counts.
|
206 |
+
The default is "attachment".</p>
|
207 |
|
208 |
+
<p>post_status - The post status value(s) of the items to include in the term-specific counts.
|
209 |
+
The default is "inherit".</p>
|
210 |
|
211 |
<p>ids - A comma-separated list of attachment ID values for an item-specific cloud.</p>
|
212 |
|
223 |
<p>no_count - 'true', 'false' (default) to suppress term-specific attachment-counting process.</p>
|
224 |
|
225 |
<p>number - maximum number of term objects to return. Terms are ordered by count,
|
226 |
+
descending and then by term_id before this value is applied. Default 0.</p>
|
227 |
|
228 |
<p>orderby - 'count', 'id', 'name' (default), 'none', 'random', 'slug'</p>
|
229 |
|
233 |
|
234 |
<p>preserve_case - 'true', 'false' (default) to make orderby case-sensitive.</p>
|
235 |
|
236 |
+
<p>pad_counts - 'true', 'false' (default) to to include the count of all children in their parents' count.</p>
|
237 |
|
238 |
<p>limit - final number of term objects to return, for pagination. Default 0.</p>
|
239 |
|
251 |
<code>array</code>array of term objects, empty if none found</div>
|
252 |
</div></div>
|
253 |
</div>
|
254 |
+
<a name="mla_no_texturize_shortcodes_filter" id="mla_no_texturize_shortcodes_filter"></a><div class="element clickable method public mla_no_texturize_shortcodes_filter" data-toggle="collapse" data-target=".mla_no_texturize_shortcodes_filter .collapse">
|
255 |
+
<h2>Prevents wptexturizing of the [mla_gallery] shortcode, avoiding a bug in WP 4.0.</h2>
|
256 |
+
<pre>mla_no_texturize_shortcodes_filter(array $no_texturize_shortcodes) : array</pre>
|
257 |
+
<div class="labels"></div>
|
258 |
+
<div class="row collapse"><div class="detail-description">
|
259 |
+
<p class="long_description"><p>Defined as public because it's a filter.</p></p>
|
260 |
+
<table class="table table-bordered"><tr>
|
261 |
+
<th>since</th>
|
262 |
+
<td>1.94</td>
|
263 |
+
</tr></table>
|
264 |
+
<h3>Parameters</h3>
|
265 |
+
<div class="subelement argument">
|
266 |
+
<h4>$no_texturize_shortcodes</h4>
|
267 |
+
<code>array</code><p>list of "do not texturize" shortcodes</p>
|
268 |
+
</div>
|
269 |
+
<h3>Returns</h3>
|
270 |
+
<div class="subelement response">
|
271 |
+
<code>array</code>updated list of "do not texturize" shortcodes</div>
|
272 |
+
</div></div>
|
273 |
+
</div>
|
274 |
<a name="mla_shortcode_query_posts_clauses_filter" id="mla_shortcode_query_posts_clauses_filter"></a><div class="element clickable method public mla_shortcode_query_posts_clauses_filter" data-toggle="collapse" data-target=".mla_shortcode_query_posts_clauses_filter .collapse">
|
275 |
<h2>Filters all clauses for shortcode queries, pre caching plugins</h2>
|
276 |
<pre>mla_shortcode_query_posts_clauses_filter(array $pieces) : array</pre>
|
570 |
</div>
|
571 |
<a name="_validate_sql_orderby" id="_validate_sql_orderby"></a><div class="element clickable method private _validate_sql_orderby" data-toggle="collapse" data-target="._validate_sql_orderby .collapse">
|
572 |
<h2>Translates query parameters to a valid SQL order by clause.</h2>
|
573 |
+
<pre>_validate_sql_orderby(array $query_parameters, string $table_prefix, array $allowed_keys, array $binary_keys) : string | bool</pre>
|
574 |
<div class="labels"></div>
|
575 |
<div class="row collapse"><div class="detail-description">
|
576 |
<p class="long_description"><p>Accepts one or more valid columns, with or without ASC/DESC.
|
582 |
<h3>Parameters</h3>
|
583 |
<div class="subelement argument">
|
584 |
<h4>$query_parameters</h4>
|
585 |
+
<code>array</code><p>Validated query parameters; 'order', 'orderby', 'meta_key', 'post__in'.</p>
|
586 |
+
</div>
|
587 |
+
<div class="subelement argument">
|
588 |
+
<h4>$table_prefix</h4>
|
589 |
+
<code>string</code><p>Optional. Database table prefix; can be empty. Default taken from $wpdb->posts.</p>
|
590 |
+
</div>
|
591 |
+
<div class="subelement argument">
|
592 |
+
<h4>$allowed_keys</h4>
|
593 |
+
<code>array</code><p>Optional. Field names (keys) and database column equivalents (values). Defaults from [mla_gallery].</p>
|
594 |
+
</div>
|
595 |
+
<div class="subelement argument">
|
596 |
+
<h4>$binary_keys</h4>
|
597 |
+
<code>array</code><p>Optional. Field names (values) that require a BINARY prefix to preserve case order. Default array()</p>
|
598 |
+
</div>
|
599 |
<h3>Returns</h3>
|
600 |
<div class="subelement response">
|
601 |
<code>string</code><code>bool</code>Returns the orderby clause if present, false otherwise.</div>
|
687 |
<div class="row"><footer class="span12">
|
688 |
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>
|
689 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
690 |
+
generated on 2014-10-27T20:22:36-07:00.<br></footer></div>
|
691 |
</div>
|
692 |
</body>
|
693 |
</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-10-27T20:22:36-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-10-27T20:22:36-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-10-27T20:22:36-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-10-27T20:22:36-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-10-27T20:22:36-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-10-27T20:22:36-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-10-27T20:22:36-07:00.<br></footer></div>
|
637 |
</div>
|
638 |
</body>
|
639 |
</html>
|
phpDocs/classes/MNA_Pad_Counts_Walker.html
ADDED
@@ -0,0 +1,145 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html><html xmlns:date="http://exslt.org/dates-and-times" lang="en">
|
2 |
+
<head>
|
3 |
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
4 |
+
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
|
5 |
+
<meta charset="utf-8">
|
6 |
+
<title>Media Library Assistant » \MNA_Pad_Counts_Walker</title>
|
7 |
+
<meta name="author" content="Mike van Riel">
|
8 |
+
<meta name="description" content="">
|
9 |
+
<link href="../css/template.css" rel="stylesheet" media="all">
|
10 |
+
<script src="../js/jquery-1.7.1.min.js" type="text/javascript"></script><script src="../js/jquery-ui-1.8.2.custom.min.js" type="text/javascript"></script><script src="../js/jquery.mousewheel.min.js" type="text/javascript"></script><script src="../js/bootstrap.js" type="text/javascript"></script><script src="../js/template.js" type="text/javascript"></script><script src="../js/prettify/prettify.min.js" type="text/javascript"></script><link rel="shortcut icon" href="../img/favicon.ico">
|
11 |
+
<link rel="apple-touch-icon" href="../img/apple-touch-icon.png">
|
12 |
+
<link rel="apple-touch-icon" sizes="72x72" href="../img/apple-touch-icon-72x72.png">
|
13 |
+
<link rel="apple-touch-icon" sizes="114x114" href="../img/apple-touch-icon-114x114.png">
|
14 |
+
</head>
|
15 |
+
<body>
|
16 |
+
<div class="navbar navbar-fixed-top">
|
17 |
+
<div class="navbar-inner"><div class="container">
|
18 |
+
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></a><a class="brand" href="../index.html">Media Library Assistant</a><div class="nav-collapse"><ul class="nav">
|
19 |
+
<li class="dropdown">
|
20 |
+
<a href="#api" class="dropdown-toggle" data-toggle="dropdown">
|
21 |
+
API Documentation <b class="caret"></b></a><ul class="dropdown-menu">
|
22 |
+
<li><a>Packages</a></li>
|
23 |
+
<li><a href="../packages/Media%20Library%20Assistant.html"><i class="icon-folder-open"></i> Media Library Assistant</a></li>
|
24 |
+
</ul>
|
25 |
+
</li>
|
26 |
+
<li class="dropdown" id="charts-menu">
|
27 |
+
<a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
|
28 |
+
Charts <b class="caret"></b></a><ul class="dropdown-menu"><li><a href="../graph_class.html"><i class="icon-list-alt"></i> Class hierarchy diagram</a></li></ul>
|
29 |
+
</li>
|
30 |
+
<li class="dropdown" id="reports-menu">
|
31 |
+
<a href="#reports" class="dropdown-toggle" data-toggle="dropdown">
|
32 |
+
Reports <b class="caret"></b></a><ul class="dropdown-menu">
|
33 |
+
<li><a href="../errors.html"><i class="icon-remove-sign"></i> Errors
|
34 |
+
<span class="label label-info">0</span></a></li>
|
35 |
+
<li><a href="../markers.html"><i class="icon-map-marker"></i> Markers
|
36 |
+
<ul><li>todo
|
37 |
+
<span class="label label-info">1</span>
|
38 |
+
</li></ul></a></li>
|
39 |
+
<li><a href="../deprecated.html"><i class="icon-stop"></i> Deprecated elements
|
40 |
+
<span class="label label-info">0</span></a></li>
|
41 |
+
</ul>
|
42 |
+
</li>
|
43 |
+
</ul></div>
|
44 |
+
</div></div>
|
45 |
+
<div class="go_to_top"><a href="#___" style="color: inherit">Back to top <i class="icon-upload icon-white"></i></a></div>
|
46 |
+
</div>
|
47 |
+
<div id="___" class="container">
|
48 |
+
<noscript><div class="alert alert-warning">
|
49 |
+
Javascript is disabled; several features are only available
|
50 |
+
if Javascript is enabled.
|
51 |
+
</div></noscript>
|
52 |
+
<div class="row">
|
53 |
+
<div class="span4">
|
54 |
+
<span class="btn-group visibility" data-toggle="buttons-checkbox"><button class="btn public active" title="Show public elements">Public</button><button class="btn protected" title="Show protected elements">Protected</button><button class="btn private" title="Show private elements">Private</button><button class="btn inherited active" title="Show inherited elements">Inherited</button></span><div class="btn-group view pull-right" data-toggle="buttons-radio">
|
55 |
+
<button class="btn details" title="Show descriptions and method names"><i class="icon-list"></i></button><button class="btn simple" title="Show only method names"><i class="icon-align-justify"></i></button>
|
56 |
+
</div>
|
57 |
+
<ul class="side-nav nav nav-list">
|
58 |
+
<li class="nav-header">
|
59 |
+
<i class="icon-custom icon-method"></i> Methods</li>
|
60 |
+
<li class="method public "><a href="#__construct" title="__construct :: Constructor - set the MLA Terms."><span class="description">Constructor - set the MLA Terms.</span><pre>__construct()</pre></a></li>
|
61 |
+
<li class="method public "><a href="#start_el" title="start_el :: Start the element output."><span class="description">Start the element output.</span><pre>start_el()</pre></a></li>
|
62 |
+
<li class="nav-header">
|
63 |
+
<i class="icon-custom icon-property"></i> Properties</li>
|
64 |
+
<li class="nav-header private">» Private</li>
|
65 |
+
<li class="property private "><a href="#%24mla_terms" title="$mla_terms :: MLA Terms"><span class="description">MLA Terms</span><pre>$mla_terms</pre></a></li>
|
66 |
+
</ul>
|
67 |
+
</div>
|
68 |
+
<div class="span8">
|
69 |
+
<a name="%5CMNA_Pad_Counts_Walker" id="\MNA_Pad_Counts_Walker"></a><ul class="breadcrumb">
|
70 |
+
<li>
|
71 |
+
<a href="../index.html"><i class="icon-custom icon-class"></i></a><span class="divider">\</span>
|
72 |
+
</li>
|
73 |
+
<li><a href="../namespaces/global.html">global</a></li>
|
74 |
+
<li class="active">
|
75 |
+
<span class="divider">\</span><a href="../classes/MNA_Pad_Counts_Walker.html">MNA_Pad_Counts_Walker</a>
|
76 |
+
</li>
|
77 |
+
</ul>
|
78 |
+
<div href="../classes/MNA_Pad_Counts_Walker.html" class="element class">
|
79 |
+
<p class="short_description">Class MNA_Pad_Counts_Walker adds accurate, padded attachment counts to taxonomy terms.</p>
|
80 |
+
<div class="details">
|
81 |
+
<p class="long_description"><p>Class Walker is defined in /wp-includes/class-wp-walker.php
|
82 |
+
Class Walker_Category is defined in /wp-includes/category-template.php</p></p>
|
83 |
+
<h3>
|
84 |
+
<i class="icon-custom icon-method"></i> Methods</h3>
|
85 |
+
<a name="__construct" id="__construct"></a><div class="element clickable method public __construct" data-toggle="collapse" data-target=".__construct .collapse">
|
86 |
+
<h2>Constructor - set the MLA Terms.</h2>
|
87 |
+
<pre>__construct(string $taxonomy) </pre>
|
88 |
+
<div class="labels"></div>
|
89 |
+
<div class="row collapse"><div class="detail-description">
|
90 |
+
<p class="long_description"></p>
|
91 |
+
<h3>Parameters</h3>
|
92 |
+
<div class="subelement argument">
|
93 |
+
<h4>$taxonomy</h4>
|
94 |
+
<code>string</code><p>Taxonomy name/slug.</p>
|
95 |
+
</div>
|
96 |
+
</div></div>
|
97 |
+
</div>
|
98 |
+
<a name="start_el" id="start_el"></a><div class="element clickable method public start_el" data-toggle="collapse" data-target=".start_el .collapse">
|
99 |
+
<h2>Start the element output.</h2>
|
100 |
+
<pre>start_el(string $output, object $taxonomy_object, int $depth, array $args, int $id) </pre>
|
101 |
+
<div class="labels"></div>
|
102 |
+
<div class="row collapse"><div class="detail-description">
|
103 |
+
<p class="long_description"></p>
|
104 |
+
<table class="table table-bordered"><tr>
|
105 |
+
<th>see</th>
|
106 |
+
<td>\global\Walker::start_el()</td>
|
107 |
+
</tr></table>
|
108 |
+
<h3>Parameters</h3>
|
109 |
+
<div class="subelement argument">
|
110 |
+
<h4>$output</h4>
|
111 |
+
<code>string</code><p>Passed by reference. Used to append additional content.</p></div>
|
112 |
+
<div class="subelement argument">
|
113 |
+
<h4>$taxonomy_object</h4>
|
114 |
+
<code>object</code><p>Taxonomy data object.</p></div>
|
115 |
+
<div class="subelement argument">
|
116 |
+
<h4>$depth</h4>
|
117 |
+
<code>int</code><p>Depth of category in reference to parents. Default 0.</p></div>
|
118 |
+
<div class="subelement argument">
|
119 |
+
<h4>$args</h4>
|
120 |
+
<code>array</code><p>An array of arguments. @see wp_list_categories()</p>
|
121 |
+
</div>
|
122 |
+
<div class="subelement argument">
|
123 |
+
<h4>$id</h4>
|
124 |
+
<code>int</code><p>ID of the current category.</p></div>
|
125 |
+
</div></div>
|
126 |
+
</div>
|
127 |
+
<h3>
|
128 |
+
<i class="icon-custom icon-property"></i> Properties</h3>
|
129 |
+
<a name="%24mla_terms" id="$mla_terms"> </a><div class="element clickable property private $mla_terms" data-toggle="collapse" data-target=".$mla_terms .collapse">
|
130 |
+
<h2>MLA Terms</h2>
|
131 |
+
<pre>$mla_terms : array</pre>
|
132 |
+
<div class="labels"></div>
|
133 |
+
<div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
|
134 |
+
</div>
|
135 |
+
</div>
|
136 |
+
</div>
|
137 |
+
</div>
|
138 |
+
</div>
|
139 |
+
<div class="row"><footer class="span12">
|
140 |
+
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
141 |
+
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
142 |
+
generated on 2014-10-27T20:22:36-07:00.<br></footer></div>
|
143 |
+
</div>
|
144 |
+
</body>
|
145 |
+
</html>
|
phpDocs/deprecated.html
CHANGED
@@ -67,7 +67,7 @@
|
|
67 |
<div class="row"><footer class="span12">
|
68 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
69 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
70 |
-
generated on 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-10-27T20:22:36-07:00.<br></footer></div>
|
71 |
</div>
|
72 |
</body>
|
73 |
</html>
|
phpDocs/errors.html
CHANGED
@@ -100,12 +100,15 @@
|
|
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-
|
109 |
</div>
|
110 |
</body>
|
111 |
</html>
|
100 |
<div class="package-contents"></div>
|
101 |
<div class="package-contents"></div>
|
102 |
<div class="package-contents"></div>
|
103 |
+
<div class="package-contents"></div>
|
104 |
+
<div class="package-contents"></div>
|
105 |
+
<div class="package-contents"></div>
|
106 |
</div>
|
107 |
</div>
|
108 |
<div class="row"><footer class="span12">
|
109 |
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>
|
110 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
111 |
+
generated on 2014-10-27T20:22:36-07:00.<br></footer></div>
|
112 |
</div>
|
113 |
</body>
|
114 |
</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-10-27T20:22:36-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-10-27T20:22:36-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>3819</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-10-27T20:22:36-07:00.<br></footer></div>
|
93 |
</div>
|
94 |
</body>
|
95 |
</html>
|
phpDocs/namespaces/global.html
CHANGED
@@ -387,6 +387,13 @@ searchable database of exension/type associations for the "Uploads" admin settin
|
|
387 |
<div class="details collapse"></div>
|
388 |
<a href="../classes/MLA_View_List_Table.html" class="more">« More »</a>
|
389 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
390 |
<h3>
|
391 |
<i class="icon-custom icon-constant"></i> Constants</h3>
|
392 |
<a name="MLA_BACKUP_DIR" id="MLA_BACKUP_DIR"> </a><div class="element clickable constant MLA_BACKUP_DIR" data-toggle="collapse" data-target=".MLA_BACKUP_DIR .collapse">
|
@@ -425,7 +432,7 @@ searchable database of exension/type associations for the "Uploads" admin settin
|
|
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-
|
429 |
</div>
|
430 |
</body>
|
431 |
</html>
|
387 |
<div class="details collapse"></div>
|
388 |
<a href="../classes/MLA_View_List_Table.html" class="more">« More »</a>
|
389 |
</div>
|
390 |
+
<a name="MNA_Pad_Counts_Walker" id="MNA_Pad_Counts_Walker"></a><div class="element ajax clickable class" href="../classes/MNA_Pad_Counts_Walker.html">
|
391 |
+
<h1>MNA_Pad_Counts_Walker<a href="../classes/MNA_Pad_Counts_Walker.html">¶</a>
|
392 |
+
</h1>
|
393 |
+
<p class="short_description">Class MNA_Pad_Counts_Walker adds accurate, padded attachment counts to taxonomy terms.</p>
|
394 |
+
<div class="details collapse"></div>
|
395 |
+
<a href="../classes/MNA_Pad_Counts_Walker.html" class="more">« More »</a>
|
396 |
+
</div>
|
397 |
<h3>
|
398 |
<i class="icon-custom icon-constant"></i> Constants</h3>
|
399 |
<a name="MLA_BACKUP_DIR" id="MLA_BACKUP_DIR"> </a><div class="element clickable constant MLA_BACKUP_DIR" data-toggle="collapse" data-target=".MLA_BACKUP_DIR .collapse">
|
432 |
<div class="row"><footer class="span12">
|
433 |
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>
|
434 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
435 |
+
generated on 2014-10-27T20:22:36-07:00.<br></footer></div>
|
436 |
</div>
|
437 |
</body>
|
438 |
</html>
|
phpDocs/packages/Media Library Assistant.MLA.Child.Theme.html
CHANGED
@@ -268,7 +268,7 @@ display an "accordian-style" list.</p></p>
|
|
268 |
<div class="row"><footer class="span12">
|
269 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
270 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
271 |
-
generated on 2014-
|
272 |
</div>
|
273 |
</body>
|
274 |
</html>
|
268 |
<div class="row"><footer class="span12">
|
269 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
270 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
271 |
+
generated on 2014-10-27T20:22:36-07:00.<br></footer></div>
|
272 |
</div>
|
273 |
</body>
|
274 |
</html>
|
phpDocs/packages/Media Library Assistant.MLA.Child.html
CHANGED
@@ -265,7 +265,7 @@ display an "accordian-style" list.</p></p>
|
|
265 |
<div class="row"><footer class="span12">
|
266 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
267 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
268 |
-
generated on 2014-
|
269 |
</div>
|
270 |
</body>
|
271 |
</html>
|
265 |
<div class="row"><footer class="span12">
|
266 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
267 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
268 |
+
generated on 2014-10-27T20:22:36-07:00.<br></footer></div>
|
269 |
</div>
|
270 |
</body>
|
271 |
</html>
|
phpDocs/packages/Media Library Assistant.MLA.html
CHANGED
@@ -276,7 +276,7 @@ display an "accordian-style" list.</p></p>
|
|
276 |
<div class="row"><footer class="span12">
|
277 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
278 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
279 |
-
generated on 2014-
|
280 |
</div>
|
281 |
</body>
|
282 |
</html>
|
276 |
<div class="row"><footer class="span12">
|
277 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
278 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
279 |
+
generated on 2014-10-27T20:22:36-07:00.<br></footer></div>
|
280 |
</div>
|
281 |
</body>
|
282 |
</html>
|
phpDocs/packages/Media Library Assistant.html
CHANGED
@@ -72,6 +72,7 @@
|
|
72 |
<li class="function "><a href="#mla_plugin_loader_reporting_action" title="mla_plugin_loader_reporting_action :: Displays version conflict error messages at the top of the Dashboard"><span class="description">Displays version conflict error messages at the top of the Dashboard</span><pre>mla_plugin_loader_reporting_action</pre></a></li>
|
73 |
<li class="nav-header">
|
74 |
<i class="icon-custom icon-class"></i> Classes</li>
|
|
|
75 |
<li><a href="#MLAData" title="Class MLA (Media Library Assistant) Data provides database and template file access for MLA needs">MLAData</a></li>
|
76 |
<li><a href="#MLAEdit" title="Class MLA (Media Library Assistant) Edit contains meta boxes for the Edit Media (advanced-form-edit.php) screen">MLAEdit</a></li>
|
77 |
<li><a href="#MLA_Checklist_Walker" title="Class MLA (Media Library Assistant) Checklist Walker replaces term_id with slug in checklist output">MLA_Checklist_Walker</a></li>
|
@@ -255,6 +256,13 @@ searchable database of exension/type associations for the "Uploads" admin settin
|
|
255 |
<div class="details collapse"></div>
|
256 |
<a href="../classes/MLA_View_List_Table.html" class="more">« More »</a>
|
257 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
258 |
<h3>
|
259 |
<i class="icon-custom icon-constant"></i> Constants</h3>
|
260 |
<a name="MLA_BACKUP_DIR" id="MLA_BACKUP_DIR"> </a><div class="element clickable constant MLA_BACKUP_DIR" data-toggle="collapse" data-target=".MLA_BACKUP_DIR .collapse">
|
@@ -497,7 +505,7 @@ display an "accordian-style" list.</p></p>
|
|
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-
|
501 |
</div>
|
502 |
</body>
|
503 |
</html>
|
72 |
<li class="function "><a href="#mla_plugin_loader_reporting_action" title="mla_plugin_loader_reporting_action :: Displays version conflict error messages at the top of the Dashboard"><span class="description">Displays version conflict error messages at the top of the Dashboard</span><pre>mla_plugin_loader_reporting_action</pre></a></li>
|
73 |
<li class="nav-header">
|
74 |
<i class="icon-custom icon-class"></i> Classes</li>
|
75 |
+
<li><a href="#MNA_Pad_Counts_Walker" title="Class MNA_Pad_Counts_Walker adds accurate, padded attachment counts to taxonomy terms.">MNA_Pad_Counts_Walker</a></li>
|
76 |
<li><a href="#MLAData" title="Class MLA (Media Library Assistant) Data provides database and template file access for MLA needs">MLAData</a></li>
|
77 |
<li><a href="#MLAEdit" title="Class MLA (Media Library Assistant) Edit contains meta boxes for the Edit Media (advanced-form-edit.php) screen">MLAEdit</a></li>
|
78 |
<li><a href="#MLA_Checklist_Walker" title="Class MLA (Media Library Assistant) Checklist Walker replaces term_id with slug in checklist output">MLA_Checklist_Walker</a></li>
|
256 |
<div class="details collapse"></div>
|
257 |
<a href="../classes/MLA_View_List_Table.html" class="more">« More »</a>
|
258 |
</div>
|
259 |
+
<a name="MNA_Pad_Counts_Walker" id="MNA_Pad_Counts_Walker"></a><div class="element ajax clickable class" href="../classes/MNA_Pad_Counts_Walker.html">
|
260 |
+
<h1>MNA_Pad_Counts_Walker<a href="../classes/MNA_Pad_Counts_Walker.html">¶</a>
|
261 |
+
</h1>
|
262 |
+
<p class="short_description">Class MNA_Pad_Counts_Walker adds accurate, padded attachment counts to taxonomy terms.</p>
|
263 |
+
<div class="details collapse"></div>
|
264 |
+
<a href="../classes/MNA_Pad_Counts_Walker.html" class="more">« More »</a>
|
265 |
+
</div>
|
266 |
<h3>
|
267 |
<i class="icon-custom icon-constant"></i> Constants</h3>
|
268 |
<a name="MLA_BACKUP_DIR" id="MLA_BACKUP_DIR"> </a><div class="element clickable constant MLA_BACKUP_DIR" data-toggle="collapse" data-target=".MLA_BACKUP_DIR .collapse">
|
505 |
<div class="row"><footer class="span12">
|
506 |
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>
|
507 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
508 |
+
generated on 2014-10-27T20:22:36-07:00.<br></footer></div>
|
509 |
</div>
|
510 |
</body>
|
511 |
</html>
|
phpDocs/structure.xml
CHANGED
@@ -244,6 +244,103 @@ a query parameter to the URL, e.g., "?my_term=yellow".</p>]]></long-description>
|
|
244 |
<tag line="2" name="since" description="MLA 1.80"/>
|
245 |
</docblock>
|
246 |
</file>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
247 |
<file path="examples\twentytwelve-mla\functions.php" hash="464be5a0eb9335ba5ecc9fdc70fc63b0" package="Media Library Assistant\MLA\Child\Theme">
|
248 |
<docblock line="2">
|
249 |
<description><![CDATA[MLA Child for Twenty Twelve functions and definitions]]></description>
|
@@ -494,6 +591,19 @@ must be defined as a static WordPress "Page" post type.</p>]]></long-description
|
|
494 |
must be defined as a static WordPress "Page" post type.]]></description>
|
495 |
<long-description><![CDATA[<p>Please note that this is the WordPress construct of pages
|
496 |
and that other 'pages' on your WordPress site will use a
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
497 |
different template.</p>]]></long-description>
|
498 |
<tag line="2" name="package" description="Media Library Assistant"/>
|
499 |
<tag line="2" name="subpackage" description="MLA_Child_Theme"/>
|
@@ -512,7 +622,7 @@ different template.</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="
|
516 |
<docblock line="2">
|
517 |
<description><![CDATA[Database and template file access for MLA needs]]></description>
|
518 |
<long-description><![CDATA[]]></long-description>
|
@@ -553,38 +663,38 @@ ALT Text and custom field columns.</p>]]></long-description>
|
|
553 |
</tag>
|
554 |
</docblock>
|
555 |
</property>
|
556 |
-
<property final="false" static="true" visibility="private" line="
|
557 |
<name>$mla_list_table_items</name>
|
558 |
<default><![CDATA[NULL]]></default>
|
559 |
-
<docblock line="
|
560 |
<description><![CDATA[Cache the results of mla_count_list_table_items for reuse in mla_query_list_table_items]]></description>
|
561 |
<long-description><![CDATA[]]></long-description>
|
562 |
-
<tag line="
|
563 |
-
<tag line="
|
564 |
<type by_reference="false">array</type>
|
565 |
</tag>
|
566 |
</docblock>
|
567 |
</property>
|
568 |
-
<property final="false" static="true" visibility="private" line="
|
569 |
<name>$query_parameters</name>
|
570 |
<default><![CDATA[array()]]></default>
|
571 |
-
<docblock line="
|
572 |
<description><![CDATA[WP_Query filter "parameters"]]></description>
|
573 |
<long-description><![CDATA[<p>This array defines parameters for the query's join, where and orderby filters.
|
574 |
The parameters are set up in the _prepare_list_table_query function, and
|
575 |
any further logic required to translate those values is contained in the filters.</p>
|
576 |
|
577 |
<p>Array index values are: use_postmeta_view, postmeta_key, postmeta_value, patterns, detached, orderby, order, mla-metavalue, debug, s, mla_search_connector, mla_search_fields, sentence, exact</p>]]></long-description>
|
578 |
-
<tag line="
|
579 |
-
<tag line="
|
580 |
<type by_reference="false">array</type>
|
581 |
</tag>
|
582 |
</docblock>
|
583 |
</property>
|
584 |
-
<property final="false" static="true" visibility="private" line="
|
585 |
<name>$galleries</name>
|
586 |
<default><![CDATA[null]]></default>
|
587 |
-
<docblock line="
|
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,126 +707,126 @@ each page load and cached for subsequent calls.</p>
|
|
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="
|
601 |
-
<tag line="
|
602 |
<type by_reference="false">array</type>
|
603 |
</tag>
|
604 |
</docblock>
|
605 |
</property>
|
606 |
-
<property final="false" static="true" visibility="private" line="
|
607 |
<name>$mla_galleries</name>
|
608 |
<default><![CDATA[null]]></default>
|
609 |
-
<docblock line="
|
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="
|
615 |
-
<tag line="
|
616 |
<type by_reference="false">array</type>
|
617 |
</tag>
|
618 |
</docblock>
|
619 |
</property>
|
620 |
-
<property final="false" static="true" visibility="private" line="
|
621 |
<name>$pdf_indirect_objects</name>
|
622 |
<default><![CDATA[NULL]]></default>
|
623 |
-
<docblock line="
|
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="
|
629 |
-
<tag line="
|
630 |
<type by_reference="false">array</type>
|
631 |
</tag>
|
632 |
</docblock>
|
633 |
</property>
|
634 |
-
<property final="false" static="true" visibility="private" line="
|
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="
|
638 |
<description><![CDATA[UTF-8 replacements for invalid SQL characters]]></description>
|
639 |
<long-description><![CDATA[]]></long-description>
|
640 |
-
<tag line="
|
641 |
-
<tag line="
|
642 |
<type by_reference="false">array</type>
|
643 |
</tag>
|
644 |
</docblock>
|
645 |
</property>
|
646 |
-
<property final="false" static="true" visibility="private" line="
|
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="
|
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="
|
654 |
-
<tag line="
|
655 |
<type by_reference="false">array</type>
|
656 |
</tag>
|
657 |
</docblock>
|
658 |
</property>
|
659 |
-
<property final="false" static="true" visibility="public" line="
|
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="
|
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="
|
667 |
-
<tag line="
|
668 |
<type by_reference="false">array</type>
|
669 |
</tag>
|
670 |
</docblock>
|
671 |
</property>
|
672 |
-
<property final="false" static="true" visibility="private" line="
|
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="
|
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="
|
680 |
-
<tag line="
|
681 |
<type by_reference="false">array</type>
|
682 |
</tag>
|
683 |
</docblock>
|
684 |
</property>
|
685 |
-
<property final="false" static="true" visibility="private" line="
|
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="
|
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="
|
693 |
-
<tag line="
|
694 |
<type by_reference="false">array</type>
|
695 |
</tag>
|
696 |
</docblock>
|
697 |
</property>
|
698 |
-
<property final="false" static="true" visibility="private" line="
|
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="
|
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="
|
706 |
-
<tag line="
|
707 |
<type by_reference="false">array</type>
|
708 |
</tag>
|
709 |
</docblock>
|
710 |
</property>
|
711 |
-
<property final="false" static="true" visibility="private" line="
|
712 |
<name>$mla_IPTC_EXIF_errors</name>
|
713 |
<default><![CDATA[array()]]></default>
|
714 |
-
<docblock line="
|
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="
|
719 |
-
<tag line="
|
720 |
<type by_reference="false">array</type>
|
721 |
</tag>
|
722 |
</docblock>
|
@@ -739,7 +849,7 @@ and mla_fetch_attachment_image_metadata]]></description>
|
|
739 |
Multi-part templates are divided by comments of the form <!-- template="key" -->,
|
740 |
where "key" becomes the key part of the array.</p>]]></long-description>
|
741 |
<tag line="52" name="since" description="0.1"/>
|
742 |
-
<tag line="52" name="param" description="Complete path and name of the template file, option name or the raw template" type="string" variable="$source">
|
743 |
<type by_reference="false">string</type>
|
744 |
</tag>
|
745 |
<tag line="52" name="param" description="Optional type of template source; 'path', 'file' (default), 'option', 'string'" type="string" variable="$type">
|
@@ -1069,1475 +1179,1496 @@ All but request and query require an attachment ID.</p>]]></long-description>
|
|
1069 |
<type/>
|
1070 |
</argument>
|
1071 |
</method>
|
1072 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
1073 |
<name>mla_get_template_placeholders</name>
|
1074 |
<full_name>mla_get_template_placeholders</full_name>
|
1075 |
-
<docblock line="
|
1076 |
<description><![CDATA[Analyze a template, returning an array of the placeholders it contains]]></description>
|
1077 |
<long-description><![CDATA[]]></long-description>
|
1078 |
-
<tag line="
|
1079 |
-
<tag line="
|
1080 |
<type by_reference="false">string</type>
|
1081 |
</tag>
|
1082 |
-
<tag line="
|
1083 |
<type by_reference="false">string</type>
|
1084 |
</tag>
|
1085 |
-
<tag line="
|
1086 |
<type by_reference="false">array</type>
|
1087 |
</tag>
|
1088 |
</docblock>
|
1089 |
-
<argument line="
|
1090 |
<name>$tpl</name>
|
1091 |
<default><![CDATA[]]></default>
|
1092 |
<type/>
|
1093 |
</argument>
|
1094 |
-
<argument line="
|
1095 |
<name>$default_option</name>
|
1096 |
<default><![CDATA['text']]></default>
|
1097 |
<type/>
|
1098 |
</argument>
|
1099 |
</method>
|
1100 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
1101 |
<name>mla_count_list_table_items</name>
|
1102 |
<full_name>mla_count_list_table_items</full_name>
|
1103 |
-
<docblock line="
|
1104 |
<description><![CDATA[Get the total number of attachment posts]]></description>
|
1105 |
<long-description><![CDATA[]]></long-description>
|
1106 |
-
<tag line="
|
1107 |
-
<tag line="
|
1108 |
<type by_reference="false">array</type>
|
1109 |
</tag>
|
1110 |
-
<tag line="
|
1111 |
<type by_reference="false">int</type>
|
1112 |
</tag>
|
1113 |
-
<tag line="
|
1114 |
<type by_reference="false">int</type>
|
1115 |
</tag>
|
1116 |
-
<tag line="
|
1117 |
<type by_reference="false">integer</type>
|
1118 |
</tag>
|
1119 |
</docblock>
|
1120 |
-
<argument line="
|
1121 |
<name>$request</name>
|
1122 |
<default><![CDATA[]]></default>
|
1123 |
<type/>
|
1124 |
</argument>
|
1125 |
-
<argument line="
|
1126 |
<name>$offset</name>
|
1127 |
<default><![CDATA[NULL]]></default>
|
1128 |
<type/>
|
1129 |
</argument>
|
1130 |
-
<argument line="
|
1131 |
<name>$count</name>
|
1132 |
<default><![CDATA[NULL]]></default>
|
1133 |
<type/>
|
1134 |
</argument>
|
1135 |
</method>
|
1136 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
1137 |
<name>mla_query_list_table_items</name>
|
1138 |
<full_name>mla_query_list_table_items</full_name>
|
1139 |
-
<docblock line="
|
1140 |
<description><![CDATA[Retrieve attachment objects for list table display]]></description>
|
1141 |
<long-description><![CDATA[<p>Supports prepare_items in class-mla-list-table.php.
|
1142 |
Modeled after wp_edit_attachments_query in wp-admin/post.php</p>]]></long-description>
|
1143 |
-
<tag line="
|
1144 |
-
<tag line="
|
1145 |
<type by_reference="false">array</type>
|
1146 |
</tag>
|
1147 |
-
<tag line="
|
1148 |
<type by_reference="false">int</type>
|
1149 |
</tag>
|
1150 |
-
<tag line="
|
1151 |
<type by_reference="false">int</type>
|
1152 |
</tag>
|
1153 |
-
<tag line="
|
1154 |
<type by_reference="false">array</type>
|
1155 |
</tag>
|
1156 |
</docblock>
|
1157 |
-
<argument line="
|
1158 |
<name>$request</name>
|
1159 |
<default><![CDATA[]]></default>
|
1160 |
<type/>
|
1161 |
</argument>
|
1162 |
-
<argument line="
|
1163 |
<name>$offset</name>
|
1164 |
<default><![CDATA[]]></default>
|
1165 |
<type/>
|
1166 |
</argument>
|
1167 |
-
<argument line="
|
1168 |
<name>$count</name>
|
1169 |
<default><![CDATA[]]></default>
|
1170 |
<type/>
|
1171 |
</argument>
|
1172 |
</method>
|
1173 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
1174 |
<name>mla_query_media_modal_items</name>
|
1175 |
<full_name>mla_query_media_modal_items</full_name>
|
1176 |
-
<docblock line="
|
1177 |
<description><![CDATA[Retrieve attachment objects for the WordPress Media Manager]]></description>
|
1178 |
<long-description><![CDATA[<p>Supports month-year and taxonomy-term filters as well as the enhanced search box</p>]]></long-description>
|
1179 |
-
<tag line="
|
1180 |
-
<tag line="
|
1181 |
<type by_reference="false">array</type>
|
1182 |
</tag>
|
1183 |
-
<tag line="
|
1184 |
<type by_reference="false">int</type>
|
1185 |
</tag>
|
1186 |
-
<tag line="
|
1187 |
<type by_reference="false">int</type>
|
1188 |
</tag>
|
1189 |
-
<tag line="
|
1190 |
<type by_reference="false">array</type>
|
1191 |
</tag>
|
1192 |
</docblock>
|
1193 |
-
<argument line="
|
1194 |
<name>$request</name>
|
1195 |
<default><![CDATA[]]></default>
|
1196 |
<type/>
|
1197 |
</argument>
|
1198 |
-
<argument line="
|
1199 |
<name>$offset</name>
|
1200 |
<default><![CDATA[]]></default>
|
1201 |
<type/>
|
1202 |
</argument>
|
1203 |
-
<argument line="
|
1204 |
<name>$count</name>
|
1205 |
<default><![CDATA[]]></default>
|
1206 |
<type/>
|
1207 |
</argument>
|
1208 |
</method>
|
1209 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
1210 |
<name>_prepare_list_table_query</name>
|
1211 |
<full_name>_prepare_list_table_query</full_name>
|
1212 |
-
<docblock line="
|
1213 |
<description><![CDATA[Sanitize and expand query arguments from request variables]]></description>
|
1214 |
<long-description><![CDATA[<p>Prepare the arguments for WP_Query.
|
1215 |
Modeled after wp_edit_attachments_query in wp-admin/post.php</p>]]></long-description>
|
1216 |
-
<tag line="
|
1217 |
-
<tag line="
|
1218 |
<type by_reference="false">array</type>
|
1219 |
</tag>
|
1220 |
-
<tag line="
|
1221 |
<type by_reference="false">int</type>
|
1222 |
</tag>
|
1223 |
-
<tag line="
|
1224 |
<type by_reference="false">int</type>
|
1225 |
</tag>
|
1226 |
-
<tag line="
|
1227 |
<type by_reference="false">array</type>
|
1228 |
</tag>
|
1229 |
</docblock>
|
1230 |
-
<argument line="
|
1231 |
<name>$raw_request</name>
|
1232 |
<default><![CDATA[]]></default>
|
1233 |
<type/>
|
1234 |
</argument>
|
1235 |
-
<argument line="
|
1236 |
<name>$offset</name>
|
1237 |
<default><![CDATA[0]]></default>
|
1238 |
<type/>
|
1239 |
</argument>
|
1240 |
-
<argument line="
|
1241 |
<name>$count</name>
|
1242 |
<default><![CDATA[0]]></default>
|
1243 |
<type/>
|
1244 |
</argument>
|
1245 |
</method>
|
1246 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
1247 |
<name>_execute_list_table_query</name>
|
1248 |
<full_name>_execute_list_table_query</full_name>
|
1249 |
-
<docblock line="
|
1250 |
<description><![CDATA[Add filters, run query, remove filters]]></description>
|
1251 |
<long-description><![CDATA[]]></long-description>
|
1252 |
-
<tag line="
|
1253 |
-
<tag line="
|
1254 |
<type by_reference="false">array</type>
|
1255 |
</tag>
|
1256 |
-
<tag line="
|
1257 |
<type by_reference="false">object</type>
|
1258 |
</tag>
|
1259 |
</docblock>
|
1260 |
-
<argument line="
|
1261 |
<name>$request</name>
|
1262 |
<default><![CDATA[]]></default>
|
1263 |
<type/>
|
1264 |
</argument>
|
1265 |
</method>
|
1266 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
1267 |
<name>mla_search_terms_tidy</name>
|
1268 |
<full_name>mla_search_terms_tidy</full_name>
|
1269 |
-
<docblock line="
|
1270 |
<description><![CDATA[Replaces a WordPress function deprecated in v3.7]]></description>
|
1271 |
<long-description><![CDATA[<p>Defined as public because it's a callback from array_map().</p>]]></long-description>
|
1272 |
-
<tag line="
|
1273 |
-
<tag line="
|
1274 |
<type by_reference="false">string</type>
|
1275 |
</tag>
|
1276 |
-
<tag line="
|
1277 |
<type by_reference="false">string</type>
|
1278 |
</tag>
|
1279 |
</docblock>
|
1280 |
-
<argument line="
|
1281 |
<name>$term</name>
|
1282 |
<default><![CDATA[]]></default>
|
1283 |
<type/>
|
1284 |
</argument>
|
1285 |
</method>
|
1286 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
1287 |
<name>mla_query_posts_search_filter</name>
|
1288 |
<full_name>mla_query_posts_search_filter</full_name>
|
1289 |
-
<docblock line="
|
1290 |
<description><![CDATA[Adds a keyword search to the WHERE clause, if required]]></description>
|
1291 |
<long-description><![CDATA[<p>Defined as public because it's a filter.</p>]]></long-description>
|
1292 |
-
<tag line="
|
1293 |
-
<tag line="
|
1294 |
<type by_reference="false">string</type>
|
1295 |
</tag>
|
1296 |
-
<tag line="
|
1297 |
<type by_reference="false">object</type>
|
1298 |
</tag>
|
1299 |
-
<tag line="
|
1300 |
<type by_reference="false">string</type>
|
1301 |
</tag>
|
1302 |
</docblock>
|
1303 |
-
<argument line="
|
1304 |
<name>$search_string</name>
|
1305 |
<default><![CDATA[]]></default>
|
1306 |
<type/>
|
1307 |
</argument>
|
1308 |
-
<argument line="
|
1309 |
<name>$query_object</name>
|
1310 |
<default><![CDATA[]]></default>
|
1311 |
<type/>
|
1312 |
</argument>
|
1313 |
</method>
|
1314 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
1315 |
<name>mla_query_posts_where_filter</name>
|
1316 |
<full_name>mla_query_posts_where_filter</full_name>
|
1317 |
-
<docblock line="
|
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="
|
1322 |
-
<tag line="
|
1323 |
<type by_reference="false">string</type>
|
1324 |
</tag>
|
1325 |
-
<tag line="
|
1326 |
<type by_reference="false">string</type>
|
1327 |
</tag>
|
1328 |
</docblock>
|
1329 |
-
<argument line="
|
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="
|
1336 |
<name>mla_query_posts_join_filter</name>
|
1337 |
<full_name>mla_query_posts_join_filter</full_name>
|
1338 |
-
<docblock line="
|
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="
|
1342 |
-
<tag line="
|
1343 |
<type by_reference="false">string</type>
|
1344 |
</tag>
|
1345 |
-
<tag line="
|
1346 |
<type by_reference="false">string</type>
|
1347 |
</tag>
|
1348 |
</docblock>
|
1349 |
-
<argument line="
|
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="
|
1356 |
<name>mla_query_posts_groupby_filter</name>
|
1357 |
<full_name>mla_query_posts_groupby_filter</full_name>
|
1358 |
-
<docblock line="
|
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="
|
1363 |
-
<tag line="
|
1364 |
<type by_reference="false">string</type>
|
1365 |
</tag>
|
1366 |
-
<tag line="
|
1367 |
<type by_reference="false">string</type>
|
1368 |
</tag>
|
1369 |
</docblock>
|
1370 |
-
<argument line="
|
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="
|
1377 |
<name>mla_query_posts_orderby_filter</name>
|
1378 |
<full_name>mla_query_posts_orderby_filter</full_name>
|
1379 |
-
<docblock line="
|
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="
|
1384 |
-
<tag line="
|
1385 |
<type by_reference="false">string</type>
|
1386 |
</tag>
|
1387 |
-
<tag line="
|
1388 |
<type by_reference="false">string</type>
|
1389 |
</tag>
|
1390 |
</docblock>
|
1391 |
-
<argument line="
|
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="
|
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="
|
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="
|
1405 |
-
<tag line="
|
1406 |
<type by_reference="false">boolean</type>
|
1407 |
</tag>
|
1408 |
-
<tag line="
|
1409 |
<type by_reference="false">boolean</type>
|
1410 |
</tag>
|
1411 |
</docblock>
|
1412 |
-
<argument line="
|
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="
|
1419 |
<name>mla_query_posts_clauses_filter</name>
|
1420 |
<full_name>mla_query_posts_clauses_filter</full_name>
|
1421 |
-
<docblock line="
|
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="
|
1426 |
-
<tag line="
|
1427 |
<type by_reference="false">array</type>
|
1428 |
</tag>
|
1429 |
-
<tag line="
|
1430 |
<type by_reference="false">array</type>
|
1431 |
</tag>
|
1432 |
</docblock>
|
1433 |
-
<argument line="
|
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="
|
1440 |
<name>mla_query_posts_clauses_request_filter</name>
|
1441 |
<full_name>mla_query_posts_clauses_request_filter</full_name>
|
1442 |
-
<docblock line="
|
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="
|
1447 |
-
<tag line="
|
1448 |
<type by_reference="false">array</type>
|
1449 |
</tag>
|
1450 |
-
<tag line="
|
1451 |
<type by_reference="false">array</type>
|
1452 |
</tag>
|
1453 |
</docblock>
|
1454 |
-
<argument line="
|
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="
|
1461 |
<name>mla_get_attachment_by_id</name>
|
1462 |
<full_name>mla_get_attachment_by_id</full_name>
|
1463 |
-
<docblock line="
|
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="
|
1468 |
-
<tag line="
|
1469 |
-
<tag line="
|
1470 |
<type by_reference="false">int</type>
|
1471 |
</tag>
|
1472 |
-
<tag line="
|
1473 |
<type by_reference="false">NULL</type>
|
1474 |
<type by_reference="false">array</type>
|
1475 |
</tag>
|
1476 |
</docblock>
|
1477 |
-
<argument line="
|
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="
|
1484 |
<name>mla_fetch_attachment_parent_data</name>
|
1485 |
<full_name>mla_fetch_attachment_parent_data</full_name>
|
1486 |
-
<docblock line="
|
1487 |
<description><![CDATA[Returns information about an attachment's parent, if found]]></description>
|
1488 |
<long-description><![CDATA[]]></long-description>
|
1489 |
-
<tag line="
|
1490 |
-
<tag line="
|
1491 |
<type by_reference="false">int</type>
|
1492 |
</tag>
|
1493 |
-
<tag line="
|
1494 |
<type by_reference="false">array</type>
|
1495 |
</tag>
|
1496 |
</docblock>
|
1497 |
-
<argument line="
|
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="
|
1504 |
<name>_set_array_element</name>
|
1505 |
<full_name>_set_array_element</full_name>
|
1506 |
-
<docblock line="
|
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="
|
1510 |
-
<tag line="
|
1511 |
<type by_reference="false">string</type>
|
1512 |
</tag>
|
1513 |
-
<tag line="
|
1514 |
<type by_reference="false">mixed</type>
|
1515 |
</tag>
|
1516 |
-
<tag line="
|
1517 |
<type by_reference="false">array</type>
|
1518 |
</tag>
|
1519 |
-
<tag line="
|
1520 |
<type by_reference="false">boolean</type>
|
1521 |
</tag>
|
1522 |
</docblock>
|
1523 |
-
<argument line="
|
1524 |
<name>$needle</name>
|
1525 |
<default><![CDATA[]]></default>
|
1526 |
<type/>
|
1527 |
</argument>
|
1528 |
-
<argument line="
|
1529 |
<name>$value</name>
|
1530 |
<default><![CDATA[]]></default>
|
1531 |
<type/>
|
1532 |
</argument>
|
1533 |
-
<argument line="
|
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="
|
1540 |
<name>_unset_array_element</name>
|
1541 |
<full_name>_unset_array_element</full_name>
|
1542 |
-
<docblock line="
|
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="
|
1546 |
-
<tag line="
|
1547 |
<type by_reference="false">string</type>
|
1548 |
</tag>
|
1549 |
-
<tag line="
|
1550 |
<type by_reference="false">array</type>
|
1551 |
</tag>
|
1552 |
-
<tag line="
|
1553 |
<type by_reference="false">boolean</type>
|
1554 |
</tag>
|
1555 |
</docblock>
|
1556 |
-
<argument line="
|
1557 |
<name>$needle</name>
|
1558 |
<default><![CDATA[]]></default>
|
1559 |
<type/>
|
1560 |
</argument>
|
1561 |
-
<argument line="
|
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="
|
1568 |
<name>mla_find_array_element</name>
|
1569 |
<full_name>mla_find_array_element</full_name>
|
1570 |
-
<docblock line="
|
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="
|
1575 |
-
<tag line="
|
1576 |
<type by_reference="false">string</type>
|
1577 |
</tag>
|
1578 |
-
<tag line="
|
1579 |
<type by_reference="false">array</type>
|
1580 |
</tag>
|
1581 |
-
<tag line="
|
1582 |
<type by_reference="false">string</type>
|
1583 |
</tag>
|
1584 |
-
<tag line="
|
1585 |
<type by_reference="false">boolean</type>
|
1586 |
</tag>
|
1587 |
-
<tag line="
|
1588 |
<type by_reference="false">mixed</type>
|
1589 |
</tag>
|
1590 |
</docblock>
|
1591 |
-
<argument line="
|
1592 |
<name>$needle</name>
|
1593 |
<default><![CDATA[]]></default>
|
1594 |
<type/>
|
1595 |
</argument>
|
1596 |
-
<argument line="
|
1597 |
<name>$haystack</name>
|
1598 |
<default><![CDATA[]]></default>
|
1599 |
<type/>
|
1600 |
</argument>
|
1601 |
-
<argument line="
|
1602 |
<name>$option</name>
|
1603 |
<default><![CDATA[]]></default>
|
1604 |
<type/>
|
1605 |
</argument>
|
1606 |
-
<argument line="
|
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="
|
1613 |
<name>mla_fetch_attachment_metadata</name>
|
1614 |
<full_name>mla_fetch_attachment_metadata</full_name>
|
1615 |
-
<docblock line="
|
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="
|
1620 |
-
<tag line="
|
1621 |
<type by_reference="false">int</type>
|
1622 |
</tag>
|
1623 |
-
<tag line="
|
1624 |
<type by_reference="false">array</type>
|
1625 |
</tag>
|
1626 |
</docblock>
|
1627 |
-
<argument line="
|
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="
|
1634 |
<name>mla_fetch_attachment_references</name>
|
1635 |
<full_name>mla_fetch_attachment_references</full_name>
|
1636 |
-
<docblock line="
|
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="
|
1641 |
-
<tag line="
|
1642 |
<type by_reference="false">int</type>
|
1643 |
</tag>
|
1644 |
-
<tag line="
|
1645 |
<type by_reference="false">int</type>
|
1646 |
</tag>
|
1647 |
-
<tag line="
|
1648 |
<type by_reference="false">array</type>
|
1649 |
</tag>
|
1650 |
</docblock>
|
1651 |
-
<argument line="
|
1652 |
<name>$ID</name>
|
1653 |
<default><![CDATA[]]></default>
|
1654 |
<type/>
|
1655 |
</argument>
|
1656 |
-
<argument line="
|
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="
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1663 |
<name>mla_flush_mla_galleries</name>
|
1664 |
<full_name>mla_flush_mla_galleries</full_name>
|
1665 |
-
<docblock line="
|
1666 |
<description><![CDATA[Invalidates the $mla_galleries or $galleries array and cached values]]></description>
|
1667 |
<long-description><![CDATA[]]></long-description>
|
1668 |
-
<tag line="
|
1669 |
-
<tag line="
|
1670 |
<type by_reference="false">string</type>
|
1671 |
</tag>
|
1672 |
-
<tag line="
|
1673 |
<type by_reference="false">void</type>
|
1674 |
</tag>
|
1675 |
</docblock>
|
1676 |
-
<argument line="
|
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="
|
1683 |
<name>mla_save_post_action</name>
|
1684 |
<full_name>mla_save_post_action</full_name>
|
1685 |
-
<docblock line="
|
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="
|
1689 |
-
<tag line="
|
1690 |
<type by_reference="false">integer</type>
|
1691 |
</tag>
|
1692 |
-
<tag line="
|
1693 |
<type by_reference="false">void</type>
|
1694 |
</tag>
|
1695 |
</docblock>
|
1696 |
-
<argument line="
|
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="
|
1703 |
<name>_build_mla_galleries</name>
|
1704 |
<full_name>_build_mla_galleries</full_name>
|
1705 |
-
<docblock line="
|
1706 |
<description><![CDATA[Builds the $mla_galleries or $galleries array]]></description>
|
1707 |
<long-description><![CDATA[]]></long-description>
|
1708 |
-
<tag line="
|
1709 |
-
<tag line="
|
1710 |
<type by_reference="false">string</type>
|
1711 |
</tag>
|
1712 |
-
<tag line="
|
1713 |
<type by_reference="false">array</type>
|
1714 |
</tag>
|
1715 |
-
<tag line="
|
1716 |
<type by_reference="false">string</type>
|
1717 |
</tag>
|
1718 |
-
<tag line="
|
1719 |
<type by_reference="false">boolean</type>
|
1720 |
</tag>
|
1721 |
-
<tag line="
|
1722 |
<type by_reference="false">boolean</type>
|
1723 |
</tag>
|
1724 |
</docblock>
|
1725 |
-
<argument line="
|
1726 |
<name>$option_name</name>
|
1727 |
<default><![CDATA[]]></default>
|
1728 |
<type/>
|
1729 |
</argument>
|
1730 |
-
<argument line="
|
1731 |
<name>$galleries_array</name>
|
1732 |
<default><![CDATA[]]></default>
|
1733 |
<type/>
|
1734 |
</argument>
|
1735 |
-
<argument line="
|
1736 |
<name>$shortcode</name>
|
1737 |
<default><![CDATA[]]></default>
|
1738 |
<type/>
|
1739 |
</argument>
|
1740 |
-
<argument line="
|
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="
|
1747 |
<name>_search_mla_galleries</name>
|
1748 |
<full_name>_search_mla_galleries</full_name>
|
1749 |
-
<docblock line="
|
1750 |
<description><![CDATA[Search the $mla_galleries or $galleries array]]></description>
|
1751 |
<long-description><![CDATA[]]></long-description>
|
1752 |
-
<tag line="
|
1753 |
-
<tag line="
|
1754 |
<type by_reference="false">array</type>
|
1755 |
</tag>
|
1756 |
-
<tag line="
|
1757 |
<type by_reference="false">int</type>
|
1758 |
</tag>
|
1759 |
-
<tag line="
|
1760 |
<type by_reference="false">array</type>
|
1761 |
</tag>
|
1762 |
</docblock>
|
1763 |
-
<argument line="
|
1764 |
<name>$galleries_array</name>
|
1765 |
<default><![CDATA[]]></default>
|
1766 |
<type/>
|
1767 |
</argument>
|
1768 |
-
<argument line="
|
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="
|
1775 |
<name>_parse_pdf_xref_subsection</name>
|
1776 |
<full_name>_parse_pdf_xref_subsection</full_name>
|
1777 |
-
<docblock line="
|
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="
|
1781 |
-
<tag line="
|
1782 |
<type by_reference="false">string</type>
|
1783 |
</tag>
|
1784 |
-
<tag line="
|
1785 |
<type by_reference="false">integer</type>
|
1786 |
</tag>
|
1787 |
-
<tag line="
|
1788 |
<type by_reference="false">integer</type>
|
1789 |
</tag>
|
1790 |
-
<tag line="
|
1791 |
<type by_reference="false">integer</type>
|
1792 |
</tag>
|
1793 |
-
<tag line="
|
1794 |
<type by_reference="false">void</type>
|
1795 |
</tag>
|
1796 |
</docblock>
|
1797 |
-
<argument line="
|
1798 |
<name>$xref_section</name>
|
1799 |
<default><![CDATA[]]></default>
|
1800 |
<type/>
|
1801 |
</argument>
|
1802 |
-
<argument line="
|
1803 |
<name>$offset</name>
|
1804 |
<default><![CDATA[]]></default>
|
1805 |
<type/>
|
1806 |
</argument>
|
1807 |
-
<argument line="
|
1808 |
<name>$object_id</name>
|
1809 |
<default><![CDATA[]]></default>
|
1810 |
<type/>
|
1811 |
</argument>
|
1812 |
-
<argument line="
|
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="
|
1819 |
<name>_parse_pdf_xref_section</name>
|
1820 |
<full_name>_parse_pdf_xref_section</full_name>
|
1821 |
-
<docblock line="
|
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="
|
1825 |
-
<tag line="
|
1826 |
<type by_reference="false">string</type>
|
1827 |
</tag>
|
1828 |
-
<tag line="
|
1829 |
<type by_reference="false">integer</type>
|
1830 |
</tag>
|
1831 |
-
<tag line="
|
1832 |
<type by_reference="false">integer</type>
|
1833 |
</tag>
|
1834 |
</docblock>
|
1835 |
-
<argument line="
|
1836 |
<name>$file_name</name>
|
1837 |
<default><![CDATA[]]></default>
|
1838 |
<type/>
|
1839 |
</argument>
|
1840 |
-
<argument line="
|
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="
|
1847 |
<name>_parse_pdf_xref_stream</name>
|
1848 |
<full_name>_parse_pdf_xref_stream</full_name>
|
1849 |
-
<docblock line="
|
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="
|
1853 |
-
<tag line="
|
1854 |
<type by_reference="false">string</type>
|
1855 |
</tag>
|
1856 |
-
<tag line="
|
1857 |
<type by_reference="false">integer</type>
|
1858 |
</tag>
|
1859 |
-
<tag line="
|
1860 |
<type by_reference="false">string</type>
|
1861 |
</tag>
|
1862 |
-
<tag line="
|
1863 |
<type by_reference="false">integer</type>
|
1864 |
</tag>
|
1865 |
</docblock>
|
1866 |
-
<argument line="
|
1867 |
<name>$file_name</name>
|
1868 |
<default><![CDATA[]]></default>
|
1869 |
<type/>
|
1870 |
</argument>
|
1871 |
-
<argument line="
|
1872 |
<name>$file_offset</name>
|
1873 |
<default><![CDATA[]]></default>
|
1874 |
<type/>
|
1875 |
</argument>
|
1876 |
-
<argument line="
|
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="
|
1883 |
<name>_build_pdf_indirect_objects</name>
|
1884 |
<full_name>_build_pdf_indirect_objects</full_name>
|
1885 |
-
<docblock line="
|
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="
|
1889 |
-
<tag line="
|
1890 |
<type by_reference="false">string</type>
|
1891 |
</tag>
|
1892 |
-
<tag line="
|
1893 |
<type by_reference="false">void</type>
|
1894 |
</tag>
|
1895 |
</docblock>
|
1896 |
-
<argument line="
|
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="
|
1903 |
<name>_find_pdf_indirect_dictionary</name>
|
1904 |
<full_name>_find_pdf_indirect_dictionary</full_name>
|
1905 |
-
<docblock line="
|
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="
|
1910 |
-
<tag line="
|
1911 |
<type by_reference="false">string</type>
|
1912 |
</tag>
|
1913 |
-
<tag line="
|
1914 |
<type by_reference="false">integer</type>
|
1915 |
</tag>
|
1916 |
-
<tag line="
|
1917 |
<type by_reference="false">integer</type>
|
1918 |
</tag>
|
1919 |
-
<tag line="
|
1920 |
<type by_reference="false">mixed</type>
|
1921 |
</tag>
|
1922 |
</docblock>
|
1923 |
-
<argument line="
|
1924 |
<name>$file_name</name>
|
1925 |
<default><![CDATA[]]></default>
|
1926 |
<type/>
|
1927 |
</argument>
|
1928 |
-
<argument line="
|
1929 |
<name>$object</name>
|
1930 |
<default><![CDATA[]]></default>
|
1931 |
<type/>
|
1932 |
</argument>
|
1933 |
-
<argument line="
|
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="
|
1940 |
<name>_parse_iso8601_date</name>
|
1941 |
<full_name>_parse_iso8601_date</full_name>
|
1942 |
-
<docblock line="
|
1943 |
<description><![CDATA[Parse a ISO 8601 Timestamp]]></description>
|
1944 |
<long-description><![CDATA[]]></long-description>
|
1945 |
-
<tag line="
|
1946 |
-
<tag line="
|
1947 |
<type by_reference="false">string</type>
|
1948 |
</tag>
|
1949 |
-
<tag line="
|
1950 |
<type by_reference="false">string</type>
|
1951 |
</tag>
|
1952 |
</docblock>
|
1953 |
-
<argument line="
|
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="
|
1960 |
<name>_parse_pdf_date</name>
|
1961 |
<full_name>_parse_pdf_date</full_name>
|
1962 |
-
<docblock line="
|
1963 |
<description><![CDATA[Parse a PDF date string]]></description>
|
1964 |
<long-description><![CDATA[]]></long-description>
|
1965 |
-
<tag line="
|
1966 |
-
<tag line="
|
1967 |
<type by_reference="false">string</type>
|
1968 |
</tag>
|
1969 |
-
<tag line="
|
1970 |
<type by_reference="false">string</type>
|
1971 |
</tag>
|
1972 |
</docblock>
|
1973 |
-
<argument line="
|
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="
|
1980 |
<name>_parse_pdf_UTF16BE</name>
|
1981 |
<full_name>_parse_pdf_UTF16BE</full_name>
|
1982 |
-
<docblock line="
|
1983 |
<description><![CDATA[Parse a PDF Unicode (16-bit Big Endian) object]]></description>
|
1984 |
<long-description><![CDATA[]]></long-description>
|
1985 |
-
<tag line="
|
1986 |
-
<tag line="
|
1987 |
<type by_reference="false">string</type>
|
1988 |
</tag>
|
1989 |
-
<tag line="
|
1990 |
<type by_reference="false">string</type>
|
1991 |
</tag>
|
1992 |
</docblock>
|
1993 |
-
<argument line="
|
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="
|
2000 |
<name>_parse_pdf_string</name>
|
2001 |
<full_name>_parse_pdf_string</full_name>
|
2002 |
-
<docblock line="
|
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="
|
2007 |
-
<tag line="
|
2008 |
<type by_reference="false">string</type>
|
2009 |
</tag>
|
2010 |
-
<tag line="
|
2011 |
<type by_reference="false">integer</type>
|
2012 |
</tag>
|
2013 |
-
<tag line="
|
2014 |
<type by_reference="false">array</type>
|
2015 |
</tag>
|
2016 |
</docblock>
|
2017 |
-
<argument line="
|
2018 |
<name>$source_string</name>
|
2019 |
<default><![CDATA[]]></default>
|
2020 |
<type/>
|
2021 |
</argument>
|
2022 |
-
<argument line="
|
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="
|
2029 |
<name>_parse_pdf_LPD_dictionary</name>
|
2030 |
<full_name>_parse_pdf_LPD_dictionary</full_name>
|
2031 |
-
<docblock line="
|
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="
|
2038 |
-
<tag line="
|
2039 |
<type by_reference="false">string</type>
|
2040 |
</tag>
|
2041 |
-
<tag line="
|
2042 |
<type by_reference="false">integer</type>
|
2043 |
</tag>
|
2044 |
-
<tag line="
|
2045 |
<type by_reference="false">mixed</type>
|
2046 |
</tag>
|
2047 |
</docblock>
|
2048 |
-
<argument line="
|
2049 |
<name>$source_string</name>
|
2050 |
<default><![CDATA[]]></default>
|
2051 |
<type/>
|
2052 |
</argument>
|
2053 |
-
<argument line="
|
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="
|
2060 |
<name>_parse_pdf_dictionary</name>
|
2061 |
<full_name>_parse_pdf_dictionary</full_name>
|
2062 |
-
<docblock line="
|
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="
|
2069 |
-
<tag line="
|
2070 |
<type by_reference="false">string</type>
|
2071 |
</tag>
|
2072 |
-
<tag line="
|
2073 |
<type by_reference="false">integer</type>
|
2074 |
</tag>
|
2075 |
-
<tag line="
|
2076 |
<type by_reference="false">array</type>
|
2077 |
</tag>
|
2078 |
</docblock>
|
2079 |
-
<argument line="
|
2080 |
<name>$source_string</name>
|
2081 |
<default><![CDATA[]]></default>
|
2082 |
<type/>
|
2083 |
</argument>
|
2084 |
-
<argument line="
|
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="
|
2091 |
<name>_parse_xmp_metadata</name>
|
2092 |
<full_name>_parse_xmp_metadata</full_name>
|
2093 |
-
<docblock line="
|
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="
|
2100 |
-
<tag line="
|
2101 |
<type by_reference="false">string</type>
|
2102 |
</tag>
|
2103 |
-
<tag line="
|
2104 |
<type by_reference="false">integer</type>
|
2105 |
</tag>
|
2106 |
-
<tag line="
|
2107 |
<type by_reference="false">mixed</type>
|
2108 |
</tag>
|
2109 |
</docblock>
|
2110 |
-
<argument line="
|
2111 |
<name>$file_name</name>
|
2112 |
<default><![CDATA[]]></default>
|
2113 |
<type/>
|
2114 |
</argument>
|
2115 |
-
<argument line="
|
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="
|
2122 |
<name>_extract_pdf_trailer</name>
|
2123 |
<full_name>_extract_pdf_trailer</full_name>
|
2124 |
-
<docblock line="
|
2125 |
<description><![CDATA[Extract dictionary from traditional cross-reference + trailer documents]]></description>
|
2126 |
<long-description><![CDATA[]]></long-description>
|
2127 |
-
<tag line="
|
2128 |
-
<tag line="
|
2129 |
<type by_reference="false">string</type>
|
2130 |
</tag>
|
2131 |
-
<tag line="
|
2132 |
<type by_reference="false">integer</type>
|
2133 |
</tag>
|
2134 |
-
<tag line="
|
2135 |
<type by_reference="false">mixed</type>
|
2136 |
</tag>
|
2137 |
</docblock>
|
2138 |
-
<argument line="
|
2139 |
<name>$file_name</name>
|
2140 |
<default><![CDATA[]]></default>
|
2141 |
<type/>
|
2142 |
</argument>
|
2143 |
-
<argument line="
|
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="
|
2150 |
<name>_extract_pdf_metadata</name>
|
2151 |
<full_name>_extract_pdf_metadata</full_name>
|
2152 |
-
<docblock line="
|
2153 |
<description><![CDATA[Extract Metadata from a PDF file]]></description>
|
2154 |
<long-description><![CDATA[]]></long-description>
|
2155 |
-
<tag line="
|
2156 |
-
<tag line="
|
2157 |
<type by_reference="false">string</type>
|
2158 |
</tag>
|
2159 |
-
<tag line="
|
2160 |
<type by_reference="false">array</type>
|
2161 |
</tag>
|
2162 |
</docblock>
|
2163 |
-
<argument line="
|
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="
|
2170 |
<name>_bin_to_utf8</name>
|
2171 |
<full_name>_bin_to_utf8</full_name>
|
2172 |
-
<docblock line="
|
2173 |
<description><![CDATA[Replace SQL incorrect characters (0x80 - 0xFF) with their UTF-8 equivalents]]></description>
|
2174 |
<long-description><![CDATA[]]></long-description>
|
2175 |
-
<tag line="
|
2176 |
-
<tag line="
|
2177 |
<type by_reference="false">string</type>
|
2178 |
</tag>
|
2179 |
-
<tag line="
|
2180 |
<type by_reference="false">string</type>
|
2181 |
</tag>
|
2182 |
</docblock>
|
2183 |
-
<argument line="
|
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="
|
2190 |
<name>mla_iptc_metadata_value</name>
|
2191 |
<full_name>mla_iptc_metadata_value</full_name>
|
2192 |
-
<docblock line="
|
2193 |
<description><![CDATA[Parse one IPTC metadata field]]></description>
|
2194 |
<long-description><![CDATA[]]></long-description>
|
2195 |
-
<tag line="
|
2196 |
-
<tag line="
|
2197 |
<type by_reference="false">string</type>
|
2198 |
</tag>
|
2199 |
-
<tag line="
|
2200 |
<type by_reference="false">string</type>
|
2201 |
</tag>
|
2202 |
-
<tag line="
|
2203 |
<type by_reference="false">mixed</type>
|
2204 |
</tag>
|
2205 |
</docblock>
|
2206 |
-
<argument line="
|
2207 |
<name>$iptc_key</name>
|
2208 |
<default><![CDATA[]]></default>
|
2209 |
<type/>
|
2210 |
</argument>
|
2211 |
-
<argument line="
|
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="
|
2218 |
<name>mla_exif_metadata_value</name>
|
2219 |
<full_name>mla_exif_metadata_value</full_name>
|
2220 |
-
<docblock line="
|
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="
|
2224 |
-
<tag line="
|
2225 |
<type by_reference="false">string</type>
|
2226 |
</tag>
|
2227 |
-
<tag line="
|
2228 |
<type by_reference="false">string</type>
|
2229 |
</tag>
|
2230 |
-
<tag line="
|
2231 |
<type by_reference="false">mixed</type>
|
2232 |
</tag>
|
2233 |
</docblock>
|
2234 |
-
<argument line="
|
2235 |
<name>$exif_key</name>
|
2236 |
<default><![CDATA[]]></default>
|
2237 |
<type/>
|
2238 |
</argument>
|
2239 |
-
<argument line="
|
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="
|
2246 |
<name>mla_pdf_metadata_value</name>
|
2247 |
<full_name>mla_pdf_metadata_value</full_name>
|
2248 |
-
<docblock line="
|
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="
|
2252 |
-
<tag line="
|
2253 |
<type by_reference="false">string</type>
|
2254 |
</tag>
|
2255 |
-
<tag line="
|
2256 |
<type by_reference="false">string</type>
|
2257 |
</tag>
|
2258 |
-
<tag line="
|
2259 |
<type by_reference="false">mixed</type>
|
2260 |
</tag>
|
2261 |
</docblock>
|
2262 |
-
<argument line="
|
2263 |
<name>$pdf_key</name>
|
2264 |
<default><![CDATA[]]></default>
|
2265 |
<type/>
|
2266 |
</argument>
|
2267 |
-
<argument line="
|
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="
|
2274 |
<name>_rational_to_decimal</name>
|
2275 |
<full_name>_rational_to_decimal</full_name>
|
2276 |
-
<docblock line="
|
2277 |
<description><![CDATA[Convert an EXIF GPS rational value to a PHP float value]]></description>
|
2278 |
<long-description><![CDATA[]]></long-description>
|
2279 |
-
<tag line="
|
2280 |
-
<tag line="
|
2281 |
<type by_reference="false">array</type>
|
2282 |
</tag>
|
2283 |
-
<tag line="
|
2284 |
<type by_reference="false">float</type>
|
2285 |
</tag>
|
2286 |
</docblock>
|
2287 |
-
<argument line="
|
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="
|
2294 |
<name>mla_IPTC_EXIF_error_handler</name>
|
2295 |
<full_name>mla_IPTC_EXIF_error_handler</full_name>
|
2296 |
-
<docblock line="
|
2297 |
<description><![CDATA[Intercept IPTC and EXIF parse errors]]></description>
|
2298 |
<long-description><![CDATA[]]></long-description>
|
2299 |
-
<tag line="
|
2300 |
-
<tag line="
|
2301 |
<type by_reference="false">int</type>
|
2302 |
</tag>
|
2303 |
-
<tag line="
|
2304 |
<type by_reference="false">string</type>
|
2305 |
</tag>
|
2306 |
-
<tag line="
|
2307 |
<type by_reference="false">string</type>
|
2308 |
</tag>
|
2309 |
-
<tag line="
|
2310 |
<type by_reference="false">int</type>
|
2311 |
</tag>
|
2312 |
-
<tag line="
|
2313 |
<type by_reference="false">boolean</type>
|
2314 |
</tag>
|
2315 |
</docblock>
|
2316 |
-
<argument line="
|
2317 |
<name>$type</name>
|
2318 |
<default><![CDATA[]]></default>
|
2319 |
<type/>
|
2320 |
</argument>
|
2321 |
-
<argument line="
|
2322 |
<name>$string</name>
|
2323 |
<default><![CDATA[]]></default>
|
2324 |
<type/>
|
2325 |
</argument>
|
2326 |
-
<argument line="
|
2327 |
<name>$file</name>
|
2328 |
<default><![CDATA[]]></default>
|
2329 |
<type/>
|
2330 |
</argument>
|
2331 |
-
<argument line="
|
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="
|
2338 |
<name>mla_fetch_attachment_image_metadata</name>
|
2339 |
<full_name>mla_fetch_attachment_image_metadata</full_name>
|
2340 |
-
<docblock line="
|
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="
|
2344 |
-
<tag line="
|
2345 |
<type by_reference="false">int</type>
|
2346 |
</tag>
|
2347 |
-
<tag line="
|
2348 |
<type by_reference="false">string</type>
|
2349 |
</tag>
|
2350 |
-
<tag line="
|
2351 |
<type by_reference="false">array</type>
|
2352 |
</tag>
|
2353 |
</docblock>
|
2354 |
-
<argument line="
|
2355 |
<name>$post_id</name>
|
2356 |
<default><![CDATA[]]></default>
|
2357 |
<type/>
|
2358 |
</argument>
|
2359 |
-
<argument line="
|
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="
|
2366 |
<name>mla_update_wp_attachment_metadata</name>
|
2367 |
<full_name>mla_update_wp_attachment_metadata</full_name>
|
2368 |
-
<docblock line="
|
2369 |
<description><![CDATA[Update "meta:" data for a single attachment]]></description>
|
2370 |
<long-description><![CDATA[]]></long-description>
|
2371 |
-
<tag line="
|
2372 |
-
<tag line="
|
2373 |
<type by_reference="false">array</type>
|
2374 |
</tag>
|
2375 |
-
<tag line="
|
2376 |
<type by_reference="false">array</type>
|
2377 |
</tag>
|
2378 |
-
<tag line="
|
2379 |
<type by_reference="false">string</type>
|
2380 |
</tag>
|
2381 |
</docblock>
|
2382 |
-
<argument line="
|
2383 |
<name>$current_values</name>
|
2384 |
<default><![CDATA[]]></default>
|
2385 |
<type/>
|
2386 |
</argument>
|
2387 |
-
<argument line="
|
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="
|
2394 |
<name>mla_update_item_postmeta</name>
|
2395 |
<full_name>mla_update_item_postmeta</full_name>
|
2396 |
-
<docblock line="
|
2397 |
<description><![CDATA[Update custom field and "meta:" data for a single attachment]]></description>
|
2398 |
<long-description><![CDATA[]]></long-description>
|
2399 |
-
<tag line="
|
2400 |
-
<tag line="
|
2401 |
<type by_reference="false">int</type>
|
2402 |
</tag>
|
2403 |
-
<tag line="
|
2404 |
<type by_reference="false">array</type>
|
2405 |
</tag>
|
2406 |
-
<tag line="
|
2407 |
<type by_reference="false">string</type>
|
2408 |
</tag>
|
2409 |
</docblock>
|
2410 |
-
<argument line="
|
2411 |
<name>$post_id</name>
|
2412 |
<default><![CDATA[]]></default>
|
2413 |
<type/>
|
2414 |
</argument>
|
2415 |
-
<argument line="
|
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="
|
2422 |
<name>mla_update_single_item</name>
|
2423 |
<full_name>mla_update_single_item</full_name>
|
2424 |
-
<docblock line="
|
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="
|
2429 |
-
<tag line="
|
2430 |
<type by_reference="false">int</type>
|
2431 |
</tag>
|
2432 |
-
<tag line="
|
2433 |
<type by_reference="false">array</type>
|
2434 |
</tag>
|
2435 |
-
<tag line="
|
2436 |
<type by_reference="false">array</type>
|
2437 |
</tag>
|
2438 |
-
<tag line="
|
2439 |
<type by_reference="false">array</type>
|
2440 |
</tag>
|
2441 |
-
<tag line="
|
2442 |
<type by_reference="false">array</type>
|
2443 |
</tag>
|
2444 |
</docblock>
|
2445 |
-
<argument line="
|
2446 |
<name>$post_id</name>
|
2447 |
<default><![CDATA[]]></default>
|
2448 |
<type/>
|
2449 |
</argument>
|
2450 |
-
<argument line="
|
2451 |
<name>$new_data</name>
|
2452 |
<default><![CDATA[]]></default>
|
2453 |
<type/>
|
2454 |
</argument>
|
2455 |
-
<argument line="
|
2456 |
<name>$tax_input</name>
|
2457 |
<default><![CDATA[NULL]]></default>
|
2458 |
<type/>
|
2459 |
</argument>
|
2460 |
-
<argument line="
|
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="
|
2467 |
<name>_remove_tags</name>
|
2468 |
<full_name>_remove_tags</full_name>
|
2469 |
-
<docblock line="
|
2470 |
<description><![CDATA[Remove tags from a term ids list]]></description>
|
2471 |
<long-description><![CDATA[]]></long-description>
|
2472 |
-
<tag line="
|
2473 |
-
<tag line="
|
2474 |
<type by_reference="false">array</type>
|
2475 |
</tag>
|
2476 |
-
<tag line="
|
2477 |
<type by_reference="false">array</type>
|
2478 |
</tag>
|
2479 |
-
<tag line="
|
2480 |
<type by_reference="false">object</type>
|
2481 |
</tag>
|
2482 |
-
<tag line="
|
2483 |
<type by_reference="false">array</type>
|
2484 |
</tag>
|
2485 |
</docblock>
|
2486 |
-
<argument line="
|
2487 |
<name>$terms_before</name>
|
2488 |
<default><![CDATA[]]></default>
|
2489 |
<type/>
|
2490 |
</argument>
|
2491 |
-
<argument line="
|
2492 |
<name>$tags</name>
|
2493 |
<default><![CDATA[]]></default>
|
2494 |
<type/>
|
2495 |
</argument>
|
2496 |
-
<argument line="
|
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="
|
2503 |
<name>_hex_dump</name>
|
2504 |
<full_name>_hex_dump</full_name>
|
2505 |
-
<docblock line="
|
2506 |
<description><![CDATA[Format printable version of binary data]]></description>
|
2507 |
<long-description><![CDATA[]]></long-description>
|
2508 |
-
<tag line="
|
2509 |
-
<tag line="
|
2510 |
<type by_reference="false">string</type>
|
2511 |
</tag>
|
2512 |
-
<tag line="
|
2513 |
<type by_reference="false">integer</type>
|
2514 |
</tag>
|
2515 |
-
<tag line="
|
2516 |
<type by_reference="false">\intger</type>
|
2517 |
</tag>
|
2518 |
-
<tag line="
|
2519 |
<type by_reference="false">integer</type>
|
2520 |
</tag>
|
2521 |
-
<tag line="
|
2522 |
<type by_reference="false">string</type>
|
2523 |
</tag>
|
2524 |
</docblock>
|
2525 |
-
<argument line="
|
2526 |
<name>$data</name>
|
2527 |
<default><![CDATA[]]></default>
|
2528 |
<type/>
|
2529 |
</argument>
|
2530 |
-
<argument line="
|
2531 |
<name>$limit</name>
|
2532 |
<default><![CDATA[0]]></default>
|
2533 |
<type/>
|
2534 |
</argument>
|
2535 |
-
<argument line="
|
2536 |
<name>$bytes_per_row</name>
|
2537 |
<default><![CDATA[16]]></default>
|
2538 |
<type/>
|
2539 |
</argument>
|
2540 |
-
<argument line="
|
2541 |
<name>$offset</name>
|
2542 |
<default><![CDATA[-1]]></default>
|
2543 |
<type/>
|
@@ -2545,7 +2676,7 @@ and meta data for a single attachment]]></description>
|
|
2545 |
</method>
|
2546 |
</class>
|
2547 |
<markers>
|
2548 |
-
<todo line="
|
2549 |
</markers>
|
2550 |
</file>
|
2551 |
<file path="includes\class-mla-edit-media.php" hash="75c542ede2570895091b3ac839d4248b" package="Media Library Assistant">
|
@@ -3067,7 +3198,7 @@ Class Walker is defined in /wp-includes/class-wp-walker.php.</p>]]></long-descri
|
|
3067 |
</method>
|
3068 |
</class>
|
3069 |
</file>
|
3070 |
-
<file path="includes\class-mla-list-table.php" hash="
|
3071 |
<docblock line="2">
|
3072 |
<description><![CDATA[Media Library Assistant extended List Table class]]></description>
|
3073 |
<long-description><![CDATA[]]></long-description>
|
@@ -3310,838 +3441,838 @@ to affect the "screen options" setup.</p>]]></long-description>
|
|
3310 |
<type/>
|
3311 |
</argument>
|
3312 |
</method>
|
3313 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3314 |
<name>mla_wpml_media_view_upload_count_filter</name>
|
3315 |
<full_name>mla_wpml_media_view_upload_count_filter</full_name>
|
3316 |
-
<docblock line="
|
3317 |
<description><![CDATA[Handler for filter "wpml-media_view-upload-count" in /plugins/wpml-media/inc/wpml-media.class.php]]></description>
|
3318 |
<long-description><![CDATA[<p>Computes the number of attachments that satisfy a meta_query specification.
|
3319 |
The count is automatically made language-specific by WPML filters.</p>]]></long-description>
|
3320 |
-
<tag line="
|
3321 |
-
<tag line="
|
3322 |
<type by_reference="false">NULL</type>
|
3323 |
</tag>
|
3324 |
-
<tag line="
|
3325 |
<type by_reference="false">string</type>
|
3326 |
</tag>
|
3327 |
-
<tag line="
|
3328 |
<type by_reference="false">string</type>
|
3329 |
</tag>
|
3330 |
-
<tag line="
|
3331 |
<type by_reference="false">string</type>
|
3332 |
</tag>
|
3333 |
-
<tag line="
|
3334 |
<type by_reference="false">mixed</type>
|
3335 |
</tag>
|
3336 |
</docblock>
|
3337 |
-
<argument line="
|
3338 |
<name>$count</name>
|
3339 |
<default><![CDATA[]]></default>
|
3340 |
<type/>
|
3341 |
</argument>
|
3342 |
-
<argument line="
|
3343 |
<name>$key</name>
|
3344 |
<default><![CDATA[]]></default>
|
3345 |
<type/>
|
3346 |
</argument>
|
3347 |
-
<argument line="
|
3348 |
<name>$view</name>
|
3349 |
<default><![CDATA[]]></default>
|
3350 |
<type/>
|
3351 |
</argument>
|
3352 |
-
<argument line="
|
3353 |
<name>$lang</name>
|
3354 |
<default><![CDATA[]]></default>
|
3355 |
<type/>
|
3356 |
</argument>
|
3357 |
</method>
|
3358 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3359 |
<name>mla_wpml_media_view_upload_page_count_filter</name>
|
3360 |
<full_name>mla_wpml_media_view_upload_page_count_filter</full_name>
|
3361 |
-
<docblock line="
|
3362 |
<description><![CDATA[Handler for filter "wpml-media_view-upload-page-count" in /plugins/wpml-media/inc/wpml-media.class.php]]></description>
|
3363 |
<long-description><![CDATA[<p>Computes the number of language-specific attachments that satisfy a meta_query specification.
|
3364 |
The count is made language-specific by WPML filters when the current_language is set.</p>]]></long-description>
|
3365 |
-
<tag line="
|
3366 |
-
<tag line="
|
3367 |
<type by_reference="false">NULL</type>
|
3368 |
</tag>
|
3369 |
-
<tag line="
|
3370 |
<type by_reference="false">string</type>
|
3371 |
</tag>
|
3372 |
-
<tag line="
|
3373 |
<type by_reference="false">mixed</type>
|
3374 |
</tag>
|
3375 |
</docblock>
|
3376 |
-
<argument line="
|
3377 |
<name>$count</name>
|
3378 |
<default><![CDATA[]]></default>
|
3379 |
<type/>
|
3380 |
</argument>
|
3381 |
-
<argument line="
|
3382 |
<name>$lang</name>
|
3383 |
<default><![CDATA[]]></default>
|
3384 |
<type/>
|
3385 |
</argument>
|
3386 |
</method>
|
3387 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
3388 |
<name>mla_localize_default_columns_array</name>
|
3389 |
<full_name>mla_localize_default_columns_array</full_name>
|
3390 |
-
<docblock line="
|
3391 |
<description><![CDATA[Builds the $default_columns array with translated source texts.]]></description>
|
3392 |
<long-description><![CDATA[<p>Called from MLA:mla_plugins_loaded_action because the $default_columns information might be
|
3393 |
accessed from "front end" posts/pages.</p>]]></long-description>
|
3394 |
-
<tag line="
|
3395 |
-
<tag line="
|
3396 |
<type by_reference="false">void</type>
|
3397 |
</tag>
|
3398 |
</docblock>
|
3399 |
</method>
|
3400 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
3401 |
<name>mla_admin_init_action</name>
|
3402 |
<full_name>mla_admin_init_action</full_name>
|
3403 |
-
<docblock line="
|
3404 |
<description><![CDATA[Adds support for taxonomy and custom field columns]]></description>
|
3405 |
<long-description><![CDATA[<p>Called in the admin_init action because the list_table object isn't
|
3406 |
created in time to affect the "screen options" setup.</p>]]></long-description>
|
3407 |
-
<tag line="
|
3408 |
-
<tag line="
|
3409 |
<type by_reference="false">void</type>
|
3410 |
</tag>
|
3411 |
</docblock>
|
3412 |
</method>
|
3413 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3414 |
<name>__construct</name>
|
3415 |
<full_name>__construct</full_name>
|
3416 |
-
<docblock line="
|
3417 |
<description><![CDATA[Initializes some properties from $_REQUEST variables, then
|
3418 |
calls the parent constructor to set some default configs.]]></description>
|
3419 |
<long-description><![CDATA[]]></long-description>
|
3420 |
-
<tag line="
|
3421 |
-
<tag line="
|
3422 |
<type by_reference="false">void</type>
|
3423 |
</tag>
|
3424 |
</docblock>
|
3425 |
</method>
|
3426 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3427 |
<name>column_default</name>
|
3428 |
<full_name>column_default</full_name>
|
3429 |
-
<docblock line="
|
3430 |
<description><![CDATA[Supply a column value if no column-specific function has been defined]]></description>
|
3431 |
<long-description><![CDATA[<p>Called when the parent class can't find a method specifically built for a given column.
|
3432 |
The taxonomy and custom field columns are handled here. All other columns should have
|
3433 |
a specific method, so this function returns a troubleshooting message.</p>]]></long-description>
|
3434 |
-
<tag line="
|
3435 |
-
<tag line="
|
3436 |
<type by_reference="false">array</type>
|
3437 |
</tag>
|
3438 |
-
<tag line="
|
3439 |
<type by_reference="false">array</type>
|
3440 |
</tag>
|
3441 |
-
<tag line="
|
3442 |
<type by_reference="false">string</type>
|
3443 |
</tag>
|
3444 |
</docblock>
|
3445 |
-
<argument line="
|
3446 |
<name>$item</name>
|
3447 |
<default><![CDATA[]]></default>
|
3448 |
<type/>
|
3449 |
</argument>
|
3450 |
-
<argument line="
|
3451 |
<name>$column_name</name>
|
3452 |
<default><![CDATA[]]></default>
|
3453 |
<type/>
|
3454 |
</argument>
|
3455 |
</method>
|
3456 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3457 |
<name>column_cb</name>
|
3458 |
<full_name>column_cb</full_name>
|
3459 |
-
<docblock line="
|
3460 |
<description><![CDATA[Displays checkboxes for using bulk actions.]]></description>
|
3461 |
<long-description><![CDATA[<p>The 'cb' column
|
3462 |
is given special treatment when columns are processed.</p>]]></long-description>
|
3463 |
-
<tag line="
|
3464 |
-
<tag line="
|
3465 |
<type by_reference="false">array</type>
|
3466 |
</tag>
|
3467 |
-
<tag line="
|
3468 |
<type by_reference="false">string</type>
|
3469 |
</tag>
|
3470 |
</docblock>
|
3471 |
-
<argument line="
|
3472 |
<name>$item</name>
|
3473 |
<default><![CDATA[]]></default>
|
3474 |
<type/>
|
3475 |
</argument>
|
3476 |
</method>
|
3477 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3478 |
<name>column_icon</name>
|
3479 |
<full_name>column_icon</full_name>
|
3480 |
-
<docblock line="
|
3481 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3482 |
<long-description><![CDATA[]]></long-description>
|
3483 |
-
<tag line="
|
3484 |
-
<tag line="
|
3485 |
<type by_reference="false">array</type>
|
3486 |
</tag>
|
3487 |
-
<tag line="
|
3488 |
<type by_reference="false">string</type>
|
3489 |
</tag>
|
3490 |
</docblock>
|
3491 |
-
<argument line="
|
3492 |
<name>$item</name>
|
3493 |
<default><![CDATA[]]></default>
|
3494 |
<type/>
|
3495 |
</argument>
|
3496 |
</method>
|
3497 |
-
<method final="false" abstract="false" static="false" visibility="private" namespace="global" line="
|
3498 |
<name>_build_rollover_actions</name>
|
3499 |
<full_name>_build_rollover_actions</full_name>
|
3500 |
-
<docblock line="
|
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="
|
3505 |
-
<tag line="
|
3506 |
<type by_reference="false">object</type>
|
3507 |
</tag>
|
3508 |
-
<tag line="
|
3509 |
<type by_reference="false">string</type>
|
3510 |
</tag>
|
3511 |
-
<tag line="
|
3512 |
<type by_reference="false">array</type>
|
3513 |
</tag>
|
3514 |
</docblock>
|
3515 |
-
<argument line="
|
3516 |
<name>$item</name>
|
3517 |
<default><![CDATA[]]></default>
|
3518 |
<type/>
|
3519 |
</argument>
|
3520 |
-
<argument line="
|
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="
|
3527 |
<name>_build_inline_data</name>
|
3528 |
<full_name>_build_inline_data</full_name>
|
3529 |
-
<docblock line="
|
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="
|
3533 |
-
<tag line="
|
3534 |
<type by_reference="false">object</type>
|
3535 |
</tag>
|
3536 |
-
<tag line="
|
3537 |
<type by_reference="false">string</type>
|
3538 |
</tag>
|
3539 |
</docblock>
|
3540 |
-
<argument line="
|
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="
|
3547 |
<name>column_ID_parent</name>
|
3548 |
<full_name>column_ID_parent</full_name>
|
3549 |
-
<docblock line="
|
3550 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3551 |
<long-description><![CDATA[]]></long-description>
|
3552 |
-
<tag line="
|
3553 |
-
<tag line="
|
3554 |
<type by_reference="false">array</type>
|
3555 |
</tag>
|
3556 |
-
<tag line="
|
3557 |
<type by_reference="false">string</type>
|
3558 |
</tag>
|
3559 |
</docblock>
|
3560 |
-
<argument line="
|
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="
|
3567 |
<name>column_title_name</name>
|
3568 |
<full_name>column_title_name</full_name>
|
3569 |
-
<docblock line="
|
3570 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3571 |
<long-description><![CDATA[]]></long-description>
|
3572 |
-
<tag line="
|
3573 |
-
<tag line="
|
3574 |
<type by_reference="false">array</type>
|
3575 |
</tag>
|
3576 |
-
<tag line="
|
3577 |
<type by_reference="false">string</type>
|
3578 |
</tag>
|
3579 |
</docblock>
|
3580 |
-
<argument line="
|
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="
|
3587 |
<name>column_post_title</name>
|
3588 |
<full_name>column_post_title</full_name>
|
3589 |
-
<docblock line="
|
3590 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3591 |
<long-description><![CDATA[]]></long-description>
|
3592 |
-
<tag line="
|
3593 |
-
<tag line="
|
3594 |
<type by_reference="false">array</type>
|
3595 |
</tag>
|
3596 |
-
<tag line="
|
3597 |
<type by_reference="false">string</type>
|
3598 |
</tag>
|
3599 |
</docblock>
|
3600 |
-
<argument line="
|
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="
|
3607 |
<name>column_post_name</name>
|
3608 |
<full_name>column_post_name</full_name>
|
3609 |
-
<docblock line="
|
3610 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3611 |
<long-description><![CDATA[]]></long-description>
|
3612 |
-
<tag line="
|
3613 |
-
<tag line="
|
3614 |
<type by_reference="false">array</type>
|
3615 |
</tag>
|
3616 |
-
<tag line="
|
3617 |
<type by_reference="false">string</type>
|
3618 |
</tag>
|
3619 |
</docblock>
|
3620 |
-
<argument line="
|
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="
|
3627 |
<name>column_parent</name>
|
3628 |
<full_name>column_parent</full_name>
|
3629 |
-
<docblock line="
|
3630 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3631 |
<long-description><![CDATA[]]></long-description>
|
3632 |
-
<tag line="
|
3633 |
-
<tag line="
|
3634 |
<type by_reference="false">array</type>
|
3635 |
</tag>
|
3636 |
-
<tag line="
|
3637 |
<type by_reference="false">string</type>
|
3638 |
</tag>
|
3639 |
</docblock>
|
3640 |
-
<argument line="
|
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="
|
3647 |
<name>column_menu_order</name>
|
3648 |
<full_name>column_menu_order</full_name>
|
3649 |
-
<docblock line="
|
3650 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3651 |
<long-description><![CDATA[]]></long-description>
|
3652 |
-
<tag line="
|
3653 |
-
<tag line="
|
3654 |
<type by_reference="false">array</type>
|
3655 |
</tag>
|
3656 |
-
<tag line="
|
3657 |
<type by_reference="false">string</type>
|
3658 |
</tag>
|
3659 |
</docblock>
|
3660 |
-
<argument line="
|
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="
|
3667 |
<name>column_featured</name>
|
3668 |
<full_name>column_featured</full_name>
|
3669 |
-
<docblock line="
|
3670 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3671 |
<long-description><![CDATA[]]></long-description>
|
3672 |
-
<tag line="
|
3673 |
-
<tag line="
|
3674 |
<type by_reference="false">array</type>
|
3675 |
</tag>
|
3676 |
-
<tag line="
|
3677 |
<type by_reference="false">string</type>
|
3678 |
</tag>
|
3679 |
</docblock>
|
3680 |
-
<argument line="
|
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="
|
3687 |
<name>column_inserted</name>
|
3688 |
<full_name>column_inserted</full_name>
|
3689 |
-
<docblock line="
|
3690 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3691 |
<long-description><![CDATA[]]></long-description>
|
3692 |
-
<tag line="
|
3693 |
-
<tag line="
|
3694 |
<type by_reference="false">array</type>
|
3695 |
</tag>
|
3696 |
-
<tag line="
|
3697 |
<type by_reference="false">string</type>
|
3698 |
</tag>
|
3699 |
</docblock>
|
3700 |
-
<argument line="
|
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="
|
3707 |
<name>column_galleries</name>
|
3708 |
<full_name>column_galleries</full_name>
|
3709 |
-
<docblock line="
|
3710 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3711 |
<long-description><![CDATA[]]></long-description>
|
3712 |
-
<tag line="
|
3713 |
-
<tag line="
|
3714 |
<type by_reference="false">array</type>
|
3715 |
</tag>
|
3716 |
-
<tag line="
|
3717 |
<type by_reference="false">string</type>
|
3718 |
</tag>
|
3719 |
</docblock>
|
3720 |
-
<argument line="
|
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="
|
3727 |
<name>column_mla_galleries</name>
|
3728 |
<full_name>column_mla_galleries</full_name>
|
3729 |
-
<docblock line="
|
3730 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3731 |
<long-description><![CDATA[]]></long-description>
|
3732 |
-
<tag line="
|
3733 |
-
<tag line="
|
3734 |
<type by_reference="false">array</type>
|
3735 |
</tag>
|
3736 |
-
<tag line="
|
3737 |
<type by_reference="false">string</type>
|
3738 |
</tag>
|
3739 |
</docblock>
|
3740 |
-
<argument line="
|
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="
|
3747 |
<name>column_alt_text</name>
|
3748 |
<full_name>column_alt_text</full_name>
|
3749 |
-
<docblock line="
|
3750 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3751 |
<long-description><![CDATA[]]></long-description>
|
3752 |
-
<tag line="
|
3753 |
-
<tag line="
|
3754 |
<type by_reference="false">array</type>
|
3755 |
</tag>
|
3756 |
-
<tag line="
|
3757 |
<type by_reference="false">string</type>
|
3758 |
</tag>
|
3759 |
</docblock>
|
3760 |
-
<argument line="
|
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="
|
3767 |
<name>column_caption</name>
|
3768 |
<full_name>column_caption</full_name>
|
3769 |
-
<docblock line="
|
3770 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3771 |
<long-description><![CDATA[]]></long-description>
|
3772 |
-
<tag line="
|
3773 |
-
<tag line="
|
3774 |
<type by_reference="false">array</type>
|
3775 |
</tag>
|
3776 |
-
<tag line="
|
3777 |
<type by_reference="false">string</type>
|
3778 |
</tag>
|
3779 |
</docblock>
|
3780 |
-
<argument line="
|
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="
|
3787 |
<name>column_description</name>
|
3788 |
<full_name>column_description</full_name>
|
3789 |
-
<docblock line="
|
3790 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3791 |
<long-description><![CDATA[]]></long-description>
|
3792 |
-
<tag line="
|
3793 |
-
<tag line="
|
3794 |
<type by_reference="false">array</type>
|
3795 |
</tag>
|
3796 |
-
<tag line="
|
3797 |
<type by_reference="false">string</type>
|
3798 |
</tag>
|
3799 |
</docblock>
|
3800 |
-
<argument line="
|
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="
|
3807 |
<name>column_post_mime_type</name>
|
3808 |
<full_name>column_post_mime_type</full_name>
|
3809 |
-
<docblock line="
|
3810 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3811 |
<long-description><![CDATA[]]></long-description>
|
3812 |
-
<tag line="
|
3813 |
-
<tag line="
|
3814 |
<type by_reference="false">array</type>
|
3815 |
</tag>
|
3816 |
-
<tag line="
|
3817 |
<type by_reference="false">string</type>
|
3818 |
</tag>
|
3819 |
</docblock>
|
3820 |
-
<argument line="
|
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="
|
3827 |
<name>column_file_url</name>
|
3828 |
<full_name>column_file_url</full_name>
|
3829 |
-
<docblock line="
|
3830 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3831 |
<long-description><![CDATA[]]></long-description>
|
3832 |
-
<tag line="
|
3833 |
-
<tag line="
|
3834 |
<type by_reference="false">array</type>
|
3835 |
</tag>
|
3836 |
-
<tag line="
|
3837 |
<type by_reference="false">string</type>
|
3838 |
</tag>
|
3839 |
</docblock>
|
3840 |
-
<argument line="
|
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="
|
3847 |
<name>column_base_file</name>
|
3848 |
<full_name>column_base_file</full_name>
|
3849 |
-
<docblock line="
|
3850 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3851 |
<long-description><![CDATA[]]></long-description>
|
3852 |
-
<tag line="
|
3853 |
-
<tag line="
|
3854 |
<type by_reference="false">array</type>
|
3855 |
</tag>
|
3856 |
-
<tag line="
|
3857 |
<type by_reference="false">string</type>
|
3858 |
</tag>
|
3859 |
</docblock>
|
3860 |
-
<argument line="
|
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="
|
3867 |
<name>column_date</name>
|
3868 |
<full_name>column_date</full_name>
|
3869 |
-
<docblock line="
|
3870 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3871 |
<long-description><![CDATA[]]></long-description>
|
3872 |
-
<tag line="
|
3873 |
-
<tag line="
|
3874 |
<type by_reference="false">array</type>
|
3875 |
</tag>
|
3876 |
-
<tag line="
|
3877 |
<type by_reference="false">string</type>
|
3878 |
</tag>
|
3879 |
</docblock>
|
3880 |
-
<argument line="
|
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="
|
3887 |
<name>column_modified</name>
|
3888 |
<full_name>column_modified</full_name>
|
3889 |
-
<docblock line="
|
3890 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3891 |
<long-description><![CDATA[]]></long-description>
|
3892 |
-
<tag line="
|
3893 |
-
<tag line="
|
3894 |
<type by_reference="false">array</type>
|
3895 |
</tag>
|
3896 |
-
<tag line="
|
3897 |
<type by_reference="false">string</type>
|
3898 |
</tag>
|
3899 |
</docblock>
|
3900 |
-
<argument line="
|
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="
|
3907 |
<name>column_author</name>
|
3908 |
<full_name>column_author</full_name>
|
3909 |
-
<docblock line="
|
3910 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3911 |
<long-description><![CDATA[]]></long-description>
|
3912 |
-
<tag line="
|
3913 |
-
<tag line="
|
3914 |
<type by_reference="false">array</type>
|
3915 |
</tag>
|
3916 |
-
<tag line="
|
3917 |
<type by_reference="false">string</type>
|
3918 |
</tag>
|
3919 |
</docblock>
|
3920 |
-
<argument line="
|
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="
|
3927 |
<name>column_attached_to</name>
|
3928 |
<full_name>column_attached_to</full_name>
|
3929 |
-
<docblock line="
|
3930 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3931 |
<long-description><![CDATA[]]></long-description>
|
3932 |
-
<tag line="
|
3933 |
-
<tag line="
|
3934 |
<type by_reference="false">array</type>
|
3935 |
</tag>
|
3936 |
-
<tag line="
|
3937 |
<type by_reference="false">string</type>
|
3938 |
</tag>
|
3939 |
</docblock>
|
3940 |
-
<argument line="
|
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="
|
3947 |
<name>mla_submenu_arguments</name>
|
3948 |
<full_name>mla_submenu_arguments</full_name>
|
3949 |
-
<docblock line="
|
3950 |
<description><![CDATA[Process $_REQUEST, building $submenu_arguments]]></description>
|
3951 |
<long-description><![CDATA[]]></long-description>
|
3952 |
-
<tag line="
|
3953 |
-
<tag line="
|
3954 |
<type by_reference="false">boolean</type>
|
3955 |
</tag>
|
3956 |
-
<tag line="
|
3957 |
<type by_reference="false">array</type>
|
3958 |
</tag>
|
3959 |
</docblock>
|
3960 |
-
<argument line="
|
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="
|
3967 |
<name>pagination</name>
|
3968 |
<full_name>pagination</full_name>
|
3969 |
-
<docblock line="
|
3970 |
<description><![CDATA[Display the pagination, adding view, search and filter arguments]]></description>
|
3971 |
<long-description><![CDATA[]]></long-description>
|
3972 |
-
<tag line="
|
3973 |
-
<tag line="
|
3974 |
<type by_reference="false">string</type>
|
3975 |
</tag>
|
3976 |
-
<tag line="
|
3977 |
<type by_reference="false">void</type>
|
3978 |
</tag>
|
3979 |
</docblock>
|
3980 |
-
<argument line="
|
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="
|
3987 |
<name>get_columns</name>
|
3988 |
<full_name>get_columns</full_name>
|
3989 |
-
<docblock line="
|
3990 |
<description><![CDATA[This method dictates the table's columns and titles]]></description>
|
3991 |
<long-description><![CDATA[]]></long-description>
|
3992 |
-
<tag line="
|
3993 |
-
<tag line="
|
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="
|
3999 |
<name>get_hidden_columns</name>
|
4000 |
<full_name>get_hidden_columns</full_name>
|
4001 |
-
<docblock line="
|
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="
|
4006 |
-
<tag line="
|
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="
|
4012 |
<name>get_sortable_columns</name>
|
4013 |
<full_name>get_sortable_columns</full_name>
|
4014 |
-
<docblock line="
|
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="
|
4020 |
-
<tag line="
|
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="
|
4026 |
<name>print_column_headers</name>
|
4027 |
<full_name>print_column_headers</full_name>
|
4028 |
-
<docblock line="
|
4029 |
<description><![CDATA[Print column headers, adding view, search and filter arguments]]></description>
|
4030 |
<long-description><![CDATA[]]></long-description>
|
4031 |
-
<tag line="
|
4032 |
-
<tag line="
|
4033 |
<type by_reference="false">bool</type>
|
4034 |
</tag>
|
4035 |
</docblock>
|
4036 |
-
<argument line="
|
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="
|
4043 |
<name>_get_view</name>
|
4044 |
<full_name>_get_view</full_name>
|
4045 |
-
<docblock line="
|
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="
|
4049 |
-
<tag line="
|
4050 |
<type by_reference="false">string</type>
|
4051 |
</tag>
|
4052 |
-
<tag line="
|
4053 |
<type by_reference="false">string</type>
|
4054 |
</tag>
|
4055 |
-
<tag line="
|
4056 |
<type by_reference="false">string</type>
|
4057 |
</tag>
|
4058 |
</docblock>
|
4059 |
-
<argument line="
|
4060 |
<name>$view_slug</name>
|
4061 |
<default><![CDATA[]]></default>
|
4062 |
<type/>
|
4063 |
</argument>
|
4064 |
-
<argument line="
|
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="
|
4071 |
<name>get_views</name>
|
4072 |
<full_name>get_views</full_name>
|
4073 |
-
<docblock line="
|
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="
|
4077 |
-
<tag line="
|
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="
|
4083 |
<name>get_bulk_actions</name>
|
4084 |
<full_name>get_bulk_actions</full_name>
|
4085 |
-
<docblock line="
|
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="
|
4090 |
-
<tag line="
|
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="
|
4096 |
<name>extra_tablenav</name>
|
4097 |
<full_name>extra_tablenav</full_name>
|
4098 |
-
<docblock line="
|
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="
|
4102 |
-
<tag line="
|
4103 |
<type by_reference="false">string</type>
|
4104 |
</tag>
|
4105 |
-
<tag line="
|
4106 |
<type by_reference="false">array</type>
|
4107 |
</tag>
|
4108 |
</docblock>
|
4109 |
-
<argument line="
|
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="
|
4116 |
<name>prepare_items</name>
|
4117 |
<full_name>prepare_items</full_name>
|
4118 |
-
<docblock line="
|
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="
|
4125 |
-
<tag line="
|
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="
|
4131 |
<name>single_row</name>
|
4132 |
<full_name>single_row</full_name>
|
4133 |
-
<docblock line="
|
4134 |
<description><![CDATA[Generates (echoes) content for a single row of the table]]></description>
|
4135 |
<long-description><![CDATA[]]></long-description>
|
4136 |
-
<tag line="
|
4137 |
-
<tag line="
|
4138 |
<type by_reference="false">object</type>
|
4139 |
</tag>
|
4140 |
-
<tag line="
|
4141 |
<type by_reference="false">void</type>
|
4142 |
</tag>
|
4143 |
</docblock>
|
4144 |
-
<argument line="
|
4145 |
<name>$item</name>
|
4146 |
<default><![CDATA[]]></default>
|
4147 |
<type/>
|
@@ -4149,7 +4280,7 @@ $this->set_pagination_args().</p>]]></long-description>
|
|
4149 |
</method>
|
4150 |
</class>
|
4151 |
</file>
|
4152 |
-
<file path="includes\class-mla-main.php" hash="
|
4153 |
<docblock line="2">
|
4154 |
<description><![CDATA[Top-level functions for the Media Library Assistant]]></description>
|
4155 |
<long-description><![CDATA[]]></long-description>
|
@@ -4176,7 +4307,7 @@ of images and files held in the WordPress Media Library.]]></description>
|
|
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.
|
4180 |
<docblock line="25">
|
4181 |
<description><![CDATA[Current version number]]></description>
|
4182 |
<long-description><![CDATA[]]></long-description>
|
@@ -4382,8 +4513,8 @@ of images and files held in the WordPress Media Library.]]></description>
|
|
4382 |
</docblock>
|
4383 |
</constant>
|
4384 |
<constant namespace="global" line="176" package="Media Library Assistant">
|
4385 |
-
<name>
|
4386 |
-
<full_name>
|
4387 |
<value><![CDATA['terms_search']]></value>
|
4388 |
<docblock line="169">
|
4389 |
<description><![CDATA[mla_admin_action value for searching taxonomy terms]]></description>
|
@@ -4848,8 +4979,8 @@ Adds filters for post type and pagination.</p>]]></long-description>
|
|
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="
|
4852 |
-
<type by_reference="false">
|
4853 |
</tag>
|
4854 |
<tag line="1871" name="return" description="message and/or HTML content" type="array">
|
4855 |
<type by_reference="false">array</type>
|
@@ -4868,8 +4999,8 @@ change the meta data for a single attachment.]]></description>
|
|
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
|
4872 |
-
<type by_reference="false">
|
4873 |
</tag>
|
4874 |
<tag line="2155" name="return" description="success/failure message and NULL content" type="array">
|
4875 |
<type by_reference="false">array</type>
|
@@ -4888,8 +5019,8 @@ change the meta data for a single attachment.]]></description>
|
|
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
|
4892 |
-
<type by_reference="false">
|
4893 |
</tag>
|
4894 |
<tag line="2195" name="return" description="success/failure message and NULL content" type="array">
|
4895 |
<type by_reference="false">array</type>
|
@@ -4903,14 +5034,14 @@ change the meta data for a single attachment.]]></description>
|
|
4903 |
</method>
|
4904 |
</class>
|
4905 |
</file>
|
4906 |
-
<file path="includes\class-mla-media-modal.php" hash="
|
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="
|
4914 |
<name/>
|
4915 |
</include>
|
4916 |
<class final="false" abstract="false" namespace="global" line="15" package="Media Library Assistant">
|
@@ -5026,33 +5157,19 @@ change the meta data for a single attachment.]]></description>
|
|
5026 |
</tag>
|
5027 |
</docblock>
|
5028 |
</property>
|
5029 |
-
<property final="false" static="true" visibility="private" line="
|
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="
|
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="
|
5037 |
-
<tag line="
|
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>
|
@@ -5118,221 +5235,221 @@ Declared public because it is a filter.</p>]]></long-description>
|
|
5118 |
<type/>
|
5119 |
</argument>
|
5120 |
</method>
|
5121 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
5122 |
<name>_months_dropdown</name>
|
5123 |
<full_name>_months_dropdown</full_name>
|
5124 |
-
<docblock line="
|
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="
|
5128 |
-
<tag line="
|
5129 |
<type by_reference="false">string</type>
|
5130 |
</tag>
|
5131 |
-
<tag line="
|
5132 |
<type by_reference="false">array</type>
|
5133 |
</tag>
|
5134 |
</docblock>
|
5135 |
-
<argument line="
|
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="
|
5142 |
<name>_terms_options</name>
|
5143 |
<full_name>_terms_options</full_name>
|
5144 |
-
<docblock line="
|
5145 |
<description><![CDATA[Extract value and text elements from Dropdown HTML option tags]]></description>
|
5146 |
<long-description><![CDATA[]]></long-description>
|
5147 |
-
<tag line="
|
5148 |
-
<tag line="
|
5149 |
<type by_reference="false">string</type>
|
5150 |
</tag>
|
5151 |
-
<tag line="
|
5152 |
<type by_reference="false">array</type>
|
5153 |
</tag>
|
5154 |
</docblock>
|
5155 |
-
<argument line="
|
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="
|
5162 |
<name>mla_media_view_settings_filter</name>
|
5163 |
<full_name>mla_media_view_settings_filter</full_name>
|
5164 |
-
<docblock line="
|
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="
|
5168 |
-
<tag line="
|
5169 |
<type by_reference="false">array</type>
|
5170 |
</tag>
|
5171 |
-
<tag line="
|
5172 |
<type by_reference="false">object</type>
|
5173 |
</tag>
|
5174 |
-
<tag line="
|
5175 |
<type by_reference="false">array</type>
|
5176 |
</tag>
|
5177 |
</docblock>
|
5178 |
-
<argument line="
|
5179 |
<name>$settings</name>
|
5180 |
<default><![CDATA[]]></default>
|
5181 |
<type/>
|
5182 |
</argument>
|
5183 |
-
<argument line="
|
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="
|
5190 |
<name>mla_media_view_strings_filter</name>
|
5191 |
<full_name>mla_media_view_strings_filter</full_name>
|
5192 |
-
<docblock line="
|
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="
|
5196 |
-
<tag line="
|
5197 |
<type by_reference="false">array</type>
|
5198 |
</tag>
|
5199 |
-
<tag line="
|
5200 |
<type by_reference="false">object</type>
|
5201 |
</tag>
|
5202 |
-
<tag line="
|
5203 |
<type by_reference="false">array</type>
|
5204 |
</tag>
|
5205 |
</docblock>
|
5206 |
-
<argument line="
|
5207 |
<name>$strings</name>
|
5208 |
<default><![CDATA[]]></default>
|
5209 |
<type/>
|
5210 |
</argument>
|
5211 |
-
<argument line="
|
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="
|
5218 |
<name>mla_wp_enqueue_media_action</name>
|
5219 |
<full_name>mla_wp_enqueue_media_action</full_name>
|
5220 |
-
<docblock line="
|
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="
|
5224 |
-
<tag line="
|
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="
|
5230 |
<name>mla_print_media_templates_action</name>
|
5231 |
<full_name>mla_print_media_templates_action</full_name>
|
5232 |
-
<docblock line="
|
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="
|
5236 |
-
<tag line="
|
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="
|
5242 |
<name>mla_admin_init_action</name>
|
5243 |
<full_name>mla_admin_init_action</full_name>
|
5244 |
-
<docblock line="
|
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="
|
5249 |
-
<tag line="
|
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="
|
5255 |
<name>mla_fill_compat_fields_action</name>
|
5256 |
<full_name>mla_fill_compat_fields_action</full_name>
|
5257 |
-
<docblock line="
|
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="
|
5261 |
-
<tag line="
|
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="
|
5267 |
<name>mla_update_compat_fields_action</name>
|
5268 |
<full_name>mla_update_compat_fields_action</full_name>
|
5269 |
-
<docblock line="
|
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="
|
5273 |
-
<tag line="
|
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="
|
5279 |
<name>mla_query_attachments_action</name>
|
5280 |
<full_name>mla_query_attachments_action</full_name>
|
5281 |
-
<docblock line="
|
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="
|
5285 |
-
<tag line="
|
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="
|
5291 |
<name>mla_add_terms_search_scripts</name>
|
5292 |
<full_name>mla_add_terms_search_scripts</full_name>
|
5293 |
-
<docblock line="
|
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="
|
5298 |
-
<tag line="
|
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="
|
5304 |
<name>mla_add_terms_search_form</name>
|
5305 |
<full_name>mla_add_terms_search_form</full_name>
|
5306 |
-
<docblock line="
|
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="
|
5311 |
-
<tag line="
|
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="
|
5317 |
<name>mla_echo_terms_search_form</name>
|
5318 |
<full_name>mla_echo_terms_search_form</full_name>
|
5319 |
-
<docblock line="
|
5320 |
<description><![CDATA[Echo the hidden form for the "Search Terms" popup modal window]]></description>
|
5321 |
<long-description><![CDATA[]]></long-description>
|
5322 |
-
<tag line="
|
5323 |
-
<tag line="
|
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="
|
5329 |
<name>mla_terms_search_form</name>
|
5330 |
<full_name>mla_terms_search_form</full_name>
|
5331 |
-
<docblock line="
|
5332 |
<description><![CDATA[Build the hidden form for the "Search Terms" popup modal window]]></description>
|
5333 |
<long-description><![CDATA[]]></long-description>
|
5334 |
-
<tag line="
|
5335 |
-
<tag line="
|
5336 |
<type by_reference="false">string</type>
|
5337 |
</tag>
|
5338 |
</docblock>
|
@@ -6797,17 +6914,17 @@ which returns a count of the attachments assigned a given term]]></description>
|
|
6797 |
</method>
|
6798 |
</class>
|
6799 |
</file>
|
6800 |
-
<file path="includes\class-mla-options.php" hash="
|
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="
|
6808 |
<name/>
|
6809 |
</include>
|
6810 |
-
<include line="
|
6811 |
<name/>
|
6812 |
</include>
|
6813 |
<class final="false" abstract="false" namespace="global" line="18" package="Media Library Assistant">
|
@@ -7047,204 +7164,223 @@ and provides functions to get and put them from/to WordPress option variables]]>
|
|
7047 |
</docblock>
|
7048 |
</constant>
|
7049 |
<constant namespace="global" line="148" package="Media Library Assistant">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7050 |
<name>MLA_MEDIA_MODAL_TOOLBAR</name>
|
7051 |
<full_name>MLA_MEDIA_MODAL_TOOLBAR</full_name>
|
7052 |
<value><![CDATA['media_modal_toolbar']]></value>
|
7053 |
-
<docblock line="
|
7054 |
<description><![CDATA[Provides a unique name for the Media Manager toolbar option, which
|
7055 |
also controls the ATTACHMENT DETAILS enhancements]]></description>
|
7056 |
<long-description><![CDATA[]]></long-description>
|
7057 |
</docblock>
|
7058 |
</constant>
|
7059 |
-
<constant namespace="global" line="
|
7060 |
<name>MLA_MEDIA_MODAL_MIMETYPES</name>
|
7061 |
<full_name>MLA_MEDIA_MODAL_MIMETYPES</full_name>
|
7062 |
<value><![CDATA['media_modal_mimetypes']]></value>
|
7063 |
-
<docblock line="
|
7064 |
<description><![CDATA[Provides a unique name for the Media Manager toolbar MIME Types option]]></description>
|
7065 |
<long-description><![CDATA[]]></long-description>
|
7066 |
</docblock>
|
7067 |
</constant>
|
7068 |
-
<constant namespace="global" line="
|
7069 |
<name>MLA_MEDIA_MODAL_MONTHS</name>
|
7070 |
<full_name>MLA_MEDIA_MODAL_MONTHS</full_name>
|
7071 |
<value><![CDATA['media_modal_months']]></value>
|
7072 |
-
<docblock line="
|
7073 |
<description><![CDATA[Provides a unique name for the Media Manager toolbar Month and Year option]]></description>
|
7074 |
<long-description><![CDATA[]]></long-description>
|
7075 |
</docblock>
|
7076 |
</constant>
|
7077 |
-
<constant namespace="global" line="
|
7078 |
<name>MLA_MEDIA_MODAL_TERMS</name>
|
7079 |
<full_name>MLA_MEDIA_MODAL_TERMS</full_name>
|
7080 |
<value><![CDATA['media_modal_terms']]></value>
|
7081 |
-
<docblock line="
|
7082 |
<description><![CDATA[Provides a unique name for the Media Manager toolbar Taxonomy Terms option]]></description>
|
7083 |
<long-description><![CDATA[]]></long-description>
|
7084 |
</docblock>
|
7085 |
</constant>
|
7086 |
-
<constant namespace="global" line="
|
7087 |
<name>MLA_MEDIA_MODAL_TERMS_SEARCH</name>
|
7088 |
<full_name>MLA_MEDIA_MODAL_TERMS_SEARCH</full_name>
|
7089 |
<value><![CDATA['media_modal_terms_search']]></value>
|
7090 |
-
<docblock line="
|
7091 |
<description><![CDATA[Provides a unique name for the Media Manager toolbar Taxonomy "Terms Search" option]]></description>
|
7092 |
<long-description><![CDATA[]]></long-description>
|
7093 |
</docblock>
|
7094 |
</constant>
|
7095 |
-
<constant namespace="global" line="
|
7096 |
<name>MLA_MEDIA_MODAL_SEARCHBOX</name>
|
7097 |
<full_name>MLA_MEDIA_MODAL_SEARCHBOX</full_name>
|
7098 |
<value><![CDATA['media_modal_searchbox']]></value>
|
7099 |
-
<docblock line="
|
7100 |
<description><![CDATA[Provides a unique name for the Media Manager toolbar Search Box option]]></description>
|
7101 |
<long-description><![CDATA[]]></long-description>
|
7102 |
</docblock>
|
7103 |
</constant>
|
7104 |
-
<constant namespace="global" line="
|
7105 |
<name>MLA_MEDIA_MODAL_SEARCHBOX_CONTROLS</name>
|
7106 |
<full_name>MLA_MEDIA_MODAL_SEARCHBOX_CONTROLS</full_name>
|
7107 |
<value><![CDATA['media_modal_searchbox_controls']]></value>
|
7108 |
-
<docblock line="
|
7109 |
<description><![CDATA[Provides a unique name for the Media Manager toolbar Search Box Controls option]]></description>
|
7110 |
<long-description><![CDATA[]]></long-description>
|
7111 |
</docblock>
|
7112 |
</constant>
|
7113 |
-
<constant namespace="global" line="
|
7114 |
<name>MLA_MEDIA_MODAL_DETAILS_CATEGORY_METABOX</name>
|
7115 |
<full_name>MLA_MEDIA_MODAL_DETAILS_CATEGORY_METABOX</full_name>
|
7116 |
<value><![CDATA['media_modal_details_category_metabox']]></value>
|
7117 |
-
<docblock line="
|
7118 |
<description><![CDATA[Provides a unique name for the Media Manager Attachment Details searchable taxonomy option
|
7119 |
This option is for hierarchical taxonomies, e.g., "Att.]]></description>
|
7120 |
<long-description><![CDATA[<p>Categories".</p>]]></long-description>
|
7121 |
</docblock>
|
7122 |
</constant>
|
7123 |
-
<constant namespace="global" line="
|
7124 |
<name>MLA_MEDIA_MODAL_DETAILS_TAG_METABOX</name>
|
7125 |
<full_name>MLA_MEDIA_MODAL_DETAILS_TAG_METABOX</full_name>
|
7126 |
<value><![CDATA['media_modal_details_tag_metabox']]></value>
|
7127 |
-
<docblock line="
|
7128 |
<description><![CDATA[Provides a unique name for the Media Manager Attachment Details searchable taxonomy option
|
7129 |
This option is for flat taxonomies, e.g., "Att.]]></description>
|
7130 |
<long-description><![CDATA[<p>Tags".</p>]]></long-description>
|
7131 |
</docblock>
|
7132 |
</constant>
|
7133 |
-
<constant namespace="global" line="
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7134 |
<name>MLA_MEDIA_MODAL_ORDERBY</name>
|
7135 |
<full_name>MLA_MEDIA_MODAL_ORDERBY</full_name>
|
7136 |
<value><![CDATA['media_modal_orderby']]></value>
|
7137 |
-
<docblock line="
|
7138 |
<description><![CDATA[Provides a unique name for the Media Manager orderby option]]></description>
|
7139 |
<long-description><![CDATA[]]></long-description>
|
7140 |
</docblock>
|
7141 |
</constant>
|
7142 |
-
<constant namespace="global" line="
|
7143 |
<name>MLA_MEDIA_MODAL_ORDER</name>
|
7144 |
<full_name>MLA_MEDIA_MODAL_ORDER</full_name>
|
7145 |
<value><![CDATA['media_modal_order']]></value>
|
7146 |
-
<docblock line="
|
7147 |
<description><![CDATA[Provides a unique name for the Media Manager order option]]></description>
|
7148 |
<long-description><![CDATA[]]></long-description>
|
7149 |
</docblock>
|
7150 |
</constant>
|
7151 |
-
<constant namespace="global" line="
|
7152 |
<name>MLA_POST_MIME_TYPES</name>
|
7153 |
<full_name>MLA_POST_MIME_TYPES</full_name>
|
7154 |
<value><![CDATA['post_mime_types']]></value>
|
7155 |
-
<docblock line="
|
7156 |
<description><![CDATA[Provides a unique name for the Post MIME Types option]]></description>
|
7157 |
<long-description><![CDATA[]]></long-description>
|
7158 |
</docblock>
|
7159 |
</constant>
|
7160 |
-
<constant namespace="global" line="
|
7161 |
<name>MLA_ENABLE_POST_MIME_TYPES</name>
|
7162 |
<full_name>MLA_ENABLE_POST_MIME_TYPES</full_name>
|
7163 |
<value><![CDATA['enable_post_mime_types']]></value>
|
7164 |
-
<docblock line="
|
7165 |
<description><![CDATA[Provides a unique name for the Enable Post MIME Types option]]></description>
|
7166 |
<long-description><![CDATA[]]></long-description>
|
7167 |
</docblock>
|
7168 |
</constant>
|
7169 |
-
<constant namespace="global" line="
|
7170 |
<name>MLA_UPLOAD_MIMES</name>
|
7171 |
<full_name>MLA_UPLOAD_MIMES</full_name>
|
7172 |
<value><![CDATA['upload_mimes']]></value>
|
7173 |
-
<docblock line="
|
7174 |
<description><![CDATA[Provides a unique name for the Upload MIME Types option]]></description>
|
7175 |
<long-description><![CDATA[]]></long-description>
|
7176 |
</docblock>
|
7177 |
</constant>
|
7178 |
-
<constant namespace="global" line="
|
7179 |
<name>MLA_ENABLE_UPLOAD_MIMES</name>
|
7180 |
<full_name>MLA_ENABLE_UPLOAD_MIMES</full_name>
|
7181 |
<value><![CDATA['enable_upload_mimes']]></value>
|
7182 |
-
<docblock line="
|
7183 |
<description><![CDATA[Provides a unique name for the Enable Upload MIME Types option]]></description>
|
7184 |
<long-description><![CDATA[]]></long-description>
|
7185 |
</docblock>
|
7186 |
</constant>
|
7187 |
-
<constant namespace="global" line="
|
7188 |
<name>MLA_ENABLE_MLA_ICONS</name>
|
7189 |
<full_name>MLA_ENABLE_MLA_ICONS</full_name>
|
7190 |
<value><![CDATA['enable_mla_icons']]></value>
|
7191 |
-
<docblock line="
|
7192 |
<description><![CDATA[Provides a unique name for the Enable MLA Icons option]]></description>
|
7193 |
<long-description><![CDATA[]]></long-description>
|
7194 |
</docblock>
|
7195 |
</constant>
|
7196 |
-
<property final="false" static="true" visibility="public" line="
|
7197 |
<name>$process_featured_in</name>
|
7198 |
<default><![CDATA[true]]></default>
|
7199 |
-
<docblock line="
|
7200 |
<description><![CDATA[Option setting for "Featured in" reporting]]></description>
|
7201 |
<long-description><![CDATA[<p>This setting is false if the "Featured in" database access setting is "disabled", else true.</p>]]></long-description>
|
7202 |
-
<tag line="
|
7203 |
-
<tag line="
|
7204 |
<type by_reference="false">boolean</type>
|
7205 |
</tag>
|
7206 |
</docblock>
|
7207 |
</property>
|
7208 |
-
<property final="false" static="true" visibility="public" line="
|
7209 |
<name>$process_inserted_in</name>
|
7210 |
<default><![CDATA[true]]></default>
|
7211 |
-
<docblock line="
|
7212 |
<description><![CDATA[Option setting for "Inserted in" reporting]]></description>
|
7213 |
<long-description><![CDATA[<p>This setting is false if the "Inserted in" database access setting is "disabled", else true.</p>]]></long-description>
|
7214 |
-
<tag line="
|
7215 |
-
<tag line="
|
7216 |
<type by_reference="false">boolean</type>
|
7217 |
</tag>
|
7218 |
</docblock>
|
7219 |
</property>
|
7220 |
-
<property final="false" static="true" visibility="public" line="
|
7221 |
<name>$process_gallery_in</name>
|
7222 |
<default><![CDATA[true]]></default>
|
7223 |
-
<docblock line="
|
7224 |
<description><![CDATA[Option setting for "Gallery in" reporting]]></description>
|
7225 |
<long-description><![CDATA[<p>This setting is false if the "Gallery in" database access setting is "disabled", else true.</p>]]></long-description>
|
7226 |
-
<tag line="
|
7227 |
-
<tag line="
|
7228 |
<type by_reference="false">boolean</type>
|
7229 |
</tag>
|
7230 |
</docblock>
|
7231 |
</property>
|
7232 |
-
<property final="false" static="true" visibility="public" line="
|
7233 |
<name>$process_mla_gallery_in</name>
|
7234 |
<default><![CDATA[true]]></default>
|
7235 |
-
<docblock line="
|
7236 |
<description><![CDATA[Option setting for "MLA Gallery in" reporting]]></description>
|
7237 |
<long-description><![CDATA[<p>This setting is false if the "MLA Gallery in" database access setting is "disabled", else true.</p>]]></long-description>
|
7238 |
-
<tag line="
|
7239 |
-
<tag line="
|
7240 |
<type by_reference="false">boolean</type>
|
7241 |
</tag>
|
7242 |
</docblock>
|
7243 |
</property>
|
7244 |
-
<property final="false" static="true" visibility="public" line="
|
7245 |
<name>$mla_option_definitions</name>
|
7246 |
<default><![CDATA[array()]]></default>
|
7247 |
-
<docblock line="
|
7248 |
<description><![CDATA[$mla_option_definitions defines the database options and admin page areas for setting/updating them]]></description>
|
7249 |
<long-description><![CDATA[<p>The array must be populated at runtime in MLAOptions::mla_localize_option_definitions_array(),
|
7250 |
because Localization calls cannot be placed in the "public static" array definition itself.</p>
|
@@ -7273,1228 +7409,1228 @@ reset => reset function for 'custom' options; returns nothing. Usage:
|
|
7273 |
$message = ['reset']( 'reset', $key, $value, $_REQUEST );</p>]]></long-description>
|
7274 |
</docblock>
|
7275 |
</property>
|
7276 |
-
<property final="false" static="true" visibility="private" line="
|
7277 |
<name>$mla_option_templates</name>
|
7278 |
<default><![CDATA[null]]></default>
|
7279 |
-
<docblock line="
|
7280 |
<description><![CDATA[Style and Markup templates]]></description>
|
7281 |
<long-description><![CDATA[]]></long-description>
|
7282 |
-
<tag line="
|
7283 |
-
<tag line="
|
7284 |
<type by_reference="false">array</type>
|
7285 |
</tag>
|
7286 |
</docblock>
|
7287 |
</property>
|
7288 |
-
<property final="false" static="true" visibility="private" line="
|
7289 |
<name>$add_attachment_id</name>
|
7290 |
<default><![CDATA[0]]></default>
|
7291 |
-
<docblock line="
|
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="
|
7296 |
-
<tag line="
|
7297 |
<type by_reference="false">integer</type>
|
7298 |
</tag>
|
7299 |
</docblock>
|
7300 |
</property>
|
7301 |
-
<property final="false" static="true" visibility="private" line="
|
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="
|
7305 |
<description><![CDATA[Array of Data Source names for custom field mapping]]></description>
|
7306 |
<long-description><![CDATA[]]></long-description>
|
7307 |
-
<tag line="
|
7308 |
-
<tag line="
|
7309 |
<type by_reference="false">array</type>
|
7310 |
</tag>
|
7311 |
</docblock>
|
7312 |
</property>
|
7313 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
7314 |
<name>initialize</name>
|
7315 |
<full_name>initialize</full_name>
|
7316 |
-
<docblock line="
|
7317 |
<description><![CDATA[Initialization function, similar to __construct()]]></description>
|
7318 |
<long-description><![CDATA[]]></long-description>
|
7319 |
-
<tag line="
|
7320 |
-
<tag line="
|
7321 |
<type by_reference="false">void</type>
|
7322 |
</tag>
|
7323 |
</docblock>
|
7324 |
</method>
|
7325 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
7326 |
<name>_load_option_templates</name>
|
7327 |
<full_name>_load_option_templates</full_name>
|
7328 |
-
<docblock line="
|
7329 |
<description><![CDATA[Load style and markup templates to $mla_templates]]></description>
|
7330 |
<long-description><![CDATA[]]></long-description>
|
7331 |
-
<tag line="
|
7332 |
-
<tag line="
|
7333 |
<type by_reference="false">void</type>
|
7334 |
</tag>
|
7335 |
</docblock>
|
7336 |
</method>
|
7337 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
7338 |
<name>mla_localize_option_definitions_array</name>
|
7339 |
<full_name>mla_localize_option_definitions_array</full_name>
|
7340 |
-
<docblock line="
|
7341 |
<description><![CDATA[Localize $mla_option_definitions array]]></description>
|
7342 |
<long-description><![CDATA[<p>Localization must be done at runtime, and these calls cannot be placed
|
7343 |
in the "public static" array definition itself.</p>]]></long-description>
|
7344 |
-
<tag line="
|
7345 |
-
<tag line="
|
7346 |
<type by_reference="false">void</type>
|
7347 |
</tag>
|
7348 |
</docblock>
|
7349 |
</method>
|
7350 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
7351 |
<name>mla_fetch_gallery_template</name>
|
7352 |
<full_name>mla_fetch_gallery_template</full_name>
|
7353 |
-
<docblock line="
|
7354 |
<description><![CDATA[Fetch style or markup template from $mla_templates]]></description>
|
7355 |
<long-description><![CDATA[]]></long-description>
|
7356 |
-
<tag line="
|
7357 |
-
<tag line="
|
7358 |
<type by_reference="false">string</type>
|
7359 |
</tag>
|
7360 |
-
<tag line="
|
7361 |
<type by_reference="false">string</type>
|
7362 |
</tag>
|
7363 |
-
<tag line="
|
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="
|
7370 |
<name>$key</name>
|
7371 |
<default><![CDATA[]]></default>
|
7372 |
<type/>
|
7373 |
</argument>
|
7374 |
-
<argument line="
|
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="
|
7381 |
<name>mla_get_style_templates</name>
|
7382 |
<full_name>mla_get_style_templates</full_name>
|
7383 |
-
<docblock line="
|
7384 |
<description><![CDATA[Get ALL style templates from $mla_templates, including 'default']]></description>
|
7385 |
<long-description><![CDATA[]]></long-description>
|
7386 |
-
<tag line="
|
7387 |
-
<tag line="
|
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="
|
7394 |
<name>mla_put_style_templates</name>
|
7395 |
<full_name>mla_put_style_templates</full_name>
|
7396 |
-
<docblock line="
|
7397 |
<description><![CDATA[Put user-defined style templates to $mla_templates and database]]></description>
|
7398 |
<long-description><![CDATA[]]></long-description>
|
7399 |
-
<tag line="
|
7400 |
-
<tag line="
|
7401 |
<type by_reference="false">array</type>
|
7402 |
</tag>
|
7403 |
-
<tag line="
|
7404 |
<type by_reference="false">boolean</type>
|
7405 |
</tag>
|
7406 |
</docblock>
|
7407 |
-
<argument line="
|
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="
|
7414 |
<name>mla_get_markup_templates</name>
|
7415 |
<full_name>mla_get_markup_templates</full_name>
|
7416 |
-
<docblock line="
|
7417 |
<description><![CDATA[Get ALL markup templates from $mla_templates, including 'default']]></description>
|
7418 |
<long-description><![CDATA[]]></long-description>
|
7419 |
-
<tag line="
|
7420 |
-
<tag line="
|
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="
|
7427 |
<name>mla_put_markup_templates</name>
|
7428 |
<full_name>mla_put_markup_templates</full_name>
|
7429 |
-
<docblock line="
|
7430 |
<description><![CDATA[Put user-defined markup templates to $mla_templates and database]]></description>
|
7431 |
<long-description><![CDATA[]]></long-description>
|
7432 |
-
<tag line="
|
7433 |
-
<tag line="
|
7434 |
<type by_reference="false">array</type>
|
7435 |
</tag>
|
7436 |
-
<tag line="
|
7437 |
<type by_reference="false">boolean</type>
|
7438 |
</tag>
|
7439 |
</docblock>
|
7440 |
-
<argument line="
|
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="
|
7447 |
<name>mla_get_option</name>
|
7448 |
<full_name>mla_get_option</full_name>
|
7449 |
-
<docblock line="
|
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="
|
7453 |
-
<tag line="
|
7454 |
<type by_reference="false">string</type>
|
7455 |
</tag>
|
7456 |
-
<tag line="
|
7457 |
<type by_reference="false">boolean</type>
|
7458 |
</tag>
|
7459 |
-
<tag line="
|
7460 |
<type by_reference="false">boolean</type>
|
7461 |
</tag>
|
7462 |
-
<tag line="
|
7463 |
<type by_reference="false">mixed</type>
|
7464 |
</tag>
|
7465 |
</docblock>
|
7466 |
-
<argument line="
|
7467 |
<name>$option</name>
|
7468 |
<default><![CDATA[]]></default>
|
7469 |
<type/>
|
7470 |
</argument>
|
7471 |
-
<argument line="
|
7472 |
<name>$get_default</name>
|
7473 |
<default><![CDATA[false]]></default>
|
7474 |
<type/>
|
7475 |
</argument>
|
7476 |
-
<argument line="
|
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="
|
7483 |
<name>mla_update_option</name>
|
7484 |
<full_name>mla_update_option</full_name>
|
7485 |
-
<docblock line="
|
7486 |
<description><![CDATA[Add or update the stored value of a defined MLA option]]></description>
|
7487 |
<long-description><![CDATA[]]></long-description>
|
7488 |
-
<tag line="
|
7489 |
-
<tag line="
|
7490 |
<type by_reference="false">string</type>
|
7491 |
</tag>
|
7492 |
-
<tag line="
|
7493 |
<type by_reference="false">mixed</type>
|
7494 |
</tag>
|
7495 |
-
<tag line="
|
7496 |
<type by_reference="false">boolean</type>
|
7497 |
</tag>
|
7498 |
</docblock>
|
7499 |
-
<argument line="
|
7500 |
<name>$option</name>
|
7501 |
<default><![CDATA[]]></default>
|
7502 |
<type/>
|
7503 |
</argument>
|
7504 |
-
<argument line="
|
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="
|
7511 |
<name>mla_delete_option</name>
|
7512 |
<full_name>mla_delete_option</full_name>
|
7513 |
-
<docblock line="
|
7514 |
<description><![CDATA[Delete the stored value of a defined MLA option]]></description>
|
7515 |
<long-description><![CDATA[]]></long-description>
|
7516 |
-
<tag line="
|
7517 |
-
<tag line="
|
7518 |
<type by_reference="false">string</type>
|
7519 |
</tag>
|
7520 |
-
<tag line="
|
7521 |
<type by_reference="false">boolean</type>
|
7522 |
</tag>
|
7523 |
</docblock>
|
7524 |
-
<argument line="
|
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="
|
7531 |
<name>mla_taxonomy_support</name>
|
7532 |
<full_name>mla_taxonomy_support</full_name>
|
7533 |
-
<docblock line="
|
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="
|
7538 |
-
<tag line="
|
7539 |
<type by_reference="false">string</type>
|
7540 |
</tag>
|
7541 |
-
<tag line="
|
7542 |
<type by_reference="false">string</type>
|
7543 |
</tag>
|
7544 |
-
<tag line="
|
7545 |
<type by_reference="false">boolean</type>
|
7546 |
<type by_reference="false">string</type>
|
7547 |
</tag>
|
7548 |
</docblock>
|
7549 |
-
<argument line="
|
7550 |
<name>$tax_name</name>
|
7551 |
<default><![CDATA[]]></default>
|
7552 |
<type/>
|
7553 |
</argument>
|
7554 |
-
<argument line="
|
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="
|
7561 |
<name>mla_supported_taxonomies</name>
|
7562 |
<full_name>mla_supported_taxonomies</full_name>
|
7563 |
-
<docblock line="
|
7564 |
<description><![CDATA[Returns an array of taxonomy names assigned to $support_type]]></description>
|
7565 |
<long-description><![CDATA[]]></long-description>
|
7566 |
-
<tag line="
|
7567 |
-
<tag line="
|
7568 |
<type by_reference="false">string</type>
|
7569 |
</tag>
|
7570 |
-
<tag line="
|
7571 |
<type by_reference="false">array</type>
|
7572 |
</tag>
|
7573 |
</docblock>
|
7574 |
-
<argument line="
|
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="
|
7581 |
<name>mla_attachment_display_settings_option_handler</name>
|
7582 |
<full_name>mla_attachment_display_settings_option_handler</full_name>
|
7583 |
-
<docblock line="
|
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="
|
7587 |
-
<tag line="
|
7588 |
-
<tag line="
|
7589 |
<type by_reference="false">string</type>
|
7590 |
</tag>
|
7591 |
-
<tag line="
|
7592 |
<type by_reference="false">string</type>
|
7593 |
</tag>
|
7594 |
-
<tag line="
|
7595 |
<type by_reference="false">array</type>
|
7596 |
</tag>
|
7597 |
-
<tag line="
|
7598 |
<type by_reference="false">array</type>
|
7599 |
</tag>
|
7600 |
-
<tag line="
|
7601 |
<type by_reference="false">string</type>
|
7602 |
</tag>
|
7603 |
</docblock>
|
7604 |
-
<argument line="
|
7605 |
<name>$action</name>
|
7606 |
<default><![CDATA[]]></default>
|
7607 |
<type/>
|
7608 |
</argument>
|
7609 |
-
<argument line="
|
7610 |
<name>$key</name>
|
7611 |
<default><![CDATA[]]></default>
|
7612 |
<type/>
|
7613 |
</argument>
|
7614 |
-
<argument line="
|
7615 |
<name>$value</name>
|
7616 |
<default><![CDATA[]]></default>
|
7617 |
<type/>
|
7618 |
</argument>
|
7619 |
-
<argument line="
|
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="
|
7626 |
<name>mla_taxonomy_option_handler</name>
|
7627 |
<full_name>mla_taxonomy_option_handler</full_name>
|
7628 |
-
<docblock line="
|
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="
|
7632 |
-
<tag line="
|
7633 |
-
<tag line="
|
7634 |
<type by_reference="false">string</type>
|
7635 |
</tag>
|
7636 |
-
<tag line="
|
7637 |
<type by_reference="false">string</type>
|
7638 |
</tag>
|
7639 |
-
<tag line="
|
7640 |
<type by_reference="false">array</type>
|
7641 |
</tag>
|
7642 |
-
<tag line="
|
7643 |
<type by_reference="false">array</type>
|
7644 |
</tag>
|
7645 |
-
<tag line="
|
7646 |
<type by_reference="false">string</type>
|
7647 |
</tag>
|
7648 |
</docblock>
|
7649 |
-
<argument line="
|
7650 |
<name>$action</name>
|
7651 |
<default><![CDATA[]]></default>
|
7652 |
<type/>
|
7653 |
</argument>
|
7654 |
-
<argument line="
|
7655 |
<name>$key</name>
|
7656 |
<default><![CDATA[]]></default>
|
7657 |
<type/>
|
7658 |
</argument>
|
7659 |
-
<argument line="
|
7660 |
<name>$value</name>
|
7661 |
<default><![CDATA[]]></default>
|
7662 |
<type/>
|
7663 |
</argument>
|
7664 |
-
<argument line="
|
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="
|
7671 |
<name>mla_search_option_handler</name>
|
7672 |
<full_name>mla_search_option_handler</full_name>
|
7673 |
-
<docblock line="
|
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="
|
7677 |
-
<tag line="
|
7678 |
-
<tag line="
|
7679 |
<type by_reference="false">string</type>
|
7680 |
</tag>
|
7681 |
-
<tag line="
|
7682 |
<type by_reference="false">string</type>
|
7683 |
</tag>
|
7684 |
-
<tag line="
|
7685 |
<type by_reference="false">array</type>
|
7686 |
</tag>
|
7687 |
-
<tag line="
|
7688 |
<type by_reference="false">array</type>
|
7689 |
</tag>
|
7690 |
-
<tag line="
|
7691 |
<type by_reference="false">string</type>
|
7692 |
</tag>
|
7693 |
</docblock>
|
7694 |
-
<argument line="
|
7695 |
<name>$action</name>
|
7696 |
<default><![CDATA[]]></default>
|
7697 |
<type/>
|
7698 |
</argument>
|
7699 |
-
<argument line="
|
7700 |
<name>$key</name>
|
7701 |
<default><![CDATA[]]></default>
|
7702 |
<type/>
|
7703 |
</argument>
|
7704 |
-
<argument line="
|
7705 |
<name>$value</name>
|
7706 |
<default><![CDATA[]]></default>
|
7707 |
<type/>
|
7708 |
</argument>
|
7709 |
-
<argument line="
|
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="
|
7716 |
<name>mla_wp_handle_upload_prefilter_filter</name>
|
7717 |
<full_name>mla_wp_handle_upload_prefilter_filter</full_name>
|
7718 |
-
<docblock line="
|
7719 |
<description><![CDATA[Examine or alter the filename before the file is made permanent]]></description>
|
7720 |
<long-description><![CDATA[]]></long-description>
|
7721 |
-
<tag line="
|
7722 |
-
<tag line="
|
7723 |
<type by_reference="false">array</type>
|
7724 |
</tag>
|
7725 |
-
<tag line="
|
7726 |
<type by_reference="false">array</type>
|
7727 |
</tag>
|
7728 |
</docblock>
|
7729 |
-
<argument line="
|
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="
|
7736 |
<name>mla_wp_handle_upload_filter</name>
|
7737 |
<full_name>mla_wp_handle_upload_filter</full_name>
|
7738 |
-
<docblock line="
|
7739 |
<description><![CDATA[Called once for each file uploaded]]></description>
|
7740 |
<long-description><![CDATA[]]></long-description>
|
7741 |
-
<tag line="
|
7742 |
-
<tag line="
|
7743 |
<type by_reference="false">array</type>
|
7744 |
</tag>
|
7745 |
-
<tag line="
|
7746 |
<type by_reference="false">array</type>
|
7747 |
</tag>
|
7748 |
</docblock>
|
7749 |
-
<argument line="
|
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="
|
7756 |
<name>mla_add_attachment_action</name>
|
7757 |
<full_name>mla_add_attachment_action</full_name>
|
7758 |
-
<docblock line="
|
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="
|
7762 |
-
<tag line="
|
7763 |
<type by_reference="false">integer</type>
|
7764 |
</tag>
|
7765 |
-
<tag line="
|
7766 |
<type by_reference="false">void</type>
|
7767 |
</tag>
|
7768 |
</docblock>
|
7769 |
-
<argument line="
|
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="
|
7776 |
<name>_update_attachment_metadata</name>
|
7777 |
<full_name>_update_attachment_metadata</full_name>
|
7778 |
-
<docblock line="
|
7779 |
<description><![CDATA[Update _wp_attachment_metadata for just-inserted attachment]]></description>
|
7780 |
<long-description><![CDATA[]]></long-description>
|
7781 |
-
<tag line="
|
7782 |
-
<tag line="
|
7783 |
<type by_reference="false">array</type>
|
7784 |
</tag>
|
7785 |
-
<tag line="
|
7786 |
<type by_reference="false">array</type>
|
7787 |
</tag>
|
7788 |
-
<tag line="
|
7789 |
<type by_reference="false">array</type>
|
7790 |
</tag>
|
7791 |
</docblock>
|
7792 |
-
<argument line="
|
7793 |
<name>$updates</name>
|
7794 |
<default><![CDATA[]]></default>
|
7795 |
<type/>
|
7796 |
</argument>
|
7797 |
-
<argument line="
|
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="
|
7804 |
<name>mla_update_attachment_metadata_filter</name>
|
7805 |
<full_name>mla_update_attachment_metadata_filter</full_name>
|
7806 |
-
<docblock line="
|
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="
|
7811 |
-
<tag line="
|
7812 |
<type by_reference="false">array</type>
|
7813 |
</tag>
|
7814 |
-
<tag line="
|
7815 |
<type by_reference="false">integer</type>
|
7816 |
</tag>
|
7817 |
-
<tag line="
|
7818 |
<type by_reference="false">array</type>
|
7819 |
</tag>
|
7820 |
</docblock>
|
7821 |
-
<argument line="
|
7822 |
<name>$data</name>
|
7823 |
<default><![CDATA[]]></default>
|
7824 |
<type/>
|
7825 |
</argument>
|
7826 |
-
<argument line="
|
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="
|
7833 |
<name>mla_custom_field_option_value</name>
|
7834 |
<full_name>mla_custom_field_option_value</full_name>
|
7835 |
-
<docblock line="
|
7836 |
<description><![CDATA[Fetch custom field option value given a slug]]></description>
|
7837 |
<long-description><![CDATA[]]></long-description>
|
7838 |
-
<tag line="
|
7839 |
-
<tag line="
|
7840 |
<type by_reference="false">string</type>
|
7841 |
</tag>
|
7842 |
-
<tag line="
|
7843 |
<type by_reference="false">array</type>
|
7844 |
</tag>
|
7845 |
</docblock>
|
7846 |
-
<argument line="
|
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="
|
7853 |
<name>mla_custom_field_support</name>
|
7854 |
<full_name>mla_custom_field_support</full_name>
|
7855 |
-
<docblock line="
|
7856 |
<description><![CDATA[Evaluate file information for custom field mapping]]></description>
|
7857 |
<long-description><![CDATA[]]></long-description>
|
7858 |
-
<tag line="
|
7859 |
-
<tag line="
|
7860 |
<type by_reference="false">string</type>
|
7861 |
</tag>
|
7862 |
-
<tag line="
|
7863 |
<type by_reference="false">array</type>
|
7864 |
</tag>
|
7865 |
</docblock>
|
7866 |
-
<argument line="
|
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="
|
7873 |
<name>_evaluate_file_information</name>
|
7874 |
<full_name>_evaluate_file_information</full_name>
|
7875 |
-
<docblock line="
|
7876 |
<description><![CDATA[Evaluate file information for custom field mapping]]></description>
|
7877 |
<long-description><![CDATA[]]></long-description>
|
7878 |
-
<tag line="
|
7879 |
-
<tag line="
|
7880 |
<type by_reference="false">string</type>
|
7881 |
</tag>
|
7882 |
-
<tag line="
|
7883 |
<type by_reference="false">array</type>
|
7884 |
</tag>
|
7885 |
-
<tag line="
|
7886 |
<type by_reference="false">array</type>
|
7887 |
</tag>
|
7888 |
-
<tag line="
|
7889 |
<type by_reference="false">integer</type>
|
7890 |
</tag>
|
7891 |
-
<tag line="
|
7892 |
<type by_reference="false">array</type>
|
7893 |
</tag>
|
7894 |
</docblock>
|
7895 |
-
<argument line="
|
7896 |
<name>$upload_dir</name>
|
7897 |
<default><![CDATA[]]></default>
|
7898 |
<type/>
|
7899 |
</argument>
|
7900 |
-
<argument line="
|
7901 |
<name>$wp_attached_files</name>
|
7902 |
<default><![CDATA[]]></default>
|
7903 |
<type/>
|
7904 |
</argument>
|
7905 |
-
<argument line="
|
7906 |
<name>$wp_attachment_metadata</name>
|
7907 |
<default><![CDATA[]]></default>
|
7908 |
<type/>
|
7909 |
</argument>
|
7910 |
-
<argument line="
|
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="
|
7917 |
<name>_evaluate_post_information</name>
|
7918 |
<full_name>_evaluate_post_information</full_name>
|
7919 |
-
<docblock line="
|
7920 |
<description><![CDATA[Evaluate post information for custom field mapping]]></description>
|
7921 |
<long-description><![CDATA[]]></long-description>
|
7922 |
-
<tag line="
|
7923 |
-
<tag line="
|
7924 |
<type by_reference="false">integer</type>
|
7925 |
</tag>
|
7926 |
-
<tag line="
|
7927 |
<type by_reference="false">string</type>
|
7928 |
</tag>
|
7929 |
-
<tag line="
|
7930 |
<type by_reference="false">string</type>
|
7931 |
</tag>
|
7932 |
-
<tag line="
|
7933 |
<type by_reference="false">mixed</type>
|
7934 |
</tag>
|
7935 |
</docblock>
|
7936 |
-
<argument line="
|
7937 |
<name>$post_id</name>
|
7938 |
<default><![CDATA[]]></default>
|
7939 |
<type/>
|
7940 |
</argument>
|
7941 |
-
<argument line="
|
7942 |
<name>$category</name>
|
7943 |
<default><![CDATA[]]></default>
|
7944 |
<type/>
|
7945 |
</argument>
|
7946 |
-
<argument line="
|
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="
|
7953 |
<name>_evaluate_array_result</name>
|
7954 |
<full_name>_evaluate_array_result</full_name>
|
7955 |
-
<docblock line="
|
7956 |
<description><![CDATA[Evaluate post information for custom field mapping]]></description>
|
7957 |
<long-description><![CDATA[]]></long-description>
|
7958 |
-
<tag line="
|
7959 |
-
<tag line="
|
7960 |
<type by_reference="false">array</type>
|
7961 |
</tag>
|
7962 |
-
<tag line="
|
7963 |
<type by_reference="false">string</type>
|
7964 |
</tag>
|
7965 |
-
<tag line="
|
7966 |
<type by_reference="false">boolean</type>
|
7967 |
</tag>
|
7968 |
-
<tag line="
|
7969 |
<type by_reference="false">mixed</type>
|
7970 |
</tag>
|
7971 |
</docblock>
|
7972 |
-
<argument line="
|
7973 |
<name>$value</name>
|
7974 |
<default><![CDATA[]]></default>
|
7975 |
<type/>
|
7976 |
</argument>
|
7977 |
-
<argument line="
|
7978 |
<name>$option</name>
|
7979 |
<default><![CDATA[]]></default>
|
7980 |
<type/>
|
7981 |
</argument>
|
7982 |
-
<argument line="
|
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="
|
7989 |
<name>mla_get_data_source</name>
|
7990 |
<full_name>mla_get_data_source</full_name>
|
7991 |
-
<docblock line="
|
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="
|
7996 |
-
<tag line="
|
7997 |
<type by_reference="false">integer</type>
|
7998 |
</tag>
|
7999 |
-
<tag line="
|
8000 |
<type by_reference="false">string</type>
|
8001 |
</tag>
|
8002 |
-
<tag line="
|
8003 |
<type by_reference="false">array</type>
|
8004 |
</tag>
|
8005 |
-
<tag line="
|
8006 |
<type by_reference="false">array</type>
|
8007 |
</tag>
|
8008 |
-
<tag line="
|
8009 |
<type by_reference="false">string</type>
|
8010 |
<type by_reference="false">array</type>
|
8011 |
</tag>
|
8012 |
</docblock>
|
8013 |
-
<argument line="
|
8014 |
<name>$post_id</name>
|
8015 |
<default><![CDATA[]]></default>
|
8016 |
<type/>
|
8017 |
</argument>
|
8018 |
-
<argument line="
|
8019 |
<name>$category</name>
|
8020 |
<default><![CDATA[]]></default>
|
8021 |
<type/>
|
8022 |
</argument>
|
8023 |
-
<argument line="
|
8024 |
<name>$data_value</name>
|
8025 |
<default><![CDATA[]]></default>
|
8026 |
<type/>
|
8027 |
</argument>
|
8028 |
-
<argument line="
|
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="
|
8035 |
<name>mla_is_data_source</name>
|
8036 |
<full_name>mla_is_data_source</full_name>
|
8037 |
-
<docblock line="
|
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="
|
8042 |
-
<tag line="
|
8043 |
<type by_reference="false">string</type>
|
8044 |
</tag>
|
8045 |
-
<tag line="
|
8046 |
<type by_reference="false">boolean</type>
|
8047 |
</tag>
|
8048 |
</docblock>
|
8049 |
-
<argument line="
|
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="
|
8056 |
<name>_evaluate_data_source</name>
|
8057 |
<full_name>_evaluate_data_source</full_name>
|
8058 |
-
<docblock line="
|
8059 |
<description><![CDATA[Evaluate custom field mapping data source]]></description>
|
8060 |
<long-description><![CDATA[]]></long-description>
|
8061 |
-
<tag line="
|
8062 |
-
<tag line="
|
8063 |
<type by_reference="false">integer</type>
|
8064 |
</tag>
|
8065 |
-
<tag line="
|
8066 |
<type by_reference="false">string</type>
|
8067 |
</tag>
|
8068 |
-
<tag line="
|
8069 |
<type by_reference="false">array</type>
|
8070 |
</tag>
|
8071 |
-
<tag line="
|
8072 |
<type by_reference="false">array</type>
|
8073 |
</tag>
|
8074 |
-
<tag line="
|
8075 |
<type by_reference="false">string</type>
|
8076 |
<type by_reference="false">array</type>
|
8077 |
</tag>
|
8078 |
</docblock>
|
8079 |
-
<argument line="
|
8080 |
<name>$post_id</name>
|
8081 |
<default><![CDATA[]]></default>
|
8082 |
<type/>
|
8083 |
</argument>
|
8084 |
-
<argument line="
|
8085 |
<name>$category</name>
|
8086 |
<default><![CDATA[]]></default>
|
8087 |
<type/>
|
8088 |
</argument>
|
8089 |
-
<argument line="
|
8090 |
<name>$data_value</name>
|
8091 |
<default><![CDATA[]]></default>
|
8092 |
<type/>
|
8093 |
</argument>
|
8094 |
-
<argument line="
|
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="
|
8101 |
<name>mla_evaluate_custom_field_mapping</name>
|
8102 |
<full_name>mla_evaluate_custom_field_mapping</full_name>
|
8103 |
-
<docblock line="
|
8104 |
<description><![CDATA[Evaluate custom field mapping updates for a post]]></description>
|
8105 |
<long-description><![CDATA[]]></long-description>
|
8106 |
-
<tag line="
|
8107 |
-
<tag line="
|
8108 |
<type by_reference="false">integer</type>
|
8109 |
</tag>
|
8110 |
-
<tag line="
|
8111 |
<type by_reference="false">string</type>
|
8112 |
</tag>
|
8113 |
-
<tag line="
|
8114 |
<type by_reference="false">array</type>
|
8115 |
</tag>
|
8116 |
-
<tag line="
|
8117 |
<type by_reference="false">array</type>
|
8118 |
</tag>
|
8119 |
-
<tag line="
|
8120 |
<type by_reference="false">array</type>
|
8121 |
</tag>
|
8122 |
</docblock>
|
8123 |
-
<argument line="
|
8124 |
<name>$post_id</name>
|
8125 |
<default><![CDATA[]]></default>
|
8126 |
<type/>
|
8127 |
</argument>
|
8128 |
-
<argument line="
|
8129 |
<name>$category</name>
|
8130 |
<default><![CDATA[]]></default>
|
8131 |
<type/>
|
8132 |
</argument>
|
8133 |
-
<argument line="
|
8134 |
<name>$settings</name>
|
8135 |
<default><![CDATA[NULL]]></default>
|
8136 |
<type/>
|
8137 |
</argument>
|
8138 |
-
<argument line="
|
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="
|
8145 |
<name>_compose_custom_field_option_list</name>
|
8146 |
<full_name>_compose_custom_field_option_list</full_name>
|
8147 |
-
<docblock line="
|
8148 |
<description><![CDATA[Compose a Custom Field Options list with current selection]]></description>
|
8149 |
<long-description><![CDATA[]]></long-description>
|
8150 |
-
<tag line="
|
8151 |
-
<tag line="
|
8152 |
-
<tag line="
|
8153 |
<type by_reference="false">string</type>
|
8154 |
</tag>
|
8155 |
-
<tag line="
|
8156 |
<type by_reference="false">array</type>
|
8157 |
</tag>
|
8158 |
-
<tag line="
|
8159 |
<type by_reference="false">string</type>
|
8160 |
</tag>
|
8161 |
</docblock>
|
8162 |
-
<argument line="
|
8163 |
<name>$selection</name>
|
8164 |
<default><![CDATA['none']]></default>
|
8165 |
<type/>
|
8166 |
</argument>
|
8167 |
-
<argument line="
|
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="
|
8174 |
<name>_compose_data_source_option_list</name>
|
8175 |
<full_name>_compose_data_source_option_list</full_name>
|
8176 |
-
<docblock line="
|
8177 |
<description><![CDATA[Compose a (Custom Field) Data Source Options list with current selection]]></description>
|
8178 |
<long-description><![CDATA[]]></long-description>
|
8179 |
-
<tag line="
|
8180 |
-
<tag line="
|
8181 |
-
<tag line="
|
8182 |
<type by_reference="false">string</type>
|
8183 |
</tag>
|
8184 |
-
<tag line="
|
8185 |
<type by_reference="false">string</type>
|
8186 |
</tag>
|
8187 |
</docblock>
|
8188 |
-
<argument line="
|
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="
|
8195 |
<name>_update_custom_field_mapping</name>
|
8196 |
<full_name>_update_custom_field_mapping</full_name>
|
8197 |
-
<docblock line="
|
8198 |
<description><![CDATA[Update custom field mappings]]></description>
|
8199 |
<long-description><![CDATA[]]></long-description>
|
8200 |
-
<tag line="
|
8201 |
-
<tag line="
|
8202 |
<type by_reference="false">array</type>
|
8203 |
</tag>
|
8204 |
-
<tag line="
|
8205 |
<type by_reference="false">array</type>
|
8206 |
</tag>
|
8207 |
-
<tag line="
|
8208 |
<type by_reference="false">array</type>
|
8209 |
</tag>
|
8210 |
</docblock>
|
8211 |
-
<argument line="
|
8212 |
<name>$current_values</name>
|
8213 |
<default><![CDATA[]]></default>
|
8214 |
<type/>
|
8215 |
</argument>
|
8216 |
-
<argument line="
|
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="
|
8223 |
<name>mla_custom_field_option_handler</name>
|
8224 |
<full_name>mla_custom_field_option_handler</full_name>
|
8225 |
-
<docblock line="
|
8226 |
<description><![CDATA[Render and manage custom field mapping options]]></description>
|
8227 |
<long-description><![CDATA[]]></long-description>
|
8228 |
-
<tag line="
|
8229 |
-
<tag line="
|
8230 |
-
<tag line="
|
8231 |
<type by_reference="false">string</type>
|
8232 |
</tag>
|
8233 |
-
<tag line="
|
8234 |
<type by_reference="false">string</type>
|
8235 |
</tag>
|
8236 |
-
<tag line="
|
8237 |
<type by_reference="false">array</type>
|
8238 |
</tag>
|
8239 |
-
<tag line="
|
8240 |
<type by_reference="false">array</type>
|
8241 |
</tag>
|
8242 |
-
<tag line="
|
8243 |
<type by_reference="false">string</type>
|
8244 |
</tag>
|
8245 |
</docblock>
|
8246 |
-
<argument line="
|
8247 |
<name>$action</name>
|
8248 |
<default><![CDATA[]]></default>
|
8249 |
<type/>
|
8250 |
</argument>
|
8251 |
-
<argument line="
|
8252 |
<name>$key</name>
|
8253 |
<default><![CDATA[]]></default>
|
8254 |
<type/>
|
8255 |
</argument>
|
8256 |
-
<argument line="
|
8257 |
<name>$value</name>
|
8258 |
<default><![CDATA[]]></default>
|
8259 |
<type/>
|
8260 |
</argument>
|
8261 |
-
<argument line="
|
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="
|
8268 |
<name>mla_evaluate_iptc_exif_mapping</name>
|
8269 |
<full_name>mla_evaluate_iptc_exif_mapping</full_name>
|
8270 |
-
<docblock line="
|
8271 |
<description><![CDATA[Evaluate IPTC/EXIF mapping updates for a post]]></description>
|
8272 |
<long-description><![CDATA[]]></long-description>
|
8273 |
-
<tag line="
|
8274 |
-
<tag line="
|
8275 |
<type by_reference="false">object</type>
|
8276 |
</tag>
|
8277 |
-
<tag line="
|
8278 |
<type by_reference="false">string</type>
|
8279 |
</tag>
|
8280 |
-
<tag line="
|
8281 |
<type by_reference="false">array</type>
|
8282 |
</tag>
|
8283 |
-
<tag line="
|
8284 |
<type by_reference="false">array</type>
|
8285 |
</tag>
|
8286 |
-
<tag line="
|
8287 |
<type by_reference="false">array</type>
|
8288 |
</tag>
|
8289 |
</docblock>
|
8290 |
-
<argument line="
|
8291 |
<name>$post</name>
|
8292 |
<default><![CDATA[]]></default>
|
8293 |
<type/>
|
8294 |
</argument>
|
8295 |
-
<argument line="
|
8296 |
<name>$category</name>
|
8297 |
<default><![CDATA[]]></default>
|
8298 |
<type/>
|
8299 |
</argument>
|
8300 |
-
<argument line="
|
8301 |
<name>$settings</name>
|
8302 |
<default><![CDATA[NULL]]></default>
|
8303 |
<type/>
|
8304 |
</argument>
|
8305 |
-
<argument line="
|
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="
|
8312 |
<name>_compose_iptc_option_list</name>
|
8313 |
<full_name>_compose_iptc_option_list</full_name>
|
8314 |
-
<docblock line="
|
8315 |
<description><![CDATA[Compose an IPTC Options list with current selection]]></description>
|
8316 |
<long-description><![CDATA[]]></long-description>
|
8317 |
-
<tag line="
|
8318 |
-
<tag line="
|
8319 |
-
<tag line="
|
8320 |
<type by_reference="false">string</type>
|
8321 |
</tag>
|
8322 |
-
<tag line="
|
8323 |
<type by_reference="false">string</type>
|
8324 |
</tag>
|
8325 |
</docblock>
|
8326 |
-
<argument line="
|
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="
|
8333 |
<name>_compose_parent_option_list</name>
|
8334 |
<full_name>_compose_parent_option_list</full_name>
|
8335 |
-
<docblock line="
|
8336 |
<description><![CDATA[Compose an hierarchical taxonomy Parent options list with current selection]]></description>
|
8337 |
<long-description><![CDATA[]]></long-description>
|
8338 |
-
<tag line="
|
8339 |
-
<tag line="
|
8340 |
-
<tag line="
|
8341 |
<type by_reference="false">string</type>
|
8342 |
</tag>
|
8343 |
-
<tag line="
|
8344 |
<type by_reference="false">integer</type>
|
8345 |
</tag>
|
8346 |
-
<tag line="
|
8347 |
<type by_reference="false">string</type>
|
8348 |
</tag>
|
8349 |
</docblock>
|
8350 |
-
<argument line="
|
8351 |
<name>$taxonomy</name>
|
8352 |
<default><![CDATA[]]></default>
|
8353 |
<type/>
|
8354 |
</argument>
|
8355 |
-
<argument line="
|
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="
|
8362 |
<name>_update_iptc_exif_standard_mapping</name>
|
8363 |
<full_name>_update_iptc_exif_standard_mapping</full_name>
|
8364 |
-
<docblock line="
|
8365 |
<description><![CDATA[Update Standard field portion of IPTC/EXIF mappings]]></description>
|
8366 |
<long-description><![CDATA[]]></long-description>
|
8367 |
-
<tag line="
|
8368 |
-
<tag line="
|
8369 |
<type by_reference="false">array</type>
|
8370 |
</tag>
|
8371 |
-
<tag line="
|
8372 |
<type by_reference="false">array</type>
|
8373 |
</tag>
|
8374 |
-
<tag line="
|
8375 |
<type by_reference="false">array</type>
|
8376 |
</tag>
|
8377 |
</docblock>
|
8378 |
-
<argument line="
|
8379 |
<name>$current_values</name>
|
8380 |
<default><![CDATA[]]></default>
|
8381 |
<type/>
|
8382 |
</argument>
|
8383 |
-
<argument line="
|
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="
|
8390 |
<name>_update_iptc_exif_taxonomy_mapping</name>
|
8391 |
<full_name>_update_iptc_exif_taxonomy_mapping</full_name>
|
8392 |
-
<docblock line="
|
8393 |
<description><![CDATA[Update Taxonomy term portion of IPTC/EXIF mappings]]></description>
|
8394 |
<long-description><![CDATA[]]></long-description>
|
8395 |
-
<tag line="
|
8396 |
-
<tag line="
|
8397 |
<type by_reference="false">array</type>
|
8398 |
</tag>
|
8399 |
-
<tag line="
|
8400 |
<type by_reference="false">array</type>
|
8401 |
</tag>
|
8402 |
-
<tag line="
|
8403 |
<type by_reference="false">array</type>
|
8404 |
</tag>
|
8405 |
</docblock>
|
8406 |
-
<argument line="
|
8407 |
<name>$current_values</name>
|
8408 |
<default><![CDATA[]]></default>
|
8409 |
<type/>
|
8410 |
</argument>
|
8411 |
-
<argument line="
|
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="
|
8418 |
<name>_update_iptc_exif_custom_mapping</name>
|
8419 |
<full_name>_update_iptc_exif_custom_mapping</full_name>
|
8420 |
-
<docblock line="
|
8421 |
<description><![CDATA[Update Custom field portion of IPTC/EXIF mappings]]></description>
|
8422 |
<long-description><![CDATA[]]></long-description>
|
8423 |
-
<tag line="
|
8424 |
-
<tag line="
|
8425 |
<type by_reference="false">array</type>
|
8426 |
</tag>
|
8427 |
-
<tag line="
|
8428 |
<type by_reference="false">array</type>
|
8429 |
</tag>
|
8430 |
-
<tag line="
|
8431 |
<type by_reference="false">array</type>
|
8432 |
</tag>
|
8433 |
</docblock>
|
8434 |
-
<argument line="
|
8435 |
<name>$current_values</name>
|
8436 |
<default><![CDATA[]]></default>
|
8437 |
<type/>
|
8438 |
</argument>
|
8439 |
-
<argument line="
|
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="
|
8446 |
<name>_get_custom_field_names</name>
|
8447 |
<full_name>_get_custom_field_names</full_name>
|
8448 |
-
<docblock line="
|
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="
|
8453 |
-
<tag line="
|
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="
|
8459 |
<name>mla_iptc_exif_option_handler</name>
|
8460 |
<full_name>mla_iptc_exif_option_handler</full_name>
|
8461 |
-
<docblock line="
|
8462 |
<description><![CDATA[Render and manage iptc/exif support options]]></description>
|
8463 |
<long-description><![CDATA[]]></long-description>
|
8464 |
-
<tag line="
|
8465 |
-
<tag line="
|
8466 |
-
<tag line="
|
8467 |
<type by_reference="false">string</type>
|
8468 |
</tag>
|
8469 |
-
<tag line="
|
8470 |
<type by_reference="false">string</type>
|
8471 |
</tag>
|
8472 |
-
<tag line="
|
8473 |
<type by_reference="false">array</type>
|
8474 |
</tag>
|
8475 |
-
<tag line="
|
8476 |
<type by_reference="false">array</type>
|
8477 |
</tag>
|
8478 |
-
<tag line="
|
8479 |
<type by_reference="false">string</type>
|
8480 |
</tag>
|
8481 |
</docblock>
|
8482 |
-
<argument line="
|
8483 |
<name>$action</name>
|
8484 |
<default><![CDATA[]]></default>
|
8485 |
<type/>
|
8486 |
</argument>
|
8487 |
-
<argument line="
|
8488 |
<name>$key</name>
|
8489 |
<default><![CDATA[]]></default>
|
8490 |
<type/>
|
8491 |
</argument>
|
8492 |
-
<argument line="
|
8493 |
<name>$value</name>
|
8494 |
<default><![CDATA[]]></default>
|
8495 |
<type/>
|
8496 |
</argument>
|
8497 |
-
<argument line="
|
8498 |
<name>$args</name>
|
8499 |
<default><![CDATA[null]]></default>
|
8500 |
<type/>
|
@@ -9472,7 +9608,7 @@ without saving the settings to the mla_option]]></description>
|
|
9472 |
</method>
|
9473 |
</class>
|
9474 |
</file>
|
9475 |
-
<file path="includes\class-mla-shortcodes.php" hash="
|
9476 |
<docblock line="2">
|
9477 |
<description><![CDATA[Media Library Assistant Shortcode handler(s)]]></description>
|
9478 |
<long-description><![CDATA[]]></long-description>
|
@@ -9489,79 +9625,79 @@ without saving the settings to the mla_option]]></description>
|
|
9489 |
<tag line="9" name="package" description="Media Library Assistant"/>
|
9490 |
<tag line="9" name="since" description="0.20"/>
|
9491 |
</docblock>
|
9492 |
-
<property final="false" static="true" visibility="public" line="
|
9493 |
<name>$mla_debug_messages</name>
|
9494 |
<default><![CDATA['']]></default>
|
9495 |
-
<docblock line="
|
9496 |
<description><![CDATA[Accumulates debug messages]]></description>
|
9497 |
<long-description><![CDATA[]]></long-description>
|
9498 |
-
<tag line="
|
9499 |
-
<tag line="
|
9500 |
<type by_reference="false">string</type>
|
9501 |
</tag>
|
9502 |
</docblock>
|
9503 |
</property>
|
9504 |
-
<property final="false" static="true" visibility="private" line="
|
9505 |
<name>$mla_debug</name>
|
9506 |
<default><![CDATA[false]]></default>
|
9507 |
-
<docblock line="
|
9508 |
<description><![CDATA[Turn debug collection and display on or off]]></description>
|
9509 |
<long-description><![CDATA[]]></long-description>
|
9510 |
-
<tag line="
|
9511 |
-
<tag line="
|
9512 |
<type by_reference="false">boolean</type>
|
9513 |
</tag>
|
9514 |
</docblock>
|
9515 |
</property>
|
9516 |
-
<property final="false" static="true" visibility="private" line="
|
9517 |
<name>$query_parameters</name>
|
9518 |
<default><![CDATA[array()]]></default>
|
9519 |
-
<docblock line="
|
9520 |
<description><![CDATA[WP_Query filter "parameters"]]></description>
|
9521 |
<long-description><![CDATA[<p>This array defines parameters for the query's join, where and orderby filters.
|
9522 |
The parameters are set up in the mla_get_shortcode_attachments function, and
|
9523 |
any further logic required to translate those values is contained in the filter.</p>
|
9524 |
|
9525 |
<p>Array index values are: orderby, post_parent</p>]]></long-description>
|
9526 |
-
<tag line="
|
9527 |
-
<tag line="
|
9528 |
<type by_reference="false">array</type>
|
9529 |
</tag>
|
9530 |
</docblock>
|
9531 |
</property>
|
9532 |
-
<property final="false" static="true" visibility="private" line="
|
9533 |
<name>$mla_get_shortcode_attachments_parameters</name>
|
9534 |
-
<default><![CDATA[array('order' => 'ASC', 'orderby' => 'menu_order,ID', 'id' => NULL, 'ids' => array(), 'include' => array(), 'exclude' => array(), 'post_parent' => NULL, 'author' => NULL, 'author_name' => '', 'cat' => 0, 'category_name' => '', 'category__and' => array(), 'category__in' => array(), 'category__not_in' => array(), 'tag' => '', 'tag_id' => 0, 'tag__and' => array(), 'tag__in' => array(), 'tag__not_in' => array(), 'tag_slug__and' => array(), 'tag_slug__in' => array(), 'tax_operator' => '', 'tax_include_children' => true, 'post_type' => 'attachment', 'post_status' => 'inherit', 'post_mime_type' => 'image', 'nopaging' => true, 'numberposts' => 0, 'posts_per_page' => 0, 'posts_per_archive_page' => 0, 'paged' => NULL, 'offset' => NULL, 'mla_page_parameter' => 'mla_paginate_current', 'mla_paginate_current' => NULL, 'mla_paginate_total' => NULL, 'meta_key' => '', 'meta_value' => '', 'meta_value_num' => NULL, 'meta_compare' => '', 'meta_query' => '', 's' => '', 'fields' => '', 'cache_results' => NULL, 'update_post_meta_cache' => NULL, 'update_post_term_cache' => NULL)]]></default>
|
9535 |
-
<docblock line="
|
9536 |
<description><![CDATA[Data selection parameters for the WP_Query in [mla_gallery]]]></description>
|
9537 |
<long-description><![CDATA[]]></long-description>
|
9538 |
-
<tag line="
|
9539 |
-
<tag line="
|
9540 |
<type by_reference="false">array</type>
|
9541 |
</tag>
|
9542 |
</docblock>
|
9543 |
</property>
|
9544 |
-
<property final="false" static="true" visibility="public" line="
|
9545 |
<name>$mla_gallery_wp_query_object</name>
|
9546 |
<default><![CDATA[NULL]]></default>
|
9547 |
-
<docblock line="
|
9548 |
<description><![CDATA[The WP_Query object used to select items for the gallery.]]></description>
|
9549 |
<long-description><![CDATA[<p>Defined as a public, static variable so it can be inspected from the
|
9550 |
"mla_gallery_wp_query_object" action. Set to NULL at all other times.</p>]]></long-description>
|
9551 |
-
<tag line="
|
9552 |
-
<tag line="
|
9553 |
<type by_reference="false">object</type>
|
9554 |
</tag>
|
9555 |
</docblock>
|
9556 |
</property>
|
9557 |
-
<property final="false" static="true" visibility="private" line="
|
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="
|
9561 |
<description><![CDATA[Data selection parameters for [mla_tag_cloud]]]></description>
|
9562 |
<long-description><![CDATA[]]></long-description>
|
9563 |
-
<tag line="
|
9564 |
-
<tag line="
|
9565 |
<type by_reference="false">array</type>
|
9566 |
</tag>
|
9567 |
</docblock>
|
@@ -9578,431 +9714,475 @@ any further logic required to translate those values is contained in the filter.
|
|
9578 |
</tag>
|
9579 |
</docblock>
|
9580 |
</method>
|
9581 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9582 |
<name>mla_attachment_list_shortcode</name>
|
9583 |
<full_name>mla_attachment_list_shortcode</full_name>
|
9584 |
-
<docblock line="
|
9585 |
<description><![CDATA[Obsolete; no longer supported]]></description>
|
9586 |
<long-description><![CDATA[]]></long-description>
|
9587 |
-
<tag line="
|
9588 |
-
<tag line="
|
9589 |
<type by_reference="false">void</type>
|
9590 |
</tag>
|
9591 |
</docblock>
|
9592 |
</method>
|
9593 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
9594 |
<name>mla_gallery_shortcode</name>
|
9595 |
<full_name>mla_gallery_shortcode</full_name>
|
9596 |
-
<docblock line="
|
9597 |
<description><![CDATA[The MLA Gallery shortcode.]]></description>
|
9598 |
<long-description><![CDATA[<p>This is a superset of the WordPress Gallery shortcode for displaying images on a post,
|
9599 |
page or custom post type. It is adapted from /wp-includes/media.php gallery_shortcode.
|
9600 |
Enhancements include many additional selection parameters and full taxonomy support.</p>]]></long-description>
|
9601 |
-
<tag line="
|
9602 |
-
<tag line="
|
9603 |
<type by_reference="false">array</type>
|
9604 |
</tag>
|
9605 |
-
<tag line="
|
9606 |
<type by_reference="false">string</type>
|
9607 |
</tag>
|
9608 |
-
<tag line="
|
9609 |
<type by_reference="false">string</type>
|
9610 |
</tag>
|
9611 |
</docblock>
|
9612 |
-
<argument line="
|
9613 |
<name>$attr</name>
|
9614 |
<default><![CDATA[]]></default>
|
9615 |
<type/>
|
9616 |
</argument>
|
9617 |
-
<argument line="
|
9618 |
<name>$content</name>
|
9619 |
<default><![CDATA[NULL]]></default>
|
9620 |
<type/>
|
9621 |
</argument>
|
9622 |
</method>
|
9623 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
9624 |
<name>mla_tag_cloud</name>
|
9625 |
<full_name>mla_tag_cloud</full_name>
|
9626 |
-
<docblock line="
|
9627 |
<description><![CDATA[The MLA Tag Cloud support function.]]></description>
|
9628 |
<long-description><![CDATA[<p>This is an alternative to the WordPress wp_tag_cloud function, with additional
|
9629 |
options to customize the hyperlink behind each term.</p>]]></long-description>
|
9630 |
-
<tag line="
|
9631 |
-
<tag line="
|
9632 |
<type by_reference="false">array</type>
|
9633 |
</tag>
|
9634 |
-
<tag line="
|
9635 |
<type by_reference="false">string</type>
|
9636 |
</tag>
|
9637 |
</docblock>
|
9638 |
-
<argument line="
|
9639 |
<name>$attr</name>
|
9640 |
<default><![CDATA[]]></default>
|
9641 |
<type/>
|
9642 |
</argument>
|
9643 |
</method>
|
9644 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
9645 |
<name>mla_tag_cloud_shortcode</name>
|
9646 |
<full_name>mla_tag_cloud_shortcode</full_name>
|
9647 |
-
<docblock line="
|
9648 |
<description><![CDATA[The MLA Tag Cloud shortcode.]]></description>
|
9649 |
<long-description><![CDATA[<p>This is an interface to the mla_tag_cloud function.</p>]]></long-description>
|
9650 |
-
<tag line="
|
9651 |
-
<tag line="
|
9652 |
<type by_reference="false">array</type>
|
9653 |
</tag>
|
9654 |
-
<tag line="
|
9655 |
<type by_reference="false">string</type>
|
9656 |
</tag>
|
9657 |
</docblock>
|
9658 |
-
<argument line="
|
9659 |
<name>$attr</name>
|
9660 |
<default><![CDATA[]]></default>
|
9661 |
<type/>
|
9662 |
</argument>
|
9663 |
</method>
|
9664 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
9665 |
<name>_registered_dimensions</name>
|
9666 |
<full_name>_registered_dimensions</full_name>
|
9667 |
-
<docblock line="
|
9668 |
<description><![CDATA[Computes image dimensions for scalable graphics, e.g., SVG]]></description>
|
9669 |
<long-description><![CDATA[]]></long-description>
|
9670 |
-
<tag line="
|
9671 |
-
<tag line="
|
9672 |
<type by_reference="false">array</type>
|
9673 |
</tag>
|
9674 |
</docblock>
|
9675 |
</method>
|
9676 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
9677 |
<name>_process_shortcode_parameter</name>
|
9678 |
<full_name>_process_shortcode_parameter</full_name>
|
9679 |
-
<docblock line="
|
9680 |
<description><![CDATA[Handles brace/bracket escaping and parses template for a shortcode parameter]]></description>
|
9681 |
<long-description><![CDATA[]]></long-description>
|
9682 |
-
<tag line="
|
9683 |
-
<tag line="
|
9684 |
<type by_reference="false">string</type>
|
9685 |
</tag>
|
9686 |
-
<tag line="
|
9687 |
<type by_reference="false">string</type>
|
9688 |
</tag>
|
9689 |
-
<tag line="
|
9690 |
<type by_reference="false">string</type>
|
9691 |
</tag>
|
9692 |
</docblock>
|
9693 |
-
<argument line="
|
9694 |
<name>$text</name>
|
9695 |
<default><![CDATA[]]></default>
|
9696 |
<type/>
|
9697 |
</argument>
|
9698 |
-
<argument line="
|
9699 |
<name>$markup_values</name>
|
9700 |
<default><![CDATA[]]></default>
|
9701 |
<type/>
|
9702 |
</argument>
|
9703 |
</method>
|
9704 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
9705 |
<name>_paginate_links</name>
|
9706 |
<full_name>_paginate_links</full_name>
|
9707 |
-
<docblock line="
|
9708 |
<description><![CDATA[Handles pagnation output types 'previous_page', 'next_page', and 'paginate_links']]></description>
|
9709 |
<long-description><![CDATA[]]></long-description>
|
9710 |
-
<tag line="
|
9711 |
-
<tag line="
|
9712 |
<type by_reference="false">array</type>
|
9713 |
</tag>
|
9714 |
-
<tag line="
|
9715 |
<type by_reference="false">string</type>
|
9716 |
</tag>
|
9717 |
-
<tag line="
|
9718 |
<type by_reference="false">string</type>
|
9719 |
</tag>
|
9720 |
-
<tag line="
|
9721 |
<type by_reference="false">integer</type>
|
9722 |
</tag>
|
9723 |
-
<tag line="
|
9724 |
<type by_reference="false">string</type>
|
9725 |
</tag>
|
9726 |
-
<tag line="
|
9727 |
<type by_reference="false">mixed</type>
|
9728 |
</tag>
|
9729 |
</docblock>
|
9730 |
-
<argument line="
|
9731 |
<name>$output_parameters</name>
|
9732 |
<default><![CDATA[]]></default>
|
9733 |
<type/>
|
9734 |
</argument>
|
9735 |
-
<argument line="
|
9736 |
<name>$markup_values</name>
|
9737 |
<default><![CDATA[]]></default>
|
9738 |
<type/>
|
9739 |
</argument>
|
9740 |
-
<argument line="
|
9741 |
<name>$arguments</name>
|
9742 |
<default><![CDATA[]]></default>
|
9743 |
<type/>
|
9744 |
</argument>
|
9745 |
-
<argument line="
|
9746 |
<name>$found_rows</name>
|
9747 |
<default><![CDATA[]]></default>
|
9748 |
<type/>
|
9749 |
</argument>
|
9750 |
-
<argument line="
|
9751 |
<name>$output</name>
|
9752 |
<default><![CDATA['']]></default>
|
9753 |
<type/>
|
9754 |
</argument>
|
9755 |
</method>
|
9756 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
9757 |
<name>_process_pagination_output_types</name>
|
9758 |
<full_name>_process_pagination_output_types</full_name>
|
9759 |
-
<docblock line="
|
9760 |
<description><![CDATA[Handles pagnation output types 'previous_page', 'next_page', and 'paginate_links']]></description>
|
9761 |
<long-description><![CDATA[]]></long-description>
|
9762 |
-
<tag line="
|
9763 |
-
<tag line="
|
9764 |
<type by_reference="false">array</type>
|
9765 |
</tag>
|
9766 |
-
<tag line="
|
9767 |
<type by_reference="false">string</type>
|
9768 |
</tag>
|
9769 |
-
<tag line="
|
9770 |
<type by_reference="false">string</type>
|
9771 |
</tag>
|
9772 |
-
<tag line="
|
9773 |
<type by_reference="false">string</type>
|
9774 |
</tag>
|
9775 |
-
<tag line="
|
9776 |
<type by_reference="false">integer</type>
|
9777 |
</tag>
|
9778 |
-
<tag line="
|
9779 |
<type by_reference="false">string</type>
|
9780 |
</tag>
|
9781 |
-
<tag line="
|
9782 |
<type by_reference="false">mixed</type>
|
9783 |
</tag>
|
9784 |
</docblock>
|
9785 |
-
<argument line="
|
9786 |
<name>$output_parameters</name>
|
9787 |
<default><![CDATA[]]></default>
|
9788 |
<type/>
|
9789 |
</argument>
|
9790 |
-
<argument line="
|
9791 |
<name>$markup_values</name>
|
9792 |
<default><![CDATA[]]></default>
|
9793 |
<type/>
|
9794 |
</argument>
|
9795 |
-
<argument line="
|
9796 |
<name>$arguments</name>
|
9797 |
<default><![CDATA[]]></default>
|
9798 |
<type/>
|
9799 |
</argument>
|
9800 |
-
<argument line="
|
9801 |
<name>$attr</name>
|
9802 |
<default><![CDATA[]]></default>
|
9803 |
<type/>
|
9804 |
</argument>
|
9805 |
-
<argument line="
|
9806 |
<name>$found_rows</name>
|
9807 |
<default><![CDATA[]]></default>
|
9808 |
<type/>
|
9809 |
</argument>
|
9810 |
-
<argument line="
|
9811 |
<name>$output</name>
|
9812 |
<default><![CDATA['']]></default>
|
9813 |
<type/>
|
9814 |
</argument>
|
9815 |
</method>
|
9816 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
9817 |
<name>_sanitize_query_specification</name>
|
9818 |
<full_name>_sanitize_query_specification</full_name>
|
9819 |
-
<docblock line="
|
9820 |
<description><![CDATA[Cleans up damage caused by the Visual Editor to the tax_query and meta_query specifications]]></description>
|
9821 |
<long-description><![CDATA[]]></long-description>
|
9822 |
-
<tag line="
|
9823 |
-
<tag line="
|
9824 |
<type by_reference="false">string</type>
|
9825 |
</tag>
|
9826 |
-
<tag line="
|
9827 |
<type by_reference="false">string</type>
|
9828 |
</tag>
|
9829 |
</docblock>
|
9830 |
-
<argument line="
|
9831 |
<name>$specification</name>
|
9832 |
<default><![CDATA[]]></default>
|
9833 |
<type/>
|
9834 |
</argument>
|
9835 |
</method>
|
9836 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
9837 |
<name>_validate_sql_orderby</name>
|
9838 |
<full_name>_validate_sql_orderby</full_name>
|
9839 |
-
<docblock line="
|
9840 |
<description><![CDATA[Translates query parameters to a valid SQL order by clause.]]></description>
|
9841 |
<long-description><![CDATA[<p>Accepts one or more valid columns, with or without ASC/DESC.
|
9842 |
Enhanced version of /wp-includes/formatting.php function sanitize_sql_orderby().</p>]]></long-description>
|
9843 |
-
<tag line="
|
9844 |
-
<tag line="
|
9845 |
<type by_reference="false">array</type>
|
9846 |
</tag>
|
9847 |
-
<tag line="
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9848 |
<type by_reference="false">string</type>
|
9849 |
<type by_reference="false">bool</type>
|
9850 |
</tag>
|
9851 |
</docblock>
|
9852 |
-
<argument line="
|
9853 |
<name>$query_parameters</name>
|
9854 |
<default><![CDATA[]]></default>
|
9855 |
<type/>
|
9856 |
</argument>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9857 |
</method>
|
9858 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
9859 |
<name>mla_get_shortcode_attachments</name>
|
9860 |
<full_name>mla_get_shortcode_attachments</full_name>
|
9861 |
-
<docblock line="
|
9862 |
<description><![CDATA[Parses shortcode parameters and returns the gallery objects]]></description>
|
9863 |
<long-description><![CDATA[]]></long-description>
|
9864 |
-
<tag line="
|
9865 |
-
<tag line="
|
9866 |
<type by_reference="false">int</type>
|
9867 |
</tag>
|
9868 |
-
<tag line="
|
9869 |
<type by_reference="false">array</type>
|
9870 |
</tag>
|
9871 |
-
<tag line="
|
9872 |
<type by_reference="false">boolean</type>
|
9873 |
</tag>
|
9874 |
-
<tag line="
|
9875 |
<type by_reference="false">array</type>
|
9876 |
</tag>
|
9877 |
</docblock>
|
9878 |
-
<argument line="
|
9879 |
<name>$post_parent</name>
|
9880 |
<default><![CDATA[]]></default>
|
9881 |
<type/>
|
9882 |
</argument>
|
9883 |
-
<argument line="
|
9884 |
<name>$attr</name>
|
9885 |
<default><![CDATA[]]></default>
|
9886 |
<type/>
|
9887 |
</argument>
|
9888 |
-
<argument line="
|
9889 |
<name>$return_found_rows</name>
|
9890 |
<default><![CDATA[NULL]]></default>
|
9891 |
<type/>
|
9892 |
</argument>
|
9893 |
</method>
|
9894 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
9895 |
<name>mla_shortcode_query_posts_join_filter</name>
|
9896 |
<full_name>mla_shortcode_query_posts_join_filter</full_name>
|
9897 |
-
<docblock line="
|
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="
|
9901 |
-
<tag line="
|
9902 |
<type by_reference="false">string</type>
|
9903 |
</tag>
|
9904 |
-
<tag line="
|
9905 |
<type by_reference="false">string</type>
|
9906 |
</tag>
|
9907 |
</docblock>
|
9908 |
-
<argument line="
|
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="
|
9915 |
<name>mla_shortcode_query_posts_where_filter</name>
|
9916 |
<full_name>mla_shortcode_query_posts_where_filter</full_name>
|
9917 |
-
<docblock line="
|
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="
|
9924 |
-
<tag line="
|
9925 |
<type by_reference="false">string</type>
|
9926 |
</tag>
|
9927 |
-
<tag line="
|
9928 |
<type by_reference="false">string</type>
|
9929 |
</tag>
|
9930 |
</docblock>
|
9931 |
-
<argument line="
|
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="
|
9938 |
<name>mla_shortcode_query_posts_orderby_filter</name>
|
9939 |
<full_name>mla_shortcode_query_posts_orderby_filter</full_name>
|
9940 |
-
<docblock line="
|
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="
|
9945 |
-
<tag line="
|
9946 |
<type by_reference="false">string</type>
|
9947 |
</tag>
|
9948 |
-
<tag line="
|
9949 |
<type by_reference="false">string</type>
|
9950 |
</tag>
|
9951 |
</docblock>
|
9952 |
-
<argument line="
|
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="
|
9959 |
<name>mla_shortcode_query_posts_clauses_filter</name>
|
9960 |
<full_name>mla_shortcode_query_posts_clauses_filter</full_name>
|
9961 |
-
<docblock line="
|
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="
|
9966 |
-
<tag line="
|
9967 |
<type by_reference="false">array</type>
|
9968 |
</tag>
|
9969 |
-
<tag line="
|
9970 |
<type by_reference="false">array</type>
|
9971 |
</tag>
|
9972 |
</docblock>
|
9973 |
-
<argument line="
|
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="
|
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="
|
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="
|
9987 |
-
<tag line="
|
9988 |
<type by_reference="false">array</type>
|
9989 |
</tag>
|
9990 |
-
<tag line="
|
9991 |
<type by_reference="false">array</type>
|
9992 |
</tag>
|
9993 |
</docblock>
|
9994 |
-
<argument line="
|
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="
|
10001 |
<name>mla_get_terms</name>
|
10002 |
<full_name>mla_get_terms</full_name>
|
10003 |
-
<docblock line="
|
10004 |
<description><![CDATA[Retrieve the terms in one or more taxonomies.]]></description>
|
10005 |
-
<long-description><![CDATA[<p>Alternative to WordPress get_terms()
|
10006 |
an accurate count of attachments associated with each term.</p>
|
10007 |
|
10008 |
<p>taxonomy - string containing one or more (comma-delimited) taxonomy names
|
@@ -10010,9 +10190,11 @@ or an array of taxonomy names. Default 'post_tag'.</p>
|
|
10010 |
|
10011 |
<p>post_mime_type - MIME type(s) of the items to include in the term-specific counts. Default 'all'.</p>
|
10012 |
|
10013 |
-
<p>post_type - The post type(s) of the items to include in the term-specific counts.
|
|
|
10014 |
|
10015 |
-
<p>post_status - The post status value(s) of the items to include in the term-specific counts.
|
|
|
10016 |
|
10017 |
<p>ids - A comma-separated list of attachment ID values for an item-specific cloud.</p>
|
10018 |
|
@@ -10029,7 +10211,7 @@ from the return array. If 'include' is non-empty, 'exclude' is ignored.</p>
|
|
10029 |
<p>no_count - 'true', 'false' (default) to suppress term-specific attachment-counting process.</p>
|
10030 |
|
10031 |
<p>number - maximum number of term objects to return. Terms are ordered by count,
|
10032 |
-
descending and then by term_id before this value is applied. Default
|
10033 |
|
10034 |
<p>orderby - 'count', 'id', 'name' (default), 'none', 'random', 'slug'</p>
|
10035 |
|
@@ -10039,65 +10221,65 @@ descending and then by term_id before this value is applied. Default 45.</p>
|
|
10039 |
|
10040 |
<p>preserve_case - 'true', 'false' (default) to make orderby case-sensitive.</p>
|
10041 |
|
10042 |
-
<p>pad_counts - 'true', 'false' (default) to
|
10043 |
|
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="
|
10048 |
-
<tag line="
|
10049 |
<type by_reference="false">array</type>
|
10050 |
</tag>
|
10051 |
-
<tag line="
|
10052 |
<type by_reference="false">array</type>
|
10053 |
</tag>
|
10054 |
</docblock>
|
10055 |
-
<argument line="
|
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="
|
10062 |
<name>_pad_term_counts</name>
|
10063 |
<full_name>_pad_term_counts</full_name>
|
10064 |
-
<docblock line="
|
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="
|
10069 |
-
<tag line="
|
10070 |
<type by_reference="false">array</type>
|
10071 |
</tag>
|
10072 |
-
<tag line="
|
10073 |
<type by_reference="false">string</type>
|
10074 |
</tag>
|
10075 |
-
<tag line="
|
10076 |
<type by_reference="false">array</type>
|
10077 |
</tag>
|
10078 |
-
<tag line="
|
10079 |
<type by_reference="false">array</type>
|
10080 |
</tag>
|
10081 |
-
<tag line="
|
10082 |
<type by_reference="false">null</type>
|
10083 |
</tag>
|
10084 |
</docblock>
|
10085 |
-
<argument line="
|
10086 |
<name>$terms</name>
|
10087 |
<default><![CDATA[]]></default>
|
10088 |
<type/>
|
10089 |
</argument>
|
10090 |
-
<argument line="
|
10091 |
<name>$taxonomy</name>
|
10092 |
<default><![CDATA[]]></default>
|
10093 |
<type/>
|
10094 |
</argument>
|
10095 |
-
<argument line="
|
10096 |
<name>$post_types</name>
|
10097 |
<default><![CDATA[NULL]]></default>
|
10098 |
<type/>
|
10099 |
</argument>
|
10100 |
-
<argument line="
|
10101 |
<name>$post_stati</name>
|
10102 |
<default><![CDATA[NULL]]></default>
|
10103 |
<type/>
|
@@ -11730,6 +11912,14 @@ $this->set_pagination_args().</p>]]></long-description>
|
|
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>
|
@@ -11738,7 +11928,7 @@ $this->set_pagination_args().</p>]]></long-description>
|
|
11738 |
<tag line="2" name="since" description="1.90"/>
|
11739 |
</docblock>
|
11740 |
</file>
|
11741 |
-
<file path="includes\mla-media-modal-js-template.php" hash="
|
11742 |
<docblock line="2">
|
11743 |
<description><![CDATA[Backbone/JavaScript template for Media Library Assistant Media Manager enhancements]]></description>
|
11744 |
<long-description><![CDATA[]]></long-description>
|
@@ -11746,7 +11936,7 @@ $this->set_pagination_args().</p>]]></long-description>
|
|
11746 |
<tag line="2" name="since" description="1.80"/>
|
11747 |
</docblock>
|
11748 |
</file>
|
11749 |
-
<file path="includes\mla-plugin-loader.php" hash="
|
11750 |
<docblock line="2">
|
11751 |
<description><![CDATA[Media Library Assistant Plugin Loader]]></description>
|
11752 |
<long-description><![CDATA[<p>Defines constants and loads all of the classes and functions required to run the plugin.
|
@@ -11754,117 +11944,117 @@ This file is only loaded if the naming conflict tests in index.php are passed.</
|
|
11754 |
<tag line="2" name="package" description="Media Library Assistant"/>
|
11755 |
<tag line="2" name="since" description="0.20"/>
|
11756 |
</docblock>
|
11757 |
-
<include line="
|
11758 |
<name/>
|
11759 |
</include>
|
11760 |
-
<include line="
|
11761 |
<name/>
|
11762 |
</include>
|
11763 |
-
<include line="
|
11764 |
<name/>
|
11765 |
</include>
|
11766 |
-
<include line="
|
11767 |
<name/>
|
11768 |
</include>
|
11769 |
-
<include line="
|
11770 |
<name/>
|
11771 |
</include>
|
11772 |
-
<include line="
|
11773 |
<name/>
|
11774 |
</include>
|
11775 |
-
<include line="
|
11776 |
<name/>
|
11777 |
</include>
|
11778 |
-
<include line="
|
11779 |
<name/>
|
11780 |
</include>
|
11781 |
-
<include line="
|
11782 |
<name/>
|
11783 |
</include>
|
11784 |
-
<include line="
|
11785 |
<name/>
|
11786 |
</include>
|
11787 |
-
<include line="
|
11788 |
<name/>
|
11789 |
</include>
|
11790 |
-
<include line="
|
11791 |
<name/>
|
11792 |
</include>
|
11793 |
-
<include line="
|
11794 |
<name/>
|
11795 |
</include>
|
11796 |
-
<include line="
|
11797 |
<name/>
|
11798 |
</include>
|
11799 |
-
<constant namespace="global" line="
|
11800 |
<name>MLA_OPTION_PREFIX</name>
|
11801 |
<full_name>\MLA_OPTION_PREFIX</full_name>
|
11802 |
<value><![CDATA['mla_']]></value>
|
11803 |
-
<docblock line="
|
11804 |
<description><![CDATA[Gives a unique prefix for plugin options; can be set in wp-config.php]]></description>
|
11805 |
<long-description><![CDATA[]]></long-description>
|
11806 |
</docblock>
|
11807 |
</constant>
|
11808 |
-
<function namespace="global" line="
|
11809 |
<name>mla_plugin_loader_reporting_action</name>
|
11810 |
<full_name>\mla_plugin_loader_reporting_action</full_name>
|
11811 |
-
<docblock line="
|
11812 |
<description><![CDATA[Displays version conflict error messages at the top of the Dashboard]]></description>
|
11813 |
<long-description><![CDATA[]]></long-description>
|
11814 |
-
<tag line="
|
11815 |
</docblock>
|
11816 |
</function>
|
11817 |
</file>
|
11818 |
-
<file path="index.php" hash="
|
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.
|
11825 |
</docblock>
|
11826 |
-
<include line="
|
11827 |
<name>includes/mla-plugin-loader.php</name>
|
11828 |
</include>
|
11829 |
-
<constant namespace="global" line="
|
11830 |
<name>MLA_PLUGIN_PATH</name>
|
11831 |
<full_name>\MLA_PLUGIN_PATH</full_name>
|
11832 |
<value><![CDATA[plugin_dir_path(__FILE__)]]></value>
|
11833 |
-
<docblock line="
|
11834 |
<description><![CDATA[Provides path information to the plugin root in file system format, including the trailing slash.]]></description>
|
11835 |
<long-description><![CDATA[]]></long-description>
|
11836 |
</docblock>
|
11837 |
</constant>
|
11838 |
-
<constant namespace="global" line="
|
11839 |
<name>MLA_PLUGIN_BASENAME</name>
|
11840 |
<full_name>\MLA_PLUGIN_BASENAME</full_name>
|
11841 |
<value><![CDATA[dirname(plugin_basename(__FILE__))]]></value>
|
11842 |
-
<docblock line="
|
11843 |
<description><![CDATA[Provides the plugin's directory name, relative to the plugins directory, without leading or trailing slashes.]]></description>
|
11844 |
<long-description><![CDATA[]]></long-description>
|
11845 |
</docblock>
|
11846 |
</constant>
|
11847 |
-
<constant namespace="global" line="
|
11848 |
<name>MLA_PLUGIN_URL</name>
|
11849 |
<full_name>\MLA_PLUGIN_URL</full_name>
|
11850 |
<value><![CDATA[plugin_dir_url(__FILE__)]]></value>
|
11851 |
-
<docblock line="
|
11852 |
<description><![CDATA[Provides path information to the plugin root in URL format.]]></description>
|
11853 |
<long-description><![CDATA[]]></long-description>
|
11854 |
</docblock>
|
11855 |
</constant>
|
11856 |
-
<constant namespace="global" line="
|
11857 |
<name>MLA_BACKUP_DIR</name>
|
11858 |
<full_name>\MLA_BACKUP_DIR</full_name>
|
11859 |
<value><![CDATA[$content_dir . '/mla-backup/']]></value>
|
11860 |
</constant>
|
11861 |
-
<function namespace="global" line="
|
11862 |
<name>mla_name_conflict_reporting_action</name>
|
11863 |
<full_name>\mla_name_conflict_reporting_action</full_name>
|
11864 |
-
<docblock line="
|
11865 |
<description><![CDATA[Displays name conflict error messages at the top of the Dashboard]]></description>
|
11866 |
<long-description><![CDATA[]]></long-description>
|
11867 |
-
<tag line="
|
11868 |
</docblock>
|
11869 |
</function>
|
11870 |
</file>
|
244 |
<tag line="2" name="since" description="MLA 1.80"/>
|
245 |
</docblock>
|
246 |
</file>
|
247 |
+
<file path="examples\twentytwelve-mla\content-tosca30-dropdown.php" hash="32e7534486bafcd97dd64674c082d9f3" package="Media Library Assistant\MLA\Child\Theme">
|
248 |
+
<docblock line="2">
|
249 |
+
<description><![CDATA[The template used for displaying "Tosca30 Dropdown" content in page-tosca30-dropdown.php]]></description>
|
250 |
+
<long-description><![CDATA[<p>Replaces the wp_list_categories() item count with an accurate, padded count of the
|
251 |
+
attachments assigned to each term.</p>]]></long-description>
|
252 |
+
<tag line="2" name="package" description="Media Library Assistant"/>
|
253 |
+
<tag line="2" name="subpackage" description="MLA_Child_Theme"/>
|
254 |
+
<tag line="2" name="version" description="1.00"/>
|
255 |
+
<tag line="2" name="since" description="MLA 1.80"/>
|
256 |
+
</docblock>
|
257 |
+
<class final="false" abstract="false" namespace="global" line="38" package="Media Library Assistant">
|
258 |
+
<extends>\Walker_Category</extends>
|
259 |
+
<name>MNA_Pad_Counts_Walker</name>
|
260 |
+
<full_name>\MNA_Pad_Counts_Walker</full_name>
|
261 |
+
<docblock line="32">
|
262 |
+
<description><![CDATA[Class MNA_Pad_Counts_Walker adds accurate, padded attachment counts to taxonomy terms.]]></description>
|
263 |
+
<long-description><![CDATA[<p>Class Walker is defined in /wp-includes/class-wp-walker.php
|
264 |
+
Class Walker_Category is defined in /wp-includes/category-template.php</p>]]></long-description>
|
265 |
+
</docblock>
|
266 |
+
<property final="false" static="false" visibility="private" line="44" namespace="global" package="Media Library Assistant">
|
267 |
+
<name>$mla_terms</name>
|
268 |
+
<default><![CDATA[array()]]></default>
|
269 |
+
<docblock line="39">
|
270 |
+
<description><![CDATA[MLA Terms]]></description>
|
271 |
+
<long-description><![CDATA[]]></long-description>
|
272 |
+
<tag line="39" name="var" description="" type="array">
|
273 |
+
<type by_reference="false">array</type>
|
274 |
+
</tag>
|
275 |
+
</docblock>
|
276 |
+
</property>
|
277 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="51" package="Media Library Assistant">
|
278 |
+
<name>__construct</name>
|
279 |
+
<full_name>__construct</full_name>
|
280 |
+
<docblock line="46">
|
281 |
+
<description><![CDATA[Constructor - set the MLA Terms.]]></description>
|
282 |
+
<long-description><![CDATA[]]></long-description>
|
283 |
+
<tag line="46" name="param" description="Taxonomy name/slug." type="string" variable="$taxonomy">
|
284 |
+
<type by_reference="false">string</type>
|
285 |
+
</tag>
|
286 |
+
</docblock>
|
287 |
+
<argument line="51">
|
288 |
+
<name>$taxonomy</name>
|
289 |
+
<default><![CDATA[]]></default>
|
290 |
+
<type/>
|
291 |
+
</argument>
|
292 |
+
</method>
|
293 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="75" package="Media Library Assistant">
|
294 |
+
<name>start_el</name>
|
295 |
+
<full_name>start_el</full_name>
|
296 |
+
<docblock line="64">
|
297 |
+
<description><![CDATA[Start the element output.]]></description>
|
298 |
+
<long-description><![CDATA[]]></long-description>
|
299 |
+
<tag line="64" name="see" description="\global\Walker::start_el()" refers="\global\Walker::start_el()"/>
|
300 |
+
<tag line="64" name="param" description="Passed by reference. Used to append additional content." type="string" variable="$output">
|
301 |
+
<type by_reference="false">string</type>
|
302 |
+
</tag>
|
303 |
+
<tag line="64" name="param" description="Taxonomy data object." type="object" variable="$taxonomy_object">
|
304 |
+
<type by_reference="false">object</type>
|
305 |
+
</tag>
|
306 |
+
<tag line="64" name="param" description="Depth of category in reference to parents. Default 0." type="int" variable="$depth">
|
307 |
+
<type by_reference="false">int</type>
|
308 |
+
</tag>
|
309 |
+
<tag line="64" name="param" description="An array of arguments. @see wp_list_categories()" type="array" variable="$args">
|
310 |
+
<type by_reference="false">array</type>
|
311 |
+
</tag>
|
312 |
+
<tag line="64" name="param" description="ID of the current category." type="int" variable="$id">
|
313 |
+
<type by_reference="false">int</type>
|
314 |
+
</tag>
|
315 |
+
</docblock>
|
316 |
+
<argument line="75">
|
317 |
+
<name>$output</name>
|
318 |
+
<default><![CDATA[]]></default>
|
319 |
+
<type/>
|
320 |
+
</argument>
|
321 |
+
<argument line="75">
|
322 |
+
<name>$taxonomy_object</name>
|
323 |
+
<default><![CDATA[]]></default>
|
324 |
+
<type/>
|
325 |
+
</argument>
|
326 |
+
<argument line="75">
|
327 |
+
<name>$depth</name>
|
328 |
+
<default><![CDATA[0]]></default>
|
329 |
+
<type/>
|
330 |
+
</argument>
|
331 |
+
<argument line="75">
|
332 |
+
<name>$args</name>
|
333 |
+
<default><![CDATA[array()]]></default>
|
334 |
+
<type/>
|
335 |
+
</argument>
|
336 |
+
<argument line="75">
|
337 |
+
<name>$id</name>
|
338 |
+
<default><![CDATA[0]]></default>
|
339 |
+
<type/>
|
340 |
+
</argument>
|
341 |
+
</method>
|
342 |
+
</class>
|
343 |
+
</file>
|
344 |
<file path="examples\twentytwelve-mla\functions.php" hash="464be5a0eb9335ba5ecc9fdc70fc63b0" package="Media Library Assistant\MLA\Child\Theme">
|
345 |
<docblock line="2">
|
346 |
<description><![CDATA[MLA Child for Twenty Twelve functions and definitions]]></description>
|
591 |
must be defined as a static WordPress "Page" post type.]]></description>
|
592 |
<long-description><![CDATA[<p>Please note that this is the WordPress construct of pages
|
593 |
and that other 'pages' on your WordPress site will use a
|
594 |
+
different template.</p>]]></long-description>
|
595 |
+
<tag line="2" name="package" description="Media Library Assistant"/>
|
596 |
+
<tag line="2" name="subpackage" description="MLA_Child_Theme"/>
|
597 |
+
<tag line="2" name="version" description="1.00"/>
|
598 |
+
<tag line="2" name="since" description="MLA 1.80"/>
|
599 |
+
</docblock>
|
600 |
+
</file>
|
601 |
+
<file path="examples\twentytwelve-mla\page-tosca30-dropdown.php" hash="59858dedc381eec9a56c22214789bbe3" package="Media Library Assistant\MLA\Child\Theme">
|
602 |
+
<docblock line="2">
|
603 |
+
<description><![CDATA[The template for displaying the "Tosca30 Dropdown" page, which
|
604 |
+
must be defined as a static WordPress "Page" post type.]]></description>
|
605 |
+
<long-description><![CDATA[<p>Please note that this is the WordPress construct of pages
|
606 |
+
and that other 'pages' on your WordPress site will use a
|
607 |
different template.</p>]]></long-description>
|
608 |
<tag line="2" name="package" description="Media Library Assistant"/>
|
609 |
<tag line="2" name="subpackage" description="MLA_Child_Theme"/>
|
622 |
<tag line="2" name="since" description="MLA 1.80"/>
|
623 |
</docblock>
|
624 |
</file>
|
625 |
+
<file path="includes\class-mla-data.php" hash="348e135acfeeb142ee5afaee2647946b" package="Media Library Assistant">
|
626 |
<docblock line="2">
|
627 |
<description><![CDATA[Database and template file access for MLA needs]]></description>
|
628 |
<long-description><![CDATA[]]></long-description>
|
663 |
</tag>
|
664 |
</docblock>
|
665 |
</property>
|
666 |
+
<property final="false" static="true" visibility="private" line="1139" namespace="global" package="Media Library Assistant">
|
667 |
<name>$mla_list_table_items</name>
|
668 |
<default><![CDATA[NULL]]></default>
|
669 |
+
<docblock line="1132">
|
670 |
<description><![CDATA[Cache the results of mla_count_list_table_items for reuse in mla_query_list_table_items]]></description>
|
671 |
<long-description><![CDATA[]]></long-description>
|
672 |
+
<tag line="1132" name="since" description="1.40"/>
|
673 |
+
<tag line="1132" name="var" description="" type="array">
|
674 |
<type by_reference="false">array</type>
|
675 |
</tag>
|
676 |
</docblock>
|
677 |
</property>
|
678 |
+
<property final="false" static="true" visibility="private" line="1244" namespace="global" package="Media Library Assistant">
|
679 |
<name>$query_parameters</name>
|
680 |
<default><![CDATA[array()]]></default>
|
681 |
+
<docblock line="1231">
|
682 |
<description><![CDATA[WP_Query filter "parameters"]]></description>
|
683 |
<long-description><![CDATA[<p>This array defines parameters for the query's join, where and orderby filters.
|
684 |
The parameters are set up in the _prepare_list_table_query function, and
|
685 |
any further logic required to translate those values is contained in the filters.</p>
|
686 |
|
687 |
<p>Array index values are: use_postmeta_view, postmeta_key, postmeta_value, patterns, detached, orderby, order, mla-metavalue, debug, s, mla_search_connector, mla_search_fields, sentence, exact</p>]]></long-description>
|
688 |
+
<tag line="1231" name="since" description="0.30"/>
|
689 |
+
<tag line="1231" name="var" description="" type="array">
|
690 |
<type by_reference="false">array</type>
|
691 |
</tag>
|
692 |
</docblock>
|
693 |
</property>
|
694 |
+
<property final="false" static="true" visibility="private" line="3250" namespace="global" package="Media Library Assistant">
|
695 |
<name>$galleries</name>
|
696 |
<default><![CDATA[null]]></default>
|
697 |
+
<docblock line="3231">
|
698 |
<description><![CDATA[Objects containing [gallery] shortcodes]]></description>
|
699 |
<long-description><![CDATA[<p>This array contains all of the objects containing one or more [gallery] shortcodes
|
700 |
and array(s) of which attachments each [gallery] contains. The arrays are built once
|
707 |
['galleries'] array of [gallery] entries numbered from one (1), containing:
|
708 |
galleries[X]['query'] contains a string with the arguments of the [gallery],
|
709 |
galleries[X]['results'] contains an array ( ID ) of post_ids for the objects in the gallery.</p>]]></long-description>
|
710 |
+
<tag line="3231" name="since" description="0.70"/>
|
711 |
+
<tag line="3231" name="var" description="" type="array">
|
712 |
<type by_reference="false">array</type>
|
713 |
</tag>
|
714 |
</docblock>
|
715 |
</property>
|
716 |
+
<property final="false" static="true" visibility="private" line="3263" namespace="global" package="Media Library Assistant">
|
717 |
<name>$mla_galleries</name>
|
718 |
<default><![CDATA[null]]></default>
|
719 |
+
<docblock line="3252">
|
720 |
<description><![CDATA[Objects containing [mla_gallery] shortcodes]]></description>
|
721 |
<long-description><![CDATA[<p>This array contains all of the objects containing one or more [mla_gallery] shortcodes
|
722 |
and array(s) of which attachments each [mla_gallery] contains. The arrays are built once
|
723 |
each page load and cached for subsequent calls.</p>]]></long-description>
|
724 |
+
<tag line="3252" name="since" description="0.70"/>
|
725 |
+
<tag line="3252" name="var" description="" type="array">
|
726 |
<type by_reference="false">array</type>
|
727 |
</tag>
|
728 |
</docblock>
|
729 |
</property>
|
730 |
+
<property final="false" static="true" visibility="private" line="3459" namespace="global" package="Media Library Assistant">
|
731 |
<name>$pdf_indirect_objects</name>
|
732 |
<default><![CDATA[NULL]]></default>
|
733 |
+
<docblock line="3448">
|
734 |
<description><![CDATA[Array of PDF indirect objects]]></description>
|
735 |
<long-description><![CDATA[<p>This array contains all of the indirect object offsets and lengths.
|
736 |
The array key is ( object ID * 1000 ) + object generation.
|
737 |
The array value is array( number, generation, start, optional /length )</p>]]></long-description>
|
738 |
+
<tag line="3448" name="since" description="1.50"/>
|
739 |
+
<tag line="3448" name="var" description="" type="array">
|
740 |
<type by_reference="false">array</type>
|
741 |
</tag>
|
742 |
</docblock>
|
743 |
</property>
|
744 |
+
<property final="false" static="true" visibility="private" line="4570" namespace="global" package="Media Library Assistant">
|
745 |
<name>$utf8_chars</name>
|
746 |
<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>
|
747 |
+
<docblock line="4563">
|
748 |
<description><![CDATA[UTF-8 replacements for invalid SQL characters]]></description>
|
749 |
<long-description><![CDATA[]]></long-description>
|
750 |
+
<tag line="4563" name="since" description="1.41"/>
|
751 |
+
<tag line="4563" name="var" description="" type="array">
|
752 |
<type by_reference="false">array</type>
|
753 |
</tag>
|
754 |
</docblock>
|
755 |
</property>
|
756 |
+
<property final="false" static="true" visibility="private" line="4630" namespace="global" package="Media Library Assistant">
|
757 |
<name>$mla_iptc_records</name>
|
758 |
<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>
|
759 |
+
<docblock line="4620">
|
760 |
<description><![CDATA[IPTC Dataset identifiers and names]]></description>
|
761 |
<long-description><![CDATA[<p>This array contains the identifiers and names of Datasets defined in
|
762 |
the "IPTC-NAA Information Interchange Model Version No. 4.1".</p>]]></long-description>
|
763 |
+
<tag line="4620" name="since" description="0.90"/>
|
764 |
+
<tag line="4620" name="var" description="" type="array">
|
765 |
<type by_reference="false">array</type>
|
766 |
</tag>
|
767 |
</docblock>
|
768 |
</property>
|
769 |
+
<property final="false" static="true" visibility="public" line="4729" namespace="global" package="Media Library Assistant">
|
770 |
<name>$mla_iptc_keys</name>
|
771 |
<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>
|
772 |
+
<docblock line="4719">
|
773 |
<description><![CDATA[IPTC Dataset friendly name/slug and identifiers]]></description>
|
774 |
<long-description><![CDATA[<p>This array contains the sanitized names and identifiers of Datasets defined in
|
775 |
the "IPTC-NAA Information Interchange Model Version No. 4.1".</p>]]></long-description>
|
776 |
+
<tag line="4719" name="since" description="0.90"/>
|
777 |
+
<tag line="4719" name="var" description="" type="array">
|
778 |
<type by_reference="false">array</type>
|
779 |
</tag>
|
780 |
</docblock>
|
781 |
</property>
|
782 |
+
<property final="false" static="true" visibility="private" line="4828" namespace="global" package="Media Library Assistant">
|
783 |
<name>$mla_iptc_descriptions</name>
|
784 |
<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>
|
785 |
+
<docblock line="4818">
|
786 |
<description><![CDATA[IPTC Dataset descriptions]]></description>
|
787 |
<long-description><![CDATA[<p>This array contains the descriptions of Datasets defined in
|
788 |
the "IPTC-NAA Information Interchange Model Version No. 4.1".</p>]]></long-description>
|
789 |
+
<tag line="4818" name="since" description="0.90"/>
|
790 |
+
<tag line="4818" name="var" description="" type="array">
|
791 |
<type by_reference="false">array</type>
|
792 |
</tag>
|
793 |
</docblock>
|
794 |
</property>
|
795 |
+
<property final="false" static="true" visibility="private" line="4927" namespace="global" package="Media Library Assistant">
|
796 |
<name>$mla_iptc_formats</name>
|
797 |
<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>
|
798 |
+
<docblock line="4917">
|
799 |
<description><![CDATA[IPTC file format identifiers and descriptions]]></description>
|
800 |
<long-description><![CDATA[<p>This array contains the file format identifiers and descriptions defined in
|
801 |
the "IPTC-NAA Information Interchange Model Version No. 4.1" for dataset 1#020.</p>]]></long-description>
|
802 |
+
<tag line="4917" name="since" description="0.90"/>
|
803 |
+
<tag line="4917" name="var" description="" type="array">
|
804 |
<type by_reference="false">array</type>
|
805 |
</tag>
|
806 |
</docblock>
|
807 |
</property>
|
808 |
+
<property final="false" static="true" visibility="private" line="4970" namespace="global" package="Media Library Assistant">
|
809 |
<name>$mla_iptc_image_types</name>
|
810 |
<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>
|
811 |
+
<docblock line="4960">
|
812 |
<description><![CDATA[IPTC image type identifiers and descriptions]]></description>
|
813 |
<long-description><![CDATA[<p>This array contains the image type identifiers and descriptions defined in
|
814 |
the "IPTC-NAA Information Interchange Model Version No. 4.1" for dataset 2#130, octet 2.</p>]]></long-description>
|
815 |
+
<tag line="4960" name="since" description="0.90"/>
|
816 |
+
<tag line="4960" name="var" description="" type="array">
|
817 |
<type by_reference="false">array</type>
|
818 |
</tag>
|
819 |
</docblock>
|
820 |
</property>
|
821 |
+
<property final="false" static="true" visibility="private" line="5144" namespace="global" package="Media Library Assistant">
|
822 |
<name>$mla_IPTC_EXIF_errors</name>
|
823 |
<default><![CDATA[array()]]></default>
|
824 |
+
<docblock line="5136">
|
825 |
<description><![CDATA[Passes IPTC/EXIF parse errors between mla_IPTC_EXIF_error_handler
|
826 |
and mla_fetch_attachment_image_metadata]]></description>
|
827 |
<long-description><![CDATA[]]></long-description>
|
828 |
+
<tag line="5136" name="since" description="1.81"/>
|
829 |
+
<tag line="5136" name="var" description="" type="array">
|
830 |
<type by_reference="false">array</type>
|
831 |
</tag>
|
832 |
</docblock>
|
849 |
Multi-part templates are divided by comments of the form <!-- template="key" -->,
|
850 |
where "key" becomes the key part of the array.</p>]]></long-description>
|
851 |
<tag line="52" name="since" description="0.1"/>
|
852 |
+
<tag line="52" name="param" description="Complete path and/or name of the template file, option name or the raw template" type="string" variable="$source">
|
853 |
<type by_reference="false">string</type>
|
854 |
</tag>
|
855 |
<tag line="52" name="param" description="Optional type of template source; 'path', 'file' (default), 'option', 'string'" type="string" variable="$type">
|
1179 |
<type/>
|
1180 |
</argument>
|
1181 |
</method>
|
1182 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1049" package="Media Library Assistant">
|
1183 |
<name>mla_get_template_placeholders</name>
|
1184 |
<full_name>mla_get_template_placeholders</full_name>
|
1185 |
+
<docblock line="1038">
|
1186 |
<description><![CDATA[Analyze a template, returning an array of the placeholders it contains]]></description>
|
1187 |
<long-description><![CDATA[]]></long-description>
|
1188 |
+
<tag line="1038" name="since" description="0.90"/>
|
1189 |
+
<tag line="1038" name="param" description="A formatting string containing [+placeholders+]" type="string" variable="$tpl">
|
1190 |
<type by_reference="false">string</type>
|
1191 |
</tag>
|
1192 |
+
<tag line="1038" name="param" description="Optional: default option value" type="string" variable="$default_option">
|
1193 |
<type by_reference="false">string</type>
|
1194 |
</tag>
|
1195 |
+
<tag line="1038" name="return" description="Placeholder information: each entry is an array with ['prefix'] => string, ['value'] => string, ['option'] => string 'text'|single'|'export'|'array'|'multi'" type="array">
|
1196 |
<type by_reference="false">array</type>
|
1197 |
</tag>
|
1198 |
</docblock>
|
1199 |
+
<argument line="1049">
|
1200 |
<name>$tpl</name>
|
1201 |
<default><![CDATA[]]></default>
|
1202 |
<type/>
|
1203 |
</argument>
|
1204 |
+
<argument line="1049">
|
1205 |
<name>$default_option</name>
|
1206 |
<default><![CDATA['text']]></default>
|
1207 |
<type/>
|
1208 |
</argument>
|
1209 |
</method>
|
1210 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1152" package="Media Library Assistant">
|
1211 |
<name>mla_count_list_table_items</name>
|
1212 |
<full_name>mla_count_list_table_items</full_name>
|
1213 |
+
<docblock line="1141">
|
1214 |
<description><![CDATA[Get the total number of attachment posts]]></description>
|
1215 |
<long-description><![CDATA[]]></long-description>
|
1216 |
+
<tag line="1141" name="since" description="0.30"/>
|
1217 |
+
<tag line="1141" name="param" description="Query variables, e.g., from $_REQUEST" type="array" variable="$request">
|
1218 |
<type by_reference="false">array</type>
|
1219 |
</tag>
|
1220 |
+
<tag line="1141" name="param" description="(optional) number of rows to skip over to reach desired page" type="int" variable="$offset">
|
1221 |
<type by_reference="false">int</type>
|
1222 |
</tag>
|
1223 |
+
<tag line="1141" name="param" description="(optional) number of rows on each page" type="int" variable="$count">
|
1224 |
<type by_reference="false">int</type>
|
1225 |
</tag>
|
1226 |
+
<tag line="1141" name="return" description="Number of attachment posts" type="integer">
|
1227 |
<type by_reference="false">integer</type>
|
1228 |
</tag>
|
1229 |
</docblock>
|
1230 |
+
<argument line="1152">
|
1231 |
<name>$request</name>
|
1232 |
<default><![CDATA[]]></default>
|
1233 |
<type/>
|
1234 |
</argument>
|
1235 |
+
<argument line="1152">
|
1236 |
<name>$offset</name>
|
1237 |
<default><![CDATA[NULL]]></default>
|
1238 |
<type/>
|
1239 |
</argument>
|
1240 |
+
<argument line="1152">
|
1241 |
<name>$count</name>
|
1242 |
<default><![CDATA[NULL]]></default>
|
1243 |
<type/>
|
1244 |
</argument>
|
1245 |
</method>
|
1246 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1180" package="Media Library Assistant">
|
1247 |
<name>mla_query_list_table_items</name>
|
1248 |
<full_name>mla_query_list_table_items</full_name>
|
1249 |
+
<docblock line="1166">
|
1250 |
<description><![CDATA[Retrieve attachment objects for list table display]]></description>
|
1251 |
<long-description><![CDATA[<p>Supports prepare_items in class-mla-list-table.php.
|
1252 |
Modeled after wp_edit_attachments_query in wp-admin/post.php</p>]]></long-description>
|
1253 |
+
<tag line="1166" name="since" description="0.1"/>
|
1254 |
+
<tag line="1166" name="param" description="query parameters from web page, usually found in $_REQUEST" type="array" variable="$request">
|
1255 |
<type by_reference="false">array</type>
|
1256 |
</tag>
|
1257 |
+
<tag line="1166" name="param" description="number of rows to skip over to reach desired page" type="int" variable="$offset">
|
1258 |
<type by_reference="false">int</type>
|
1259 |
</tag>
|
1260 |
+
<tag line="1166" name="param" description="number of rows on each page" type="int" variable="$count">
|
1261 |
<type by_reference="false">int</type>
|
1262 |
</tag>
|
1263 |
+
<tag line="1166" name="return" description="attachment objects (posts) including parent data, meta data and references" type="array">
|
1264 |
<type by_reference="false">array</type>
|
1265 |
</tag>
|
1266 |
</docblock>
|
1267 |
+
<argument line="1180">
|
1268 |
<name>$request</name>
|
1269 |
<default><![CDATA[]]></default>
|
1270 |
<type/>
|
1271 |
</argument>
|
1272 |
+
<argument line="1180">
|
1273 |
<name>$offset</name>
|
1274 |
<default><![CDATA[]]></default>
|
1275 |
<type/>
|
1276 |
</argument>
|
1277 |
+
<argument line="1180">
|
1278 |
<name>$count</name>
|
1279 |
<default><![CDATA[]]></default>
|
1280 |
<type/>
|
1281 |
</argument>
|
1282 |
</method>
|
1283 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1226" package="Media Library Assistant">
|
1284 |
<name>mla_query_media_modal_items</name>
|
1285 |
<full_name>mla_query_media_modal_items</full_name>
|
1286 |
+
<docblock line="1213">
|
1287 |
<description><![CDATA[Retrieve attachment objects for the WordPress Media Manager]]></description>
|
1288 |
<long-description><![CDATA[<p>Supports month-year and taxonomy-term filters as well as the enhanced search box</p>]]></long-description>
|
1289 |
+
<tag line="1213" name="since" description="1.20"/>
|
1290 |
+
<tag line="1213" name="param" description="query parameters from Media Manager" type="array" variable="$request">
|
1291 |
<type by_reference="false">array</type>
|
1292 |
</tag>
|
1293 |
+
<tag line="1213" name="param" description="number of rows to skip over to reach desired page" type="int" variable="$offset">
|
1294 |
<type by_reference="false">int</type>
|
1295 |
</tag>
|
1296 |
+
<tag line="1213" name="param" description="number of rows on each page" type="int" variable="$count">
|
1297 |
<type by_reference="false">int</type>
|
1298 |
</tag>
|
1299 |
+
<tag line="1213" name="return" description="attachment objects (posts)" type="array">
|
1300 |
<type by_reference="false">array</type>
|
1301 |
</tag>
|
1302 |
</docblock>
|
1303 |
+
<argument line="1226">
|
1304 |
<name>$request</name>
|
1305 |
<default><![CDATA[]]></default>
|
1306 |
<type/>
|
1307 |
</argument>
|
1308 |
+
<argument line="1226">
|
1309 |
<name>$offset</name>
|
1310 |
<default><![CDATA[]]></default>
|
1311 |
<type/>
|
1312 |
</argument>
|
1313 |
+
<argument line="1226">
|
1314 |
<name>$count</name>
|
1315 |
<default><![CDATA[]]></default>
|
1316 |
<type/>
|
1317 |
</argument>
|
1318 |
</method>
|
1319 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1260" package="Media Library Assistant">
|
1320 |
<name>_prepare_list_table_query</name>
|
1321 |
<full_name>_prepare_list_table_query</full_name>
|
1322 |
+
<docblock line="1246">
|
1323 |
<description><![CDATA[Sanitize and expand query arguments from request variables]]></description>
|
1324 |
<long-description><![CDATA[<p>Prepare the arguments for WP_Query.
|
1325 |
Modeled after wp_edit_attachments_query in wp-admin/post.php</p>]]></long-description>
|
1326 |
+
<tag line="1246" name="since" description="0.1"/>
|
1327 |
+
<tag line="1246" name="param" description="query parameters from web page, usually found in $_REQUEST" type="array" variable="$raw_request">
|
1328 |
<type by_reference="false">array</type>
|
1329 |
</tag>
|
1330 |
+
<tag line="1246" name="param" description="Optional number of rows (default 0) to skip over to reach desired page" type="int" variable="$offset">
|
1331 |
<type by_reference="false">int</type>
|
1332 |
</tag>
|
1333 |
+
<tag line="1246" name="param" description="Optional number of rows on each page (0 = all rows, default)" type="int" variable="$count">
|
1334 |
<type by_reference="false">int</type>
|
1335 |
</tag>
|
1336 |
+
<tag line="1246" name="return" description="revised arguments suitable for WP_Query" type="array">
|
1337 |
<type by_reference="false">array</type>
|
1338 |
</tag>
|
1339 |
</docblock>
|
1340 |
+
<argument line="1260">
|
1341 |
<name>$raw_request</name>
|
1342 |
<default><![CDATA[]]></default>
|
1343 |
<type/>
|
1344 |
</argument>
|
1345 |
+
<argument line="1260">
|
1346 |
<name>$offset</name>
|
1347 |
<default><![CDATA[0]]></default>
|
1348 |
<type/>
|
1349 |
</argument>
|
1350 |
+
<argument line="1260">
|
1351 |
<name>$count</name>
|
1352 |
<default><![CDATA[0]]></default>
|
1353 |
<type/>
|
1354 |
</argument>
|
1355 |
</method>
|
1356 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1626" package="Media Library Assistant">
|
1357 |
<name>_execute_list_table_query</name>
|
1358 |
<full_name>_execute_list_table_query</full_name>
|
1359 |
+
<docblock line="1617">
|
1360 |
<description><![CDATA[Add filters, run query, remove filters]]></description>
|
1361 |
<long-description><![CDATA[]]></long-description>
|
1362 |
+
<tag line="1617" name="since" description="0.30"/>
|
1363 |
+
<tag line="1617" name="param" description="query parameters from web page, usually found in $_REQUEST" type="array" variable="$request">
|
1364 |
<type by_reference="false">array</type>
|
1365 |
</tag>
|
1366 |
+
<tag line="1617" name="return" description="WP_Query object with query results" type="object">
|
1367 |
<type by_reference="false">object</type>
|
1368 |
</tag>
|
1369 |
</docblock>
|
1370 |
+
<argument line="1626">
|
1371 |
<name>$request</name>
|
1372 |
<default><![CDATA[]]></default>
|
1373 |
<type/>
|
1374 |
</argument>
|
1375 |
</method>
|
1376 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1729" package="Media Library Assistant">
|
1377 |
<name>mla_search_terms_tidy</name>
|
1378 |
<full_name>mla_search_terms_tidy</full_name>
|
1379 |
+
<docblock line="1718">
|
1380 |
<description><![CDATA[Replaces a WordPress function deprecated in v3.7]]></description>
|
1381 |
<long-description><![CDATA[<p>Defined as public because it's a callback from array_map().</p>]]></long-description>
|
1382 |
+
<tag line="1718" name="since" description="1.51"/>
|
1383 |
+
<tag line="1718" name="param" description="search term before modification" type="string" variable="$term">
|
1384 |
<type by_reference="false">string</type>
|
1385 |
</tag>
|
1386 |
+
<tag line="1718" name="return" description="cleaned up search term" type="string">
|
1387 |
<type by_reference="false">string</type>
|
1388 |
</tag>
|
1389 |
</docblock>
|
1390 |
+
<argument line="1729">
|
1391 |
<name>$term</name>
|
1392 |
<default><![CDATA[]]></default>
|
1393 |
<type/>
|
1394 |
</argument>
|
1395 |
</method>
|
1396 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1745" package="Media Library Assistant">
|
1397 |
<name>mla_query_posts_search_filter</name>
|
1398 |
<full_name>mla_query_posts_search_filter</full_name>
|
1399 |
+
<docblock line="1733">
|
1400 |
<description><![CDATA[Adds a keyword search to the WHERE clause, if required]]></description>
|
1401 |
<long-description><![CDATA[<p>Defined as public because it's a filter.</p>]]></long-description>
|
1402 |
+
<tag line="1733" name="since" description="0.60"/>
|
1403 |
+
<tag line="1733" name="param" description="query clause before modification" type="string" variable="$search_string">
|
1404 |
<type by_reference="false">string</type>
|
1405 |
</tag>
|
1406 |
+
<tag line="1733" name="param" description="WP_Query object" type="object" variable="$query_object">
|
1407 |
<type by_reference="false">object</type>
|
1408 |
</tag>
|
1409 |
+
<tag line="1733" name="return" description="query clause after keyword search addition" type="string">
|
1410 |
<type by_reference="false">string</type>
|
1411 |
</tag>
|
1412 |
</docblock>
|
1413 |
+
<argument line="1745">
|
1414 |
<name>$search_string</name>
|
1415 |
<default><![CDATA[]]></default>
|
1416 |
<type/>
|
1417 |
</argument>
|
1418 |
+
<argument line="1745">
|
1419 |
<name>$query_object</name>
|
1420 |
<default><![CDATA[]]></default>
|
1421 |
<type/>
|
1422 |
</argument>
|
1423 |
</method>
|
1424 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2016" package="Media Library Assistant">
|
1425 |
<name>mla_query_posts_where_filter</name>
|
1426 |
<full_name>mla_query_posts_where_filter</full_name>
|
1427 |
+
<docblock line="2004">
|
1428 |
<description><![CDATA[Adds a WHERE clause for detached items]]></description>
|
1429 |
<long-description><![CDATA[<p>Modeled after _edit_attachments_query_helper in wp-admin/post.php.
|
1430 |
Defined as public because it's a filter.</p>]]></long-description>
|
1431 |
+
<tag line="2004" name="since" description="0.1"/>
|
1432 |
+
<tag line="2004" name="param" description="query clause before modification" type="string" variable="$where_clause">
|
1433 |
<type by_reference="false">string</type>
|
1434 |
</tag>
|
1435 |
+
<tag line="2004" name="return" description="query clause after "detached" item modification" type="string">
|
1436 |
<type by_reference="false">string</type>
|
1437 |
</tag>
|
1438 |
</docblock>
|
1439 |
+
<argument line="2016">
|
1440 |
<name>$where_clause</name>
|
1441 |
<default><![CDATA[]]></default>
|
1442 |
<type/>
|
1443 |
</argument>
|
1444 |
</method>
|
1445 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2080" package="Media Library Assistant">
|
1446 |
<name>mla_query_posts_join_filter</name>
|
1447 |
<full_name>mla_query_posts_join_filter</full_name>
|
1448 |
+
<docblock line="2069">
|
1449 |
<description><![CDATA[Adds a JOIN clause, if required, to handle sorting/searching on custom fields or ALT Text]]></description>
|
1450 |
<long-description><![CDATA[<p>Defined as public because it's a filter.</p>]]></long-description>
|
1451 |
+
<tag line="2069" name="since" description="0.30"/>
|
1452 |
+
<tag line="2069" name="param" description="query clause before modification" type="string" variable="$join_clause">
|
1453 |
<type by_reference="false">string</type>
|
1454 |
</tag>
|
1455 |
+
<tag line="2069" name="return" description="query clause after "LEFT JOIN view ON post_id" item modification" type="string">
|
1456 |
<type by_reference="false">string</type>
|
1457 |
</tag>
|
1458 |
</docblock>
|
1459 |
+
<argument line="2080">
|
1460 |
<name>$join_clause</name>
|
1461 |
<default><![CDATA[]]></default>
|
1462 |
<type/>
|
1463 |
</argument>
|
1464 |
</method>
|
1465 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2135" package="Media Library Assistant">
|
1466 |
<name>mla_query_posts_groupby_filter</name>
|
1467 |
<full_name>mla_query_posts_groupby_filter</full_name>
|
1468 |
+
<docblock line="2123">
|
1469 |
<description><![CDATA[Adds a GROUPBY clause, if required]]></description>
|
1470 |
<long-description><![CDATA[<p>Taxonomy text queries require a GROUPBY clause.
|
1471 |
Defined as public because it's a filter.</p>]]></long-description>
|
1472 |
+
<tag line="2123" name="since" description="1.90"/>
|
1473 |
+
<tag line="2123" name="param" description="query clause before modification" type="string" variable="$groupby_clause">
|
1474 |
<type by_reference="false">string</type>
|
1475 |
</tag>
|
1476 |
+
<tag line="2123" name="return" description="updated query clause" type="string">
|
1477 |
<type by_reference="false">string</type>
|
1478 |
</tag>
|
1479 |
</docblock>
|
1480 |
+
<argument line="2135">
|
1481 |
<name>$groupby_clause</name>
|
1482 |
<default><![CDATA[]]></default>
|
1483 |
<type/>
|
1484 |
</argument>
|
1485 |
</method>
|
1486 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2157" package="Media Library Assistant">
|
1487 |
<name>mla_query_posts_orderby_filter</name>
|
1488 |
<full_name>mla_query_posts_orderby_filter</full_name>
|
1489 |
+
<docblock line="2145">
|
1490 |
<description><![CDATA[Adds a ORDERBY clause, if required]]></description>
|
1491 |
<long-description><![CDATA[<p>Expands the range of sort options because the logic in WP_Query is limited.
|
1492 |
Defined as public because it's a filter.</p>]]></long-description>
|
1493 |
+
<tag line="2145" name="since" description="0.30"/>
|
1494 |
+
<tag line="2145" name="param" description="query clause before modification" type="string" variable="$orderby_clause">
|
1495 |
<type by_reference="false">string</type>
|
1496 |
</tag>
|
1497 |
+
<tag line="2145" name="return" description="updated query clause" type="string">
|
1498 |
<type by_reference="false">string</type>
|
1499 |
</tag>
|
1500 |
</docblock>
|
1501 |
+
<argument line="2157">
|
1502 |
<name>$orderby_clause</name>
|
1503 |
<default><![CDATA[]]></default>
|
1504 |
<type/>
|
1505 |
</argument>
|
1506 |
</method>
|
1507 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2235" package="Media Library Assistant">
|
1508 |
<name>mla_query_relevanssi_admin_search_ok_filter</name>
|
1509 |
<full_name>mla_query_relevanssi_admin_search_ok_filter</full_name>
|
1510 |
+
<docblock line="2225">
|
1511 |
<description><![CDATA[Disable Relevanssi - A Better Search, v3.2 by Mikko Saari
|
1512 |
Defined as public because it's a filter.]]></description>
|
1513 |
<long-description><![CDATA[]]></long-description>
|
1514 |
+
<tag line="2225" name="since" description="1.80"/>
|
1515 |
+
<tag line="2225" name="param" description="Default setting" type="boolean" variable="$admin_search_ok">
|
1516 |
<type by_reference="false">boolean</type>
|
1517 |
</tag>
|
1518 |
+
<tag line="2225" name="return" description="Updated setting" type="boolean">
|
1519 |
<type by_reference="false">boolean</type>
|
1520 |
</tag>
|
1521 |
</docblock>
|
1522 |
+
<argument line="2235">
|
1523 |
<name>$admin_search_ok</name>
|
1524 |
<default><![CDATA[]]></default>
|
1525 |
<type/>
|
1526 |
</argument>
|
1527 |
</method>
|
1528 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2251" package="Media Library Assistant">
|
1529 |
<name>mla_query_posts_clauses_filter</name>
|
1530 |
<full_name>mla_query_posts_clauses_filter</full_name>
|
1531 |
+
<docblock line="2239">
|
1532 |
<description><![CDATA[Filters all clauses for shortcode queries, pre caching plugins]]></description>
|
1533 |
<long-description><![CDATA[<p>This is for debug purposes only.
|
1534 |
Defined as public because it's a filter.</p>]]></long-description>
|
1535 |
+
<tag line="2239" name="since" description="1.80"/>
|
1536 |
+
<tag line="2239" name="param" description="query clauses before modification" type="array" variable="$pieces">
|
1537 |
<type by_reference="false">array</type>
|
1538 |
</tag>
|
1539 |
+
<tag line="2239" name="return" description="query clauses after modification (none)" type="array">
|
1540 |
<type by_reference="false">array</type>
|
1541 |
</tag>
|
1542 |
</docblock>
|
1543 |
+
<argument line="2251">
|
1544 |
<name>$pieces</name>
|
1545 |
<default><![CDATA[]]></default>
|
1546 |
<type/>
|
1547 |
</argument>
|
1548 |
</method>
|
1549 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2275" package="Media Library Assistant">
|
1550 |
<name>mla_query_posts_clauses_request_filter</name>
|
1551 |
<full_name>mla_query_posts_clauses_request_filter</full_name>
|
1552 |
+
<docblock line="2263">
|
1553 |
<description><![CDATA[Filters all clauses for shortcode queries, post caching plugins]]></description>
|
1554 |
<long-description><![CDATA[<p>This is for debug purposes only.
|
1555 |
Defined as public because it's a filter.</p>]]></long-description>
|
1556 |
+
<tag line="2263" name="since" description="1.80"/>
|
1557 |
+
<tag line="2263" name="param" description="query clauses before modification" type="array" variable="$pieces">
|
1558 |
<type by_reference="false">array</type>
|
1559 |
</tag>
|
1560 |
+
<tag line="2263" name="return" description="query clauses after modification (none)" type="array">
|
1561 |
<type by_reference="false">array</type>
|
1562 |
</tag>
|
1563 |
</docblock>
|
1564 |
+
<argument line="2275">
|
1565 |
<name>$pieces</name>
|
1566 |
<default><![CDATA[]]></default>
|
1567 |
<type/>
|
1568 |
</argument>
|
1569 |
</method>
|
1570 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2299" package="Media Library Assistant">
|
1571 |
<name>mla_get_attachment_by_id</name>
|
1572 |
<full_name>mla_get_attachment_by_id</full_name>
|
1573 |
+
<docblock line="2287">
|
1574 |
<description><![CDATA[Retrieve an Attachment array given a $post_id]]></description>
|
1575 |
<long-description><![CDATA[<p>The (associative) array will contain every field that can be found in
|
1576 |
the posts and postmeta tables, and all references to the attachment.</p>]]></long-description>
|
1577 |
+
<tag line="2287" name="since" description="0.1"/>
|
1578 |
+
<tag line="2287" name="uses" description="\global\$post" refers="\global\$post"/>
|
1579 |
+
<tag line="2287" name="param" description="The ID of the attachment post" type="int" variable="$post_id">
|
1580 |
<type by_reference="false">int</type>
|
1581 |
</tag>
|
1582 |
+
<tag line="2287" name="return" description="NULL on failure else associative array" type="NULL|array">
|
1583 |
<type by_reference="false">NULL</type>
|
1584 |
<type by_reference="false">array</type>
|
1585 |
</tag>
|
1586 |
</docblock>
|
1587 |
+
<argument line="2299">
|
1588 |
<name>$post_id</name>
|
1589 |
<default><![CDATA[]]></default>
|
1590 |
<type/>
|
1591 |
</argument>
|
1592 |
</method>
|
1593 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2355" package="Media Library Assistant">
|
1594 |
<name>mla_fetch_attachment_parent_data</name>
|
1595 |
<full_name>mla_fetch_attachment_parent_data</full_name>
|
1596 |
+
<docblock line="2346">
|
1597 |
<description><![CDATA[Returns information about an attachment's parent, if found]]></description>
|
1598 |
<long-description><![CDATA[]]></long-description>
|
1599 |
+
<tag line="2346" name="since" description="0.1"/>
|
1600 |
+
<tag line="2346" name="param" description="post ID of attachment's parent, if any" type="int" variable="$parent_id">
|
1601 |
<type by_reference="false">int</type>
|
1602 |
</tag>
|
1603 |
+
<tag line="2346" name="return" description="Parent information; post_date, post_title and post_type" type="array">
|
1604 |
<type by_reference="false">array</type>
|
1605 |
</tag>
|
1606 |
</docblock>
|
1607 |
+
<argument line="2355">
|
1608 |
<name>$parent_id</name>
|
1609 |
<default><![CDATA[]]></default>
|
1610 |
<type/>
|
1611 |
</argument>
|
1612 |
</method>
|
1613 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2397" package="Media Library Assistant">
|
1614 |
<name>_set_array_element</name>
|
1615 |
<full_name>_set_array_element</full_name>
|
1616 |
+
<docblock line="2386">
|
1617 |
<description><![CDATA[Adds or replaces the value of a key in a possibly nested array structure]]></description>
|
1618 |
<long-description><![CDATA[]]></long-description>
|
1619 |
+
<tag line="2386" name="since" description="1.51"/>
|
1620 |
+
<tag line="2386" name="param" description="key value, e.g. array1.array2.element" type="string" variable="$needle">
|
1621 |
<type by_reference="false">string</type>
|
1622 |
</tag>
|
1623 |
+
<tag line="2386" name="param" description="replacement value, string or array, by reference" type="mixed" variable="$value">
|
1624 |
<type by_reference="false">mixed</type>
|
1625 |
</tag>
|
1626 |
+
<tag line="2386" name="param" description="PHP nested arrays, by reference" type="array" variable="$haystack">
|
1627 |
<type by_reference="false">array</type>
|
1628 |
</tag>
|
1629 |
+
<tag line="2386" name="return" description="true if $needle element set, false if not" type="boolean">
|
1630 |
<type by_reference="false">boolean</type>
|
1631 |
</tag>
|
1632 |
</docblock>
|
1633 |
+
<argument line="2397">
|
1634 |
<name>$needle</name>
|
1635 |
<default><![CDATA[]]></default>
|
1636 |
<type/>
|
1637 |
</argument>
|
1638 |
+
<argument line="2397">
|
1639 |
<name>$value</name>
|
1640 |
<default><![CDATA[]]></default>
|
1641 |
<type/>
|
1642 |
</argument>
|
1643 |
+
<argument line="2397">
|
1644 |
<name>$haystack</name>
|
1645 |
<default><![CDATA[]]></default>
|
1646 |
<type/>
|
1647 |
</argument>
|
1648 |
</method>
|
1649 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2431" package="Media Library Assistant">
|
1650 |
<name>_unset_array_element</name>
|
1651 |
<full_name>_unset_array_element</full_name>
|
1652 |
+
<docblock line="2421">
|
1653 |
<description><![CDATA[Deletes the value of a key in a possibly nested array structure]]></description>
|
1654 |
<long-description><![CDATA[]]></long-description>
|
1655 |
+
<tag line="2421" name="since" description="1.51"/>
|
1656 |
+
<tag line="2421" name="param" description="key value, e.g. array1.array2.element" type="string" variable="$needle">
|
1657 |
<type by_reference="false">string</type>
|
1658 |
</tag>
|
1659 |
+
<tag line="2421" name="param" description="PHP nested arrays, by reference" type="array" variable="$haystack">
|
1660 |
<type by_reference="false">array</type>
|
1661 |
</tag>
|
1662 |
+
<tag line="2421" name="return" description="true if $needle element found, false if not" type="boolean">
|
1663 |
<type by_reference="false">boolean</type>
|
1664 |
</tag>
|
1665 |
</docblock>
|
1666 |
+
<argument line="2431">
|
1667 |
<name>$needle</name>
|
1668 |
<default><![CDATA[]]></default>
|
1669 |
<type/>
|
1670 |
</argument>
|
1671 |
+
<argument line="2431">
|
1672 |
<name>$haystack</name>
|
1673 |
<default><![CDATA[]]></default>
|
1674 |
<type/>
|
1675 |
</argument>
|
1676 |
</method>
|
1677 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2466" package="Media Library Assistant">
|
1678 |
<name>mla_find_array_element</name>
|
1679 |
<full_name>mla_find_array_element</full_name>
|
1680 |
+
<docblock line="2451">
|
1681 |
<description><![CDATA[Finds the value of a key in a possibly nested array structure]]></description>
|
1682 |
<long-description><![CDATA[<p>Used primarily to extract fields from the _wp_attachment_metadata custom field.
|
1683 |
Could also be used with the ID3 metadata exposed in WordPress 3.6 and later.</p>]]></long-description>
|
1684 |
+
<tag line="2451" name="since" description="1.30"/>
|
1685 |
+
<tag line="2451" name="param" description="key value, e.g. array1.array2.element" type="string" variable="$needle">
|
1686 |
<type by_reference="false">string</type>
|
1687 |
</tag>
|
1688 |
+
<tag line="2451" name="param" description="PHP nested arrays" type="array" variable="$haystack">
|
1689 |
<type by_reference="false">array</type>
|
1690 |
</tag>
|
1691 |
+
<tag line="2451" name="param" description="data option 'text'|'single'|'export'|'array'|'multi'" type="string" variable="$option">
|
1692 |
<type by_reference="false">string</type>
|
1693 |
</tag>
|
1694 |
+
<tag line="2451" name="param" description="keep existing values - for 'multi' option" type="boolean" variable="$keep_existing">
|
1695 |
<type by_reference="false">boolean</type>
|
1696 |
</tag>
|
1697 |
+
<tag line="2451" name="return" description="string or array value matching key(.key ...) or ''" type="mixed">
|
1698 |
<type by_reference="false">mixed</type>
|
1699 |
</tag>
|
1700 |
</docblock>
|
1701 |
+
<argument line="2466">
|
1702 |
<name>$needle</name>
|
1703 |
<default><![CDATA[]]></default>
|
1704 |
<type/>
|
1705 |
</argument>
|
1706 |
+
<argument line="2466">
|
1707 |
<name>$haystack</name>
|
1708 |
<default><![CDATA[]]></default>
|
1709 |
<type/>
|
1710 |
</argument>
|
1711 |
+
<argument line="2466">
|
1712 |
<name>$option</name>
|
1713 |
<default><![CDATA[]]></default>
|
1714 |
<type/>
|
1715 |
</argument>
|
1716 |
+
<argument line="2466">
|
1717 |
<name>$keep_existing</name>
|
1718 |
<default><![CDATA[false]]></default>
|
1719 |
<type/>
|
1720 |
</argument>
|
1721 |
</method>
|
1722 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2519" package="Media Library Assistant">
|
1723 |
<name>mla_fetch_attachment_metadata</name>
|
1724 |
<full_name>mla_fetch_attachment_metadata</full_name>
|
1725 |
+
<docblock line="2507">
|
1726 |
<description><![CDATA[Fetch and filter meta data for an attachment]]></description>
|
1727 |
<long-description><![CDATA[<p>Returns a filtered array of a post's meta data. Internal values beginning with '<em>'
|
1728 |
are stripped out or converted to an 'mla</em>' equivalent.</p>]]></long-description>
|
1729 |
+
<tag line="2507" name="since" description="0.1"/>
|
1730 |
+
<tag line="2507" name="param" description="post ID of attachment" type="int" variable="$post_id">
|
1731 |
<type by_reference="false">int</type>
|
1732 |
</tag>
|
1733 |
+
<tag line="2507" name="return" description="Meta data variables" type="array">
|
1734 |
<type by_reference="false">array</type>
|
1735 |
</tag>
|
1736 |
</docblock>
|
1737 |
+
<argument line="2519">
|
1738 |
<name>$post_id</name>
|
1739 |
<default><![CDATA[]]></default>
|
1740 |
<type/>
|
1741 |
</argument>
|
1742 |
</method>
|
1743 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2604" package="Media Library Assistant">
|
1744 |
<name>mla_fetch_attachment_references</name>
|
1745 |
<full_name>mla_fetch_attachment_references</full_name>
|
1746 |
+
<docblock line="2591">
|
1747 |
<description><![CDATA[Find Featured Image and inserted image/link references to an attachment]]></description>
|
1748 |
<long-description><![CDATA[<p>Searches all post and page content to see if the attachment is used
|
1749 |
as a Featured Image or inserted in the post as an image or link.</p>]]></long-description>
|
1750 |
+
<tag line="2591" name="since" description="0.1"/>
|
1751 |
+
<tag line="2591" name="param" description="post ID of attachment" type="int" variable="$ID">
|
1752 |
<type by_reference="false">int</type>
|
1753 |
</tag>
|
1754 |
+
<tag line="2591" name="param" description="post ID of attachment's parent, if any" type="int" variable="$parent">
|
1755 |
<type by_reference="false">int</type>
|
1756 |
</tag>
|
1757 |
+
<tag line="2591" name="return" description="Reference information; see $references array comments" type="array">
|
1758 |
<type by_reference="false">array</type>
|
1759 |
</tag>
|
1760 |
</docblock>
|
1761 |
+
<argument line="2604">
|
1762 |
<name>$ID</name>
|
1763 |
<default><![CDATA[]]></default>
|
1764 |
<type/>
|
1765 |
</argument>
|
1766 |
+
<argument line="2604">
|
1767 |
<name>$parent</name>
|
1768 |
<default><![CDATA[]]></default>
|
1769 |
<type/>
|
1770 |
</argument>
|
1771 |
</method>
|
1772 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2909" package="Media Library Assistant">
|
1773 |
+
<name>mla_attachment_array_fetch_references</name>
|
1774 |
+
<full_name>mla_attachment_array_fetch_references</full_name>
|
1775 |
+
<docblock line="2897">
|
1776 |
+
<description><![CDATA[Add Featured Image and inserted image/link references to an array of attachments]]></description>
|
1777 |
+
<long-description><![CDATA[<p>Searches all post and page content to see if the attachmenta are used
|
1778 |
+
as a Featured Image or inserted in the post as an image or link.</p>]]></long-description>
|
1779 |
+
<tag line="2897" name="since" description="1.94"/>
|
1780 |
+
<tag line="2897" name="param" description="WP_Post objects, passed by reference" type="array" variable="$attachments">
|
1781 |
+
<type by_reference="false">array</type>
|
1782 |
+
</tag>
|
1783 |
+
<tag line="2897" name="return" description="updates WP_Post objects with new mla_references property" type="void">
|
1784 |
+
<type by_reference="false">void</type>
|
1785 |
+
</tag>
|
1786 |
+
</docblock>
|
1787 |
+
<argument line="2909">
|
1788 |
+
<name>$attachments</name>
|
1789 |
+
<default><![CDATA[]]></default>
|
1790 |
+
<type/>
|
1791 |
+
</argument>
|
1792 |
+
</method>
|
1793 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="3274" package="Media Library Assistant">
|
1794 |
<name>mla_flush_mla_galleries</name>
|
1795 |
<full_name>mla_flush_mla_galleries</full_name>
|
1796 |
+
<docblock line="3265">
|
1797 |
<description><![CDATA[Invalidates the $mla_galleries or $galleries array and cached values]]></description>
|
1798 |
<long-description><![CDATA[]]></long-description>
|
1799 |
+
<tag line="3265" name="since" description="1.00"/>
|
1800 |
+
<tag line="3265" name="param" description="name of the gallery's cache/option variable" type="string" variable="$option_name">
|
1801 |
<type by_reference="false">string</type>
|
1802 |
</tag>
|
1803 |
+
<tag line="3265" name="return" description="" type="void">
|
1804 |
<type by_reference="false">void</type>
|
1805 |
</tag>
|
1806 |
</docblock>
|
1807 |
+
<argument line="3274">
|
1808 |
<name>$option_name</name>
|
1809 |
<default><![CDATA[]]></default>
|
1810 |
<type/>
|
1811 |
</argument>
|
1812 |
</method>
|
1813 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="3298" package="Media Library Assistant">
|
1814 |
<name>mla_save_post_action</name>
|
1815 |
<full_name>mla_save_post_action</full_name>
|
1816 |
+
<docblock line="3289">
|
1817 |
<description><![CDATA[Invalidates $mla_galleries and $galleries arrays and cached values after post, page or attachment updates]]></description>
|
1818 |
<long-description><![CDATA[]]></long-description>
|
1819 |
+
<tag line="3289" name="since" description="1.00"/>
|
1820 |
+
<tag line="3289" name="param" description="ID of post/page/attachment; not used at this time" type="integer" variable="$post_id">
|
1821 |
<type by_reference="false">integer</type>
|
1822 |
</tag>
|
1823 |
+
<tag line="3289" name="return" description="" type="void">
|
1824 |
<type by_reference="false">void</type>
|
1825 |
</tag>
|
1826 |
</docblock>
|
1827 |
+
<argument line="3298">
|
1828 |
<name>$post_id</name>
|
1829 |
<default><![CDATA[]]></default>
|
1830 |
<type/>
|
1831 |
</argument>
|
1832 |
</method>
|
1833 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3315" package="Media Library Assistant">
|
1834 |
<name>_build_mla_galleries</name>
|
1835 |
<full_name>_build_mla_galleries</full_name>
|
1836 |
+
<docblock line="3303">
|
1837 |
<description><![CDATA[Builds the $mla_galleries or $galleries array]]></description>
|
1838 |
<long-description><![CDATA[]]></long-description>
|
1839 |
+
<tag line="3303" name="since" description="0.70"/>
|
1840 |
+
<tag line="3303" name="param" description="name of the gallery's cache/option variable" type="string" variable="$option_name">
|
1841 |
<type by_reference="false">string</type>
|
1842 |
</tag>
|
1843 |
+
<tag line="3303" name="param" description="by reference to the private static galleries array variable" type="array" variable="$galleries_array">
|
1844 |
<type by_reference="false">array</type>
|
1845 |
</tag>
|
1846 |
+
<tag line="3303" name="param" description="the shortcode to be searched for and processed" type="string" variable="$shortcode">
|
1847 |
<type by_reference="false">string</type>
|
1848 |
</tag>
|
1849 |
+
<tag line="3303" name="param" description="true to exclude revisions from the search" type="boolean" variable="$exclude_revisions">
|
1850 |
<type by_reference="false">boolean</type>
|
1851 |
</tag>
|
1852 |
+
<tag line="3303" name="return" description="true if the galleries array is not empty" type="boolean">
|
1853 |
<type by_reference="false">boolean</type>
|
1854 |
</tag>
|
1855 |
</docblock>
|
1856 |
+
<argument line="3315">
|
1857 |
<name>$option_name</name>
|
1858 |
<default><![CDATA[]]></default>
|
1859 |
<type/>
|
1860 |
</argument>
|
1861 |
+
<argument line="3315">
|
1862 |
<name>$galleries_array</name>
|
1863 |
<default><![CDATA[]]></default>
|
1864 |
<type/>
|
1865 |
</argument>
|
1866 |
+
<argument line="3315">
|
1867 |
<name>$shortcode</name>
|
1868 |
<default><![CDATA[]]></default>
|
1869 |
<type/>
|
1870 |
</argument>
|
1871 |
+
<argument line="3315">
|
1872 |
<name>$exclude_revisions</name>
|
1873 |
<default><![CDATA[]]></default>
|
1874 |
<type/>
|
1875 |
</argument>
|
1876 |
</method>
|
1877 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3435" package="Media Library Assistant">
|
1878 |
<name>_search_mla_galleries</name>
|
1879 |
<full_name>_search_mla_galleries</full_name>
|
1880 |
+
<docblock line="3424">
|
1881 |
<description><![CDATA[Search the $mla_galleries or $galleries array]]></description>
|
1882 |
<long-description><![CDATA[]]></long-description>
|
1883 |
+
<tag line="3424" name="since" description="0.70"/>
|
1884 |
+
<tag line="3424" name="param" description="by reference to the private static galleries array variable" type="array" variable="$galleries_array">
|
1885 |
<type by_reference="false">array</type>
|
1886 |
</tag>
|
1887 |
+
<tag line="3424" name="param" description="the attachment ID to be searched for and processed" type="int" variable="$attachment_id">
|
1888 |
<type by_reference="false">int</type>
|
1889 |
</tag>
|
1890 |
+
<tag line="3424" 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">
|
1891 |
<type by_reference="false">array</type>
|
1892 |
</tag>
|
1893 |
</docblock>
|
1894 |
+
<argument line="3435">
|
1895 |
<name>$galleries_array</name>
|
1896 |
<default><![CDATA[]]></default>
|
1897 |
<type/>
|
1898 |
</argument>
|
1899 |
+
<argument line="3435">
|
1900 |
<name>$attachment_id</name>
|
1901 |
<default><![CDATA[]]></default>
|
1902 |
<type/>
|
1903 |
</argument>
|
1904 |
</method>
|
1905 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3474" package="Media Library Assistant">
|
1906 |
<name>_parse_pdf_xref_subsection</name>
|
1907 |
<full_name>_parse_pdf_xref_subsection</full_name>
|
1908 |
+
<docblock line="3461">
|
1909 |
<description><![CDATA[Parse a cross-reference table subsection into the array of indirect object definitions]]></description>
|
1910 |
<long-description><![CDATA[<p>A cross-reference subsection is a sequence of 20-byte entries, each with offset and generation values.</p>]]></long-description>
|
1911 |
+
<tag line="3461" name="since" description="1.50"/>
|
1912 |
+
<tag line="3461" name="param" description="buffer containing the subsection" type="string" variable="$xref_section">
|
1913 |
<type by_reference="false">string</type>
|
1914 |
</tag>
|
1915 |
+
<tag line="3461" name="param" description="offset within the buffer of the first entry" type="integer" variable="$offset">
|
1916 |
<type by_reference="false">integer</type>
|
1917 |
</tag>
|
1918 |
+
<tag line="3461" name="param" description="number of the first object in the subsection" type="integer" variable="$object_id">
|
1919 |
<type by_reference="false">integer</type>
|
1920 |
</tag>
|
1921 |
+
<tag line="3461" name="param" description="number of entries in the subsection" type="integer" variable="$count">
|
1922 |
<type by_reference="false">integer</type>
|
1923 |
</tag>
|
1924 |
+
<tag line="3461" name="return" description="" type="void">
|
1925 |
<type by_reference="false">void</type>
|
1926 |
</tag>
|
1927 |
</docblock>
|
1928 |
+
<argument line="3474">
|
1929 |
<name>$xref_section</name>
|
1930 |
<default><![CDATA[]]></default>
|
1931 |
<type/>
|
1932 |
</argument>
|
1933 |
+
<argument line="3474">
|
1934 |
<name>$offset</name>
|
1935 |
<default><![CDATA[]]></default>
|
1936 |
<type/>
|
1937 |
</argument>
|
1938 |
+
<argument line="3474">
|
1939 |
<name>$object_id</name>
|
1940 |
<default><![CDATA[]]></default>
|
1941 |
<type/>
|
1942 |
</argument>
|
1943 |
+
<argument line="3474">
|
1944 |
<name>$count</name>
|
1945 |
<default><![CDATA[]]></default>
|
1946 |
<type/>
|
1947 |
</argument>
|
1948 |
</method>
|
1949 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3506" package="Media Library Assistant">
|
1950 |
<name>_parse_pdf_xref_section</name>
|
1951 |
<full_name>_parse_pdf_xref_section</full_name>
|
1952 |
+
<docblock line="3495">
|
1953 |
<description><![CDATA[Parse a cross-reference table section into the array of indirect object definitions]]></description>
|
1954 |
<long-description><![CDATA[<p>Creates the array of indirect object offsets and lengths</p>]]></long-description>
|
1955 |
+
<tag line="3495" name="since" description="1.50"/>
|
1956 |
+
<tag line="3495" name="param" description="full path and file name" type="string" variable="$file_name">
|
1957 |
<type by_reference="false">string</type>
|
1958 |
</tag>
|
1959 |
+
<tag line="3495" name="param" description="offset within the file of the xref id and count entry" type="integer" variable="$file_offset">
|
1960 |
<type by_reference="false">integer</type>
|
1961 |
</tag>
|
1962 |
+
<tag line="3495" name="return" description="length of the section" type="integer">
|
1963 |
<type by_reference="false">integer</type>
|
1964 |
</tag>
|
1965 |
</docblock>
|
1966 |
+
<argument line="3506">
|
1967 |
<name>$file_name</name>
|
1968 |
<default><![CDATA[]]></default>
|
1969 |
<type/>
|
1970 |
</argument>
|
1971 |
+
<argument line="3506">
|
1972 |
<name>$file_offset</name>
|
1973 |
<default><![CDATA[]]></default>
|
1974 |
<type/>
|
1975 |
</argument>
|
1976 |
</method>
|
1977 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3540" package="Media Library Assistant">
|
1978 |
<name>_parse_pdf_xref_stream</name>
|
1979 |
<full_name>_parse_pdf_xref_stream</full_name>
|
1980 |
+
<docblock line="3528">
|
1981 |
<description><![CDATA[Parse a cross-reference steam into the array of indirect object definitions]]></description>
|
1982 |
<long-description><![CDATA[<p>Creates the array of indirect object offsets and lengths</p>]]></long-description>
|
1983 |
+
<tag line="3528" name="since" description="1.50"/>
|
1984 |
+
<tag line="3528" name="param" description="full path and file name" type="string" variable="$file_name">
|
1985 |
<type by_reference="false">string</type>
|
1986 |
</tag>
|
1987 |
+
<tag line="3528" name="param" description="offset within the file of the xref id and count entry" type="integer" variable="$file_offset">
|
1988 |
<type by_reference="false">integer</type>
|
1989 |
</tag>
|
1990 |
+
<tag line="3528" name="param" description=""/W" entry, representing the size of the fields in a single entry" type="string" variable="$entry_parms_string">
|
1991 |
<type by_reference="false">string</type>
|
1992 |
</tag>
|
1993 |
+
<tag line="3528" name="return" description="length of the stream" type="integer">
|
1994 |
<type by_reference="false">integer</type>
|
1995 |
</tag>
|
1996 |
</docblock>
|
1997 |
+
<argument line="3540">
|
1998 |
<name>$file_name</name>
|
1999 |
<default><![CDATA[]]></default>
|
2000 |
<type/>
|
2001 |
</argument>
|
2002 |
+
<argument line="3540">
|
2003 |
<name>$file_offset</name>
|
2004 |
<default><![CDATA[]]></default>
|
2005 |
<type/>
|
2006 |
</argument>
|
2007 |
+
<argument line="3540">
|
2008 |
<name>$entry_parms_string</name>
|
2009 |
<default><![CDATA[]]></default>
|
2010 |
<type/>
|
2011 |
</argument>
|
2012 |
</method>
|
2013 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3619" package="Media Library Assistant">
|
2014 |
<name>_build_pdf_indirect_objects</name>
|
2015 |
<full_name>_build_pdf_indirect_objects</full_name>
|
2016 |
+
<docblock line="3609">
|
2017 |
<description><![CDATA[Build an array of indirect object definitions]]></description>
|
2018 |
<long-description><![CDATA[<p>Creates the array of indirect object offsets and lengths</p>]]></long-description>
|
2019 |
+
<tag line="3609" name="since" description="1.50"/>
|
2020 |
+
<tag line="3609" name="param" description="The entire PDF document, passsed by reference" type="string" variable="$string">
|
2021 |
<type by_reference="false">string</type>
|
2022 |
</tag>
|
2023 |
+
<tag line="3609" name="return" description="" type="void">
|
2024 |
<type by_reference="false">void</type>
|
2025 |
</tag>
|
2026 |
</docblock>
|
2027 |
+
<argument line="3619">
|
2028 |
<name>$string</name>
|
2029 |
<default><![CDATA[]]></default>
|
2030 |
<type/>
|
2031 |
</argument>
|
2032 |
</method>
|
2033 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3667" package="Media Library Assistant">
|
2034 |
<name>_find_pdf_indirect_dictionary</name>
|
2035 |
<full_name>_find_pdf_indirect_dictionary</full_name>
|
2036 |
+
<docblock line="3653">
|
2037 |
<description><![CDATA[Find the offset, length and contents of an indirect object containing a dictionary]]></description>
|
2038 |
<long-description><![CDATA[<p>The function searches the entire file, if necessary, to find the last/most recent copy of the object.
|
2039 |
This is required because Adobe Acrobat does NOT increment the generation number when it reuses an object.</p>]]></long-description>
|
2040 |
+
<tag line="3653" name="since" description="1.50"/>
|
2041 |
+
<tag line="3653" name="param" description="full path and file name" type="string" variable="$file_name">
|
2042 |
<type by_reference="false">string</type>
|
2043 |
</tag>
|
2044 |
+
<tag line="3653" name="param" description="The object number" type="integer" variable="$object">
|
2045 |
<type by_reference="false">integer</type>
|
2046 |
</tag>
|
2047 |
+
<tag line="3653" name="param" description="The object generation number; default zero (0)" type="integer" variable="$generation">
|
2048 |
<type by_reference="false">integer</type>
|
2049 |
</tag>
|
2050 |
+
<tag line="3653" name="return" description="NULL on failure else array( 'start' => offset in the file, 'length' => object length, 'content' => dictionary contents )" type="mixed">
|
2051 |
<type by_reference="false">mixed</type>
|
2052 |
</tag>
|
2053 |
</docblock>
|
2054 |
+
<argument line="3667">
|
2055 |
<name>$file_name</name>
|
2056 |
<default><![CDATA[]]></default>
|
2057 |
<type/>
|
2058 |
</argument>
|
2059 |
+
<argument line="3667">
|
2060 |
<name>$object</name>
|
2061 |
<default><![CDATA[]]></default>
|
2062 |
<type/>
|
2063 |
</argument>
|
2064 |
+
<argument line="3667">
|
2065 |
<name>$generation</name>
|
2066 |
<default><![CDATA[0]]></default>
|
2067 |
<type/>
|
2068 |
</argument>
|
2069 |
</method>
|
2070 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3764" package="Media Library Assistant">
|
2071 |
<name>_parse_iso8601_date</name>
|
2072 |
<full_name>_parse_iso8601_date</full_name>
|
2073 |
+
<docblock line="3755">
|
2074 |
<description><![CDATA[Parse a ISO 8601 Timestamp]]></description>
|
2075 |
<long-description><![CDATA[]]></long-description>
|
2076 |
+
<tag line="3755" name="since" description="1.50"/>
|
2077 |
+
<tag line="3755" name="param" description="ISO string of the form YYYY-MM-DDTHH:MM:SS-HH:MM (inc time zone)" type="string" variable="$source_string">
|
2078 |
<type by_reference="false">string</type>
|
2079 |
</tag>
|
2080 |
+
<tag line="3755" name="return" description="formatted date string YYYY-MM-DD HH:mm:SS" type="string">
|
2081 |
<type by_reference="false">string</type>
|
2082 |
</tag>
|
2083 |
</docblock>
|
2084 |
+
<argument line="3764">
|
2085 |
<name>$source_string</name>
|
2086 |
<default><![CDATA[]]></default>
|
2087 |
<type/>
|
2088 |
</argument>
|
2089 |
</method>
|
2090 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3787" package="Media Library Assistant">
|
2091 |
<name>_parse_pdf_date</name>
|
2092 |
<full_name>_parse_pdf_date</full_name>
|
2093 |
+
<docblock line="3778">
|
2094 |
<description><![CDATA[Parse a PDF date string]]></description>
|
2095 |
<long-description><![CDATA[]]></long-description>
|
2096 |
+
<tag line="3778" name="since" description="1.50"/>
|
2097 |
+
<tag line="3778" name="param" description="PDF date string of the form D:YYYYMMDDHHmmSSOHH'mm" type="string" variable="$source_string">
|
2098 |
<type by_reference="false">string</type>
|
2099 |
</tag>
|
2100 |
+
<tag line="3778" name="return" description="formatted date string YYYY-MM-DD HH:mm:SS" type="string">
|
2101 |
<type by_reference="false">string</type>
|
2102 |
</tag>
|
2103 |
</docblock>
|
2104 |
+
<argument line="3787">
|
2105 |
<name>$source_string</name>
|
2106 |
<default><![CDATA[]]></default>
|
2107 |
<type/>
|
2108 |
</argument>
|
2109 |
</method>
|
2110 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3810" package="Media Library Assistant">
|
2111 |
<name>_parse_pdf_UTF16BE</name>
|
2112 |
<full_name>_parse_pdf_UTF16BE</full_name>
|
2113 |
+
<docblock line="3801">
|
2114 |
<description><![CDATA[Parse a PDF Unicode (16-bit Big Endian) object]]></description>
|
2115 |
<long-description><![CDATA[]]></long-description>
|
2116 |
+
<tag line="3801" name="since" description="1.50"/>
|
2117 |
+
<tag line="3801" name="param" description="PDF string of 16-bit characters" type="string" variable="$source_string">
|
2118 |
<type by_reference="false">string</type>
|
2119 |
</tag>
|
2120 |
+
<tag line="3801" name="return" description="UTF-8 encoded string" type="string">
|
2121 |
<type by_reference="false">string</type>
|
2122 |
</tag>
|
2123 |
</docblock>
|
2124 |
+
<argument line="3810">
|
2125 |
<name>$source_string</name>
|
2126 |
<default><![CDATA[]]></default>
|
2127 |
<type/>
|
2128 |
</argument>
|
2129 |
</method>
|
2130 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3839" package="Media Library Assistant">
|
2131 |
<name>_parse_pdf_string</name>
|
2132 |
<full_name>_parse_pdf_string</full_name>
|
2133 |
+
<docblock line="3826">
|
2134 |
<description><![CDATA[Parse a PDF string object]]></description>
|
2135 |
<long-description><![CDATA[<p>Returns an array with one dictionary entry. The array also has a '/length' element containing
|
2136 |
the number of bytes occupied by the string in the source string, including the enclosing parentheses.</p>]]></long-description>
|
2137 |
+
<tag line="3826" name="since" description="1.50"/>
|
2138 |
+
<tag line="3826" name="param" description="data within which the string occurs" type="string" variable="$source_string">
|
2139 |
<type by_reference="false">string</type>
|
2140 |
</tag>
|
2141 |
+
<tag line="3826" name="param" description="offset within the source string of the opening '(' character." type="integer" variable="$offset">
|
2142 |
<type by_reference="false">integer</type>
|
2143 |
</tag>
|
2144 |
+
<tag line="3826" name="return" description="( key => array( 'type' => type, 'value' => value, '/length' => length ) ) for the string" type="array">
|
2145 |
<type by_reference="false">array</type>
|
2146 |
</tag>
|
2147 |
</docblock>
|
2148 |
+
<argument line="3839">
|
2149 |
<name>$source_string</name>
|
2150 |
<default><![CDATA[]]></default>
|
2151 |
<type/>
|
2152 |
</argument>
|
2153 |
+
<argument line="3839">
|
2154 |
<name>$offset</name>
|
2155 |
<default><![CDATA[]]></default>
|
2156 |
<type/>
|
2157 |
</argument>
|
2158 |
</method>
|
2159 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3933" package="Media Library Assistant">
|
2160 |
<name>_parse_pdf_LPD_dictionary</name>
|
2161 |
<full_name>_parse_pdf_LPD_dictionary</full_name>
|
2162 |
+
<docblock line="3919">
|
2163 |
<description><![CDATA[Parse a PDF Linearization Parameter Dictionary object]]></description>
|
2164 |
<long-description><![CDATA[<p>Returns an array of dictionary contents, classified by object type: boolean, numeric, string, hex (string),
|
2165 |
indirect (object), name, array, dictionary, stream, and null.
|
2166 |
The array also has a '/length' element containing the number of bytes occupied by the
|
2167 |
dictionary in the source string, excluding the enclosing delimiters, if passed in.</p>]]></long-description>
|
2168 |
+
<tag line="3919" name="since" description="1.50"/>
|
2169 |
+
<tag line="3919" name="param" description="data within which the object occurs, typically the start of a PDF document" type="string" variable="$source_string">
|
2170 |
<type by_reference="false">string</type>
|
2171 |
</tag>
|
2172 |
+
<tag line="3919" name="param" description="filesize of the PDF document, for validation purposes, or zero (0) to ignore filesize" type="integer" variable="$filesize">
|
2173 |
<type by_reference="false">integer</type>
|
2174 |
</tag>
|
2175 |
+
<tag line="3919" name="return" description="array of dictionary objects on success, false on failure" type="mixed">
|
2176 |
<type by_reference="false">mixed</type>
|
2177 |
</tag>
|
2178 |
</docblock>
|
2179 |
+
<argument line="3933">
|
2180 |
<name>$source_string</name>
|
2181 |
<default><![CDATA[]]></default>
|
2182 |
<type/>
|
2183 |
</argument>
|
2184 |
+
<argument line="3933">
|
2185 |
<name>$filesize</name>
|
2186 |
<default><![CDATA[]]></default>
|
2187 |
<type/>
|
2188 |
</argument>
|
2189 |
</method>
|
2190 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3958" package="Media Library Assistant">
|
2191 |
<name>_parse_pdf_dictionary</name>
|
2192 |
<full_name>_parse_pdf_dictionary</full_name>
|
2193 |
+
<docblock line="3944">
|
2194 |
<description><![CDATA[Parse a PDF dictionary object]]></description>
|
2195 |
<long-description><![CDATA[<p>Returns an array of dictionary contents, classified by object type: boolean, numeric, string, hex (string),
|
2196 |
indirect (object), name, array, dictionary, stream, and null.
|
2197 |
The array also has a '/length' element containing the number of bytes occupied by the
|
2198 |
dictionary in the source string, excluding the enclosing delimiters.</p>]]></long-description>
|
2199 |
+
<tag line="3944" name="since" description="1.50"/>
|
2200 |
+
<tag line="3944" name="param" description="data within which the string occurs" type="string" variable="$source_string">
|
2201 |
<type by_reference="false">string</type>
|
2202 |
</tag>
|
2203 |
+
<tag line="3944" name="param" description="offset within the source string of the opening '<<' characters or the first content character." type="integer" variable="$offset">
|
2204 |
<type by_reference="false">integer</type>
|
2205 |
</tag>
|
2206 |
+
<tag line="3944" name="return" description="( '/length' => length, key => array( 'type' => type, 'value' => value ) ) for each dictionary field" type="array">
|
2207 |
<type by_reference="false">array</type>
|
2208 |
</tag>
|
2209 |
</docblock>
|
2210 |
+
<argument line="3958">
|
2211 |
<name>$source_string</name>
|
2212 |
<default><![CDATA[]]></default>
|
2213 |
<type/>
|
2214 |
</argument>
|
2215 |
+
<argument line="3958">
|
2216 |
<name>$offset</name>
|
2217 |
<default><![CDATA[]]></default>
|
2218 |
<type/>
|
2219 |
</argument>
|
2220 |
</method>
|
2221 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="4090" package="Media Library Assistant">
|
2222 |
<name>_parse_xmp_metadata</name>
|
2223 |
<full_name>_parse_xmp_metadata</full_name>
|
2224 |
+
<docblock line="4076">
|
2225 |
<description><![CDATA[Parse an XMP object]]></description>
|
2226 |
<long-description><![CDATA[<p>Returns an array of dictionary contents, classified by object type: boolean, numeric, string, hex (string),
|
2227 |
indirect (object), name, array, dictionary, stream, and null.
|
2228 |
The array also has a '/length' element containing the number of bytes occupied by the
|
2229 |
dictionary in the source string, excluding the enclosing delimiters, if passed in.</p>]]></long-description>
|
2230 |
+
<tag line="4076" name="since" description="1.50"/>
|
2231 |
+
<tag line="4076" name="param" description="full path and file name" type="string" variable="$file_name">
|
2232 |
<type by_reference="false">string</type>
|
2233 |
</tag>
|
2234 |
+
<tag line="4076" name="param" description="offset within the file of the search start point" type="integer" variable="$file_offset">
|
2235 |
<type by_reference="false">integer</type>
|
2236 |
</tag>
|
2237 |
+
<tag line="4076" name="return" description="array of metadata values or NULL on failure" type="mixed">
|
2238 |
<type by_reference="false">mixed</type>
|
2239 |
</tag>
|
2240 |
</docblock>
|
2241 |
+
<argument line="4090">
|
2242 |
<name>$file_name</name>
|
2243 |
<default><![CDATA[]]></default>
|
2244 |
<type/>
|
2245 |
</argument>
|
2246 |
+
<argument line="4090">
|
2247 |
<name>$file_offset</name>
|
2248 |
<default><![CDATA[]]></default>
|
2249 |
<type/>
|
2250 |
</argument>
|
2251 |
</method>
|
2252 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="4379" package="Media Library Assistant">
|
2253 |
<name>_extract_pdf_trailer</name>
|
2254 |
<full_name>_extract_pdf_trailer</full_name>
|
2255 |
+
<docblock line="4369">
|
2256 |
<description><![CDATA[Extract dictionary from traditional cross-reference + trailer documents]]></description>
|
2257 |
<long-description><![CDATA[]]></long-description>
|
2258 |
+
<tag line="4369" name="since" description="1.50"/>
|
2259 |
+
<tag line="4369" name="param" description="full path to the desired file" type="string" variable="$file_name">
|
2260 |
<type by_reference="false">string</type>
|
2261 |
</tag>
|
2262 |
+
<tag line="4369" name="param" description="offset within file of the cross-reference table" type="integer" variable="$file_offset">
|
2263 |
<type by_reference="false">integer</type>
|
2264 |
</tag>
|
2265 |
+
<tag line="4369" name="return" description="array of "PDF dictionary arrays", newest first, or NULL on failure" type="mixed">
|
2266 |
<type by_reference="false">mixed</type>
|
2267 |
</tag>
|
2268 |
</docblock>
|
2269 |
+
<argument line="4379">
|
2270 |
<name>$file_name</name>
|
2271 |
<default><![CDATA[]]></default>
|
2272 |
<type/>
|
2273 |
</argument>
|
2274 |
+
<argument line="4379">
|
2275 |
<name>$file_offset</name>
|
2276 |
<default><![CDATA[]]></default>
|
2277 |
<type/>
|
2278 |
</argument>
|
2279 |
</method>
|
2280 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="4465" package="Media Library Assistant">
|
2281 |
<name>_extract_pdf_metadata</name>
|
2282 |
<full_name>_extract_pdf_metadata</full_name>
|
2283 |
+
<docblock line="4456">
|
2284 |
<description><![CDATA[Extract Metadata from a PDF file]]></description>
|
2285 |
<long-description><![CDATA[]]></long-description>
|
2286 |
+
<tag line="4456" name="since" description="1.50"/>
|
2287 |
+
<tag line="4456" name="param" description="full path to the desired file" type="string" variable="$file_name">
|
2288 |
<type by_reference="false">string</type>
|
2289 |
</tag>
|
2290 |
+
<tag line="4456" name="return" description="( key => value ) for each metadata field, in string format" type="array">
|
2291 |
<type by_reference="false">array</type>
|
2292 |
</tag>
|
2293 |
</docblock>
|
2294 |
+
<argument line="4465">
|
2295 |
<name>$file_name</name>
|
2296 |
<default><![CDATA[]]></default>
|
2297 |
<type/>
|
2298 |
</argument>
|
2299 |
</method>
|
2300 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="4598" package="Media Library Assistant">
|
2301 |
<name>_bin_to_utf8</name>
|
2302 |
<full_name>_bin_to_utf8</full_name>
|
2303 |
+
<docblock line="4589">
|
2304 |
<description><![CDATA[Replace SQL incorrect characters (0x80 - 0xFF) with their UTF-8 equivalents]]></description>
|
2305 |
<long-description><![CDATA[]]></long-description>
|
2306 |
+
<tag line="4589" name="since" description="1.41"/>
|
2307 |
+
<tag line="4589" name="param" description="unencoded string" type="string" variable="$string">
|
2308 |
<type by_reference="false">string</type>
|
2309 |
</tag>
|
2310 |
+
<tag line="4589" name="return" description="UTF-8 encoded string" type="string">
|
2311 |
<type by_reference="false">string</type>
|
2312 |
</tag>
|
2313 |
</docblock>
|
2314 |
+
<argument line="4598">
|
2315 |
<name>$string</name>
|
2316 |
<default><![CDATA[]]></default>
|
2317 |
<type/>
|
2318 |
</argument>
|
2319 |
</method>
|
2320 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="4996" package="Media Library Assistant">
|
2321 |
<name>mla_iptc_metadata_value</name>
|
2322 |
<full_name>mla_iptc_metadata_value</full_name>
|
2323 |
+
<docblock line="4986">
|
2324 |
<description><![CDATA[Parse one IPTC metadata field]]></description>
|
2325 |
<long-description><![CDATA[]]></long-description>
|
2326 |
+
<tag line="4986" name="since" description="1.41"/>
|
2327 |
+
<tag line="4986" name="param" description="field name - IPTC Identifier or friendly name/slug" type="string" variable="$iptc_key">
|
2328 |
<type by_reference="false">string</type>
|
2329 |
</tag>
|
2330 |
+
<tag line="4986" name="param" description="metadata array containing iptc, exif, and pdf metadata arrays" type="string" variable="$item_metadata">
|
2331 |
<type by_reference="false">string</type>
|
2332 |
</tag>
|
2333 |
+
<tag line="4986" name="return" description="string/array representation of metadata value or an empty string" type="mixed">
|
2334 |
<type by_reference="false">mixed</type>
|
2335 |
</tag>
|
2336 |
</docblock>
|
2337 |
+
<argument line="4996">
|
2338 |
<name>$iptc_key</name>
|
2339 |
<default><![CDATA[]]></default>
|
2340 |
<type/>
|
2341 |
</argument>
|
2342 |
+
<argument line="4996">
|
2343 |
<name>$item_metadata</name>
|
2344 |
<default><![CDATA[]]></default>
|
2345 |
<type/>
|
2346 |
</argument>
|
2347 |
</method>
|
2348 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="5028" package="Media Library Assistant">
|
2349 |
<name>mla_exif_metadata_value</name>
|
2350 |
<full_name>mla_exif_metadata_value</full_name>
|
2351 |
+
<docblock line="5016">
|
2352 |
<description><![CDATA[Parse one EXIF metadata field]]></description>
|
2353 |
<long-description><![CDATA[<p>Also handles the special pseudo-values 'ALL_EXIF' and 'ALL_IPTC'.</p>]]></long-description>
|
2354 |
+
<tag line="5016" name="since" description="1.13"/>
|
2355 |
+
<tag line="5016" name="param" description="field name" type="string" variable="$exif_key">
|
2356 |
<type by_reference="false">string</type>
|
2357 |
</tag>
|
2358 |
+
<tag line="5016" name="param" description="metadata array containing iptc, exif, and pdf metadata arrays" type="string" variable="$item_metadata">
|
2359 |
<type by_reference="false">string</type>
|
2360 |
</tag>
|
2361 |
+
<tag line="5016" name="return" description="string/array representation of metadata value or an empty string" type="mixed">
|
2362 |
<type by_reference="false">mixed</type>
|
2363 |
</tag>
|
2364 |
</docblock>
|
2365 |
+
<argument line="5028">
|
2366 |
<name>$exif_key</name>
|
2367 |
<default><![CDATA[]]></default>
|
2368 |
<type/>
|
2369 |
</argument>
|
2370 |
+
<argument line="5028">
|
2371 |
<name>$item_metadata</name>
|
2372 |
<default><![CDATA[]]></default>
|
2373 |
<type/>
|
2374 |
</argument>
|
2375 |
</method>
|
2376 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="5089" package="Media Library Assistant">
|
2377 |
<name>mla_pdf_metadata_value</name>
|
2378 |
<full_name>mla_pdf_metadata_value</full_name>
|
2379 |
+
<docblock line="5077">
|
2380 |
<description><![CDATA[Parse one PDF metadata field]]></description>
|
2381 |
<long-description><![CDATA[<p>Also handles the special pseudo-value 'ALL_PDF'.</p>]]></long-description>
|
2382 |
+
<tag line="5077" name="since" description="1.50"/>
|
2383 |
+
<tag line="5077" name="param" description="field name" type="string" variable="$pdf_key">
|
2384 |
<type by_reference="false">string</type>
|
2385 |
</tag>
|
2386 |
+
<tag line="5077" name="param" description="metadata array containing iptc, exif, and pdf metadata arrays" type="string" variable="$item_metadata">
|
2387 |
<type by_reference="false">string</type>
|
2388 |
</tag>
|
2389 |
+
<tag line="5077" name="return" description="string/array representation of metadata value or an empty string" type="mixed">
|
2390 |
<type by_reference="false">mixed</type>
|
2391 |
</tag>
|
2392 |
</docblock>
|
2393 |
+
<argument line="5089">
|
2394 |
<name>$pdf_key</name>
|
2395 |
<default><![CDATA[]]></default>
|
2396 |
<type/>
|
2397 |
</argument>
|
2398 |
+
<argument line="5089">
|
2399 |
<name>$item_metadata</name>
|
2400 |
<default><![CDATA[]]></default>
|
2401 |
<type/>
|
2402 |
</argument>
|
2403 |
</method>
|
2404 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="5131" package="Media Library Assistant">
|
2405 |
<name>_rational_to_decimal</name>
|
2406 |
<full_name>_rational_to_decimal</full_name>
|
2407 |
+
<docblock line="5122">
|
2408 |
<description><![CDATA[Convert an EXIF GPS rational value to a PHP float value]]></description>
|
2409 |
<long-description><![CDATA[]]></long-description>
|
2410 |
+
<tag line="5122" name="since" description="1.50"/>
|
2411 |
+
<tag line="5122" name="param" description="array( 0 => numerator, 1 => denominator )" type="array" variable="$rational">
|
2412 |
<type by_reference="false">array</type>
|
2413 |
</tag>
|
2414 |
+
<tag line="5122" name="return" description="numerator/denominator" type="float">
|
2415 |
<type by_reference="false">float</type>
|
2416 |
</tag>
|
2417 |
</docblock>
|
2418 |
+
<argument line="5131">
|
2419 |
<name>$rational</name>
|
2420 |
<default><![CDATA[]]></default>
|
2421 |
<type/>
|
2422 |
</argument>
|
2423 |
</method>
|
2424 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="5158" package="Media Library Assistant">
|
2425 |
<name>mla_IPTC_EXIF_error_handler</name>
|
2426 |
<full_name>mla_IPTC_EXIF_error_handler</full_name>
|
2427 |
+
<docblock line="5146">
|
2428 |
<description><![CDATA[Intercept IPTC and EXIF parse errors]]></description>
|
2429 |
<long-description><![CDATA[]]></long-description>
|
2430 |
+
<tag line="5146" name="since" description="1.81"/>
|
2431 |
+
<tag line="5146" name="param" description="the level of the error raised" type="int" variable="$type">
|
2432 |
<type by_reference="false">int</type>
|
2433 |
</tag>
|
2434 |
+
<tag line="5146" name="param" description="the error message" type="string" variable="$string">
|
2435 |
<type by_reference="false">string</type>
|
2436 |
</tag>
|
2437 |
+
<tag line="5146" name="param" description="the filename that the error was raised in" type="string" variable="$file">
|
2438 |
<type by_reference="false">string</type>
|
2439 |
</tag>
|
2440 |
+
<tag line="5146" name="param" description="the line number the error was raised at" type="int" variable="$line">
|
2441 |
<type by_reference="false">int</type>
|
2442 |
</tag>
|
2443 |
+
<tag line="5146" name="return" description="true, to bypass PHP error handler" type="boolean">
|
2444 |
<type by_reference="false">boolean</type>
|
2445 |
</tag>
|
2446 |
</docblock>
|
2447 |
+
<argument line="5158">
|
2448 |
<name>$type</name>
|
2449 |
<default><![CDATA[]]></default>
|
2450 |
<type/>
|
2451 |
</argument>
|
2452 |
+
<argument line="5158">
|
2453 |
<name>$string</name>
|
2454 |
<default><![CDATA[]]></default>
|
2455 |
<type/>
|
2456 |
</argument>
|
2457 |
+
<argument line="5158">
|
2458 |
<name>$file</name>
|
2459 |
<default><![CDATA[]]></default>
|
2460 |
<type/>
|
2461 |
</argument>
|
2462 |
+
<argument line="5158">
|
2463 |
<name>$line</name>
|
2464 |
<default><![CDATA[]]></default>
|
2465 |
<type/>
|
2466 |
</argument>
|
2467 |
</method>
|
2468 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="5196" package="Media Library Assistant">
|
2469 |
<name>mla_fetch_attachment_image_metadata</name>
|
2470 |
<full_name>mla_fetch_attachment_image_metadata</full_name>
|
2471 |
+
<docblock line="5186">
|
2472 |
<description><![CDATA[Fetch and filter IPTC and EXIF or PDF metadata for an image attachment]]></description>
|
2473 |
<long-description><![CDATA[]]></long-description>
|
2474 |
+
<tag line="5186" name="since" description="0.90"/>
|
2475 |
+
<tag line="5186" name="param" description="post ID of attachment" type="int" variable="$post_id">
|
2476 |
<type by_reference="false">int</type>
|
2477 |
</tag>
|
2478 |
+
<tag line="5186" name="param" description="optional; if $post_id is zero, path to the image file." type="string" variable="$path">
|
2479 |
<type by_reference="false">string</type>
|
2480 |
</tag>
|
2481 |
+
<tag line="5186" name="return" description="Meta data variables, IPTC and EXIF or PDF" type="array">
|
2482 |
<type by_reference="false">array</type>
|
2483 |
</tag>
|
2484 |
</docblock>
|
2485 |
+
<argument line="5196">
|
2486 |
<name>$post_id</name>
|
2487 |
<default><![CDATA[]]></default>
|
2488 |
<type/>
|
2489 |
</argument>
|
2490 |
+
<argument line="5196">
|
2491 |
<name>$path</name>
|
2492 |
<default><![CDATA['']]></default>
|
2493 |
<type/>
|
2494 |
</argument>
|
2495 |
</method>
|
2496 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="5385" package="Media Library Assistant">
|
2497 |
<name>mla_update_wp_attachment_metadata</name>
|
2498 |
<full_name>mla_update_wp_attachment_metadata</full_name>
|
2499 |
+
<docblock line="5375">
|
2500 |
<description><![CDATA[Update "meta:" data for a single attachment]]></description>
|
2501 |
<long-description><![CDATA[]]></long-description>
|
2502 |
+
<tag line="5375" name="since" description="1.51"/>
|
2503 |
+
<tag line="5375" name="param" description="The current wp_attachment_metadata value" type="array" variable="$current_values">
|
2504 |
<type by_reference="false">array</type>
|
2505 |
</tag>
|
2506 |
+
<tag line="5375" name="param" description="Field name => value pairs" type="array" variable="$new_meta">
|
2507 |
<type by_reference="false">array</type>
|
2508 |
</tag>
|
2509 |
+
<tag line="5375" name="return" description="success/failure message(s); empty string if no changes." type="string">
|
2510 |
<type by_reference="false">string</type>
|
2511 |
</tag>
|
2512 |
</docblock>
|
2513 |
+
<argument line="5385">
|
2514 |
<name>$current_values</name>
|
2515 |
<default><![CDATA[]]></default>
|
2516 |
<type/>
|
2517 |
</argument>
|
2518 |
+
<argument line="5385">
|
2519 |
<name>$new_meta</name>
|
2520 |
<default><![CDATA[]]></default>
|
2521 |
<type/>
|
2522 |
</argument>
|
2523 |
</method>
|
2524 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="5468" package="Media Library Assistant">
|
2525 |
<name>mla_update_item_postmeta</name>
|
2526 |
<full_name>mla_update_item_postmeta</full_name>
|
2527 |
+
<docblock line="5458">
|
2528 |
<description><![CDATA[Update custom field and "meta:" data for a single attachment]]></description>
|
2529 |
<long-description><![CDATA[]]></long-description>
|
2530 |
+
<tag line="5458" name="since" description="1.40"/>
|
2531 |
+
<tag line="5458" name="param" description="The ID of the attachment to be updated" type="int" variable="$post_id">
|
2532 |
<type by_reference="false">int</type>
|
2533 |
</tag>
|
2534 |
+
<tag line="5458" name="param" description="Field name => value pairs" type="array" variable="$new_meta">
|
2535 |
<type by_reference="false">array</type>
|
2536 |
</tag>
|
2537 |
+
<tag line="5458" name="return" description="success/failure message(s)" type="string">
|
2538 |
<type by_reference="false">string</type>
|
2539 |
</tag>
|
2540 |
</docblock>
|
2541 |
+
<argument line="5468">
|
2542 |
<name>$post_id</name>
|
2543 |
<default><![CDATA[]]></default>
|
2544 |
<type/>
|
2545 |
</argument>
|
2546 |
+
<argument line="5468">
|
2547 |
<name>$new_meta</name>
|
2548 |
<default><![CDATA[]]></default>
|
2549 |
<type/>
|
2550 |
</argument>
|
2551 |
</method>
|
2552 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="5635" package="Media Library Assistant">
|
2553 |
<name>mla_update_single_item</name>
|
2554 |
<full_name>mla_update_single_item</full_name>
|
2555 |
+
<docblock line="5622">
|
2556 |
<description><![CDATA[Update a single item; change the "post" data, taxonomy terms
|
2557 |
and meta data for a single attachment]]></description>
|
2558 |
<long-description><![CDATA[]]></long-description>
|
2559 |
+
<tag line="5622" name="since" description="0.1"/>
|
2560 |
+
<tag line="5622" name="param" description="The ID of the attachment to be updated" type="int" variable="$post_id">
|
2561 |
<type by_reference="false">int</type>
|
2562 |
</tag>
|
2563 |
+
<tag line="5622" name="param" description="Field name => value pairs" type="array" variable="$new_data">
|
2564 |
<type by_reference="false">array</type>
|
2565 |
</tag>
|
2566 |
+
<tag line="5622" name="param" description="Optional taxonomy term values, default null" type="array" variable="$tax_input">
|
2567 |
<type by_reference="false">array</type>
|
2568 |
</tag>
|
2569 |
+
<tag line="5622" name="param" description="Optional taxonomy actions (add, remove, replace), default null" type="array" variable="$tax_actions">
|
2570 |
<type by_reference="false">array</type>
|
2571 |
</tag>
|
2572 |
+
<tag line="5622" name="return" description="success/failure message and NULL content" type="array">
|
2573 |
<type by_reference="false">array</type>
|
2574 |
</tag>
|
2575 |
</docblock>
|
2576 |
+
<argument line="5635">
|
2577 |
<name>$post_id</name>
|
2578 |
<default><![CDATA[]]></default>
|
2579 |
<type/>
|
2580 |
</argument>
|
2581 |
+
<argument line="5635">
|
2582 |
<name>$new_data</name>
|
2583 |
<default><![CDATA[]]></default>
|
2584 |
<type/>
|
2585 |
</argument>
|
2586 |
+
<argument line="5635">
|
2587 |
<name>$tax_input</name>
|
2588 |
<default><![CDATA[NULL]]></default>
|
2589 |
<type/>
|
2590 |
</argument>
|
2591 |
+
<argument line="5635">
|
2592 |
<name>$tax_actions</name>
|
2593 |
<default><![CDATA[NULL]]></default>
|
2594 |
<type/>
|
2595 |
</argument>
|
2596 |
</method>
|
2597 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="5911" package="Media Library Assistant">
|
2598 |
<name>_remove_tags</name>
|
2599 |
<full_name>_remove_tags</full_name>
|
2600 |
+
<docblock line="5900">
|
2601 |
<description><![CDATA[Remove tags from a term ids list]]></description>
|
2602 |
<long-description><![CDATA[]]></long-description>
|
2603 |
+
<tag line="5900" name="since" description="0.40"/>
|
2604 |
+
<tag line="5900" name="param" description="The term ids currently assigned" type="array" variable="$terms_before">
|
2605 |
<type by_reference="false">array</type>
|
2606 |
</tag>
|
2607 |
+
<tag line="5900" name="param" description="| string The term ids (array) or names (string) to remove" type="array" variable="$tags">
|
2608 |
<type by_reference="false">array</type>
|
2609 |
</tag>
|
2610 |
+
<tag line="5900" name="param" description="The taxonomy object" type="object" variable="$taxonomy_obj">
|
2611 |
<type by_reference="false">object</type>
|
2612 |
</tag>
|
2613 |
+
<tag line="5900" name="return" description="Term ids of the surviving tags" type="array">
|
2614 |
<type by_reference="false">array</type>
|
2615 |
</tag>
|
2616 |
</docblock>
|
2617 |
+
<argument line="5911">
|
2618 |
<name>$terms_before</name>
|
2619 |
<default><![CDATA[]]></default>
|
2620 |
<type/>
|
2621 |
</argument>
|
2622 |
+
<argument line="5911">
|
2623 |
<name>$tags</name>
|
2624 |
<default><![CDATA[]]></default>
|
2625 |
<type/>
|
2626 |
</argument>
|
2627 |
+
<argument line="5911">
|
2628 |
<name>$taxonomy_obj</name>
|
2629 |
<default><![CDATA[]]></default>
|
2630 |
<type/>
|
2631 |
</argument>
|
2632 |
</method>
|
2633 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="5960" package="Media Library Assistant">
|
2634 |
<name>_hex_dump</name>
|
2635 |
<full_name>_hex_dump</full_name>
|
2636 |
+
<docblock line="5948">
|
2637 |
<description><![CDATA[Format printable version of binary data]]></description>
|
2638 |
<long-description><![CDATA[]]></long-description>
|
2639 |
+
<tag line="5948" name="since" description="0.90"/>
|
2640 |
+
<tag line="5948" name="param" description="Binary data" type="string" variable="$data">
|
2641 |
<type by_reference="false">string</type>
|
2642 |
</tag>
|
2643 |
+
<tag line="5948" name="param" description="Bytes to format, default = 0 (all bytes)" type="integer" variable="$limit">
|
2644 |
<type by_reference="false">integer</type>
|
2645 |
</tag>
|
2646 |
+
<tag line="5948" name="param" description="Bytes to format on each line" type="\intger" variable="$bytes_per_row">
|
2647 |
<type by_reference="false">\intger</type>
|
2648 |
</tag>
|
2649 |
+
<tag line="5948" name="param" description="offset of initial byte, or -1 to suppress printing offset information" type="integer" variable="$offset">
|
2650 |
<type by_reference="false">integer</type>
|
2651 |
</tag>
|
2652 |
+
<tag line="5948" name="return" description="Printable representation of $data" type="string">
|
2653 |
<type by_reference="false">string</type>
|
2654 |
</tag>
|
2655 |
</docblock>
|
2656 |
+
<argument line="5960">
|
2657 |
<name>$data</name>
|
2658 |
<default><![CDATA[]]></default>
|
2659 |
<type/>
|
2660 |
</argument>
|
2661 |
+
<argument line="5960">
|
2662 |
<name>$limit</name>
|
2663 |
<default><![CDATA[0]]></default>
|
2664 |
<type/>
|
2665 |
</argument>
|
2666 |
+
<argument line="5960">
|
2667 |
<name>$bytes_per_row</name>
|
2668 |
<default><![CDATA[16]]></default>
|
2669 |
<type/>
|
2670 |
</argument>
|
2671 |
+
<argument line="5960">
|
2672 |
<name>$offset</name>
|
2673 |
<default><![CDATA[-1]]></default>
|
2674 |
<type/>
|
2676 |
</method>
|
2677 |
</class>
|
2678 |
<markers>
|
2679 |
+
<todo line="3819">encode the rest</todo>
|
2680 |
</markers>
|
2681 |
</file>
|
2682 |
<file path="includes\class-mla-edit-media.php" hash="75c542ede2570895091b3ac839d4248b" package="Media Library Assistant">
|
3198 |
</method>
|
3199 |
</class>
|
3200 |
</file>
|
3201 |
+
<file path="includes\class-mla-list-table.php" hash="5f4f17dbf461359075364c2c27c0f791" package="Media Library Assistant">
|
3202 |
<docblock line="2">
|
3203 |
<description><![CDATA[Media Library Assistant extended List Table class]]></description>
|
3204 |
<long-description><![CDATA[]]></long-description>
|
3441 |
<type/>
|
3442 |
</argument>
|
3443 |
</method>
|
3444 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="331" package="Media Library Assistant">
|
3445 |
<name>mla_wpml_media_view_upload_count_filter</name>
|
3446 |
<full_name>mla_wpml_media_view_upload_count_filter</full_name>
|
3447 |
+
<docblock line="316">
|
3448 |
<description><![CDATA[Handler for filter "wpml-media_view-upload-count" in /plugins/wpml-media/inc/wpml-media.class.php]]></description>
|
3449 |
<long-description><![CDATA[<p>Computes the number of attachments that satisfy a meta_query specification.
|
3450 |
The count is automatically made language-specific by WPML filters.</p>]]></long-description>
|
3451 |
+
<tag line="316" name="since" description="1.90"/>
|
3452 |
+
<tag line="316" name="param" description="default return value if not replacing count" type="NULL" variable="$count">
|
3453 |
<type by_reference="false">NULL</type>
|
3454 |
</tag>
|
3455 |
+
<tag line="316" name="param" description="key/slug value for the selected view" type="string" variable="$key">
|
3456 |
<type by_reference="false">string</type>
|
3457 |
</tag>
|
3458 |
+
<tag line="316" name="param" description="HTML <a></a> tag for the link to the selected view" type="string" variable="$view">
|
3459 |
<type by_reference="false">string</type>
|
3460 |
</tag>
|
3461 |
+
<tag line="316" name="param" description="language code, e.g., 'en', 'es'" type="string" variable="$lang">
|
3462 |
<type by_reference="false">string</type>
|
3463 |
</tag>
|
3464 |
+
<tag line="316" name="return" description="NULL to allow SQL query or replacement count value" type="mixed">
|
3465 |
<type by_reference="false">mixed</type>
|
3466 |
</tag>
|
3467 |
</docblock>
|
3468 |
+
<argument line="331">
|
3469 |
<name>$count</name>
|
3470 |
<default><![CDATA[]]></default>
|
3471 |
<type/>
|
3472 |
</argument>
|
3473 |
+
<argument line="331">
|
3474 |
<name>$key</name>
|
3475 |
<default><![CDATA[]]></default>
|
3476 |
<type/>
|
3477 |
</argument>
|
3478 |
+
<argument line="331">
|
3479 |
<name>$view</name>
|
3480 |
<default><![CDATA[]]></default>
|
3481 |
<type/>
|
3482 |
</argument>
|
3483 |
+
<argument line="331">
|
3484 |
<name>$lang</name>
|
3485 |
<default><![CDATA[]]></default>
|
3486 |
<type/>
|
3487 |
</argument>
|
3488 |
</method>
|
3489 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="363" package="Media Library Assistant">
|
3490 |
<name>mla_wpml_media_view_upload_page_count_filter</name>
|
3491 |
<full_name>mla_wpml_media_view_upload_page_count_filter</full_name>
|
3492 |
+
<docblock line="350">
|
3493 |
<description><![CDATA[Handler for filter "wpml-media_view-upload-page-count" in /plugins/wpml-media/inc/wpml-media.class.php]]></description>
|
3494 |
<long-description><![CDATA[<p>Computes the number of language-specific attachments that satisfy a meta_query specification.
|
3495 |
The count is made language-specific by WPML filters when the current_language is set.</p>]]></long-description>
|
3496 |
+
<tag line="350" name="since" description="1.90"/>
|
3497 |
+
<tag line="350" name="param" description="default return value if not replacing count" type="NULL" variable="$count">
|
3498 |
<type by_reference="false">NULL</type>
|
3499 |
</tag>
|
3500 |
+
<tag line="350" name="param" description="language code, e.g., 'en', 'es'" type="string" variable="$lang">
|
3501 |
<type by_reference="false">string</type>
|
3502 |
</tag>
|
3503 |
+
<tag line="350" name="return" description="NULL to allow SQL query or replacement count value" type="mixed">
|
3504 |
<type by_reference="false">mixed</type>
|
3505 |
</tag>
|
3506 |
</docblock>
|
3507 |
+
<argument line="363">
|
3508 |
<name>$count</name>
|
3509 |
<default><![CDATA[]]></default>
|
3510 |
<type/>
|
3511 |
</argument>
|
3512 |
+
<argument line="363">
|
3513 |
<name>$lang</name>
|
3514 |
<default><![CDATA[]]></default>
|
3515 |
<type/>
|
3516 |
</argument>
|
3517 |
</method>
|
3518 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="392" package="Media Library Assistant">
|
3519 |
<name>mla_localize_default_columns_array</name>
|
3520 |
<full_name>mla_localize_default_columns_array</full_name>
|
3521 |
+
<docblock line="382">
|
3522 |
<description><![CDATA[Builds the $default_columns array with translated source texts.]]></description>
|
3523 |
<long-description><![CDATA[<p>Called from MLA:mla_plugins_loaded_action because the $default_columns information might be
|
3524 |
accessed from "front end" posts/pages.</p>]]></long-description>
|
3525 |
+
<tag line="382" name="since" description="1.71"/>
|
3526 |
+
<tag line="382" name="return" description="" type="void">
|
3527 |
<type by_reference="false">void</type>
|
3528 |
</tag>
|
3529 |
</docblock>
|
3530 |
</method>
|
3531 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="433" package="Media Library Assistant">
|
3532 |
<name>mla_admin_init_action</name>
|
3533 |
<full_name>mla_admin_init_action</full_name>
|
3534 |
+
<docblock line="423">
|
3535 |
<description><![CDATA[Adds support for taxonomy and custom field columns]]></description>
|
3536 |
<long-description><![CDATA[<p>Called in the admin_init action because the list_table object isn't
|
3537 |
created in time to affect the "screen options" setup.</p>]]></long-description>
|
3538 |
+
<tag line="423" name="since" description="0.30"/>
|
3539 |
+
<tag line="423" name="return" description="" type="void">
|
3540 |
<type by_reference="false">void</type>
|
3541 |
</tag>
|
3542 |
</docblock>
|
3543 |
</method>
|
3544 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="458" package="Media Library Assistant">
|
3545 |
<name>__construct</name>
|
3546 |
<full_name>__construct</full_name>
|
3547 |
+
<docblock line="450">
|
3548 |
<description><![CDATA[Initializes some properties from $_REQUEST variables, then
|
3549 |
calls the parent constructor to set some default configs.]]></description>
|
3550 |
<long-description><![CDATA[]]></long-description>
|
3551 |
+
<tag line="450" name="since" description="0.1"/>
|
3552 |
+
<tag line="450" name="return" description="" type="void">
|
3553 |
<type by_reference="false">void</type>
|
3554 |
</tag>
|
3555 |
</docblock>
|
3556 |
</method>
|
3557 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="502" package="Media Library Assistant">
|
3558 |
<name>column_default</name>
|
3559 |
<full_name>column_default</full_name>
|
3560 |
+
<docblock line="489">
|
3561 |
<description><![CDATA[Supply a column value if no column-specific function has been defined]]></description>
|
3562 |
<long-description><![CDATA[<p>Called when the parent class can't find a method specifically built for a given column.
|
3563 |
The taxonomy and custom field columns are handled here. All other columns should have
|
3564 |
a specific method, so this function returns a troubleshooting message.</p>]]></long-description>
|
3565 |
+
<tag line="489" name="since" description="0.1"/>
|
3566 |
+
<tag line="489" name="param" description="A singular item (one full row's worth of data)" type="array" variable="$item">
|
3567 |
<type by_reference="false">array</type>
|
3568 |
</tag>
|
3569 |
+
<tag line="489" name="param" description="The name/slug of the column to be processed" type="array" variable="$column_name">
|
3570 |
<type by_reference="false">array</type>
|
3571 |
</tag>
|
3572 |
+
<tag line="489" name="return" description="Text or HTML to be placed inside the column" type="string">
|
3573 |
<type by_reference="false">string</type>
|
3574 |
</tag>
|
3575 |
</docblock>
|
3576 |
+
<argument line="502">
|
3577 |
<name>$item</name>
|
3578 |
<default><![CDATA[]]></default>
|
3579 |
<type/>
|
3580 |
</argument>
|
3581 |
+
<argument line="502">
|
3582 |
<name>$column_name</name>
|
3583 |
<default><![CDATA[]]></default>
|
3584 |
<type/>
|
3585 |
</argument>
|
3586 |
</method>
|
3587 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="578" package="Media Library Assistant">
|
3588 |
<name>column_cb</name>
|
3589 |
<full_name>column_cb</full_name>
|
3590 |
+
<docblock line="569">
|
3591 |
<description><![CDATA[Displays checkboxes for using bulk actions.]]></description>
|
3592 |
<long-description><![CDATA[<p>The 'cb' column
|
3593 |
is given special treatment when columns are processed.</p>]]></long-description>
|
3594 |
+
<tag line="569" name="since" description="0.1"/>
|
3595 |
+
<tag line="569" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
3596 |
<type by_reference="false">array</type>
|
3597 |
</tag>
|
3598 |
+
<tag line="569" name="return" description="HTML markup to be placed inside the column" type="string">
|
3599 |
<type by_reference="false">string</type>
|
3600 |
</tag>
|
3601 |
</docblock>
|
3602 |
+
<argument line="578">
|
3603 |
<name>$item</name>
|
3604 |
<default><![CDATA[]]></default>
|
3605 |
<type/>
|
3606 |
</argument>
|
3607 |
</method>
|
3608 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="593" package="Media Library Assistant">
|
3609 |
<name>column_icon</name>
|
3610 |
<full_name>column_icon</full_name>
|
3611 |
+
<docblock line="585">
|
3612 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3613 |
<long-description><![CDATA[]]></long-description>
|
3614 |
+
<tag line="585" name="since" description="0.1"/>
|
3615 |
+
<tag line="585" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
3616 |
<type by_reference="false">array</type>
|
3617 |
</tag>
|
3618 |
+
<tag line="585" name="return" description="HTML markup to be placed inside the column" type="string">
|
3619 |
<type by_reference="false">string</type>
|
3620 |
</tag>
|
3621 |
</docblock>
|
3622 |
+
<argument line="593">
|
3623 |
<name>$item</name>
|
3624 |
<default><![CDATA[]]></default>
|
3625 |
<type/>
|
3626 |
</argument>
|
3627 |
</method>
|
3628 |
+
<method final="false" abstract="false" static="false" visibility="private" namespace="global" line="645" package="Media Library Assistant">
|
3629 |
<name>_build_rollover_actions</name>
|
3630 |
<full_name>_build_rollover_actions</full_name>
|
3631 |
+
<docblock line="634">
|
3632 |
<description><![CDATA[Add rollover actions to exactly one of the following displayed columns:
|
3633 |
'ID_parent', 'title_name', 'post_title', 'post_name']]></description>
|
3634 |
<long-description><![CDATA[]]></long-description>
|
3635 |
+
<tag line="634" name="since" description="0.1"/>
|
3636 |
+
<tag line="634" name="param" description="A singular attachment (post) object" type="object" variable="$item">
|
3637 |
<type by_reference="false">object</type>
|
3638 |
</tag>
|
3639 |
+
<tag line="634" name="param" description="Current column name" type="string" variable="$column">
|
3640 |
<type by_reference="false">string</type>
|
3641 |
</tag>
|
3642 |
+
<tag line="634" name="return" description="Names and URLs of row-level actions" type="array">
|
3643 |
<type by_reference="false">array</type>
|
3644 |
</tag>
|
3645 |
</docblock>
|
3646 |
+
<argument line="645">
|
3647 |
<name>$item</name>
|
3648 |
<default><![CDATA[]]></default>
|
3649 |
<type/>
|
3650 |
</argument>
|
3651 |
+
<argument line="645">
|
3652 |
<name>$column</name>
|
3653 |
<default><![CDATA[]]></default>
|
3654 |
<type/>
|
3655 |
</argument>
|
3656 |
</method>
|
3657 |
+
<method final="false" abstract="false" static="false" visibility="private" namespace="global" line="719" package="Media Library Assistant">
|
3658 |
<name>_build_inline_data</name>
|
3659 |
<full_name>_build_inline_data</full_name>
|
3660 |
+
<docblock line="710">
|
3661 |
<description><![CDATA[Add hidden fields with the data for use in the inline editor]]></description>
|
3662 |
<long-description><![CDATA[]]></long-description>
|
3663 |
+
<tag line="710" name="since" description="0.20"/>
|
3664 |
+
<tag line="710" name="param" description="A singular attachment (post) object" type="object" variable="$item">
|
3665 |
<type by_reference="false">object</type>
|
3666 |
</tag>
|
3667 |
+
<tag line="710" name="return" description="HTML <div> with row data" type="string">
|
3668 |
<type by_reference="false">string</type>
|
3669 |
</tag>
|
3670 |
</docblock>
|
3671 |
+
<argument line="719">
|
3672 |
<name>$item</name>
|
3673 |
<default><![CDATA[]]></default>
|
3674 |
<type/>
|
3675 |
</argument>
|
3676 |
</method>
|
3677 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="805" package="Media Library Assistant">
|
3678 |
<name>column_ID_parent</name>
|
3679 |
<full_name>column_ID_parent</full_name>
|
3680 |
+
<docblock line="797">
|
3681 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3682 |
<long-description><![CDATA[]]></long-description>
|
3683 |
+
<tag line="797" name="since" description="0.1"/>
|
3684 |
+
<tag line="797" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
3685 |
<type by_reference="false">array</type>
|
3686 |
</tag>
|
3687 |
+
<tag line="797" name="return" description="HTML markup to be placed inside the column" type="string">
|
3688 |
<type by_reference="false">string</type>
|
3689 |
</tag>
|
3690 |
</docblock>
|
3691 |
+
<argument line="805">
|
3692 |
<name>$item</name>
|
3693 |
<default><![CDATA[]]></default>
|
3694 |
<type/>
|
3695 |
</argument>
|
3696 |
</method>
|
3697 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="838" package="Media Library Assistant">
|
3698 |
<name>column_title_name</name>
|
3699 |
<full_name>column_title_name</full_name>
|
3700 |
+
<docblock line="830">
|
3701 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3702 |
<long-description><![CDATA[]]></long-description>
|
3703 |
+
<tag line="830" name="since" description="0.1"/>
|
3704 |
+
<tag line="830" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
3705 |
<type by_reference="false">array</type>
|
3706 |
</tag>
|
3707 |
+
<tag line="830" name="return" description="HTML markup to be placed inside the column" type="string">
|
3708 |
<type by_reference="false">string</type>
|
3709 |
</tag>
|
3710 |
</docblock>
|
3711 |
+
<argument line="838">
|
3712 |
<name>$item</name>
|
3713 |
<default><![CDATA[]]></default>
|
3714 |
<type/>
|
3715 |
</argument>
|
3716 |
</method>
|
3717 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="862" package="Media Library Assistant">
|
3718 |
<name>column_post_title</name>
|
3719 |
<full_name>column_post_title</full_name>
|
3720 |
+
<docblock line="854">
|
3721 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3722 |
<long-description><![CDATA[]]></long-description>
|
3723 |
+
<tag line="854" name="since" description="0.1"/>
|
3724 |
+
<tag line="854" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
3725 |
<type by_reference="false">array</type>
|
3726 |
</tag>
|
3727 |
+
<tag line="854" name="return" description="HTML markup to be placed inside the column" type="string">
|
3728 |
<type by_reference="false">string</type>
|
3729 |
</tag>
|
3730 |
</docblock>
|
3731 |
+
<argument line="862">
|
3732 |
<name>$item</name>
|
3733 |
<default><![CDATA[]]></default>
|
3734 |
<type/>
|
3735 |
</argument>
|
3736 |
</method>
|
3737 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="880" package="Media Library Assistant">
|
3738 |
<name>column_post_name</name>
|
3739 |
<full_name>column_post_name</full_name>
|
3740 |
+
<docblock line="872">
|
3741 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3742 |
<long-description><![CDATA[]]></long-description>
|
3743 |
+
<tag line="872" name="since" description="0.1"/>
|
3744 |
+
<tag line="872" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
3745 |
<type by_reference="false">array</type>
|
3746 |
</tag>
|
3747 |
+
<tag line="872" name="return" description="HTML markup to be placed inside the column" type="string">
|
3748 |
<type by_reference="false">string</type>
|
3749 |
</tag>
|
3750 |
</docblock>
|
3751 |
+
<argument line="880">
|
3752 |
<name>$item</name>
|
3753 |
<default><![CDATA[]]></default>
|
3754 |
<type/>
|
3755 |
</argument>
|
3756 |
</method>
|
3757 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="898" package="Media Library Assistant">
|
3758 |
<name>column_parent</name>
|
3759 |
<full_name>column_parent</full_name>
|
3760 |
+
<docblock line="890">
|
3761 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3762 |
<long-description><![CDATA[]]></long-description>
|
3763 |
+
<tag line="890" name="since" description="0.1"/>
|
3764 |
+
<tag line="890" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
3765 |
<type by_reference="false">array</type>
|
3766 |
</tag>
|
3767 |
+
<tag line="890" name="return" description="HTML markup to be placed inside the column" type="string">
|
3768 |
<type by_reference="false">string</type>
|
3769 |
</tag>
|
3770 |
</docblock>
|
3771 |
+
<argument line="898">
|
3772 |
<name>$item</name>
|
3773 |
<default><![CDATA[]]></default>
|
3774 |
<type/>
|
3775 |
</argument>
|
3776 |
</method>
|
3777 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="924" package="Media Library Assistant">
|
3778 |
<name>column_menu_order</name>
|
3779 |
<full_name>column_menu_order</full_name>
|
3780 |
+
<docblock line="916">
|
3781 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3782 |
<long-description><![CDATA[]]></long-description>
|
3783 |
+
<tag line="916" name="since" description="0.60"/>
|
3784 |
+
<tag line="916" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
3785 |
<type by_reference="false">array</type>
|
3786 |
</tag>
|
3787 |
+
<tag line="916" name="return" description="HTML markup to be placed inside the column" type="string">
|
3788 |
<type by_reference="false">string</type>
|
3789 |
</tag>
|
3790 |
</docblock>
|
3791 |
+
<argument line="924">
|
3792 |
<name>$item</name>
|
3793 |
<default><![CDATA[]]></default>
|
3794 |
<type/>
|
3795 |
</argument>
|
3796 |
</method>
|
3797 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="936" package="Media Library Assistant">
|
3798 |
<name>column_featured</name>
|
3799 |
<full_name>column_featured</full_name>
|
3800 |
+
<docblock line="928">
|
3801 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3802 |
<long-description><![CDATA[]]></long-description>
|
3803 |
+
<tag line="928" name="since" description="0.1"/>
|
3804 |
+
<tag line="928" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
3805 |
<type by_reference="false">array</type>
|
3806 |
</tag>
|
3807 |
+
<tag line="928" name="return" description="HTML markup to be placed inside the column" type="string">
|
3808 |
<type by_reference="false">string</type>
|
3809 |
</tag>
|
3810 |
</docblock>
|
3811 |
+
<argument line="936">
|
3812 |
<name>$item</name>
|
3813 |
<default><![CDATA[]]></default>
|
3814 |
<type/>
|
3815 |
</argument>
|
3816 |
</method>
|
3817 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="970" package="Media Library Assistant">
|
3818 |
<name>column_inserted</name>
|
3819 |
<full_name>column_inserted</full_name>
|
3820 |
+
<docblock line="962">
|
3821 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3822 |
<long-description><![CDATA[]]></long-description>
|
3823 |
+
<tag line="962" name="since" description="0.1"/>
|
3824 |
+
<tag line="962" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
3825 |
<type by_reference="false">array</type>
|
3826 |
</tag>
|
3827 |
+
<tag line="962" name="return" description="HTML markup to be placed inside the column" type="string">
|
3828 |
<type by_reference="false">string</type>
|
3829 |
</tag>
|
3830 |
</docblock>
|
3831 |
+
<argument line="970">
|
3832 |
<name>$item</name>
|
3833 |
<default><![CDATA[]]></default>
|
3834 |
<type/>
|
3835 |
</argument>
|
3836 |
</method>
|
3837 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1008" package="Media Library Assistant">
|
3838 |
<name>column_galleries</name>
|
3839 |
<full_name>column_galleries</full_name>
|
3840 |
+
<docblock line="1000">
|
3841 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3842 |
<long-description><![CDATA[]]></long-description>
|
3843 |
+
<tag line="1000" name="since" description="0.70"/>
|
3844 |
+
<tag line="1000" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
3845 |
<type by_reference="false">array</type>
|
3846 |
</tag>
|
3847 |
+
<tag line="1000" name="return" description="HTML markup to be placed inside the column" type="string">
|
3848 |
<type by_reference="false">string</type>
|
3849 |
</tag>
|
3850 |
</docblock>
|
3851 |
+
<argument line="1008">
|
3852 |
<name>$item</name>
|
3853 |
<default><![CDATA[]]></default>
|
3854 |
<type/>
|
3855 |
</argument>
|
3856 |
</method>
|
3857 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1042" package="Media Library Assistant">
|
3858 |
<name>column_mla_galleries</name>
|
3859 |
<full_name>column_mla_galleries</full_name>
|
3860 |
+
<docblock line="1034">
|
3861 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3862 |
<long-description><![CDATA[]]></long-description>
|
3863 |
+
<tag line="1034" name="since" description="0.70"/>
|
3864 |
+
<tag line="1034" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
3865 |
<type by_reference="false">array</type>
|
3866 |
</tag>
|
3867 |
+
<tag line="1034" name="return" description="HTML markup to be placed inside the column" type="string">
|
3868 |
<type by_reference="false">string</type>
|
3869 |
</tag>
|
3870 |
</docblock>
|
3871 |
+
<argument line="1042">
|
3872 |
<name>$item</name>
|
3873 |
<default><![CDATA[]]></default>
|
3874 |
<type/>
|
3875 |
</argument>
|
3876 |
</method>
|
3877 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1076" package="Media Library Assistant">
|
3878 |
<name>column_alt_text</name>
|
3879 |
<full_name>column_alt_text</full_name>
|
3880 |
+
<docblock line="1068">
|
3881 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3882 |
<long-description><![CDATA[]]></long-description>
|
3883 |
+
<tag line="1068" name="since" description="0.1"/>
|
3884 |
+
<tag line="1068" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
3885 |
<type by_reference="false">array</type>
|
3886 |
</tag>
|
3887 |
+
<tag line="1068" name="return" description="HTML markup to be placed inside the column" type="string">
|
3888 |
<type by_reference="false">string</type>
|
3889 |
</tag>
|
3890 |
</docblock>
|
3891 |
+
<argument line="1076">
|
3892 |
<name>$item</name>
|
3893 |
<default><![CDATA[]]></default>
|
3894 |
<type/>
|
3895 |
</argument>
|
3896 |
</method>
|
3897 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1103" package="Media Library Assistant">
|
3898 |
<name>column_caption</name>
|
3899 |
<full_name>column_caption</full_name>
|
3900 |
+
<docblock line="1095">
|
3901 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3902 |
<long-description><![CDATA[]]></long-description>
|
3903 |
+
<tag line="1095" name="since" description="0.1"/>
|
3904 |
+
<tag line="1095" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
3905 |
<type by_reference="false">array</type>
|
3906 |
</tag>
|
3907 |
+
<tag line="1095" name="return" description="HTML markup to be placed inside the column" type="string">
|
3908 |
<type by_reference="false">string</type>
|
3909 |
</tag>
|
3910 |
</docblock>
|
3911 |
+
<argument line="1103">
|
3912 |
<name>$item</name>
|
3913 |
<default><![CDATA[]]></default>
|
3914 |
<type/>
|
3915 |
</argument>
|
3916 |
</method>
|
3917 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1115" package="Media Library Assistant">
|
3918 |
<name>column_description</name>
|
3919 |
<full_name>column_description</full_name>
|
3920 |
+
<docblock line="1107">
|
3921 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3922 |
<long-description><![CDATA[]]></long-description>
|
3923 |
+
<tag line="1107" name="since" description="0.1"/>
|
3924 |
+
<tag line="1107" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
3925 |
<type by_reference="false">array</type>
|
3926 |
</tag>
|
3927 |
+
<tag line="1107" name="return" description="HTML markup to be placed inside the column" type="string">
|
3928 |
<type by_reference="false">string</type>
|
3929 |
</tag>
|
3930 |
</docblock>
|
3931 |
+
<argument line="1115">
|
3932 |
<name>$item</name>
|
3933 |
<default><![CDATA[]]></default>
|
3934 |
<type/>
|
3935 |
</argument>
|
3936 |
</method>
|
3937 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1127" package="Media Library Assistant">
|
3938 |
<name>column_post_mime_type</name>
|
3939 |
<full_name>column_post_mime_type</full_name>
|
3940 |
+
<docblock line="1119">
|
3941 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3942 |
<long-description><![CDATA[]]></long-description>
|
3943 |
+
<tag line="1119" name="since" description="0.30"/>
|
3944 |
+
<tag line="1119" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
3945 |
<type by_reference="false">array</type>
|
3946 |
</tag>
|
3947 |
+
<tag line="1119" name="return" description="HTML markup to be placed inside the column" type="string">
|
3948 |
<type by_reference="false">string</type>
|
3949 |
</tag>
|
3950 |
</docblock>
|
3951 |
+
<argument line="1127">
|
3952 |
<name>$item</name>
|
3953 |
<default><![CDATA[]]></default>
|
3954 |
<type/>
|
3955 |
</argument>
|
3956 |
</method>
|
3957 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1143" package="Media Library Assistant">
|
3958 |
<name>column_file_url</name>
|
3959 |
<full_name>column_file_url</full_name>
|
3960 |
+
<docblock line="1135">
|
3961 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3962 |
<long-description><![CDATA[]]></long-description>
|
3963 |
+
<tag line="1135" name="since" description="0.1"/>
|
3964 |
+
<tag line="1135" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
3965 |
<type by_reference="false">array</type>
|
3966 |
</tag>
|
3967 |
+
<tag line="1135" name="return" description="HTML markup to be placed inside the column" type="string">
|
3968 |
<type by_reference="false">string</type>
|
3969 |
</tag>
|
3970 |
</docblock>
|
3971 |
+
<argument line="1143">
|
3972 |
<name>$item</name>
|
3973 |
<default><![CDATA[]]></default>
|
3974 |
<type/>
|
3975 |
</argument>
|
3976 |
</method>
|
3977 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1157" package="Media Library Assistant">
|
3978 |
<name>column_base_file</name>
|
3979 |
<full_name>column_base_file</full_name>
|
3980 |
+
<docblock line="1149">
|
3981 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3982 |
<long-description><![CDATA[]]></long-description>
|
3983 |
+
<tag line="1149" name="since" description="0.1"/>
|
3984 |
+
<tag line="1149" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
3985 |
<type by_reference="false">array</type>
|
3986 |
</tag>
|
3987 |
+
<tag line="1149" name="return" description="HTML markup to be placed inside the column" type="string">
|
3988 |
<type by_reference="false">string</type>
|
3989 |
</tag>
|
3990 |
</docblock>
|
3991 |
+
<argument line="1157">
|
3992 |
<name>$item</name>
|
3993 |
<default><![CDATA[]]></default>
|
3994 |
<type/>
|
3995 |
</argument>
|
3996 |
</method>
|
3997 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1169" package="Media Library Assistant">
|
3998 |
<name>column_date</name>
|
3999 |
<full_name>column_date</full_name>
|
4000 |
+
<docblock line="1161">
|
4001 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
4002 |
<long-description><![CDATA[]]></long-description>
|
4003 |
+
<tag line="1161" name="since" description="0.1"/>
|
4004 |
+
<tag line="1161" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
4005 |
<type by_reference="false">array</type>
|
4006 |
</tag>
|
4007 |
+
<tag line="1161" name="return" description="HTML markup to be placed inside the column" type="string">
|
4008 |
<type by_reference="false">string</type>
|
4009 |
</tag>
|
4010 |
</docblock>
|
4011 |
+
<argument line="1169">
|
4012 |
<name>$item</name>
|
4013 |
<default><![CDATA[]]></default>
|
4014 |
<type/>
|
4015 |
</argument>
|
4016 |
</method>
|
4017 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1201" package="Media Library Assistant">
|
4018 |
<name>column_modified</name>
|
4019 |
<full_name>column_modified</full_name>
|
4020 |
+
<docblock line="1193">
|
4021 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
4022 |
<long-description><![CDATA[]]></long-description>
|
4023 |
+
<tag line="1193" name="since" description="0.30"/>
|
4024 |
+
<tag line="1193" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
4025 |
<type by_reference="false">array</type>
|
4026 |
</tag>
|
4027 |
+
<tag line="1193" name="return" description="HTML markup to be placed inside the column" type="string">
|
4028 |
<type by_reference="false">string</type>
|
4029 |
</tag>
|
4030 |
</docblock>
|
4031 |
+
<argument line="1201">
|
4032 |
<name>$item</name>
|
4033 |
<default><![CDATA[]]></default>
|
4034 |
<type/>
|
4035 |
</argument>
|
4036 |
</method>
|
4037 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1230" package="Media Library Assistant">
|
4038 |
<name>column_author</name>
|
4039 |
<full_name>column_author</full_name>
|
4040 |
+
<docblock line="1222">
|
4041 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
4042 |
<long-description><![CDATA[]]></long-description>
|
4043 |
+
<tag line="1222" name="since" description="0.30"/>
|
4044 |
+
<tag line="1222" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
4045 |
<type by_reference="false">array</type>
|
4046 |
</tag>
|
4047 |
+
<tag line="1222" name="return" description="HTML markup to be placed inside the column" type="string">
|
4048 |
<type by_reference="false">string</type>
|
4049 |
</tag>
|
4050 |
</docblock>
|
4051 |
+
<argument line="1230">
|
4052 |
<name>$item</name>
|
4053 |
<default><![CDATA[]]></default>
|
4054 |
<type/>
|
4055 |
</argument>
|
4056 |
</method>
|
4057 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1252" package="Media Library Assistant">
|
4058 |
<name>column_attached_to</name>
|
4059 |
<full_name>column_attached_to</full_name>
|
4060 |
+
<docblock line="1244">
|
4061 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
4062 |
<long-description><![CDATA[]]></long-description>
|
4063 |
+
<tag line="1244" name="since" description="0.1"/>
|
4064 |
+
<tag line="1244" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
4065 |
<type by_reference="false">array</type>
|
4066 |
</tag>
|
4067 |
+
<tag line="1244" name="return" description="HTML markup to be placed inside the column" type="string">
|
4068 |
<type by_reference="false">string</type>
|
4069 |
</tag>
|
4070 |
</docblock>
|
4071 |
+
<argument line="1252">
|
4072 |
<name>$item</name>
|
4073 |
<default><![CDATA[]]></default>
|
4074 |
<type/>
|
4075 |
</argument>
|
4076 |
</method>
|
4077 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1290" package="Media Library Assistant">
|
4078 |
<name>mla_submenu_arguments</name>
|
4079 |
<full_name>mla_submenu_arguments</full_name>
|
4080 |
+
<docblock line="1281">
|
4081 |
<description><![CDATA[Process $_REQUEST, building $submenu_arguments]]></description>
|
4082 |
<long-description><![CDATA[]]></long-description>
|
4083 |
+
<tag line="1281" name="since" description="1.42"/>
|
4084 |
+
<tag line="1281" name="param" description="Optional: Include the "click filter" values in the results" type="boolean" variable="$include_filters">
|
4085 |
<type by_reference="false">boolean</type>
|
4086 |
</tag>
|
4087 |
+
<tag line="1281" name="return" description="non-empty view, search, filter and sort arguments" type="array">
|
4088 |
<type by_reference="false">array</type>
|
4089 |
</tag>
|
4090 |
</docblock>
|
4091 |
+
<argument line="1290">
|
4092 |
<name>$include_filters</name>
|
4093 |
<default><![CDATA[true]]></default>
|
4094 |
<type/>
|
4095 |
</argument>
|
4096 |
</method>
|
4097 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1410" package="Media Library Assistant">
|
4098 |
<name>pagination</name>
|
4099 |
<full_name>pagination</full_name>
|
4100 |
+
<docblock line="1402">
|
4101 |
<description><![CDATA[Display the pagination, adding view, search and filter arguments]]></description>
|
4102 |
<long-description><![CDATA[]]></long-description>
|
4103 |
+
<tag line="1402" name="since" description="1.42"/>
|
4104 |
+
<tag line="1402" name="param" description="'top' | 'bottom'" type="string" variable="$which">
|
4105 |
<type by_reference="false">string</type>
|
4106 |
</tag>
|
4107 |
+
<tag line="1402" name="return" description="" type="void">
|
4108 |
<type by_reference="false">void</type>
|
4109 |
</tag>
|
4110 |
</docblock>
|
4111 |
+
<argument line="1410">
|
4112 |
<name>$which</name>
|
4113 |
<default><![CDATA[]]></default>
|
4114 |
<type/>
|
4115 |
</argument>
|
4116 |
</method>
|
4117 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1424" package="Media Library Assistant">
|
4118 |
<name>get_columns</name>
|
4119 |
<full_name>get_columns</full_name>
|
4120 |
+
<docblock line="1417">
|
4121 |
<description><![CDATA[This method dictates the table's columns and titles]]></description>
|
4122 |
<long-description><![CDATA[]]></long-description>
|
4123 |
+
<tag line="1417" name="since" description="0.1"/>
|
4124 |
+
<tag line="1417" name="return" description="Column information: 'slugs'=>'Visible Titles'" type="array">
|
4125 |
<type by_reference="false">array</type>
|
4126 |
</tag>
|
4127 |
</docblock>
|
4128 |
</method>
|
4129 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1436" package="Media Library Assistant">
|
4130 |
<name>get_hidden_columns</name>
|
4131 |
<full_name>get_hidden_columns</full_name>
|
4132 |
+
<docblock line="1428">
|
4133 |
<description><![CDATA[Returns the list of currently hidden columns from a user option or
|
4134 |
from default values if the option is not set]]></description>
|
4135 |
<long-description><![CDATA[]]></long-description>
|
4136 |
+
<tag line="1428" name="since" description="0.1"/>
|
4137 |
+
<tag line="1428" name="return" description="Column information,e.g., array(0 => 'ID_parent, 1 => 'title_name')" type="array">
|
4138 |
<type by_reference="false">array</type>
|
4139 |
</tag>
|
4140 |
</docblock>
|
4141 |
</method>
|
4142 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1456" package="Media Library Assistant">
|
4143 |
<name>get_sortable_columns</name>
|
4144 |
<full_name>get_sortable_columns</full_name>
|
4145 |
+
<docblock line="1446">
|
4146 |
<description><![CDATA[Returns an array where the key is the column that needs to be sortable
|
4147 |
and the value is db column to sort by.]]></description>
|
4148 |
<long-description><![CDATA[<p>Also notes the current sort column,
|
4149 |
if set.</p>]]></long-description>
|
4150 |
+
<tag line="1446" name="since" description="0.1"/>
|
4151 |
+
<tag line="1446" name="return" description="Sortable column information,e.g., 'slugs'=>array('data_values',boolean)" type="array">
|
4152 |
<type by_reference="false">array</type>
|
4153 |
</tag>
|
4154 |
</docblock>
|
4155 |
</method>
|
4156 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1482" package="Media Library Assistant">
|
4157 |
<name>print_column_headers</name>
|
4158 |
<full_name>print_column_headers</full_name>
|
4159 |
+
<docblock line="1475">
|
4160 |
<description><![CDATA[Print column headers, adding view, search and filter arguments]]></description>
|
4161 |
<long-description><![CDATA[]]></long-description>
|
4162 |
+
<tag line="1475" name="since" description="1.42"/>
|
4163 |
+
<tag line="1475" name="param" description="Whether to set the id attribute or not" type="bool" variable="$with_id">
|
4164 |
<type by_reference="false">bool</type>
|
4165 |
</tag>
|
4166 |
</docblock>
|
4167 |
+
<argument line="1482">
|
4168 |
<name>$with_id</name>
|
4169 |
<default><![CDATA[true]]></default>
|
4170 |
<type/>
|
4171 |
</argument>
|
4172 |
</method>
|
4173 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1499" package="Media Library Assistant">
|
4174 |
<name>_get_view</name>
|
4175 |
<full_name>_get_view</full_name>
|
4176 |
+
<docblock line="1489">
|
4177 |
<description><![CDATA[Returns HTML markup for one view that can be used with this table]]></description>
|
4178 |
<long-description><![CDATA[]]></long-description>
|
4179 |
+
<tag line="1489" name="since" description="1.40"/>
|
4180 |
+
<tag line="1489" name="param" description="View slug, key to MLA_POST_MIME_TYPES array" type="string" variable="$view_slug">
|
4181 |
<type by_reference="false">string</type>
|
4182 |
</tag>
|
4183 |
+
<tag line="1489" name="param" description="Slug for current view" type="string" variable="$current_view">
|
4184 |
<type by_reference="false">string</type>
|
4185 |
</tag>
|
4186 |
+
<tag line="1489" name="return" description="| false HTML for link to display the view, false if count = zero" type="string">
|
4187 |
<type by_reference="false">string</type>
|
4188 |
</tag>
|
4189 |
</docblock>
|
4190 |
+
<argument line="1499">
|
4191 |
<name>$view_slug</name>
|
4192 |
<default><![CDATA[]]></default>
|
4193 |
<type/>
|
4194 |
</argument>
|
4195 |
+
<argument line="1499">
|
4196 |
<name>$current_view</name>
|
4197 |
<default><![CDATA[]]></default>
|
4198 |
<type/>
|
4199 |
</argument>
|
4200 |
</method>
|
4201 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1626" package="Media Library Assistant">
|
4202 |
<name>get_views</name>
|
4203 |
<full_name>get_views</full_name>
|
4204 |
+
<docblock line="1618">
|
4205 |
<description><![CDATA[Returns an associative array listing all the views that can be used with this table.]]></description>
|
4206 |
<long-description><![CDATA[<p>These are listed across the top of the page and managed by WordPress.</p>]]></long-description>
|
4207 |
+
<tag line="1618" name="since" description="0.1"/>
|
4208 |
+
<tag line="1618" name="return" description="View information,e.g., array ( id => link )" type="array">
|
4209 |
<type by_reference="false">array</type>
|
4210 |
</tag>
|
4211 |
</docblock>
|
4212 |
</method>
|
4213 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1682" package="Media Library Assistant">
|
4214 |
<name>get_bulk_actions</name>
|
4215 |
<full_name>get_bulk_actions</full_name>
|
4216 |
+
<docblock line="1674">
|
4217 |
<description><![CDATA[Get an associative array ( option_name => option_title ) with the list
|
4218 |
of bulk actions available on this table.]]></description>
|
4219 |
<long-description><![CDATA[]]></long-description>
|
4220 |
+
<tag line="1674" name="since" description="0.1"/>
|
4221 |
+
<tag line="1674" name="return" description="Contains all the bulk actions: 'slugs'=>'Visible Titles'" type="array">
|
4222 |
<type by_reference="false">array</type>
|
4223 |
</tag>
|
4224 |
</docblock>
|
4225 |
</method>
|
4226 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1712" package="Media Library Assistant">
|
4227 |
<name>extra_tablenav</name>
|
4228 |
<full_name>extra_tablenav</full_name>
|
4229 |
+
<docblock line="1701">
|
4230 |
<description><![CDATA[Extra controls to be displayed between bulk actions and pagination]]></description>
|
4231 |
<long-description><![CDATA[<p>Modeled after class-wp-posts-list-table.php in wp-admin/includes.</p>]]></long-description>
|
4232 |
+
<tag line="1701" name="since" description="0.1"/>
|
4233 |
+
<tag line="1701" name="param" description="'top' or 'bottom', i.e., above or below the table rows" type="string" variable="$which">
|
4234 |
<type by_reference="false">string</type>
|
4235 |
</tag>
|
4236 |
+
<tag line="1701" name="return" description="Contains all the bulk actions: 'slugs'=>'Visible Titles'" type="array">
|
4237 |
<type by_reference="false">array</type>
|
4238 |
</tag>
|
4239 |
</docblock>
|
4240 |
+
<argument line="1712">
|
4241 |
<name>$which</name>
|
4242 |
<default><![CDATA[]]></default>
|
4243 |
<type/>
|
4244 |
</argument>
|
4245 |
</method>
|
4246 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1752" package="Media Library Assistant">
|
4247 |
<name>prepare_items</name>
|
4248 |
<full_name>prepare_items</full_name>
|
4249 |
+
<docblock line="1740">
|
4250 |
<description><![CDATA[Prepares the list of items for displaying]]></description>
|
4251 |
<long-description><![CDATA[<p>This is where you prepare your data for display. This method will usually
|
4252 |
be used to query the database, sort and filter the data, and generally
|
4253 |
get it ready to be displayed. At a minimum, we should set $this->items and
|
4254 |
$this->set_pagination_args().</p>]]></long-description>
|
4255 |
+
<tag line="1740" name="since" description="0.1"/>
|
4256 |
+
<tag line="1740" name="return" description="" type="void">
|
4257 |
<type by_reference="false">void</type>
|
4258 |
</tag>
|
4259 |
</docblock>
|
4260 |
</method>
|
4261 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1799" package="Media Library Assistant">
|
4262 |
<name>single_row</name>
|
4263 |
<full_name>single_row</full_name>
|
4264 |
+
<docblock line="1790">
|
4265 |
<description><![CDATA[Generates (echoes) content for a single row of the table]]></description>
|
4266 |
<long-description><![CDATA[]]></long-description>
|
4267 |
+
<tag line="1790" name="since" description=".20"/>
|
4268 |
+
<tag line="1790" name="param" description="the current item" type="object" variable="$item">
|
4269 |
<type by_reference="false">object</type>
|
4270 |
</tag>
|
4271 |
+
<tag line="1790" name="return" description="Echoes the row HTML" type="void">
|
4272 |
<type by_reference="false">void</type>
|
4273 |
</tag>
|
4274 |
</docblock>
|
4275 |
+
<argument line="1799">
|
4276 |
<name>$item</name>
|
4277 |
<default><![CDATA[]]></default>
|
4278 |
<type/>
|
4280 |
</method>
|
4281 |
</class>
|
4282 |
</file>
|
4283 |
+
<file path="includes\class-mla-main.php" hash="35638f0bfed86dc3f7b7f0951dad902e" package="Media Library Assistant">
|
4284 |
<docblock line="2">
|
4285 |
<description><![CDATA[Top-level functions for the Media Library Assistant]]></description>
|
4286 |
<long-description><![CDATA[]]></long-description>
|
4307 |
<constant namespace="global" line="32" package="Media Library Assistant">
|
4308 |
<name>CURRENT_MLA_VERSION</name>
|
4309 |
<full_name>CURRENT_MLA_VERSION</full_name>
|
4310 |
+
<value><![CDATA['1.94']]></value>
|
4311 |
<docblock line="25">
|
4312 |
<description><![CDATA[Current version number]]></description>
|
4313 |
<long-description><![CDATA[]]></long-description>
|
4513 |
</docblock>
|
4514 |
</constant>
|
4515 |
<constant namespace="global" line="176" package="Media Library Assistant">
|
4516 |
+
<name>MLA_ADMIN_TERMS_SEARCH</name>
|
4517 |
+
<full_name>MLA_ADMIN_TERMS_SEARCH</full_name>
|
4518 |
<value><![CDATA['terms_search']]></value>
|
4519 |
<docblock line="169">
|
4520 |
<description><![CDATA[mla_admin_action value for searching taxonomy terms]]></description>
|
4979 |
change the meta data for a single attachment.]]></description>
|
4980 |
<long-description><![CDATA[<p>This function is not used in WordPress 3.5 and later.</p>]]></long-description>
|
4981 |
<tag line="1871" name="since" description="0.1"/>
|
4982 |
+
<tag line="1871" name="param" description="The WordPress Post ID of the attachment item" type="integer" variable="$post_id">
|
4983 |
+
<type by_reference="false">integer</type>
|
4984 |
</tag>
|
4985 |
<tag line="1871" name="return" description="message and/or HTML content" type="array">
|
4986 |
<type by_reference="false">array</type>
|
4999 |
<description><![CDATA[Restore a single item from the Trash]]></description>
|
5000 |
<long-description><![CDATA[]]></long-description>
|
5001 |
<tag line="2155" name="since" description="0.1"/>
|
5002 |
+
<tag line="2155" name="param" description="The WordPress Post ID of the attachment item" type="integer" variable="$post_id">
|
5003 |
+
<type by_reference="false">integer</type>
|
5004 |
</tag>
|
5005 |
<tag line="2155" name="return" description="success/failure message and NULL content" type="array">
|
5006 |
<type by_reference="false">array</type>
|
5019 |
<description><![CDATA[Move a single item to Trash]]></description>
|
5020 |
<long-description><![CDATA[]]></long-description>
|
5021 |
<tag line="2195" name="since" description="0.1"/>
|
5022 |
+
<tag line="2195" name="param" description="The WordPress Post ID of the attachment item" type="integer" variable="$post_id">
|
5023 |
+
<type by_reference="false">integer</type>
|
5024 |
</tag>
|
5025 |
<tag line="2195" name="return" description="success/failure message and NULL content" type="array">
|
5026 |
<type by_reference="false">array</type>
|
5034 |
</method>
|
5035 |
</class>
|
5036 |
</file>
|
5037 |
+
<file path="includes\class-mla-media-modal.php" hash="6cbb0ec5567014ac7b6940ea37fbfff9" package="Media Library Assistant">
|
5038 |
<docblock line="2">
|
5039 |
<description><![CDATA[Media Library Assistant Media Manager enhancements]]></description>
|
5040 |
<long-description><![CDATA[]]></long-description>
|
5041 |
<tag line="2" name="package" description="Media Library Assistant"/>
|
5042 |
<tag line="2" name="since" description="1.20"/>
|
5043 |
</docblock>
|
5044 |
+
<include line="609" type="Require Once" package="Media Library Assistant">
|
5045 |
<name/>
|
5046 |
</include>
|
5047 |
<class final="false" abstract="false" namespace="global" line="15" package="Media Library Assistant">
|
5157 |
</tag>
|
5158 |
</docblock>
|
5159 |
</property>
|
5160 |
+
<property final="false" static="true" visibility="private" line="351" namespace="global" package="Media Library Assistant">
|
5161 |
<name>$mla_media_modal_settings</name>
|
5162 |
+
<default><![CDATA[array('screen' => 'modal', 'state' => 'initial', 'comma' => ',', '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, 'enableTermsAutofill' => false, 'query' => array('initial' => array('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>
|
5163 |
+
<docblock line="343">
|
5164 |
<description><![CDATA[Share the settings values between mla_media_view_settings_filter
|
5165 |
and mla_print_media_templates_action]]></description>
|
5166 |
<long-description><![CDATA[]]></long-description>
|
5167 |
+
<tag line="343" name="since" description="1.20"/>
|
5168 |
+
<tag line="343" name="var" description="" type="array">
|
5169 |
<type by_reference="false">array</type>
|
5170 |
</tag>
|
5171 |
</docblock>
|
5172 |
</property>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5173 |
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="86" package="Media Library Assistant">
|
5174 |
<name>initialize</name>
|
5175 |
<full_name>initialize</full_name>
|
5235 |
<type/>
|
5236 |
</argument>
|
5237 |
</method>
|
5238 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="276" package="Media Library Assistant">
|
5239 |
<name>_months_dropdown</name>
|
5240 |
<full_name>_months_dropdown</full_name>
|
5241 |
+
<docblock line="265">
|
5242 |
<description><![CDATA[Display a monthly dropdown for filtering items]]></description>
|
5243 |
<long-description><![CDATA[<p>Adapted from /wp-admin/includes/class-wp-list-table.php function months_dropdown()</p>]]></long-description>
|
5244 |
+
<tag line="265" name="since" description="1.20"/>
|
5245 |
+
<tag line="265" name="param" description="post_type, e.g., 'attachment'" type="string" variable="$post_type">
|
5246 |
<type by_reference="false">string</type>
|
5247 |
</tag>
|
5248 |
+
<tag line="265" name="return" description="( value => label ) pairs" type="array">
|
5249 |
<type by_reference="false">array</type>
|
5250 |
</tag>
|
5251 |
</docblock>
|
5252 |
+
<argument line="276">
|
5253 |
<name>$post_type</name>
|
5254 |
<default><![CDATA[]]></default>
|
5255 |
<type/>
|
5256 |
</argument>
|
5257 |
</method>
|
5258 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="317" package="Media Library Assistant">
|
5259 |
<name>_terms_options</name>
|
5260 |
<full_name>_terms_options</full_name>
|
5261 |
+
<docblock line="308">
|
5262 |
<description><![CDATA[Extract value and text elements from Dropdown HTML option tags]]></description>
|
5263 |
<long-description><![CDATA[]]></long-description>
|
5264 |
+
<tag line="308" name="since" description="1.20"/>
|
5265 |
+
<tag line="308" name="param" description="HTML markup for taxonomy terms dropdown <select> tag" type="string" variable="$markup">
|
5266 |
<type by_reference="false">string</type>
|
5267 |
</tag>
|
5268 |
+
<tag line="308" name="return" description="( 'class' => $class_array, 'value' => $value_array, 'text' => $text_array )" type="array">
|
5269 |
<type by_reference="false">array</type>
|
5270 |
</tag>
|
5271 |
</docblock>
|
5272 |
+
<argument line="317">
|
5273 |
<name>$markup</name>
|
5274 |
<default><![CDATA[]]></default>
|
5275 |
<type/>
|
5276 |
</argument>
|
5277 |
</method>
|
5278 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="399" package="Media Library Assistant">
|
5279 |
<name>mla_media_view_settings_filter</name>
|
5280 |
<full_name>mla_media_view_settings_filter</full_name>
|
5281 |
+
<docblock line="388">
|
5282 |
<description><![CDATA[Adds settings values to be passed to the Media Manager in /wp-includes/js/media-views.js.]]></description>
|
5283 |
<long-description><![CDATA[<p>Declared public because it is a filter.</p>]]></long-description>
|
5284 |
+
<tag line="388" name="since" description="1.20"/>
|
5285 |
+
<tag line="388" name="param" description="associative array with setting => value pairs" type="array" variable="$settings">
|
5286 |
<type by_reference="false">array</type>
|
5287 |
</tag>
|
5288 |
+
<tag line="388" name="param" description="|| NULL current post object, if available" type="object" variable="$post">
|
5289 |
<type by_reference="false">object</type>
|
5290 |
</tag>
|
5291 |
+
<tag line="388" name="return" description="updated $settings array" type="array">
|
5292 |
<type by_reference="false">array</type>
|
5293 |
</tag>
|
5294 |
</docblock>
|
5295 |
+
<argument line="399">
|
5296 |
<name>$settings</name>
|
5297 |
<default><![CDATA[]]></default>
|
5298 |
<type/>
|
5299 |
</argument>
|
5300 |
+
<argument line="399">
|
5301 |
<name>$post</name>
|
5302 |
<default><![CDATA[]]></default>
|
5303 |
<type/>
|
5304 |
</argument>
|
5305 |
</method>
|
5306 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="516" package="Media Library Assistant">
|
5307 |
<name>mla_media_view_strings_filter</name>
|
5308 |
<full_name>mla_media_view_strings_filter</full_name>
|
5309 |
+
<docblock line="505">
|
5310 |
<description><![CDATA[Adds strings values to be passed to the Media Manager in /wp-includes/js/media-views.js.]]></description>
|
5311 |
<long-description><![CDATA[<p>Declared public because it is a filter.</p>]]></long-description>
|
5312 |
+
<tag line="505" name="since" description="1.20"/>
|
5313 |
+
<tag line="505" name="param" description="associative array with string => value pairs" type="array" variable="$strings">
|
5314 |
<type by_reference="false">array</type>
|
5315 |
</tag>
|
5316 |
+
<tag line="505" name="param" description="|| NULL current post object, if available" type="object" variable="$post">
|
5317 |
<type by_reference="false">object</type>
|
5318 |
</tag>
|
5319 |
+
<tag line="505" name="return" description="updated $strings array" type="array">
|
5320 |
<type by_reference="false">array</type>
|
5321 |
</tag>
|
5322 |
</docblock>
|
5323 |
+
<argument line="516">
|
5324 |
<name>$strings</name>
|
5325 |
<default><![CDATA[]]></default>
|
5326 |
<type/>
|
5327 |
</argument>
|
5328 |
+
<argument line="516">
|
5329 |
<name>$post</name>
|
5330 |
<default><![CDATA[]]></default>
|
5331 |
<type/>
|
5332 |
</argument>
|
5333 |
</method>
|
5334 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="535" package="Media Library Assistant">
|
5335 |
<name>mla_wp_enqueue_media_action</name>
|
5336 |
<full_name>mla_wp_enqueue_media_action</full_name>
|
5337 |
+
<docblock line="527">
|
5338 |
<description><![CDATA[Enqueues the mla-media-modal-scripts.js file, adding it to the Media Manager scripts.]]></description>
|
5339 |
<long-description><![CDATA[<p>Declared public because it is an action.</p>]]></long-description>
|
5340 |
+
<tag line="527" name="since" description="1.20"/>
|
5341 |
+
<tag line="527" name="return" description="" type="void">
|
5342 |
<type by_reference="false">void</type>
|
5343 |
</tag>
|
5344 |
</docblock>
|
5345 |
</method>
|
5346 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="571" package="Media Library Assistant">
|
5347 |
<name>mla_print_media_templates_action</name>
|
5348 |
<full_name>mla_print_media_templates_action</full_name>
|
5349 |
+
<docblock line="563">
|
5350 |
<description><![CDATA[Prints the templates used in the MLA Media Manager enhancements.]]></description>
|
5351 |
<long-description><![CDATA[<p>Declared public because it is an action.</p>]]></long-description>
|
5352 |
+
<tag line="563" name="since" description="1.20"/>
|
5353 |
+
<tag line="563" name="return" description="echoes HTML script tags for the templates" type="void">
|
5354 |
<type by_reference="false">void</type>
|
5355 |
</tag>
|
5356 |
</docblock>
|
5357 |
</method>
|
5358 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="622" package="Media Library Assistant">
|
5359 |
<name>mla_admin_init_action</name>
|
5360 |
<full_name>mla_admin_init_action</full_name>
|
5361 |
+
<docblock line="612">
|
5362 |
<description><![CDATA[Adjust ajax handler for Media Manager queries]]></description>
|
5363 |
<long-description><![CDATA[<p>Replace 'query-attachments' with our own handler if the request is coming from the "Assistant" tab.
|
5364 |
Clean up the 'save-attachment-compat' values, removing the taxonomy updates MLS already handled.</p>]]></long-description>
|
5365 |
+
<tag line="612" name="since" description="1.20"/>
|
5366 |
+
<tag line="612" name="return" description="" type="void">
|
5367 |
<type by_reference="false">void</type>
|
5368 |
</tag>
|
5369 |
</docblock>
|
5370 |
</method>
|
5371 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="761" package="Media Library Assistant">
|
5372 |
<name>mla_fill_compat_fields_action</name>
|
5373 |
<full_name>mla_fill_compat_fields_action</full_name>
|
5374 |
+
<docblock line="752">
|
5375 |
<description><![CDATA[Ajax handler for Media Manager "fill compat-attachment-fields" queries]]></description>
|
5376 |
<long-description><![CDATA[<p>Prepares an array of (HTML) taxonomy meta boxes with attachment-specific values.</p>]]></long-description>
|
5377 |
+
<tag line="752" name="since" description="1.80"/>
|
5378 |
+
<tag line="752" name="return" description="passes array of results to wp_send_json_success() for JSON encoding and transmission" type="void">
|
5379 |
<type by_reference="false">void</type>
|
5380 |
</tag>
|
5381 |
</docblock>
|
5382 |
</method>
|
5383 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="935" package="Media Library Assistant">
|
5384 |
<name>mla_update_compat_fields_action</name>
|
5385 |
<full_name>mla_update_compat_fields_action</full_name>
|
5386 |
+
<docblock line="926">
|
5387 |
<description><![CDATA[Ajax handler for Media Manager "update compat-attachment-fields" queries]]></description>
|
5388 |
<long-description><![CDATA[<p>Updates one (or more) supported taxonomy and returns updated checkbox or tag/term lists</p>]]></long-description>
|
5389 |
+
<tag line="926" name="since" description="1.80"/>
|
5390 |
+
<tag line="926" name="return" description="passes array of results to wp_send_json_success() for JSON encoding and transmission" type="void">
|
5391 |
<type by_reference="false">void</type>
|
5392 |
</tag>
|
5393 |
</docblock>
|
5394 |
</method>
|
5395 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1012" package="Media Library Assistant">
|
5396 |
<name>mla_query_attachments_action</name>
|
5397 |
<full_name>mla_query_attachments_action</full_name>
|
5398 |
+
<docblock line="1003">
|
5399 |
<description><![CDATA[Ajax handler for Media Manager "Query Attachments" queries]]></description>
|
5400 |
<long-description><![CDATA[<p>Adapted from wp_ajax_query_attachments in /wp-admin/includes/ajax-actions.php</p>]]></long-description>
|
5401 |
+
<tag line="1003" name="since" description="1.20"/>
|
5402 |
+
<tag line="1003" name="return" description="passes array of post arrays to wp_send_json_success() for JSON encoding and transmission" type="void">
|
5403 |
<type by_reference="false">void</type>
|
5404 |
</tag>
|
5405 |
</docblock>
|
5406 |
</method>
|
5407 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1126" package="Media Library Assistant">
|
5408 |
<name>mla_add_terms_search_scripts</name>
|
5409 |
<full_name>mla_add_terms_search_scripts</full_name>
|
5410 |
+
<docblock line="1118">
|
5411 |
<description><![CDATA[Add the styles and scripts for the "Search Terms" popup modal window,
|
5412 |
but only once per page load]]></description>
|
5413 |
<long-description><![CDATA[]]></long-description>
|
5414 |
+
<tag line="1118" name="since" description="1.90"/>
|
5415 |
+
<tag line="1118" name="return" description="" type="void">
|
5416 |
<type by_reference="false">void</type>
|
5417 |
</tag>
|
5418 |
</docblock>
|
5419 |
</method>
|
5420 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1166" package="Media Library Assistant">
|
5421 |
<name>mla_add_terms_search_form</name>
|
5422 |
<full_name>mla_add_terms_search_form</full_name>
|
5423 |
+
<docblock line="1158">
|
5424 |
<description><![CDATA[Add the hidden form for the "Search Terms" popup modal window,
|
5425 |
but only once per page load]]></description>
|
5426 |
<long-description><![CDATA[]]></long-description>
|
5427 |
+
<tag line="1158" name="since" description="1.90"/>
|
5428 |
+
<tag line="1158" name="return" description="" type="void">
|
5429 |
<type by_reference="false">void</type>
|
5430 |
</tag>
|
5431 |
</docblock>
|
5432 |
</method>
|
5433 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1182" package="Media Library Assistant">
|
5434 |
<name>mla_echo_terms_search_form</name>
|
5435 |
<full_name>mla_echo_terms_search_form</full_name>
|
5436 |
+
<docblock line="1175">
|
5437 |
<description><![CDATA[Echo the hidden form for the "Search Terms" popup modal window]]></description>
|
5438 |
<long-description><![CDATA[]]></long-description>
|
5439 |
+
<tag line="1175" name="since" description="1.90"/>
|
5440 |
+
<tag line="1175" name="return" description="Echos the HTML <form> markup for hidden form" type="void">
|
5441 |
<type by_reference="false">void</type>
|
5442 |
</tag>
|
5443 |
</docblock>
|
5444 |
</method>
|
5445 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1193" package="Media Library Assistant">
|
5446 |
<name>mla_terms_search_form</name>
|
5447 |
<full_name>mla_terms_search_form</full_name>
|
5448 |
+
<docblock line="1186">
|
5449 |
<description><![CDATA[Build the hidden form for the "Search Terms" popup modal window]]></description>
|
5450 |
<long-description><![CDATA[]]></long-description>
|
5451 |
+
<tag line="1186" name="since" description="1.90"/>
|
5452 |
+
<tag line="1186" name="return" description="HTML <form> markup for hidden form" type="string">
|
5453 |
<type by_reference="false">string</type>
|
5454 |
</tag>
|
5455 |
</docblock>
|
6914 |
</method>
|
6915 |
</class>
|
6916 |
</file>
|
6917 |
+
<file path="includes\class-mla-options.php" hash="9d93b30d534a6a3295bd6ccbb713e820" package="Media Library Assistant">
|
6918 |
<docblock line="2">
|
6919 |
<description><![CDATA[Manages the plugin option settings]]></description>
|
6920 |
<long-description><![CDATA[]]></long-description>
|
6921 |
<tag line="2" name="package" description="Media Library Assistant"/>
|
6922 |
<tag line="2" name="since" description="1.00"/>
|
6923 |
</docblock>
|
6924 |
+
<include line="1845" type="Require Once" package="Media Library Assistant">
|
6925 |
<name/>
|
6926 |
</include>
|
6927 |
+
<include line="1876" type="Require" package="Media Library Assistant">
|
6928 |
<name/>
|
6929 |
</include>
|
6930 |
<class final="false" abstract="false" namespace="global" line="18" package="Media Library Assistant">
|
7164 |
</docblock>
|
7165 |
</constant>
|
7166 |
<constant namespace="global" line="148" package="Media Library Assistant">
|
7167 |
+
<name>MLA_MEDIA_GRID_TOOLBAR</name>
|
7168 |
+
<full_name>MLA_MEDIA_GRID_TOOLBAR</full_name>
|
7169 |
+
<value><![CDATA['media_grid_toolbar']]></value>
|
7170 |
+
<docblock line="144">
|
7171 |
+
<description><![CDATA[Provides a unique name for the Media Grid toolbar option, which
|
7172 |
+
also controls the ATTACHMENT DETAILS enhancements]]></description>
|
7173 |
+
<long-description><![CDATA[]]></long-description>
|
7174 |
+
</docblock>
|
7175 |
+
</constant>
|
7176 |
+
<constant namespace="global" line="154" package="Media Library Assistant">
|
7177 |
<name>MLA_MEDIA_MODAL_TOOLBAR</name>
|
7178 |
<full_name>MLA_MEDIA_MODAL_TOOLBAR</full_name>
|
7179 |
<value><![CDATA['media_modal_toolbar']]></value>
|
7180 |
+
<docblock line="150">
|
7181 |
<description><![CDATA[Provides a unique name for the Media Manager toolbar option, which
|
7182 |
also controls the ATTACHMENT DETAILS enhancements]]></description>
|
7183 |
<long-description><![CDATA[]]></long-description>
|
7184 |
</docblock>
|
7185 |
</constant>
|
7186 |
+
<constant namespace="global" line="159" package="Media Library Assistant">
|
7187 |
<name>MLA_MEDIA_MODAL_MIMETYPES</name>
|
7188 |
<full_name>MLA_MEDIA_MODAL_MIMETYPES</full_name>
|
7189 |
<value><![CDATA['media_modal_mimetypes']]></value>
|
7190 |
+
<docblock line="156">
|
7191 |
<description><![CDATA[Provides a unique name for the Media Manager toolbar MIME Types option]]></description>
|
7192 |
<long-description><![CDATA[]]></long-description>
|
7193 |
</docblock>
|
7194 |
</constant>
|
7195 |
+
<constant namespace="global" line="164" package="Media Library Assistant">
|
7196 |
<name>MLA_MEDIA_MODAL_MONTHS</name>
|
7197 |
<full_name>MLA_MEDIA_MODAL_MONTHS</full_name>
|
7198 |
<value><![CDATA['media_modal_months']]></value>
|
7199 |
+
<docblock line="161">
|
7200 |
<description><![CDATA[Provides a unique name for the Media Manager toolbar Month and Year option]]></description>
|
7201 |
<long-description><![CDATA[]]></long-description>
|
7202 |
</docblock>
|
7203 |
</constant>
|
7204 |
+
<constant namespace="global" line="169" package="Media Library Assistant">
|
7205 |
<name>MLA_MEDIA_MODAL_TERMS</name>
|
7206 |
<full_name>MLA_MEDIA_MODAL_TERMS</full_name>
|
7207 |
<value><![CDATA['media_modal_terms']]></value>
|
7208 |
+
<docblock line="166">
|
7209 |
<description><![CDATA[Provides a unique name for the Media Manager toolbar Taxonomy Terms option]]></description>
|
7210 |
<long-description><![CDATA[]]></long-description>
|
7211 |
</docblock>
|
7212 |
</constant>
|
7213 |
+
<constant namespace="global" line="174" package="Media Library Assistant">
|
7214 |
<name>MLA_MEDIA_MODAL_TERMS_SEARCH</name>
|
7215 |
<full_name>MLA_MEDIA_MODAL_TERMS_SEARCH</full_name>
|
7216 |
<value><![CDATA['media_modal_terms_search']]></value>
|
7217 |
+
<docblock line="171">
|
7218 |
<description><![CDATA[Provides a unique name for the Media Manager toolbar Taxonomy "Terms Search" option]]></description>
|
7219 |
<long-description><![CDATA[]]></long-description>
|
7220 |
</docblock>
|
7221 |
</constant>
|
7222 |
+
<constant namespace="global" line="179" package="Media Library Assistant">
|
7223 |
<name>MLA_MEDIA_MODAL_SEARCHBOX</name>
|
7224 |
<full_name>MLA_MEDIA_MODAL_SEARCHBOX</full_name>
|
7225 |
<value><![CDATA['media_modal_searchbox']]></value>
|
7226 |
+
<docblock line="176">
|
7227 |
<description><![CDATA[Provides a unique name for the Media Manager toolbar Search Box option]]></description>
|
7228 |
<long-description><![CDATA[]]></long-description>
|
7229 |
</docblock>
|
7230 |
</constant>
|
7231 |
+
<constant namespace="global" line="184" package="Media Library Assistant">
|
7232 |
<name>MLA_MEDIA_MODAL_SEARCHBOX_CONTROLS</name>
|
7233 |
<full_name>MLA_MEDIA_MODAL_SEARCHBOX_CONTROLS</full_name>
|
7234 |
<value><![CDATA['media_modal_searchbox_controls']]></value>
|
7235 |
+
<docblock line="181">
|
7236 |
<description><![CDATA[Provides a unique name for the Media Manager toolbar Search Box Controls option]]></description>
|
7237 |
<long-description><![CDATA[]]></long-description>
|
7238 |
</docblock>
|
7239 |
</constant>
|
7240 |
+
<constant namespace="global" line="190" package="Media Library Assistant">
|
7241 |
<name>MLA_MEDIA_MODAL_DETAILS_CATEGORY_METABOX</name>
|
7242 |
<full_name>MLA_MEDIA_MODAL_DETAILS_CATEGORY_METABOX</full_name>
|
7243 |
<value><![CDATA['media_modal_details_category_metabox']]></value>
|
7244 |
+
<docblock line="186">
|
7245 |
<description><![CDATA[Provides a unique name for the Media Manager Attachment Details searchable taxonomy option
|
7246 |
This option is for hierarchical taxonomies, e.g., "Att.]]></description>
|
7247 |
<long-description><![CDATA[<p>Categories".</p>]]></long-description>
|
7248 |
</docblock>
|
7249 |
</constant>
|
7250 |
+
<constant namespace="global" line="196" package="Media Library Assistant">
|
7251 |
<name>MLA_MEDIA_MODAL_DETAILS_TAG_METABOX</name>
|
7252 |
<full_name>MLA_MEDIA_MODAL_DETAILS_TAG_METABOX</full_name>
|
7253 |
<value><![CDATA['media_modal_details_tag_metabox']]></value>
|
7254 |
+
<docblock line="192">
|
7255 |
<description><![CDATA[Provides a unique name for the Media Manager Attachment Details searchable taxonomy option
|
7256 |
This option is for flat taxonomies, e.g., "Att.]]></description>
|
7257 |
<long-description><![CDATA[<p>Tags".</p>]]></long-description>
|
7258 |
</docblock>
|
7259 |
</constant>
|
7260 |
+
<constant namespace="global" line="201" package="Media Library Assistant">
|
7261 |
+
<name>MLA_MEDIA_MODAL_DETAILS_AUTOFILL</name>
|
7262 |
+
<full_name>MLA_MEDIA_MODAL_DETAILS_AUTOFILL</full_name>
|
7263 |
+
<value><![CDATA['media_modal_details_autofill']]></value>
|
7264 |
+
<docblock line="198">
|
7265 |
+
<description><![CDATA[Provides a unique name for the Media Manager Attachment Details auto-fill option]]></description>
|
7266 |
+
<long-description><![CDATA[]]></long-description>
|
7267 |
+
</docblock>
|
7268 |
+
</constant>
|
7269 |
+
<constant namespace="global" line="206" package="Media Library Assistant">
|
7270 |
<name>MLA_MEDIA_MODAL_ORDERBY</name>
|
7271 |
<full_name>MLA_MEDIA_MODAL_ORDERBY</full_name>
|
7272 |
<value><![CDATA['media_modal_orderby']]></value>
|
7273 |
+
<docblock line="203">
|
7274 |
<description><![CDATA[Provides a unique name for the Media Manager orderby option]]></description>
|
7275 |
<long-description><![CDATA[]]></long-description>
|
7276 |
</docblock>
|
7277 |
</constant>
|
7278 |
+
<constant namespace="global" line="211" package="Media Library Assistant">
|
7279 |
<name>MLA_MEDIA_MODAL_ORDER</name>
|
7280 |
<full_name>MLA_MEDIA_MODAL_ORDER</full_name>
|
7281 |
<value><![CDATA['media_modal_order']]></value>
|
7282 |
+
<docblock line="208">
|
7283 |
<description><![CDATA[Provides a unique name for the Media Manager order option]]></description>
|
7284 |
<long-description><![CDATA[]]></long-description>
|
7285 |
</docblock>
|
7286 |
</constant>
|
7287 |
+
<constant namespace="global" line="216" package="Media Library Assistant">
|
7288 |
<name>MLA_POST_MIME_TYPES</name>
|
7289 |
<full_name>MLA_POST_MIME_TYPES</full_name>
|
7290 |
<value><![CDATA['post_mime_types']]></value>
|
7291 |
+
<docblock line="213">
|
7292 |
<description><![CDATA[Provides a unique name for the Post MIME Types option]]></description>
|
7293 |
<long-description><![CDATA[]]></long-description>
|
7294 |
</docblock>
|
7295 |
</constant>
|
7296 |
+
<constant namespace="global" line="221" package="Media Library Assistant">
|
7297 |
<name>MLA_ENABLE_POST_MIME_TYPES</name>
|
7298 |
<full_name>MLA_ENABLE_POST_MIME_TYPES</full_name>
|
7299 |
<value><![CDATA['enable_post_mime_types']]></value>
|
7300 |
+
<docblock line="218">
|
7301 |
<description><![CDATA[Provides a unique name for the Enable Post MIME Types option]]></description>
|
7302 |
<long-description><![CDATA[]]></long-description>
|
7303 |
</docblock>
|
7304 |
</constant>
|
7305 |
+
<constant namespace="global" line="226" package="Media Library Assistant">
|
7306 |
<name>MLA_UPLOAD_MIMES</name>
|
7307 |
<full_name>MLA_UPLOAD_MIMES</full_name>
|
7308 |
<value><![CDATA['upload_mimes']]></value>
|
7309 |
+
<docblock line="223">
|
7310 |
<description><![CDATA[Provides a unique name for the Upload MIME Types option]]></description>
|
7311 |
<long-description><![CDATA[]]></long-description>
|
7312 |
</docblock>
|
7313 |
</constant>
|
7314 |
+
<constant namespace="global" line="231" package="Media Library Assistant">
|
7315 |
<name>MLA_ENABLE_UPLOAD_MIMES</name>
|
7316 |
<full_name>MLA_ENABLE_UPLOAD_MIMES</full_name>
|
7317 |
<value><![CDATA['enable_upload_mimes']]></value>
|
7318 |
+
<docblock line="228">
|
7319 |
<description><![CDATA[Provides a unique name for the Enable Upload MIME Types option]]></description>
|
7320 |
<long-description><![CDATA[]]></long-description>
|
7321 |
</docblock>
|
7322 |
</constant>
|
7323 |
+
<constant namespace="global" line="236" package="Media Library Assistant">
|
7324 |
<name>MLA_ENABLE_MLA_ICONS</name>
|
7325 |
<full_name>MLA_ENABLE_MLA_ICONS</full_name>
|
7326 |
<value><![CDATA['enable_mla_icons']]></value>
|
7327 |
+
<docblock line="233">
|
7328 |
<description><![CDATA[Provides a unique name for the Enable MLA Icons option]]></description>
|
7329 |
<long-description><![CDATA[]]></long-description>
|
7330 |
</docblock>
|
7331 |
</constant>
|
7332 |
+
<property final="false" static="true" visibility="public" line="247" namespace="global" package="Media Library Assistant">
|
7333 |
<name>$process_featured_in</name>
|
7334 |
<default><![CDATA[true]]></default>
|
7335 |
+
<docblock line="238">
|
7336 |
<description><![CDATA[Option setting for "Featured in" reporting]]></description>
|
7337 |
<long-description><![CDATA[<p>This setting is false if the "Featured in" database access setting is "disabled", else true.</p>]]></long-description>
|
7338 |
+
<tag line="238" name="since" description="1.00"/>
|
7339 |
+
<tag line="238" name="var" description="" type="boolean">
|
7340 |
<type by_reference="false">boolean</type>
|
7341 |
</tag>
|
7342 |
</docblock>
|
7343 |
</property>
|
7344 |
+
<property final="false" static="true" visibility="public" line="258" namespace="global" package="Media Library Assistant">
|
7345 |
<name>$process_inserted_in</name>
|
7346 |
<default><![CDATA[true]]></default>
|
7347 |
+
<docblock line="249">
|
7348 |
<description><![CDATA[Option setting for "Inserted in" reporting]]></description>
|
7349 |
<long-description><![CDATA[<p>This setting is false if the "Inserted in" database access setting is "disabled", else true.</p>]]></long-description>
|
7350 |
+
<tag line="249" name="since" description="1.00"/>
|
7351 |
+
<tag line="249" name="var" description="" type="boolean">
|
7352 |
<type by_reference="false">boolean</type>
|
7353 |
</tag>
|
7354 |
</docblock>
|
7355 |
</property>
|
7356 |
+
<property final="false" static="true" visibility="public" line="269" namespace="global" package="Media Library Assistant">
|
7357 |
<name>$process_gallery_in</name>
|
7358 |
<default><![CDATA[true]]></default>
|
7359 |
+
<docblock line="260">
|
7360 |
<description><![CDATA[Option setting for "Gallery in" reporting]]></description>
|
7361 |
<long-description><![CDATA[<p>This setting is false if the "Gallery in" database access setting is "disabled", else true.</p>]]></long-description>
|
7362 |
+
<tag line="260" name="since" description="1.00"/>
|
7363 |
+
<tag line="260" name="var" description="" type="boolean">
|
7364 |
<type by_reference="false">boolean</type>
|
7365 |
</tag>
|
7366 |
</docblock>
|
7367 |
</property>
|
7368 |
+
<property final="false" static="true" visibility="public" line="280" namespace="global" package="Media Library Assistant">
|
7369 |
<name>$process_mla_gallery_in</name>
|
7370 |
<default><![CDATA[true]]></default>
|
7371 |
+
<docblock line="271">
|
7372 |
<description><![CDATA[Option setting for "MLA Gallery in" reporting]]></description>
|
7373 |
<long-description><![CDATA[<p>This setting is false if the "MLA Gallery in" database access setting is "disabled", else true.</p>]]></long-description>
|
7374 |
+
<tag line="271" name="since" description="1.00"/>
|
7375 |
+
<tag line="271" name="var" description="" type="boolean">
|
7376 |
<type by_reference="false">boolean</type>
|
7377 |
</tag>
|
7378 |
</docblock>
|
7379 |
</property>
|
7380 |
+
<property final="false" static="true" visibility="public" line="312" namespace="global" package="Media Library Assistant">
|
7381 |
<name>$mla_option_definitions</name>
|
7382 |
<default><![CDATA[array()]]></default>
|
7383 |
+
<docblock line="282">
|
7384 |
<description><![CDATA[$mla_option_definitions defines the database options and admin page areas for setting/updating them]]></description>
|
7385 |
<long-description><![CDATA[<p>The array must be populated at runtime in MLAOptions::mla_localize_option_definitions_array(),
|
7386 |
because Localization calls cannot be placed in the "public static" array definition itself.</p>
|
7409 |
$message = ['reset']( 'reset', $key, $value, $_REQUEST );</p>]]></long-description>
|
7410 |
</docblock>
|
7411 |
</property>
|
7412 |
+
<property final="false" static="true" visibility="private" line="359" namespace="global" package="Media Library Assistant">
|
7413 |
<name>$mla_option_templates</name>
|
7414 |
<default><![CDATA[null]]></default>
|
7415 |
+
<docblock line="352">
|
7416 |
<description><![CDATA[Style and Markup templates]]></description>
|
7417 |
<long-description><![CDATA[]]></long-description>
|
7418 |
+
<tag line="352" name="since" description="0.80"/>
|
7419 |
+
<tag line="352" name="var" description="" type="array">
|
7420 |
<type by_reference="false">array</type>
|
7421 |
</tag>
|
7422 |
</docblock>
|
7423 |
</property>
|
7424 |
+
<property final="false" static="true" visibility="private" line="1897" namespace="global" package="Media Library Assistant">
|
7425 |
<name>$add_attachment_id</name>
|
7426 |
<default><![CDATA[0]]></default>
|
7427 |
+
<docblock line="1887">
|
7428 |
<description><![CDATA[Attachment ID passed from mla_add_attachment_action to mla_update_attachment_metadata_filter]]></description>
|
7429 |
<long-description><![CDATA[<p>Ensures that IPTC/EXIF and Custom Field mapping is only performed when the attachment is first
|
7430 |
added to the Media Library.</p>]]></long-description>
|
7431 |
+
<tag line="1887" name="since" description="1.70"/>
|
7432 |
+
<tag line="1887" name="var" description="" type="integer">
|
7433 |
<type by_reference="false">integer</type>
|
7434 |
</tag>
|
7435 |
</docblock>
|
7436 |
</property>
|
7437 |
+
<property final="false" static="true" visibility="private" line="2914" namespace="global" package="Media Library Assistant">
|
7438 |
<name>$custom_field_data_sources</name>
|
7439 |
<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>
|
7440 |
+
<docblock line="2907">
|
7441 |
<description><![CDATA[Array of Data Source names for custom field mapping]]></description>
|
7442 |
<long-description><![CDATA[]]></long-description>
|
7443 |
+
<tag line="2907" name="since" description="1.10"/>
|
7444 |
+
<tag line="2907" name="var" description="" type="array">
|
7445 |
<type by_reference="false">array</type>
|
7446 |
</tag>
|
7447 |
</docblock>
|
7448 |
</property>
|
7449 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="321" package="Media Library Assistant">
|
7450 |
<name>initialize</name>
|
7451 |
<full_name>initialize</full_name>
|
7452 |
+
<docblock line="314">
|
7453 |
<description><![CDATA[Initialization function, similar to __construct()]]></description>
|
7454 |
<long-description><![CDATA[]]></long-description>
|
7455 |
+
<tag line="314" name="since" description="1.00"/>
|
7456 |
+
<tag line="314" name="return" description="" type="void">
|
7457 |
<type by_reference="false">void</type>
|
7458 |
</tag>
|
7459 |
</docblock>
|
7460 |
</method>
|
7461 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="368" package="Media Library Assistant">
|
7462 |
<name>_load_option_templates</name>
|
7463 |
<full_name>_load_option_templates</full_name>
|
7464 |
+
<docblock line="361">
|
7465 |
<description><![CDATA[Load style and markup templates to $mla_templates]]></description>
|
7466 |
<long-description><![CDATA[]]></long-description>
|
7467 |
+
<tag line="361" name="since" description="0.80"/>
|
7468 |
+
<tag line="361" name="return" description="" type="void">
|
7469 |
<type by_reference="false">void</type>
|
7470 |
</tag>
|
7471 |
</docblock>
|
7472 |
</method>
|
7473 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="415" package="Media Library Assistant">
|
7474 |
<name>mla_localize_option_definitions_array</name>
|
7475 |
<full_name>mla_localize_option_definitions_array</full_name>
|
7476 |
+
<docblock line="405">
|
7477 |
<description><![CDATA[Localize $mla_option_definitions array]]></description>
|
7478 |
<long-description><![CDATA[<p>Localization must be done at runtime, and these calls cannot be placed
|
7479 |
in the "public static" array definition itself.</p>]]></long-description>
|
7480 |
+
<tag line="405" name="since" description="1.70"/>
|
7481 |
+
<tag line="405" name="return" description="" type="void">
|
7482 |
<type by_reference="false">void</type>
|
7483 |
</tag>
|
7484 |
</docblock>
|
7485 |
</method>
|
7486 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1200" package="Media Library Assistant">
|
7487 |
<name>mla_fetch_gallery_template</name>
|
7488 |
<full_name>mla_fetch_gallery_template</full_name>
|
7489 |
+
<docblock line="1190">
|
7490 |
<description><![CDATA[Fetch style or markup template from $mla_templates]]></description>
|
7491 |
<long-description><![CDATA[]]></long-description>
|
7492 |
+
<tag line="1190" name="since" description="0.80"/>
|
7493 |
+
<tag line="1190" name="param" description="Template name" type="string" variable="$key">
|
7494 |
<type by_reference="false">string</type>
|
7495 |
</tag>
|
7496 |
+
<tag line="1190" name="param" description="Template type; 'style' (default) or 'markup'" type="string" variable="$type">
|
7497 |
<type by_reference="false">string</type>
|
7498 |
</tag>
|
7499 |
+
<tag line="1190" name="return" description="requested template, false if not found or null if no templates" type="string|boolean|null">
|
7500 |
<type by_reference="false">string</type>
|
7501 |
<type by_reference="false">boolean</type>
|
7502 |
<type by_reference="false">null</type>
|
7503 |
</tag>
|
7504 |
</docblock>
|
7505 |
+
<argument line="1200">
|
7506 |
<name>$key</name>
|
7507 |
<default><![CDATA[]]></default>
|
7508 |
<type/>
|
7509 |
</argument>
|
7510 |
+
<argument line="1200">
|
7511 |
<name>$type</name>
|
7512 |
<default><![CDATA['style']]></default>
|
7513 |
<type/>
|
7514 |
</argument>
|
7515 |
</method>
|
7516 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1222" package="Media Library Assistant">
|
7517 |
<name>mla_get_style_templates</name>
|
7518 |
<full_name>mla_get_style_templates</full_name>
|
7519 |
+
<docblock line="1215">
|
7520 |
<description><![CDATA[Get ALL style templates from $mla_templates, including 'default']]></description>
|
7521 |
<long-description><![CDATA[]]></long-description>
|
7522 |
+
<tag line="1215" name="since" description="0.80"/>
|
7523 |
+
<tag line="1215" name="return" description="name => value for all style templates or null if no templates" type="array|null">
|
7524 |
<type by_reference="false">array</type>
|
7525 |
<type by_reference="false">null</type>
|
7526 |
</tag>
|
7527 |
</docblock>
|
7528 |
</method>
|
7529 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1248" package="Media Library Assistant">
|
7530 |
<name>mla_put_style_templates</name>
|
7531 |
<full_name>mla_put_style_templates</full_name>
|
7532 |
+
<docblock line="1240">
|
7533 |
<description><![CDATA[Put user-defined style templates to $mla_templates and database]]></description>
|
7534 |
<long-description><![CDATA[]]></long-description>
|
7535 |
+
<tag line="1240" name="since" description="0.80"/>
|
7536 |
+
<tag line="1240" name="param" description="name => value for all user-defined style templates" type="array" variable="$templates">
|
7537 |
<type by_reference="false">array</type>
|
7538 |
</tag>
|
7539 |
+
<tag line="1240" name="return" description="true if success, false if failure" type="boolean">
|
7540 |
<type by_reference="false">boolean</type>
|
7541 |
</tag>
|
7542 |
</docblock>
|
7543 |
+
<argument line="1248">
|
7544 |
<name>$templates</name>
|
7545 |
<default><![CDATA[]]></default>
|
7546 |
<type/>
|
7547 |
</argument>
|
7548 |
</method>
|
7549 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1264" package="Media Library Assistant">
|
7550 |
<name>mla_get_markup_templates</name>
|
7551 |
<full_name>mla_get_markup_templates</full_name>
|
7552 |
+
<docblock line="1257">
|
7553 |
<description><![CDATA[Get ALL markup templates from $mla_templates, including 'default']]></description>
|
7554 |
<long-description><![CDATA[]]></long-description>
|
7555 |
+
<tag line="1257" name="since" description="0.80"/>
|
7556 |
+
<tag line="1257" name="return" description="name => value for all markup templates or null if no templates" type="array|null">
|
7557 |
<type by_reference="false">array</type>
|
7558 |
<type by_reference="false">null</type>
|
7559 |
</tag>
|
7560 |
</docblock>
|
7561 |
</method>
|
7562 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1319" package="Media Library Assistant">
|
7563 |
<name>mla_put_markup_templates</name>
|
7564 |
<full_name>mla_put_markup_templates</full_name>
|
7565 |
+
<docblock line="1311">
|
7566 |
<description><![CDATA[Put user-defined markup templates to $mla_templates and database]]></description>
|
7567 |
<long-description><![CDATA[]]></long-description>
|
7568 |
+
<tag line="1311" name="since" description="0.80"/>
|
7569 |
+
<tag line="1311" name="param" description="name => value for all user-defined markup templates" type="array" variable="$templates">
|
7570 |
<type by_reference="false">array</type>
|
7571 |
</tag>
|
7572 |
+
<tag line="1311" name="return" description="true if success, false if failure" type="boolean">
|
7573 |
<type by_reference="false">boolean</type>
|
7574 |
</tag>
|
7575 |
</docblock>
|
7576 |
+
<argument line="1319">
|
7577 |
<name>$templates</name>
|
7578 |
<default><![CDATA[]]></default>
|
7579 |
<type/>
|
7580 |
</argument>
|
7581 |
</method>
|
7582 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1339" package="Media Library Assistant">
|
7583 |
<name>mla_get_option</name>
|
7584 |
<full_name>mla_get_option</full_name>
|
7585 |
+
<docblock line="1328">
|
7586 |
<description><![CDATA[Return the stored value or default value of a defined MLA option]]></description>
|
7587 |
<long-description><![CDATA[]]></long-description>
|
7588 |
+
<tag line="1328" name="since" description="0.1"/>
|
7589 |
+
<tag line="1328" name="param" description="Name of the desired option" type="string" variable="$option">
|
7590 |
<type by_reference="false">string</type>
|
7591 |
</tag>
|
7592 |
+
<tag line="1328" name="param" description="True to ignore current setting and return default values" type="boolean" variable="$get_default">
|
7593 |
<type by_reference="false">boolean</type>
|
7594 |
</tag>
|
7595 |
+
<tag line="1328" name="param" description="True to ignore default values and return only stored values" type="boolean" variable="$get_stored">
|
7596 |
<type by_reference="false">boolean</type>
|
7597 |
</tag>
|
7598 |
+
<tag line="1328" name="return" description="Value(s) for the option or false if the option is not a defined MLA option" type="mixed">
|
7599 |
<type by_reference="false">mixed</type>
|
7600 |
</tag>
|
7601 |
</docblock>
|
7602 |
+
<argument line="1339">
|
7603 |
<name>$option</name>
|
7604 |
<default><![CDATA[]]></default>
|
7605 |
<type/>
|
7606 |
</argument>
|
7607 |
+
<argument line="1339">
|
7608 |
<name>$get_default</name>
|
7609 |
<default><![CDATA[false]]></default>
|
7610 |
<type/>
|
7611 |
</argument>
|
7612 |
+
<argument line="1339">
|
7613 |
<name>$get_stored</name>
|
7614 |
<default><![CDATA[false]]></default>
|
7615 |
<type/>
|
7616 |
</argument>
|
7617 |
</method>
|
7618 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1369" package="Media Library Assistant">
|
7619 |
<name>mla_update_option</name>
|
7620 |
<full_name>mla_update_option</full_name>
|
7621 |
+
<docblock line="1359">
|
7622 |
<description><![CDATA[Add or update the stored value of a defined MLA option]]></description>
|
7623 |
<long-description><![CDATA[]]></long-description>
|
7624 |
+
<tag line="1359" name="since" description="0.1"/>
|
7625 |
+
<tag line="1359" name="param" description="Name of the desired option" type="string" variable="$option">
|
7626 |
<type by_reference="false">string</type>
|
7627 |
</tag>
|
7628 |
+
<tag line="1359" name="param" description="New value for the desired option" type="mixed" variable="$newvalue">
|
7629 |
<type by_reference="false">mixed</type>
|
7630 |
</tag>
|
7631 |
+
<tag line="1359" name="return" description="True if the value was changed or false if the update failed" type="boolean">
|
7632 |
<type by_reference="false">boolean</type>
|
7633 |
</tag>
|
7634 |
</docblock>
|
7635 |
+
<argument line="1369">
|
7636 |
<name>$option</name>
|
7637 |
<default><![CDATA[]]></default>
|
7638 |
<type/>
|
7639 |
</argument>
|
7640 |
+
<argument line="1369">
|
7641 |
<name>$newvalue</name>
|
7642 |
<default><![CDATA[]]></default>
|
7643 |
<type/>
|
7644 |
</argument>
|
7645 |
</method>
|
7646 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1386" package="Media Library Assistant">
|
7647 |
<name>mla_delete_option</name>
|
7648 |
<full_name>mla_delete_option</full_name>
|
7649 |
+
<docblock line="1377">
|
7650 |
<description><![CDATA[Delete the stored value of a defined MLA option]]></description>
|
7651 |
<long-description><![CDATA[]]></long-description>
|
7652 |
+
<tag line="1377" name="since" description="0.1"/>
|
7653 |
+
<tag line="1377" name="param" description="Name of the desired option" type="string" variable="$option">
|
7654 |
<type by_reference="false">string</type>
|
7655 |
</tag>
|
7656 |
+
<tag line="1377" name="return" description="True if the option was deleted, otherwise false" type="boolean">
|
7657 |
<type by_reference="false">boolean</type>
|
7658 |
</tag>
|
7659 |
</docblock>
|
7660 |
+
<argument line="1386">
|
7661 |
<name>$option</name>
|
7662 |
<default><![CDATA[]]></default>
|
7663 |
<type/>
|
7664 |
</argument>
|
7665 |
</method>
|
7666 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1407" package="Media Library Assistant">
|
7667 |
<name>mla_taxonomy_support</name>
|
7668 |
<full_name>mla_taxonomy_support</full_name>
|
7669 |
+
<docblock line="1394">
|
7670 |
<description><![CDATA[Determine MLA support for a taxonomy, handling the special case where the
|
7671 |
settings are being updated or reset.]]></description>
|
7672 |
<long-description><![CDATA[]]></long-description>
|
7673 |
+
<tag line="1394" name="since" description="0.30"/>
|
7674 |
+
<tag line="1394" name="param" description="Taxonomy name, e.g., attachment_category" type="string" variable="$tax_name">
|
7675 |
<type by_reference="false">string</type>
|
7676 |
</tag>
|
7677 |
+
<tag line="1394" name="param" description="Optional. 'support' (default), 'quick-edit' or 'filter'" type="string" variable="$support_type">
|
7678 |
<type by_reference="false">string</type>
|
7679 |
</tag>
|
7680 |
+
<tag line="1394" 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">
|
7681 |
<type by_reference="false">boolean</type>
|
7682 |
<type by_reference="false">string</type>
|
7683 |
</tag>
|
7684 |
</docblock>
|
7685 |
+
<argument line="1407">
|
7686 |
<name>$tax_name</name>
|
7687 |
<default><![CDATA[]]></default>
|
7688 |
<type/>
|
7689 |
</argument>
|
7690 |
+
<argument line="1407">
|
7691 |
<name>$support_type</name>
|
7692 |
<default><![CDATA['support']]></default>
|
7693 |
<type/>
|
7694 |
</argument>
|
7695 |
</method>
|
7696 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1475" package="Media Library Assistant">
|
7697 |
<name>mla_supported_taxonomies</name>
|
7698 |
<full_name>mla_supported_taxonomies</full_name>
|
7699 |
+
<docblock line="1466">
|
7700 |
<description><![CDATA[Returns an array of taxonomy names assigned to $support_type]]></description>
|
7701 |
<long-description><![CDATA[]]></long-description>
|
7702 |
+
<tag line="1466" name="since" description="1.90"/>
|
7703 |
+
<tag line="1466" name="param" description="Optional. 'support' (default), 'quick-edit', 'flat-checklist', 'term-search' or 'filter'" type="string" variable="$support_type">
|
7704 |
<type by_reference="false">string</type>
|
7705 |
</tag>
|
7706 |
+
<tag line="1466" name="return" description="taxonomies assigned to $support_type; can be empty." type="array">
|
7707 |
<type by_reference="false">array</type>
|
7708 |
</tag>
|
7709 |
</docblock>
|
7710 |
+
<argument line="1475">
|
7711 |
<name>$support_type</name>
|
7712 |
<default><![CDATA['support']]></default>
|
7713 |
<type/>
|
7714 |
</argument>
|
7715 |
</method>
|
7716 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1536" package="Media Library Assistant">
|
7717 |
<name>mla_attachment_display_settings_option_handler</name>
|
7718 |
<full_name>mla_attachment_display_settings_option_handler</full_name>
|
7719 |
+
<docblock line="1523">
|
7720 |
<description><![CDATA[Render and manage Attachment Display Settings options; alignment, link type and size]]></description>
|
7721 |
<long-description><![CDATA[]]></long-description>
|
7722 |
+
<tag line="1523" name="since" description="1.71"/>
|
7723 |
+
<tag line="1523" name="uses" description="\global\MLASettings::$page_template_array" refers="\global\MLASettings::$page_template_array"/>
|
7724 |
+
<tag line="1523" name="param" description="'render', 'update', 'delete', or 'reset'" type="string" variable="$action">
|
7725 |
<type by_reference="false">string</type>
|
7726 |
</tag>
|
7727 |
+
<tag line="1523" name="param" description="option name, e.g., 'image_default_align'" type="string" variable="$key">
|
7728 |
<type by_reference="false">string</type>
|
7729 |
</tag>
|
7730 |
+
<tag line="1523" name="param" description="option parameters" type="array" variable="$value">
|
7731 |
<type by_reference="false">array</type>
|
7732 |
</tag>
|
7733 |
+
<tag line="1523" name="param" description="Optional. null (default) for 'render' else option data, e.g., $_REQUEST" type="array" variable="$args">
|
7734 |
<type by_reference="false">array</type>
|
7735 |
</tag>
|
7736 |
+
<tag line="1523" name="return" description="HTML table row markup for 'render' else message(s) reflecting the results of the operation." type="string">
|
7737 |
<type by_reference="false">string</type>
|
7738 |
</tag>
|
7739 |
</docblock>
|
7740 |
+
<argument line="1536">
|
7741 |
<name>$action</name>
|
7742 |
<default><![CDATA[]]></default>
|
7743 |
<type/>
|
7744 |
</argument>
|
7745 |
+
<argument line="1536">
|
7746 |
<name>$key</name>
|
7747 |
<default><![CDATA[]]></default>
|
7748 |
<type/>
|
7749 |
</argument>
|
7750 |
+
<argument line="1536">
|
7751 |
<name>$value</name>
|
7752 |
<default><![CDATA[]]></default>
|
7753 |
<type/>
|
7754 |
</argument>
|
7755 |
+
<argument line="1536">
|
7756 |
<name>$args</name>
|
7757 |
<default><![CDATA[null]]></default>
|
7758 |
<type/>
|
7759 |
</argument>
|
7760 |
</method>
|
7761 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1600" package="Media Library Assistant">
|
7762 |
<name>mla_taxonomy_option_handler</name>
|
7763 |
<full_name>mla_taxonomy_option_handler</full_name>
|
7764 |
+
<docblock line="1587">
|
7765 |
<description><![CDATA[Render and manage taxonomy support options, e.g., Categories and Post Tags]]></description>
|
7766 |
<long-description><![CDATA[]]></long-description>
|
7767 |
+
<tag line="1587" name="since" description="0.30"/>
|
7768 |
+
<tag line="1587" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
|
7769 |
+
<tag line="1587" name="param" description="'render', 'update', 'delete', or 'reset'" type="string" variable="$action">
|
7770 |
<type by_reference="false">string</type>
|
7771 |
</tag>
|
7772 |
+
<tag line="1587" name="param" description="option name, e.g., 'tax_support', or 'tax_flat_checklist'" type="string" variable="$key">
|
7773 |
<type by_reference="false">string</type>
|
7774 |
</tag>
|
7775 |
+
<tag line="1587" name="param" description="option parameters" type="array" variable="$value">
|
7776 |
<type by_reference="false">array</type>
|
7777 |
</tag>
|
7778 |
+
<tag line="1587" name="param" description="Optional. null (default) for 'render' else option data, e.g., $_REQUEST" type="array" variable="$args">
|
7779 |
<type by_reference="false">array</type>
|
7780 |
</tag>
|
7781 |
+
<tag line="1587" name="return" description="HTML table row markup for 'render' else message(s) reflecting the results of the operation." type="string">
|
7782 |
<type by_reference="false">string</type>
|
7783 |
</tag>
|
7784 |
</docblock>
|
7785 |
+
<argument line="1600">
|
7786 |
<name>$action</name>
|
7787 |
<default><![CDATA[]]></default>
|
7788 |
<type/>
|
7789 |
</argument>
|
7790 |
+
<argument line="1600">
|
7791 |
<name>$key</name>
|
7792 |
<default><![CDATA[]]></default>
|
7793 |
<type/>
|
7794 |
</argument>
|
7795 |
+
<argument line="1600">
|
7796 |
<name>$value</name>
|
7797 |
<default><![CDATA[]]></default>
|
7798 |
<type/>
|
7799 |
</argument>
|
7800 |
+
<argument line="1600">
|
7801 |
<name>$args</name>
|
7802 |
<default><![CDATA[null]]></default>
|
7803 |
<type/>
|
7804 |
</argument>
|
7805 |
</method>
|
7806 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1764" package="Media Library Assistant">
|
7807 |
<name>mla_search_option_handler</name>
|
7808 |
<full_name>mla_search_option_handler</full_name>
|
7809 |
+
<docblock line="1751">
|
7810 |
<description><![CDATA[Render and manage Search box options, e.g., connector and search fields]]></description>
|
7811 |
<long-description><![CDATA[]]></long-description>
|
7812 |
+
<tag line="1751" name="since" description="1.90"/>
|
7813 |
+
<tag line="1751" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
|
7814 |
+
<tag line="1751" name="param" description="'render', 'update', 'delete', or 'reset'" type="string" variable="$action">
|
7815 |
<type by_reference="false">string</type>
|
7816 |
</tag>
|
7817 |
+
<tag line="1751" name="param" description="option name; 'search_connector' or 'search_fields'" type="string" variable="$key">
|
7818 |
<type by_reference="false">string</type>
|
7819 |
</tag>
|
7820 |
+
<tag line="1751" name="param" description="option parameters" type="array" variable="$value">
|
7821 |
<type by_reference="false">array</type>
|
7822 |
</tag>
|
7823 |
+
<tag line="1751" name="param" description="Optional. null (default) for 'render' else option data, e.g., $_REQUEST" type="array" variable="$args">
|
7824 |
<type by_reference="false">array</type>
|
7825 |
</tag>
|
7826 |
+
<tag line="1751" name="return" description="HTML table row markup for 'render' else message(s) reflecting the results of the operation." type="string">
|
7827 |
<type by_reference="false">string</type>
|
7828 |
</tag>
|
7829 |
</docblock>
|
7830 |
+
<argument line="1764">
|
7831 |
<name>$action</name>
|
7832 |
<default><![CDATA[]]></default>
|
7833 |
<type/>
|
7834 |
</argument>
|
7835 |
+
<argument line="1764">
|
7836 |
<name>$key</name>
|
7837 |
<default><![CDATA[]]></default>
|
7838 |
<type/>
|
7839 |
</argument>
|
7840 |
+
<argument line="1764">
|
7841 |
<name>$value</name>
|
7842 |
<default><![CDATA[]]></default>
|
7843 |
<type/>
|
7844 |
</argument>
|
7845 |
+
<argument line="1764">
|
7846 |
<name>$args</name>
|
7847 |
<default><![CDATA[null]]></default>
|
7848 |
<type/>
|
7849 |
</argument>
|
7850 |
</method>
|
7851 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1835" package="Media Library Assistant">
|
7852 |
<name>mla_wp_handle_upload_prefilter_filter</name>
|
7853 |
<full_name>mla_wp_handle_upload_prefilter_filter</full_name>
|
7854 |
+
<docblock line="1826">
|
7855 |
<description><![CDATA[Examine or alter the filename before the file is made permanent]]></description>
|
7856 |
<long-description><![CDATA[]]></long-description>
|
7857 |
+
<tag line="1826" name="since" description="1.70"/>
|
7858 |
+
<tag line="1826" name="param" description="file parameters ( 'name' )" type="array" variable="$file">
|
7859 |
<type by_reference="false">array</type>
|
7860 |
</tag>
|
7861 |
+
<tag line="1826" name="return" description="updated file parameters" type="array">
|
7862 |
<type by_reference="false">array</type>
|
7863 |
</tag>
|
7864 |
</docblock>
|
7865 |
+
<argument line="1835">
|
7866 |
<name>$file</name>
|
7867 |
<default><![CDATA[]]></default>
|
7868 |
<type/>
|
7869 |
</argument>
|
7870 |
</method>
|
7871 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1866" package="Media Library Assistant">
|
7872 |
<name>mla_wp_handle_upload_filter</name>
|
7873 |
<full_name>mla_wp_handle_upload_filter</full_name>
|
7874 |
+
<docblock line="1857">
|
7875 |
<description><![CDATA[Called once for each file uploaded]]></description>
|
7876 |
<long-description><![CDATA[]]></long-description>
|
7877 |
+
<tag line="1857" name="since" description="1.70"/>
|
7878 |
+
<tag line="1857" name="param" description="file parameters ( 'name' )" type="array" variable="$file">
|
7879 |
<type by_reference="false">array</type>
|
7880 |
</tag>
|
7881 |
+
<tag line="1857" name="return" description="updated file parameters" type="array">
|
7882 |
<type by_reference="false">array</type>
|
7883 |
</tag>
|
7884 |
</docblock>
|
7885 |
+
<argument line="1866">
|
7886 |
<name>$file</name>
|
7887 |
<default><![CDATA[]]></default>
|
7888 |
<type/>
|
7889 |
</argument>
|
7890 |
</method>
|
7891 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1910" package="Media Library Assistant">
|
7892 |
<name>mla_add_attachment_action</name>
|
7893 |
<full_name>mla_add_attachment_action</full_name>
|
7894 |
+
<docblock line="1899">
|
7895 |
<description><![CDATA[Set $add_attachment_id to just-inserted attachment]]></description>
|
7896 |
<long-description><![CDATA[<p>All of the actual processing is done later, in mla_update_attachment_metadata_filter.</p>]]></long-description>
|
7897 |
+
<tag line="1899" name="since" description="1.00"/>
|
7898 |
+
<tag line="1899" name="param" description="ID of just-inserted attachment" type="integer" variable="$post_ID">
|
7899 |
<type by_reference="false">integer</type>
|
7900 |
</tag>
|
7901 |
+
<tag line="1899" name="return" description="" type="void">
|
7902 |
<type by_reference="false">void</type>
|
7903 |
</tag>
|
7904 |
</docblock>
|
7905 |
+
<argument line="1910">
|
7906 |
<name>$post_ID</name>
|
7907 |
<default><![CDATA[]]></default>
|
7908 |
<type/>
|
7909 |
</argument>
|
7910 |
</method>
|
7911 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1925" package="Media Library Assistant">
|
7912 |
<name>_update_attachment_metadata</name>
|
7913 |
<full_name>_update_attachment_metadata</full_name>
|
7914 |
+
<docblock line="1915">
|
7915 |
<description><![CDATA[Update _wp_attachment_metadata for just-inserted attachment]]></description>
|
7916 |
<long-description><![CDATA[]]></long-description>
|
7917 |
+
<tag line="1915" name="since" description="1.70"/>
|
7918 |
+
<tag line="1915" name="param" description="Attachment metadata updates" type="array" variable="$updates">
|
7919 |
<type by_reference="false">array</type>
|
7920 |
</tag>
|
7921 |
+
<tag line="1915" name="param" description="Attachment metadata, by reference; updated by this function" type="array" variable="$data">
|
7922 |
<type by_reference="false">array</type>
|
7923 |
</tag>
|
7924 |
+
<tag line="1915" name="return" description="Attachment metadata updates, with "meta:" elements removed" type="array">
|
7925 |
<type by_reference="false">array</type>
|
7926 |
</tag>
|
7927 |
</docblock>
|
7928 |
+
<argument line="1925">
|
7929 |
<name>$updates</name>
|
7930 |
<default><![CDATA[]]></default>
|
7931 |
<type/>
|
7932 |
</argument>
|
7933 |
+
<argument line="1925">
|
7934 |
<name>$data</name>
|
7935 |
<default><![CDATA[]]></default>
|
7936 |
<type/>
|
7937 |
</argument>
|
7938 |
</method>
|
7939 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1961" package="Media Library Assistant">
|
7940 |
<name>mla_update_attachment_metadata_filter</name>
|
7941 |
<full_name>mla_update_attachment_metadata_filter</full_name>
|
7942 |
+
<docblock line="1948">
|
7943 |
<description><![CDATA[Perform IPTC/EXIF and Custom Field mapping on just-inserted attachment]]></description>
|
7944 |
<long-description><![CDATA[<p>This filter tests the $add_attachment_id variable set by the mla_add_attachment_action
|
7945 |
to ensure that mapping is only performed for new additions, not metadata updates.</p>]]></long-description>
|
7946 |
+
<tag line="1948" name="since" description="1.10"/>
|
7947 |
+
<tag line="1948" name="param" description="Attachment metadata for just-inserted attachment" type="array" variable="$data">
|
7948 |
<type by_reference="false">array</type>
|
7949 |
</tag>
|
7950 |
+
<tag line="1948" name="param" description="ID of just-inserted attachment" type="integer" variable="$post_id">
|
7951 |
<type by_reference="false">integer</type>
|
7952 |
</tag>
|
7953 |
+
<tag line="1948" name="return" description="Updated attachment metadata" type="array">
|
7954 |
<type by_reference="false">array</type>
|
7955 |
</tag>
|
7956 |
</docblock>
|
7957 |
+
<argument line="1961">
|
7958 |
<name>$data</name>
|
7959 |
<default><![CDATA[]]></default>
|
7960 |
<type/>
|
7961 |
</argument>
|
7962 |
+
<argument line="1961">
|
7963 |
<name>$post_id</name>
|
7964 |
<default><![CDATA[]]></default>
|
7965 |
<type/>
|
7966 |
</argument>
|
7967 |
</method>
|
7968 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2043" package="Media Library Assistant">
|
7969 |
<name>mla_custom_field_option_value</name>
|
7970 |
<full_name>mla_custom_field_option_value</full_name>
|
7971 |
+
<docblock line="2034">
|
7972 |
<description><![CDATA[Fetch custom field option value given a slug]]></description>
|
7973 |
<long-description><![CDATA[]]></long-description>
|
7974 |
+
<tag line="2034" name="since" description="1.10"/>
|
7975 |
+
<tag line="2034" name="param" description="slug, e.g., 'c_file-size' for the 'File Size' field" type="string" variable="$slug">
|
7976 |
<type by_reference="false">string</type>
|
7977 |
</tag>
|
7978 |
+
<tag line="2034" name="return" description="option value, e.g., array( 'name' => 'File Size', ... )" type="array">
|
7979 |
<type by_reference="false">array</type>
|
7980 |
</tag>
|
7981 |
</docblock>
|
7982 |
+
<argument line="2043">
|
7983 |
<name>$slug</name>
|
7984 |
<default><![CDATA[]]></default>
|
7985 |
<type/>
|
7986 |
</argument>
|
7987 |
</method>
|
7988 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2064" package="Media Library Assistant">
|
7989 |
<name>mla_custom_field_support</name>
|
7990 |
<full_name>mla_custom_field_support</full_name>
|
7991 |
+
<docblock line="2055">
|
7992 |
<description><![CDATA[Evaluate file information for custom field mapping]]></description>
|
7993 |
<long-description><![CDATA[]]></long-description>
|
7994 |
+
<tag line="2055" name="since" description="1.10"/>
|
7995 |
+
<tag line="2055" name="param" description="array format; 'default_columns' (default), 'default_hidden_columns', 'default_sortable_columns', 'quick_edit' or 'bulk_edit'" type="string" variable="$support_type">
|
7996 |
<type by_reference="false">string</type>
|
7997 |
</tag>
|
7998 |
+
<tag line="2055" name="return" description="default, hidden, sortable quick_edit or bulk_edit colums in appropriate format" type="array">
|
7999 |
<type by_reference="false">array</type>
|
8000 |
</tag>
|
8001 |
</docblock>
|
8002 |
+
<argument line="2064">
|
8003 |
<name>$support_type</name>
|
8004 |
<default><![CDATA['default_columns']]></default>
|
8005 |
<type/>
|
8006 |
</argument>
|
8007 |
</method>
|
8008 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2115" package="Media Library Assistant">
|
8009 |
<name>_evaluate_file_information</name>
|
8010 |
<full_name>_evaluate_file_information</full_name>
|
8011 |
+
<docblock line="2103">
|
8012 |
<description><![CDATA[Evaluate file information for custom field mapping]]></description>
|
8013 |
<long-description><![CDATA[]]></long-description>
|
8014 |
+
<tag line="2103" name="since" description="1.10"/>
|
8015 |
+
<tag line="2103" name="param" description="absolute path the the uploads base directory" type="string" variable="$upload_dir">
|
8016 |
<type by_reference="false">string</type>
|
8017 |
</tag>
|
8018 |
+
<tag line="2103" name="param" description="_wp_attached_file meta_value array, indexed by post_id" type="array" variable="$wp_attached_files">
|
8019 |
<type by_reference="false">array</type>
|
8020 |
</tag>
|
8021 |
+
<tag line="2103" name="param" description="_wp_attachment_metadata meta_value array, indexed by post_id" type="array" variable="$wp_attachment_metadata">
|
8022 |
<type by_reference="false">array</type>
|
8023 |
</tag>
|
8024 |
+
<tag line="2103" name="param" description="post->ID of attachment" type="integer" variable="$post_id">
|
8025 |
<type by_reference="false">integer</type>
|
8026 |
</tag>
|
8027 |
+
<tag line="2103" 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">
|
8028 |
<type by_reference="false">array</type>
|
8029 |
</tag>
|
8030 |
</docblock>
|
8031 |
+
<argument line="2115">
|
8032 |
<name>$upload_dir</name>
|
8033 |
<default><![CDATA[]]></default>
|
8034 |
<type/>
|
8035 |
</argument>
|
8036 |
+
<argument line="2115">
|
8037 |
<name>$wp_attached_files</name>
|
8038 |
<default><![CDATA[]]></default>
|
8039 |
<type/>
|
8040 |
</argument>
|
8041 |
+
<argument line="2115">
|
8042 |
<name>$wp_attachment_metadata</name>
|
8043 |
<default><![CDATA[]]></default>
|
8044 |
<type/>
|
8045 |
</argument>
|
8046 |
+
<argument line="2115">
|
8047 |
<name>$post_id</name>
|
8048 |
<default><![CDATA[]]></default>
|
8049 |
<type/>
|
8050 |
</argument>
|
8051 |
</method>
|
8052 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2201" package="Media Library Assistant">
|
8053 |
<name>_evaluate_post_information</name>
|
8054 |
<full_name>_evaluate_post_information</full_name>
|
8055 |
+
<docblock line="2190">
|
8056 |
<description><![CDATA[Evaluate post information for custom field mapping]]></description>
|
8057 |
<long-description><![CDATA[]]></long-description>
|
8058 |
+
<tag line="2190" name="since" description="1.40"/>
|
8059 |
+
<tag line="2190" name="param" description="post->ID of attachment" type="integer" variable="$post_id">
|
8060 |
<type by_reference="false">integer</type>
|
8061 |
</tag>
|
8062 |
+
<tag line="2190" name="param" description="category/scope to evaluate against: custom_field_mapping or single_attachment_mapping" type="string" variable="$category">
|
8063 |
<type by_reference="false">string</type>
|
8064 |
</tag>
|
8065 |
+
<tag line="2190" name="param" description="data source name ( post_date or post_parent )" type="string" variable="$data_source">
|
8066 |
<type by_reference="false">string</type>
|
8067 |
</tag>
|
8068 |
+
<tag line="2190" name="return" description="'post_date' => (string) upload date, 'post_parent' => (integer) ID of parent or zero )" type="mixed">
|
8069 |
<type by_reference="false">mixed</type>
|
8070 |
</tag>
|
8071 |
</docblock>
|
8072 |
+
<argument line="2201">
|
8073 |
<name>$post_id</name>
|
8074 |
<default><![CDATA[]]></default>
|
8075 |
<type/>
|
8076 |
</argument>
|
8077 |
+
<argument line="2201">
|
8078 |
<name>$category</name>
|
8079 |
<default><![CDATA[]]></default>
|
8080 |
<type/>
|
8081 |
</argument>
|
8082 |
+
<argument line="2201">
|
8083 |
<name>$data_source</name>
|
8084 |
<default><![CDATA[]]></default>
|
8085 |
<type/>
|
8086 |
</argument>
|
8087 |
</method>
|
8088 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2252" package="Media Library Assistant">
|
8089 |
<name>_evaluate_array_result</name>
|
8090 |
<full_name>_evaluate_array_result</full_name>
|
8091 |
+
<docblock line="2241">
|
8092 |
<description><![CDATA[Evaluate post information for custom field mapping]]></description>
|
8093 |
<long-description><![CDATA[]]></long-description>
|
8094 |
+
<tag line="2241" name="since" description="1.40"/>
|
8095 |
+
<tag line="2241" name="param" description="field value(s)" type="array" variable="$value">
|
8096 |
<type by_reference="false">array</type>
|
8097 |
</tag>
|
8098 |
+
<tag line="2241" name="param" description="format option text|single|export|array|multi" type="string" variable="$option">
|
8099 |
<type by_reference="false">string</type>
|
8100 |
</tag>
|
8101 |
+
<tag line="2241" name="param" description="keep existing value(s) - for 'multi' option" type="boolean" variable="$keep_existing">
|
8102 |
<type by_reference="false">boolean</type>
|
8103 |
</tag>
|
8104 |
+
<tag line="2241" name="return" description="array for option = array|multi else string" type="mixed">
|
8105 |
<type by_reference="false">mixed</type>
|
8106 |
</tag>
|
8107 |
</docblock>
|
8108 |
+
<argument line="2252">
|
8109 |
<name>$value</name>
|
8110 |
<default><![CDATA[]]></default>
|
8111 |
<type/>
|
8112 |
</argument>
|
8113 |
+
<argument line="2252">
|
8114 |
<name>$option</name>
|
8115 |
<default><![CDATA[]]></default>
|
8116 |
<type/>
|
8117 |
</argument>
|
8118 |
+
<argument line="2252">
|
8119 |
<name>$keep_existing</name>
|
8120 |
<default><![CDATA[]]></default>
|
8121 |
<type/>
|
8122 |
</argument>
|
8123 |
</method>
|
8124 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2292" package="Media Library Assistant">
|
8125 |
<name>mla_get_data_source</name>
|
8126 |
<full_name>mla_get_data_source</full_name>
|
8127 |
+
<docblock line="2277">
|
8128 |
<description><![CDATA[Get IPTC/EXIF or custom field mapping data source]]></description>
|
8129 |
<long-description><![CDATA[<p>Defined as public so MLA Mapping Hooks clients can call it.
|
8130 |
Isolates clients from changes to _evaluate_data_source().</p>]]></long-description>
|
8131 |
+
<tag line="2277" name="since" description="1.70"/>
|
8132 |
+
<tag line="2277" name="param" description="post->ID of attachment" type="integer" variable="$post_id">
|
8133 |
<type by_reference="false">integer</type>
|
8134 |
</tag>
|
8135 |
+
<tag line="2277" name="param" description="category/scope to evaluate against: custom_field_mapping or single_attachment_mapping" type="string" variable="$category">
|
8136 |
<type by_reference="false">string</type>
|
8137 |
</tag>
|
8138 |
+
<tag line="2277" 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">
|
8139 |
<type by_reference="false">array</type>
|
8140 |
</tag>
|
8141 |
+
<tag line="2277" name="param" description="(optional) _wp_attachment_metadata, default NULL (use current postmeta database value)" type="array" variable="$attachment_metadata">
|
8142 |
<type by_reference="false">array</type>
|
8143 |
</tag>
|
8144 |
+
<tag line="2277" name="return" description="data source value" type="string|array">
|
8145 |
<type by_reference="false">string</type>
|
8146 |
<type by_reference="false">array</type>
|
8147 |
</tag>
|
8148 |
</docblock>
|
8149 |
+
<argument line="2292">
|
8150 |
<name>$post_id</name>
|
8151 |
<default><![CDATA[]]></default>
|
8152 |
<type/>
|
8153 |
</argument>
|
8154 |
+
<argument line="2292">
|
8155 |
<name>$category</name>
|
8156 |
<default><![CDATA[]]></default>
|
8157 |
<type/>
|
8158 |
</argument>
|
8159 |
+
<argument line="2292">
|
8160 |
<name>$data_value</name>
|
8161 |
<default><![CDATA[]]></default>
|
8162 |
<type/>
|
8163 |
</argument>
|
8164 |
+
<argument line="2292">
|
8165 |
<name>$attachment_metadata</name>
|
8166 |
<default><![CDATA[NULL]]></default>
|
8167 |
<type/>
|
8168 |
</argument>
|
8169 |
</method>
|
8170 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2317" package="Media Library Assistant">
|
8171 |
<name>mla_is_data_source</name>
|
8172 |
<full_name>mla_is_data_source</full_name>
|
8173 |
+
<docblock line="2305">
|
8174 |
<description><![CDATA[Identify custom field mapping data source]]></description>
|
8175 |
<long-description><![CDATA[<p>Determines whether a name matches any of the element-level data source dropdown options, i.e.,
|
8176 |
excludes "template:" and "meta:" values.</p>]]></long-description>
|
8177 |
+
<tag line="2305" name="since" description="1.80"/>
|
8178 |
+
<tag line="2305" name="param" description="candidate data source name" type="string" variable="$candidate_name">
|
8179 |
<type by_reference="false">string</type>
|
8180 |
</tag>
|
8181 |
+
<tag line="2305" name="return" description="true if candidate name matches a data source" type="boolean">
|
8182 |
<type by_reference="false">boolean</type>
|
8183 |
</tag>
|
8184 |
</docblock>
|
8185 |
+
<argument line="2317">
|
8186 |
<name>$candidate_name</name>
|
8187 |
<default><![CDATA[]]></default>
|
8188 |
<type/>
|
8189 |
</argument>
|
8190 |
</method>
|
8191 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2352" package="Media Library Assistant">
|
8192 |
<name>_evaluate_data_source</name>
|
8193 |
<full_name>_evaluate_data_source</full_name>
|
8194 |
+
<docblock line="2340">
|
8195 |
<description><![CDATA[Evaluate custom field mapping data source]]></description>
|
8196 |
<long-description><![CDATA[]]></long-description>
|
8197 |
+
<tag line="2340" name="since" description="1.10"/>
|
8198 |
+
<tag line="2340" name="param" description="post->ID of attachment" type="integer" variable="$post_id">
|
8199 |
<type by_reference="false">integer</type>
|
8200 |
</tag>
|
8201 |
+
<tag line="2340" name="param" description="category/scope to evaluate against: custom_field_mapping or single_attachment_mapping" type="string" variable="$category">
|
8202 |
<type by_reference="false">string</type>
|
8203 |
</tag>
|
8204 |
+
<tag line="2340" 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">
|
8205 |
<type by_reference="false">array</type>
|
8206 |
</tag>
|
8207 |
+
<tag line="2340" name="param" description="(optional) _wp_attachment_metadata, default NULL (use current postmeta database value)" type="array" variable="$attachment_metadata">
|
8208 |
<type by_reference="false">array</type>
|
8209 |
</tag>
|
8210 |
+
<tag line="2340" name="return" description="data source value" type="string|array">
|
8211 |
<type by_reference="false">string</type>
|
8212 |
<type by_reference="false">array</type>
|
8213 |
</tag>
|
8214 |
</docblock>
|
8215 |
+
<argument line="2352">
|
8216 |
<name>$post_id</name>
|
8217 |
<default><![CDATA[]]></default>
|
8218 |
<type/>
|
8219 |
</argument>
|
8220 |
+
<argument line="2352">
|
8221 |
<name>$category</name>
|
8222 |
<default><![CDATA[]]></default>
|
8223 |
<type/>
|
8224 |
</argument>
|
8225 |
+
<argument line="2352">
|
8226 |
<name>$data_value</name>
|
8227 |
<default><![CDATA[]]></default>
|
8228 |
<type/>
|
8229 |
</argument>
|
8230 |
+
<argument line="2352">
|
8231 |
<name>$attachment_metadata</name>
|
8232 |
<default><![CDATA[NULL]]></default>
|
8233 |
<type/>
|
8234 |
</argument>
|
8235 |
</method>
|
8236 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2781" package="Media Library Assistant">
|
8237 |
<name>mla_evaluate_custom_field_mapping</name>
|
8238 |
<full_name>mla_evaluate_custom_field_mapping</full_name>
|
8239 |
+
<docblock line="2769">
|
8240 |
<description><![CDATA[Evaluate custom field mapping updates for a post]]></description>
|
8241 |
<long-description><![CDATA[]]></long-description>
|
8242 |
+
<tag line="2769" name="since" description="1.10"/>
|
8243 |
+
<tag line="2769" name="param" description="post ID to be evaluated" type="integer" variable="$post_id">
|
8244 |
<type by_reference="false">integer</type>
|
8245 |
</tag>
|
8246 |
+
<tag line="2769" name="param" description="category/scope to evaluate against: custom_field_mapping or single_attachment_mapping" type="string" variable="$category">
|
8247 |
<type by_reference="false">string</type>
|
8248 |
</tag>
|
8249 |
+
<tag line="2769" name="param" description="(optional) custom_field_mapping values, default NULL (use current option value)" type="array" variable="$settings">
|
8250 |
<type by_reference="false">array</type>
|
8251 |
</tag>
|
8252 |
+
<tag line="2769" name="param" description="(optional) attachment_metadata, default NULL (use current postmeta database value)" type="array" variable="$attachment_metadata">
|
8253 |
<type by_reference="false">array</type>
|
8254 |
</tag>
|
8255 |
+
<tag line="2769" name="return" description="Updates suitable for MLAData::mla_update_single_item, if any" type="array">
|
8256 |
<type by_reference="false">array</type>
|
8257 |
</tag>
|
8258 |
</docblock>
|
8259 |
+
<argument line="2781">
|
8260 |
<name>$post_id</name>
|
8261 |
<default><![CDATA[]]></default>
|
8262 |
<type/>
|
8263 |
</argument>
|
8264 |
+
<argument line="2781">
|
8265 |
<name>$category</name>
|
8266 |
<default><![CDATA[]]></default>
|
8267 |
<type/>
|
8268 |
</argument>
|
8269 |
+
<argument line="2781">
|
8270 |
<name>$settings</name>
|
8271 |
<default><![CDATA[NULL]]></default>
|
8272 |
<type/>
|
8273 |
</argument>
|
8274 |
+
<argument line="2781">
|
8275 |
<name>$attachment_metadata</name>
|
8276 |
<default><![CDATA[NULL]]></default>
|
8277 |
<type/>
|
8278 |
</argument>
|
8279 |
</method>
|
8280 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2880" package="Media Library Assistant">
|
8281 |
<name>_compose_custom_field_option_list</name>
|
8282 |
<full_name>_compose_custom_field_option_list</full_name>
|
8283 |
+
<docblock line="2869">
|
8284 |
<description><![CDATA[Compose a Custom Field Options list with current selection]]></description>
|
8285 |
<long-description><![CDATA[]]></long-description>
|
8286 |
+
<tag line="2869" name="since" description="1.10"/>
|
8287 |
+
<tag line="2869" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
|
8288 |
+
<tag line="2869" name="param" description="current selection or 'none' (default)" type="string" variable="$selection">
|
8289 |
<type by_reference="false">string</type>
|
8290 |
</tag>
|
8291 |
+
<tag line="2869" name="param" description="optional list of terms to exclude from the list" type="array" variable="$blacklist">
|
8292 |
<type by_reference="false">array</type>
|
8293 |
</tag>
|
8294 |
+
<tag line="2869" name="return" description="HTML markup with select field options" type="string">
|
8295 |
<type by_reference="false">string</type>
|
8296 |
</tag>
|
8297 |
</docblock>
|
8298 |
+
<argument line="2880">
|
8299 |
<name>$selection</name>
|
8300 |
<default><![CDATA['none']]></default>
|
8301 |
<type/>
|
8302 |
</argument>
|
8303 |
+
<argument line="2880">
|
8304 |
<name>$blacklist</name>
|
8305 |
<default><![CDATA[array()]]></default>
|
8306 |
<type/>
|
8307 |
</argument>
|
8308 |
</method>
|
8309 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2999" package="Media Library Assistant">
|
8310 |
<name>_compose_data_source_option_list</name>
|
8311 |
<full_name>_compose_data_source_option_list</full_name>
|
8312 |
+
<docblock line="2989">
|
8313 |
<description><![CDATA[Compose a (Custom Field) Data Source Options list with current selection]]></description>
|
8314 |
<long-description><![CDATA[]]></long-description>
|
8315 |
+
<tag line="2989" name="since" description="1.10"/>
|
8316 |
+
<tag line="2989" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
|
8317 |
+
<tag line="2989" name="param" description="current selection or 'none' (default)" type="string" variable="$selection">
|
8318 |
<type by_reference="false">string</type>
|
8319 |
</tag>
|
8320 |
+
<tag line="2989" name="return" description="HTML markup with select field options" type="string">
|
8321 |
<type by_reference="false">string</type>
|
8322 |
</tag>
|
8323 |
</docblock>
|
8324 |
+
<argument line="2999">
|
8325 |
<name>$selection</name>
|
8326 |
<default><![CDATA['none']]></default>
|
8327 |
<type/>
|
8328 |
</argument>
|
8329 |
</method>
|
8330 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3063" package="Media Library Assistant">
|
8331 |
<name>_update_custom_field_mapping</name>
|
8332 |
<full_name>_update_custom_field_mapping</full_name>
|
8333 |
+
<docblock line="3053">
|
8334 |
<description><![CDATA[Update custom field mappings]]></description>
|
8335 |
<long-description><![CDATA[]]></long-description>
|
8336 |
+
<tag line="3053" name="since" description="1.10"/>
|
8337 |
+
<tag line="3053" name="param" description="current custom_field_mapping values" type="array" variable="$current_values">
|
8338 |
<type by_reference="false">array</type>
|
8339 |
</tag>
|
8340 |
+
<tag line="3053" name="param" description="new values" type="array" variable="$new_values">
|
8341 |
<type by_reference="false">array</type>
|
8342 |
</tag>
|
8343 |
+
<tag line="3053" 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">
|
8344 |
<type by_reference="false">array</type>
|
8345 |
</tag>
|
8346 |
</docblock>
|
8347 |
+
<argument line="3063">
|
8348 |
<name>$current_values</name>
|
8349 |
<default><![CDATA[]]></default>
|
8350 |
<type/>
|
8351 |
</argument>
|
8352 |
+
<argument line="3063">
|
8353 |
<name>$new_values</name>
|
8354 |
<default><![CDATA[]]></default>
|
8355 |
<type/>
|
8356 |
</argument>
|
8357 |
</method>
|
8358 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="3276" package="Media Library Assistant">
|
8359 |
<name>mla_custom_field_option_handler</name>
|
8360 |
<full_name>mla_custom_field_option_handler</full_name>
|
8361 |
+
<docblock line="3263">
|
8362 |
<description><![CDATA[Render and manage custom field mapping options]]></description>
|
8363 |
<long-description><![CDATA[]]></long-description>
|
8364 |
+
<tag line="3263" name="since" description="1.10"/>
|
8365 |
+
<tag line="3263" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
|
8366 |
+
<tag line="3263" name="param" description="'render', 'update', 'delete', or 'reset'" type="string" variable="$action">
|
8367 |
<type by_reference="false">string</type>
|
8368 |
</tag>
|
8369 |
+
<tag line="3263" name="param" description="option name, e.g., 'custom_field_mapping'" type="string" variable="$key">
|
8370 |
<type by_reference="false">string</type>
|
8371 |
</tag>
|
8372 |
+
<tag line="3263" name="param" description="option parameters" type="array" variable="$value">
|
8373 |
<type by_reference="false">array</type>
|
8374 |
</tag>
|
8375 |
+
<tag line="3263" name="param" description="Optional. null (default) for 'render' else option data, e.g., $_REQUEST" type="array" variable="$args">
|
8376 |
<type by_reference="false">array</type>
|
8377 |
</tag>
|
8378 |
+
<tag line="3263" name="return" description="HTML table row markup for 'render' else message(s) reflecting the results of the operation." type="string">
|
8379 |
<type by_reference="false">string</type>
|
8380 |
</tag>
|
8381 |
</docblock>
|
8382 |
+
<argument line="3276">
|
8383 |
<name>$action</name>
|
8384 |
<default><![CDATA[]]></default>
|
8385 |
<type/>
|
8386 |
</argument>
|
8387 |
+
<argument line="3276">
|
8388 |
<name>$key</name>
|
8389 |
<default><![CDATA[]]></default>
|
8390 |
<type/>
|
8391 |
</argument>
|
8392 |
+
<argument line="3276">
|
8393 |
<name>$value</name>
|
8394 |
<default><![CDATA[]]></default>
|
8395 |
<type/>
|
8396 |
</argument>
|
8397 |
+
<argument line="3276">
|
8398 |
<name>$args</name>
|
8399 |
<default><![CDATA[null]]></default>
|
8400 |
<type/>
|
8401 |
</argument>
|
8402 |
</method>
|
8403 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="3529" package="Media Library Assistant">
|
8404 |
<name>mla_evaluate_iptc_exif_mapping</name>
|
8405 |
<full_name>mla_evaluate_iptc_exif_mapping</full_name>
|
8406 |
+
<docblock line="3517">
|
8407 |
<description><![CDATA[Evaluate IPTC/EXIF mapping updates for a post]]></description>
|
8408 |
<long-description><![CDATA[]]></long-description>
|
8409 |
+
<tag line="3517" name="since" description="1.00"/>
|
8410 |
+
<tag line="3517" name="param" description="post object with current values" type="object" variable="$post">
|
8411 |
<type by_reference="false">object</type>
|
8412 |
</tag>
|
8413 |
+
<tag line="3517" name="param" description="category to evaluate against, e.g., iptc_exif_standard_mapping or iptc_exif_mapping" type="string" variable="$category">
|
8414 |
<type by_reference="false">string</type>
|
8415 |
</tag>
|
8416 |
+
<tag line="3517" name="param" description="(optional) iptc_exif_mapping values, default - current option value" type="array" variable="$settings">
|
8417 |
<type by_reference="false">array</type>
|
8418 |
</tag>
|
8419 |
+
<tag line="3517" name="param" description="(optional) _wp_attachment_metadata, for MLAOptions::mla_update_attachment_metadata_filter" type="array" variable="$attachment_metadata">
|
8420 |
<type by_reference="false">array</type>
|
8421 |
</tag>
|
8422 |
+
<tag line="3517" name="return" description="Updates suitable for MLAData::mla_update_single_item, if any" type="array">
|
8423 |
<type by_reference="false">array</type>
|
8424 |
</tag>
|
8425 |
</docblock>
|
8426 |
+
<argument line="3529">
|
8427 |
<name>$post</name>
|
8428 |
<default><![CDATA[]]></default>
|
8429 |
<type/>
|
8430 |
</argument>
|
8431 |
+
<argument line="3529">
|
8432 |
<name>$category</name>
|
8433 |
<default><![CDATA[]]></default>
|
8434 |
<type/>
|
8435 |
</argument>
|
8436 |
+
<argument line="3529">
|
8437 |
<name>$settings</name>
|
8438 |
<default><![CDATA[NULL]]></default>
|
8439 |
<type/>
|
8440 |
</argument>
|
8441 |
+
<argument line="3529">
|
8442 |
<name>$attachment_metadata</name>
|
8443 |
<default><![CDATA[NULL]]></default>
|
8444 |
<type/>
|
8445 |
</argument>
|
8446 |
</method>
|
8447 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3840" package="Media Library Assistant">
|
8448 |
<name>_compose_iptc_option_list</name>
|
8449 |
<full_name>_compose_iptc_option_list</full_name>
|
8450 |
+
<docblock line="3830">
|
8451 |
<description><![CDATA[Compose an IPTC Options list with current selection]]></description>
|
8452 |
<long-description><![CDATA[]]></long-description>
|
8453 |
+
<tag line="3830" name="since" description="1.00"/>
|
8454 |
+
<tag line="3830" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
|
8455 |
+
<tag line="3830" name="param" description="current selection or 'none' (default)" type="string" variable="$selection">
|
8456 |
<type by_reference="false">string</type>
|
8457 |
</tag>
|
8458 |
+
<tag line="3830" name="return" description="HTML markup with select field options" type="string">
|
8459 |
<type by_reference="false">string</type>
|
8460 |
</tag>
|
8461 |
</docblock>
|
8462 |
+
<argument line="3840">
|
8463 |
<name>$selection</name>
|
8464 |
<default><![CDATA['none']]></default>
|
8465 |
<type/>
|
8466 |
</argument>
|
8467 |
</method>
|
8468 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3873" package="Media Library Assistant">
|
8469 |
<name>_compose_parent_option_list</name>
|
8470 |
<full_name>_compose_parent_option_list</full_name>
|
8471 |
+
<docblock line="3862">
|
8472 |
<description><![CDATA[Compose an hierarchical taxonomy Parent options list with current selection]]></description>
|
8473 |
<long-description><![CDATA[]]></long-description>
|
8474 |
+
<tag line="3862" name="since" description="1.00"/>
|
8475 |
+
<tag line="3862" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
|
8476 |
+
<tag line="3862" name="param" description="taxonomy slug" type="string" variable="$taxonomy">
|
8477 |
<type by_reference="false">string</type>
|
8478 |
</tag>
|
8479 |
+
<tag line="3862" name="param" description="current selection or 0 (zero, default)" type="integer" variable="$selection">
|
8480 |
<type by_reference="false">integer</type>
|
8481 |
</tag>
|
8482 |
+
<tag line="3862" name="return" description="HTML markup with select field options" type="string">
|
8483 |
<type by_reference="false">string</type>
|
8484 |
</tag>
|
8485 |
</docblock>
|
8486 |
+
<argument line="3873">
|
8487 |
<name>$taxonomy</name>
|
8488 |
<default><![CDATA[]]></default>
|
8489 |
<type/>
|
8490 |
</argument>
|
8491 |
+
<argument line="3873">
|
8492 |
<name>$selection</name>
|
8493 |
<default><![CDATA[0]]></default>
|
8494 |
<type/>
|
8495 |
</argument>
|
8496 |
</method>
|
8497 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3919" package="Media Library Assistant">
|
8498 |
<name>_update_iptc_exif_standard_mapping</name>
|
8499 |
<full_name>_update_iptc_exif_standard_mapping</full_name>
|
8500 |
+
<docblock line="3909">
|
8501 |
<description><![CDATA[Update Standard field portion of IPTC/EXIF mappings]]></description>
|
8502 |
<long-description><![CDATA[]]></long-description>
|
8503 |
+
<tag line="3909" name="since" description="1.00"/>
|
8504 |
+
<tag line="3909" name="param" description="current iptc_exif_mapping values" type="array" variable="$current_values">
|
8505 |
<type by_reference="false">array</type>
|
8506 |
</tag>
|
8507 |
+
<tag line="3909" name="param" description="new values" type="array" variable="$new_values">
|
8508 |
<type by_reference="false">array</type>
|
8509 |
</tag>
|
8510 |
+
<tag line="3909" 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">
|
8511 |
<type by_reference="false">array</type>
|
8512 |
</tag>
|
8513 |
</docblock>
|
8514 |
+
<argument line="3919">
|
8515 |
<name>$current_values</name>
|
8516 |
<default><![CDATA[]]></default>
|
8517 |
<type/>
|
8518 |
</argument>
|
8519 |
+
<argument line="3919">
|
8520 |
<name>$new_values</name>
|
8521 |
<default><![CDATA[]]></default>
|
8522 |
<type/>
|
8523 |
</argument>
|
8524 |
</method>
|
8525 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="4012" package="Media Library Assistant">
|
8526 |
<name>_update_iptc_exif_taxonomy_mapping</name>
|
8527 |
<full_name>_update_iptc_exif_taxonomy_mapping</full_name>
|
8528 |
+
<docblock line="4002">
|
8529 |
<description><![CDATA[Update Taxonomy term portion of IPTC/EXIF mappings]]></description>
|
8530 |
<long-description><![CDATA[]]></long-description>
|
8531 |
+
<tag line="4002" name="since" description="1.00"/>
|
8532 |
+
<tag line="4002" name="param" description="current iptc_exif_mapping values" type="array" variable="$current_values">
|
8533 |
<type by_reference="false">array</type>
|
8534 |
</tag>
|
8535 |
+
<tag line="4002" name="param" description="new values" type="array" variable="$new_values">
|
8536 |
<type by_reference="false">array</type>
|
8537 |
</tag>
|
8538 |
+
<tag line="4002" 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">
|
8539 |
<type by_reference="false">array</type>
|
8540 |
</tag>
|
8541 |
</docblock>
|
8542 |
+
<argument line="4012">
|
8543 |
<name>$current_values</name>
|
8544 |
<default><![CDATA[]]></default>
|
8545 |
<type/>
|
8546 |
</argument>
|
8547 |
+
<argument line="4012">
|
8548 |
<name>$new_values</name>
|
8549 |
<default><![CDATA[]]></default>
|
8550 |
<type/>
|
8551 |
</argument>
|
8552 |
</method>
|
8553 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="4127" package="Media Library Assistant">
|
8554 |
<name>_update_iptc_exif_custom_mapping</name>
|
8555 |
<full_name>_update_iptc_exif_custom_mapping</full_name>
|
8556 |
+
<docblock line="4117">
|
8557 |
<description><![CDATA[Update Custom field portion of IPTC/EXIF mappings]]></description>
|
8558 |
<long-description><![CDATA[]]></long-description>
|
8559 |
+
<tag line="4117" name="since" description="1.00"/>
|
8560 |
+
<tag line="4117" name="param" description="current iptc_exif_mapping values" type="array" variable="$current_values">
|
8561 |
<type by_reference="false">array</type>
|
8562 |
</tag>
|
8563 |
+
<tag line="4117" name="param" description="new values" type="array" variable="$new_values">
|
8564 |
<type by_reference="false">array</type>
|
8565 |
</tag>
|
8566 |
+
<tag line="4117" 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">
|
8567 |
<type by_reference="false">array</type>
|
8568 |
</tag>
|
8569 |
</docblock>
|
8570 |
+
<argument line="4127">
|
8571 |
<name>$current_values</name>
|
8572 |
<default><![CDATA[]]></default>
|
8573 |
<type/>
|
8574 |
</argument>
|
8575 |
+
<argument line="4127">
|
8576 |
<name>$new_values</name>
|
8577 |
<default><![CDATA[]]></default>
|
8578 |
<type/>
|
8579 |
</argument>
|
8580 |
</method>
|
8581 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="4257" package="Media Library Assistant">
|
8582 |
<name>_get_custom_field_names</name>
|
8583 |
<full_name>_get_custom_field_names</full_name>
|
8584 |
+
<docblock line="4247">
|
8585 |
<description><![CDATA[Generate a list of all (post) Custom Field names]]></description>
|
8586 |
<long-description><![CDATA[<p>The list will include any Custom Field and IPTC/EXIF rules that
|
8587 |
haven't been mapped to any attachments, yet.</p>]]></long-description>
|
8588 |
+
<tag line="4247" name="since" description="1.00"/>
|
8589 |
+
<tag line="4247" name="return" description="Custom field names from the postmeta table and MLA rules" type="array">
|
8590 |
<type by_reference="false">array</type>
|
8591 |
</tag>
|
8592 |
</docblock>
|
8593 |
</method>
|
8594 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="4303" package="Media Library Assistant">
|
8595 |
<name>mla_iptc_exif_option_handler</name>
|
8596 |
<full_name>mla_iptc_exif_option_handler</full_name>
|
8597 |
+
<docblock line="4290">
|
8598 |
<description><![CDATA[Render and manage iptc/exif support options]]></description>
|
8599 |
<long-description><![CDATA[]]></long-description>
|
8600 |
+
<tag line="4290" name="since" description="1.00"/>
|
8601 |
+
<tag line="4290" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
|
8602 |
+
<tag line="4290" name="param" description="'render', 'update', 'delete', or 'reset'" type="string" variable="$action">
|
8603 |
<type by_reference="false">string</type>
|
8604 |
</tag>
|
8605 |
+
<tag line="4290" name="param" description="option name, e.g., 'iptc_exif_mapping'" type="string" variable="$key">
|
8606 |
<type by_reference="false">string</type>
|
8607 |
</tag>
|
8608 |
+
<tag line="4290" name="param" description="option parameters" type="array" variable="$value">
|
8609 |
<type by_reference="false">array</type>
|
8610 |
</tag>
|
8611 |
+
<tag line="4290" name="param" description="Optional. null (default) for 'render' else option data, e.g., $_REQUEST" type="array" variable="$args">
|
8612 |
<type by_reference="false">array</type>
|
8613 |
</tag>
|
8614 |
+
<tag line="4290" name="return" description="HTML table row markup for 'render' else message(s) reflecting the results of the operation." type="string">
|
8615 |
<type by_reference="false">string</type>
|
8616 |
</tag>
|
8617 |
</docblock>
|
8618 |
+
<argument line="4303">
|
8619 |
<name>$action</name>
|
8620 |
<default><![CDATA[]]></default>
|
8621 |
<type/>
|
8622 |
</argument>
|
8623 |
+
<argument line="4303">
|
8624 |
<name>$key</name>
|
8625 |
<default><![CDATA[]]></default>
|
8626 |
<type/>
|
8627 |
</argument>
|
8628 |
+
<argument line="4303">
|
8629 |
<name>$value</name>
|
8630 |
<default><![CDATA[]]></default>
|
8631 |
<type/>
|
8632 |
</argument>
|
8633 |
+
<argument line="4303">
|
8634 |
<name>$args</name>
|
8635 |
<default><![CDATA[null]]></default>
|
8636 |
<type/>
|
9608 |
</method>
|
9609 |
</class>
|
9610 |
</file>
|
9611 |
+
<file path="includes\class-mla-shortcodes.php" hash="b8ce4508cf1d5d6bc15fdf543637e48a" package="Media Library Assistant">
|
9612 |
<docblock line="2">
|
9613 |
<description><![CDATA[Media Library Assistant Shortcode handler(s)]]></description>
|
9614 |
<long-description><![CDATA[]]></long-description>
|
9625 |
<tag line="9" name="package" description="Media Library Assistant"/>
|
9626 |
<tag line="9" name="since" description="0.20"/>
|
9627 |
</docblock>
|
9628 |
+
<property final="false" static="true" visibility="public" line="95" namespace="global" package="Media Library Assistant">
|
9629 |
<name>$mla_debug_messages</name>
|
9630 |
<default><![CDATA['']]></default>
|
9631 |
+
<docblock line="88">
|
9632 |
<description><![CDATA[Accumulates debug messages]]></description>
|
9633 |
<long-description><![CDATA[]]></long-description>
|
9634 |
+
<tag line="88" name="since" description="0.60"/>
|
9635 |
+
<tag line="88" name="var" description="" type="string">
|
9636 |
<type by_reference="false">string</type>
|
9637 |
</tag>
|
9638 |
</docblock>
|
9639 |
</property>
|
9640 |
+
<property final="false" static="true" visibility="private" line="104" namespace="global" package="Media Library Assistant">
|
9641 |
<name>$mla_debug</name>
|
9642 |
<default><![CDATA[false]]></default>
|
9643 |
+
<docblock line="97">
|
9644 |
<description><![CDATA[Turn debug collection and display on or off]]></description>
|
9645 |
<long-description><![CDATA[]]></long-description>
|
9646 |
+
<tag line="97" name="since" description="0.70"/>
|
9647 |
+
<tag line="97" name="var" description="" type="boolean">
|
9648 |
<type by_reference="false">boolean</type>
|
9649 |
</tag>
|
9650 |
</docblock>
|
9651 |
</property>
|
9652 |
+
<property final="false" static="true" visibility="private" line="2332" namespace="global" package="Media Library Assistant">
|
9653 |
<name>$query_parameters</name>
|
9654 |
<default><![CDATA[array()]]></default>
|
9655 |
+
<docblock line="2319">
|
9656 |
<description><![CDATA[WP_Query filter "parameters"]]></description>
|
9657 |
<long-description><![CDATA[<p>This array defines parameters for the query's join, where and orderby filters.
|
9658 |
The parameters are set up in the mla_get_shortcode_attachments function, and
|
9659 |
any further logic required to translate those values is contained in the filter.</p>
|
9660 |
|
9661 |
<p>Array index values are: orderby, post_parent</p>]]></long-description>
|
9662 |
+
<tag line="2319" name="since" description="1.13"/>
|
9663 |
+
<tag line="2319" name="var" description="" type="array">
|
9664 |
<type by_reference="false">array</type>
|
9665 |
</tag>
|
9666 |
</docblock>
|
9667 |
</property>
|
9668 |
+
<property final="false" static="true" visibility="private" line="2473" namespace="global" package="Media Library Assistant">
|
9669 |
<name>$mla_get_shortcode_attachments_parameters</name>
|
9670 |
+
<default><![CDATA[array('order' => 'ASC', 'orderby' => 'menu_order,ID', 'id' => NULL, 'ids' => array(), 'include' => array(), 'exclude' => array(), 'post_parent' => NULL, 'author' => NULL, 'author_name' => '', 'cat' => 0, 'category_name' => '', 'category__and' => array(), 'category__in' => array(), 'category__not_in' => array(), 'tag' => '', 'tag_id' => 0, 'tag__and' => array(), 'tag__in' => array(), 'tag__not_in' => array(), 'tag_slug__and' => array(), 'tag_slug__in' => array(), 'tax_operator' => '', 'tax_include_children' => true, 'post_type' => 'attachment', 'post_status' => 'inherit', 'post_mime_type' => 'image', 'nopaging' => true, 'numberposts' => 0, 'posts_per_page' => 0, 'posts_per_archive_page' => 0, 'paged' => NULL, 'offset' => NULL, 'mla_page_parameter' => 'mla_paginate_current', 'mla_paginate_current' => NULL, 'mla_paginate_total' => NULL, 'date_query' => '', 'meta_key' => '', 'meta_value' => '', 'meta_value_num' => NULL, 'meta_compare' => '', 'meta_query' => '', 's' => '', 'fields' => '', 'cache_results' => NULL, 'update_post_meta_cache' => NULL, 'update_post_term_cache' => NULL)]]></default>
|
9671 |
+
<docblock line="2466">
|
9672 |
<description><![CDATA[Data selection parameters for the WP_Query in [mla_gallery]]]></description>
|
9673 |
<long-description><![CDATA[]]></long-description>
|
9674 |
+
<tag line="2466" name="since" description="1.30"/>
|
9675 |
+
<tag line="2466" name="var" description="" type="array">
|
9676 |
<type by_reference="false">array</type>
|
9677 |
</tag>
|
9678 |
</docblock>
|
9679 |
</property>
|
9680 |
+
<property final="false" static="true" visibility="public" line="2547" namespace="global" package="Media Library Assistant">
|
9681 |
<name>$mla_gallery_wp_query_object</name>
|
9682 |
<default><![CDATA[NULL]]></default>
|
9683 |
+
<docblock line="2537">
|
9684 |
<description><![CDATA[The WP_Query object used to select items for the gallery.]]></description>
|
9685 |
<long-description><![CDATA[<p>Defined as a public, static variable so it can be inspected from the
|
9686 |
"mla_gallery_wp_query_object" action. Set to NULL at all other times.</p>]]></long-description>
|
9687 |
+
<tag line="2537" name="since" description="1.51"/>
|
9688 |
+
<tag line="2537" name="var" description="" type="object">
|
9689 |
<type by_reference="false">object</type>
|
9690 |
</tag>
|
9691 |
</docblock>
|
9692 |
</property>
|
9693 |
+
<property final="false" static="true" visibility="private" line="3261" namespace="global" package="Media Library Assistant">
|
9694 |
<name>$mla_get_terms_parameters</name>
|
9695 |
<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>
|
9696 |
+
<docblock line="3254">
|
9697 |
<description><![CDATA[Data selection parameters for [mla_tag_cloud]]]></description>
|
9698 |
<long-description><![CDATA[]]></long-description>
|
9699 |
+
<tag line="3254" name="since" description="1.60"/>
|
9700 |
+
<tag line="3254" name="var" description="" type="array">
|
9701 |
<type by_reference="false">array</type>
|
9702 |
</tag>
|
9703 |
</docblock>
|
9714 |
</tag>
|
9715 |
</docblock>
|
9716 |
</method>
|
9717 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="62" package="Media Library Assistant">
|
9718 |
+
<name>mla_no_texturize_shortcodes_filter</name>
|
9719 |
+
<full_name>mla_no_texturize_shortcodes_filter</full_name>
|
9720 |
+
<docblock line="51">
|
9721 |
+
<description><![CDATA[Prevents wptexturizing of the [mla_gallery] shortcode, avoiding a bug in WP 4.0.]]></description>
|
9722 |
+
<long-description><![CDATA[<p>Defined as public because it's a filter.</p>]]></long-description>
|
9723 |
+
<tag line="51" name="since" description="1.94"/>
|
9724 |
+
<tag line="51" name="param" description="list of "do not texturize" shortcodes" type="array" variable="$no_texturize_shortcodes">
|
9725 |
+
<type by_reference="false">array</type>
|
9726 |
+
</tag>
|
9727 |
+
<tag line="51" name="return" description="updated list of "do not texturize" shortcodes" type="array">
|
9728 |
+
<type by_reference="false">array</type>
|
9729 |
+
</tag>
|
9730 |
+
</docblock>
|
9731 |
+
<argument line="62">
|
9732 |
+
<name>$no_texturize_shortcodes</name>
|
9733 |
+
<default><![CDATA[]]></default>
|
9734 |
+
<type/>
|
9735 |
+
</argument>
|
9736 |
+
</method>
|
9737 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="78" package="Media Library Assistant">
|
9738 |
<name>mla_attachment_list_shortcode</name>
|
9739 |
<full_name>mla_attachment_list_shortcode</full_name>
|
9740 |
+
<docblock line="71">
|
9741 |
<description><![CDATA[Obsolete; no longer supported]]></description>
|
9742 |
<long-description><![CDATA[]]></long-description>
|
9743 |
+
<tag line="71" name="since" description="0.1"/>
|
9744 |
+
<tag line="71" name="return" description="echoes HTML markup for the attachment list" type="void">
|
9745 |
<type by_reference="false">void</type>
|
9746 |
</tag>
|
9747 |
</docblock>
|
9748 |
</method>
|
9749 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="120" package="Media Library Assistant">
|
9750 |
<name>mla_gallery_shortcode</name>
|
9751 |
<full_name>mla_gallery_shortcode</full_name>
|
9752 |
+
<docblock line="106">
|
9753 |
<description><![CDATA[The MLA Gallery shortcode.]]></description>
|
9754 |
<long-description><![CDATA[<p>This is a superset of the WordPress Gallery shortcode for displaying images on a post,
|
9755 |
page or custom post type. It is adapted from /wp-includes/media.php gallery_shortcode.
|
9756 |
Enhancements include many additional selection parameters and full taxonomy support.</p>]]></long-description>
|
9757 |
+
<tag line="106" name="since" description=".50"/>
|
9758 |
+
<tag line="106" name="param" description="Attributes of the shortcode" type="array" variable="$attr">
|
9759 |
<type by_reference="false">array</type>
|
9760 |
</tag>
|
9761 |
+
<tag line="106" name="param" description="Optional content for enclosing shortcodes; used with mla_alt_shortcode" type="string" variable="$content">
|
9762 |
<type by_reference="false">string</type>
|
9763 |
</tag>
|
9764 |
+
<tag line="106" name="return" description="HTML content to display gallery." type="string">
|
9765 |
<type by_reference="false">string</type>
|
9766 |
</tag>
|
9767 |
</docblock>
|
9768 |
+
<argument line="120">
|
9769 |
<name>$attr</name>
|
9770 |
<default><![CDATA[]]></default>
|
9771 |
<type/>
|
9772 |
</argument>
|
9773 |
+
<argument line="120">
|
9774 |
<name>$content</name>
|
9775 |
<default><![CDATA[NULL]]></default>
|
9776 |
<type/>
|
9777 |
</argument>
|
9778 |
</method>
|
9779 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1105" package="Media Library Assistant">
|
9780 |
<name>mla_tag_cloud</name>
|
9781 |
<full_name>mla_tag_cloud</full_name>
|
9782 |
+
<docblock line="1093">
|
9783 |
<description><![CDATA[The MLA Tag Cloud support function.]]></description>
|
9784 |
<long-description><![CDATA[<p>This is an alternative to the WordPress wp_tag_cloud function, with additional
|
9785 |
options to customize the hyperlink behind each term.</p>]]></long-description>
|
9786 |
+
<tag line="1093" name="since" description="1.60"/>
|
9787 |
+
<tag line="1093" name="param" description="Attributes of the shortcode." type="array" variable="$attr">
|
9788 |
<type by_reference="false">array</type>
|
9789 |
</tag>
|
9790 |
+
<tag line="1093" name="return" description="HTML content to display the tag cloud." type="string">
|
9791 |
<type by_reference="false">string</type>
|
9792 |
</tag>
|
9793 |
</docblock>
|
9794 |
+
<argument line="1105">
|
9795 |
<name>$attr</name>
|
9796 |
<default><![CDATA[]]></default>
|
9797 |
<type/>
|
9798 |
</argument>
|
9799 |
</method>
|
9800 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1895" package="Media Library Assistant">
|
9801 |
<name>mla_tag_cloud_shortcode</name>
|
9802 |
<full_name>mla_tag_cloud_shortcode</full_name>
|
9803 |
+
<docblock line="1884">
|
9804 |
<description><![CDATA[The MLA Tag Cloud shortcode.]]></description>
|
9805 |
<long-description><![CDATA[<p>This is an interface to the mla_tag_cloud function.</p>]]></long-description>
|
9806 |
+
<tag line="1884" name="since" description="1.60"/>
|
9807 |
+
<tag line="1884" name="param" description="Attributes of the shortcode." type="array" variable="$attr">
|
9808 |
<type by_reference="false">array</type>
|
9809 |
</tag>
|
9810 |
+
<tag line="1884" name="return" description="HTML content to display the tag cloud." type="string">
|
9811 |
<type by_reference="false">string</type>
|
9812 |
</tag>
|
9813 |
</docblock>
|
9814 |
+
<argument line="1895">
|
9815 |
<name>$attr</name>
|
9816 |
<default><![CDATA[]]></default>
|
9817 |
<type/>
|
9818 |
</argument>
|
9819 |
</method>
|
9820 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1927" package="Media Library Assistant">
|
9821 |
<name>_registered_dimensions</name>
|
9822 |
<full_name>_registered_dimensions</full_name>
|
9823 |
+
<docblock line="1920">
|
9824 |
<description><![CDATA[Computes image dimensions for scalable graphics, e.g., SVG]]></description>
|
9825 |
<long-description><![CDATA[]]></long-description>
|
9826 |
+
<tag line="1920" name="since" description="1.82"/>
|
9827 |
+
<tag line="1920" name="return" description="" type="array">
|
9828 |
<type by_reference="false">array</type>
|
9829 |
</tag>
|
9830 |
</docblock>
|
9831 |
</method>
|
9832 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1962" package="Media Library Assistant">
|
9833 |
<name>_process_shortcode_parameter</name>
|
9834 |
<full_name>_process_shortcode_parameter</full_name>
|
9835 |
+
<docblock line="1952">
|
9836 |
<description><![CDATA[Handles brace/bracket escaping and parses template for a shortcode parameter]]></description>
|
9837 |
<long-description><![CDATA[]]></long-description>
|
9838 |
+
<tag line="1952" name="since" description="1.14"/>
|
9839 |
+
<tag line="1952" name="param" description="raw shortcode parameter, e.g., "text {+field+} {brackets} \\{braces\\}"" type="string" variable="$text">
|
9840 |
<type by_reference="false">string</type>
|
9841 |
</tag>
|
9842 |
+
<tag line="1952" name="param" description="template substitution values, e.g., ('instance' => '1', ... )" type="string" variable="$markup_values">
|
9843 |
<type by_reference="false">string</type>
|
9844 |
</tag>
|
9845 |
+
<tag line="1952" name="return" description="parameter with brackets, braces, substitution parameters and templates processed" type="string">
|
9846 |
<type by_reference="false">string</type>
|
9847 |
</tag>
|
9848 |
</docblock>
|
9849 |
+
<argument line="1962">
|
9850 |
<name>$text</name>
|
9851 |
<default><![CDATA[]]></default>
|
9852 |
<type/>
|
9853 |
</argument>
|
9854 |
+
<argument line="1962">
|
9855 |
<name>$markup_values</name>
|
9856 |
<default><![CDATA[]]></default>
|
9857 |
<type/>
|
9858 |
</argument>
|
9859 |
</method>
|
9860 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1981" package="Media Library Assistant">
|
9861 |
<name>_paginate_links</name>
|
9862 |
<full_name>_paginate_links</full_name>
|
9863 |
+
<docblock line="1968">
|
9864 |
<description><![CDATA[Handles pagnation output types 'previous_page', 'next_page', and 'paginate_links']]></description>
|
9865 |
<long-description><![CDATA[]]></long-description>
|
9866 |
+
<tag line="1968" name="since" description="1.42"/>
|
9867 |
+
<tag line="1968" name="param" description="value(s) for mla_output_type parameter" type="array" variable="$output_parameters">
|
9868 |
<type by_reference="false">array</type>
|
9869 |
</tag>
|
9870 |
+
<tag line="1968" name="param" description="template substitution values, e.g., ('instance' => '1', ... )" type="string" variable="$markup_values">
|
9871 |
<type by_reference="false">string</type>
|
9872 |
</tag>
|
9873 |
+
<tag line="1968" name="param" description="merged default and passed shortcode parameter values" type="string" variable="$arguments">
|
9874 |
<type by_reference="false">string</type>
|
9875 |
</tag>
|
9876 |
+
<tag line="1968" name="param" description="number of attachments in the gallery, without pagination" type="integer" variable="$found_rows">
|
9877 |
<type by_reference="false">integer</type>
|
9878 |
</tag>
|
9879 |
+
<tag line="1968" name="param" description="output text so far, may include debug values" type="string" variable="$output">
|
9880 |
<type by_reference="false">string</type>
|
9881 |
</tag>
|
9882 |
+
<tag line="1968" name="return" description="false or string with HTML for pagination output types" type="mixed">
|
9883 |
<type by_reference="false">mixed</type>
|
9884 |
</tag>
|
9885 |
</docblock>
|
9886 |
+
<argument line="1981">
|
9887 |
<name>$output_parameters</name>
|
9888 |
<default><![CDATA[]]></default>
|
9889 |
<type/>
|
9890 |
</argument>
|
9891 |
+
<argument line="1981">
|
9892 |
<name>$markup_values</name>
|
9893 |
<default><![CDATA[]]></default>
|
9894 |
<type/>
|
9895 |
</argument>
|
9896 |
+
<argument line="1981">
|
9897 |
<name>$arguments</name>
|
9898 |
<default><![CDATA[]]></default>
|
9899 |
<type/>
|
9900 |
</argument>
|
9901 |
+
<argument line="1981">
|
9902 |
<name>$found_rows</name>
|
9903 |
<default><![CDATA[]]></default>
|
9904 |
<type/>
|
9905 |
</argument>
|
9906 |
+
<argument line="1981">
|
9907 |
<name>$output</name>
|
9908 |
<default><![CDATA['']]></default>
|
9909 |
<type/>
|
9910 |
</argument>
|
9911 |
</method>
|
9912 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2111" package="Media Library Assistant">
|
9913 |
<name>_process_pagination_output_types</name>
|
9914 |
<full_name>_process_pagination_output_types</full_name>
|
9915 |
+
<docblock line="2097">
|
9916 |
<description><![CDATA[Handles pagnation output types 'previous_page', 'next_page', and 'paginate_links']]></description>
|
9917 |
<long-description><![CDATA[]]></long-description>
|
9918 |
+
<tag line="2097" name="since" description="1.42"/>
|
9919 |
+
<tag line="2097" name="param" description="value(s) for mla_output_type parameter" type="array" variable="$output_parameters">
|
9920 |
<type by_reference="false">array</type>
|
9921 |
</tag>
|
9922 |
+
<tag line="2097" name="param" description="template substitution values, e.g., ('instance' => '1', ... )" type="string" variable="$markup_values">
|
9923 |
<type by_reference="false">string</type>
|
9924 |
</tag>
|
9925 |
+
<tag line="2097" name="param" description="merged default and passed shortcode parameter values" type="string" variable="$arguments">
|
9926 |
<type by_reference="false">string</type>
|
9927 |
</tag>
|
9928 |
+
<tag line="2097" name="param" description="raw passed shortcode parameter values" type="string" variable="$attr">
|
9929 |
<type by_reference="false">string</type>
|
9930 |
</tag>
|
9931 |
+
<tag line="2097" name="param" description="number of attachments in the gallery, without pagination" type="integer" variable="$found_rows">
|
9932 |
<type by_reference="false">integer</type>
|
9933 |
</tag>
|
9934 |
+
<tag line="2097" name="param" description="output text so far, may include debug values" type="string" variable="$output">
|
9935 |
<type by_reference="false">string</type>
|
9936 |
</tag>
|
9937 |
+
<tag line="2097" name="return" description="false or string with HTML for pagination output types" type="mixed">
|
9938 |
<type by_reference="false">mixed</type>
|
9939 |
</tag>
|
9940 |
</docblock>
|
9941 |
+
<argument line="2111">
|
9942 |
<name>$output_parameters</name>
|
9943 |
<default><![CDATA[]]></default>
|
9944 |
<type/>
|
9945 |
</argument>
|
9946 |
+
<argument line="2111">
|
9947 |
<name>$markup_values</name>
|
9948 |
<default><![CDATA[]]></default>
|
9949 |
<type/>
|
9950 |
</argument>
|
9951 |
+
<argument line="2111">
|
9952 |
<name>$arguments</name>
|
9953 |
<default><![CDATA[]]></default>
|
9954 |
<type/>
|
9955 |
</argument>
|
9956 |
+
<argument line="2111">
|
9957 |
<name>$attr</name>
|
9958 |
<default><![CDATA[]]></default>
|
9959 |
<type/>
|
9960 |
</argument>
|
9961 |
+
<argument line="2111">
|
9962 |
<name>$found_rows</name>
|
9963 |
<default><![CDATA[]]></default>
|
9964 |
<type/>
|
9965 |
</argument>
|
9966 |
+
<argument line="2111">
|
9967 |
<name>$output</name>
|
9968 |
<default><![CDATA['']]></default>
|
9969 |
<type/>
|
9970 |
</argument>
|
9971 |
</method>
|
9972 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2343" package="Media Library Assistant">
|
9973 |
<name>_sanitize_query_specification</name>
|
9974 |
<full_name>_sanitize_query_specification</full_name>
|
9975 |
+
<docblock line="2334">
|
9976 |
<description><![CDATA[Cleans up damage caused by the Visual Editor to the tax_query and meta_query specifications]]></description>
|
9977 |
<long-description><![CDATA[]]></long-description>
|
9978 |
+
<tag line="2334" name="since" description="1.14"/>
|
9979 |
+
<tag line="2334" name="param" description="query specification; PHP nested arrays" type="string" variable="$specification">
|
9980 |
<type by_reference="false">string</type>
|
9981 |
</tag>
|
9982 |
+
<tag line="2334" name="return" description="query specification with HTML escape sequences and line breaks removed" type="string">
|
9983 |
<type by_reference="false">string</type>
|
9984 |
</tag>
|
9985 |
</docblock>
|
9986 |
+
<argument line="2343">
|
9987 |
<name>$specification</name>
|
9988 |
<default><![CDATA[]]></default>
|
9989 |
<type/>
|
9990 |
</argument>
|
9991 |
</method>
|
9992 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2363" package="Media Library Assistant">
|
9993 |
<name>_validate_sql_orderby</name>
|
9994 |
<full_name>_validate_sql_orderby</full_name>
|
9995 |
+
<docblock line="2349">
|
9996 |
<description><![CDATA[Translates query parameters to a valid SQL order by clause.]]></description>
|
9997 |
<long-description><![CDATA[<p>Accepts one or more valid columns, with or without ASC/DESC.
|
9998 |
Enhanced version of /wp-includes/formatting.php function sanitize_sql_orderby().</p>]]></long-description>
|
9999 |
+
<tag line="2349" name="since" description="1.20"/>
|
10000 |
+
<tag line="2349" name="param" description="Validated query parameters; 'order', 'orderby', 'meta_key', 'post__in'." type="array" variable="$query_parameters">
|
10001 |
<type by_reference="false">array</type>
|
10002 |
</tag>
|
10003 |
+
<tag line="2349" name="param" description="Optional. Database table prefix; can be empty. Default taken from $wpdb->posts." type="string" variable="$table_prefix">
|
10004 |
+
<type by_reference="false">string</type>
|
10005 |
+
</tag>
|
10006 |
+
<tag line="2349" name="param" description="Optional. Field names (keys) and database column equivalents (values). Defaults from [mla_gallery]." type="array" variable="$allowed_keys">
|
10007 |
+
<type by_reference="false">array</type>
|
10008 |
+
</tag>
|
10009 |
+
<tag line="2349" name="param" description="Optional. Field names (values) that require a BINARY prefix to preserve case order. Default array()" type="array" variable="$binary_keys">
|
10010 |
+
<type by_reference="false">array</type>
|
10011 |
+
</tag>
|
10012 |
+
<tag line="2349" name="return" description="Returns the orderby clause if present, false otherwise." type="string|bool">
|
10013 |
<type by_reference="false">string</type>
|
10014 |
<type by_reference="false">bool</type>
|
10015 |
</tag>
|
10016 |
</docblock>
|
10017 |
+
<argument line="2363">
|
10018 |
<name>$query_parameters</name>
|
10019 |
<default><![CDATA[]]></default>
|
10020 |
<type/>
|
10021 |
</argument>
|
10022 |
+
<argument line="2363">
|
10023 |
+
<name>$table_prefix</name>
|
10024 |
+
<default><![CDATA[NULL]]></default>
|
10025 |
+
<type/>
|
10026 |
+
</argument>
|
10027 |
+
<argument line="2363">
|
10028 |
+
<name>$allowed_keys</name>
|
10029 |
+
<default><![CDATA[NULL]]></default>
|
10030 |
+
<type/>
|
10031 |
+
</argument>
|
10032 |
+
<argument line="2363">
|
10033 |
+
<name>$binary_keys</name>
|
10034 |
+
<default><![CDATA[array()]]></default>
|
10035 |
+
<type/>
|
10036 |
+
</argument>
|
10037 |
</method>
|
10038 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2560" package="Media Library Assistant">
|
10039 |
<name>mla_get_shortcode_attachments</name>
|
10040 |
<full_name>mla_get_shortcode_attachments</full_name>
|
10041 |
+
<docblock line="2549">
|
10042 |
<description><![CDATA[Parses shortcode parameters and returns the gallery objects]]></description>
|
10043 |
<long-description><![CDATA[]]></long-description>
|
10044 |
+
<tag line="2549" name="since" description=".50"/>
|
10045 |
+
<tag line="2549" name="param" description="Post ID of the parent" type="int" variable="$post_parent">
|
10046 |
<type by_reference="false">int</type>
|
10047 |
</tag>
|
10048 |
+
<tag line="2549" name="param" description="Attributes of the shortcode" type="array" variable="$attr">
|
10049 |
<type by_reference="false">array</type>
|
10050 |
</tag>
|
10051 |
+
<tag line="2549" name="param" description="true to calculate and return ['found_posts'] as an array element" type="boolean" variable="$return_found_rows">
|
10052 |
<type by_reference="false">boolean</type>
|
10053 |
</tag>
|
10054 |
+
<tag line="2549" name="return" description="List of attachments returned from WP_Query" type="array">
|
10055 |
<type by_reference="false">array</type>
|
10056 |
</tag>
|
10057 |
</docblock>
|
10058 |
+
<argument line="2560">
|
10059 |
<name>$post_parent</name>
|
10060 |
<default><![CDATA[]]></default>
|
10061 |
<type/>
|
10062 |
</argument>
|
10063 |
+
<argument line="2560">
|
10064 |
<name>$attr</name>
|
10065 |
<default><![CDATA[]]></default>
|
10066 |
<type/>
|
10067 |
</argument>
|
10068 |
+
<argument line="2560">
|
10069 |
<name>$return_found_rows</name>
|
10070 |
<default><![CDATA[NULL]]></default>
|
10071 |
<type/>
|
10072 |
</argument>
|
10073 |
</method>
|
10074 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="3132" package="Media Library Assistant">
|
10075 |
<name>mla_shortcode_query_posts_join_filter</name>
|
10076 |
<full_name>mla_shortcode_query_posts_join_filter</full_name>
|
10077 |
+
<docblock line="3121">
|
10078 |
<description><![CDATA[Filters the JOIN clause for shortcode queries]]></description>
|
10079 |
<long-description><![CDATA[<p>Defined as public because it's a filter.</p>]]></long-description>
|
10080 |
+
<tag line="3121" name="since" description="1.90"/>
|
10081 |
+
<tag line="3121" name="param" description="query clause before modification" type="string" variable="$join_clause">
|
10082 |
<type by_reference="false">string</type>
|
10083 |
</tag>
|
10084 |
+
<tag line="3121" name="return" description="query clause after item modification" type="string">
|
10085 |
<type by_reference="false">string</type>
|
10086 |
</tag>
|
10087 |
</docblock>
|
10088 |
+
<argument line="3132">
|
10089 |
<name>$join_clause</name>
|
10090 |
<default><![CDATA[]]></default>
|
10091 |
<type/>
|
10092 |
</argument>
|
10093 |
</method>
|
10094 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="3161" package="Media Library Assistant">
|
10095 |
<name>mla_shortcode_query_posts_where_filter</name>
|
10096 |
<full_name>mla_shortcode_query_posts_where_filter</full_name>
|
10097 |
+
<docblock line="3147">
|
10098 |
<description><![CDATA[Filters the WHERE clause for shortcode queries]]></description>
|
10099 |
<long-description><![CDATA[<p>Captures debug information. Adds whitespace to the post_type = 'attachment'
|
10100 |
phrase to circumvent subsequent Role Scoper modification of the clause.
|
10101 |
Handles post_parent "any" and "none" cases.
|
10102 |
Defined as public because it's a filter.</p>]]></long-description>
|
10103 |
+
<tag line="3147" name="since" description="0.70"/>
|
10104 |
+
<tag line="3147" name="param" description="query clause before modification" type="string" variable="$where_clause">
|
10105 |
<type by_reference="false">string</type>
|
10106 |
</tag>
|
10107 |
+
<tag line="3147" name="return" description="query clause after modification" type="string">
|
10108 |
<type by_reference="false">string</type>
|
10109 |
</tag>
|
10110 |
</docblock>
|
10111 |
+
<argument line="3161">
|
10112 |
<name>$where_clause</name>
|
10113 |
<default><![CDATA[]]></default>
|
10114 |
<type/>
|
10115 |
</argument>
|
10116 |
</method>
|
10117 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="3203" package="Media Library Assistant">
|
10118 |
<name>mla_shortcode_query_posts_orderby_filter</name>
|
10119 |
<full_name>mla_shortcode_query_posts_orderby_filter</full_name>
|
10120 |
+
<docblock line="3191">
|
10121 |
<description><![CDATA[Filters the ORDERBY clause for shortcode queries]]></description>
|
10122 |
<long-description><![CDATA[<p>This is an enhanced version of the code found in wp-includes/query.php, function get_posts.
|
10123 |
Defined as public because it's a filter.</p>]]></long-description>
|
10124 |
+
<tag line="3191" name="since" description="1.20"/>
|
10125 |
+
<tag line="3191" name="param" description="query clause before modification" type="string" variable="$orderby_clause">
|
10126 |
<type by_reference="false">string</type>
|
10127 |
</tag>
|
10128 |
+
<tag line="3191" name="return" description="query clause after modification" type="string">
|
10129 |
<type by_reference="false">string</type>
|
10130 |
</tag>
|
10131 |
</docblock>
|
10132 |
+
<argument line="3203">
|
10133 |
<name>$orderby_clause</name>
|
10134 |
<default><![CDATA[]]></default>
|
10135 |
<type/>
|
10136 |
</argument>
|
10137 |
</method>
|
10138 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="3230" package="Media Library Assistant">
|
10139 |
<name>mla_shortcode_query_posts_clauses_filter</name>
|
10140 |
<full_name>mla_shortcode_query_posts_clauses_filter</full_name>
|
10141 |
+
<docblock line="3218">
|
10142 |
<description><![CDATA[Filters all clauses for shortcode queries, pre caching plugins]]></description>
|
10143 |
<long-description><![CDATA[<p>This is for debug purposes only.
|
10144 |
Defined as public because it's a filter.</p>]]></long-description>
|
10145 |
+
<tag line="3218" name="since" description="1.30"/>
|
10146 |
+
<tag line="3218" name="param" description="query clauses before modification" type="array" variable="$pieces">
|
10147 |
<type by_reference="false">array</type>
|
10148 |
</tag>
|
10149 |
+
<tag line="3218" name="return" description="query clauses after modification (none)" type="array">
|
10150 |
<type by_reference="false">array</type>
|
10151 |
</tag>
|
10152 |
</docblock>
|
10153 |
+
<argument line="3230">
|
10154 |
<name>$pieces</name>
|
10155 |
<default><![CDATA[]]></default>
|
10156 |
<type/>
|
10157 |
</argument>
|
10158 |
</method>
|
10159 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="3248" package="Media Library Assistant">
|
10160 |
<name>mla_shortcode_query_posts_clauses_request_filter</name>
|
10161 |
<full_name>mla_shortcode_query_posts_clauses_request_filter</full_name>
|
10162 |
+
<docblock line="3236">
|
10163 |
<description><![CDATA[Filters all clauses for shortcode queries, post caching plugins]]></description>
|
10164 |
<long-description><![CDATA[<p>This is for debug purposes only.
|
10165 |
Defined as public because it's a filter.</p>]]></long-description>
|
10166 |
+
<tag line="3236" name="since" description="1.30"/>
|
10167 |
+
<tag line="3236" name="param" description="query clauses before modification" type="array" variable="$pieces">
|
10168 |
<type by_reference="false">array</type>
|
10169 |
</tag>
|
10170 |
+
<tag line="3236" name="return" description="query clauses after modification (none)" type="array">
|
10171 |
<type by_reference="false">array</type>
|
10172 |
</tag>
|
10173 |
</docblock>
|
10174 |
+
<argument line="3248">
|
10175 |
<name>$pieces</name>
|
10176 |
<default><![CDATA[]]></default>
|
10177 |
<type/>
|
10178 |
</argument>
|
10179 |
</method>
|
10180 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="3338" package="Media Library Assistant">
|
10181 |
<name>mla_get_terms</name>
|
10182 |
<full_name>mla_get_terms</full_name>
|
10183 |
+
<docblock line="3284">
|
10184 |
<description><![CDATA[Retrieve the terms in one or more taxonomies.]]></description>
|
10185 |
+
<long-description><![CDATA[<p>Alternative to WordPress /wp-includes/taxonomy.php function get_terms() that provides
|
10186 |
an accurate count of attachments associated with each term.</p>
|
10187 |
|
10188 |
<p>taxonomy - string containing one or more (comma-delimited) taxonomy names
|
10190 |
|
10191 |
<p>post_mime_type - MIME type(s) of the items to include in the term-specific counts. Default 'all'.</p>
|
10192 |
|
10193 |
+
<p>post_type - The post type(s) of the items to include in the term-specific counts.
|
10194 |
+
The default is "attachment".</p>
|
10195 |
|
10196 |
+
<p>post_status - The post status value(s) of the items to include in the term-specific counts.
|
10197 |
+
The default is "inherit".</p>
|
10198 |
|
10199 |
<p>ids - A comma-separated list of attachment ID values for an item-specific cloud.</p>
|
10200 |
|
10211 |
<p>no_count - 'true', 'false' (default) to suppress term-specific attachment-counting process.</p>
|
10212 |
|
10213 |
<p>number - maximum number of term objects to return. Terms are ordered by count,
|
10214 |
+
descending and then by term_id before this value is applied. Default 0.</p>
|
10215 |
|
10216 |
<p>orderby - 'count', 'id', 'name' (default), 'none', 'random', 'slug'</p>
|
10217 |
|
10221 |
|
10222 |
<p>preserve_case - 'true', 'false' (default) to make orderby case-sensitive.</p>
|
10223 |
|
10224 |
+
<p>pad_counts - 'true', 'false' (default) to to include the count of all children in their parents' count.</p>
|
10225 |
|
10226 |
<p>limit - final number of term objects to return, for pagination. Default 0.</p>
|
10227 |
|
10228 |
<p>offset - number of term objects to skip, for pagination. Default 0.</p>]]></long-description>
|
10229 |
+
<tag line="3284" name="since" description="1.60"/>
|
10230 |
+
<tag line="3284" name="param" description="taxonomies to search and query parameters" type="array" variable="$attr">
|
10231 |
<type by_reference="false">array</type>
|
10232 |
</tag>
|
10233 |
+
<tag line="3284" name="return" description="array of term objects, empty if none found" type="array">
|
10234 |
<type by_reference="false">array</type>
|
10235 |
</tag>
|
10236 |
</docblock>
|
10237 |
+
<argument line="3338">
|
10238 |
<name>$attr</name>
|
10239 |
<default><![CDATA[]]></default>
|
10240 |
<type/>
|
10241 |
</argument>
|
10242 |
</method>
|
10243 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3643" package="Media Library Assistant">
|
10244 |
<name>_pad_term_counts</name>
|
10245 |
<full_name>_pad_term_counts</full_name>
|
10246 |
+
<docblock line="3629">
|
10247 |
<description><![CDATA[Add count of children to parent count.]]></description>
|
10248 |
<long-description><![CDATA[<p>Recalculates term counts by including items from child terms. Assumes all
|
10249 |
relevant children are already in the $terms argument.</p>]]></long-description>
|
10250 |
+
<tag line="3629" name="since" description="1.90"/>
|
10251 |
+
<tag line="3629" name="param" description="Array of Term objects, by reference" type="array" variable="$terms">
|
10252 |
<type by_reference="false">array</type>
|
10253 |
</tag>
|
10254 |
+
<tag line="3629" name="param" description="Term Context" type="string" variable="$taxonomy">
|
10255 |
<type by_reference="false">string</type>
|
10256 |
</tag>
|
10257 |
+
<tag line="3629" name="param" description="Qualifying post type value(s)" type="array" variable="$post_types">
|
10258 |
<type by_reference="false">array</type>
|
10259 |
</tag>
|
10260 |
+
<tag line="3629" name="param" description="Qualifying post status value(s)" type="array" variable="$post_stati">
|
10261 |
<type by_reference="false">array</type>
|
10262 |
</tag>
|
10263 |
+
<tag line="3629" name="return" description="Will break from function if conditions are not met." type="null">
|
10264 |
<type by_reference="false">null</type>
|
10265 |
</tag>
|
10266 |
</docblock>
|
10267 |
+
<argument line="3643">
|
10268 |
<name>$terms</name>
|
10269 |
<default><![CDATA[]]></default>
|
10270 |
<type/>
|
10271 |
</argument>
|
10272 |
+
<argument line="3643">
|
10273 |
<name>$taxonomy</name>
|
10274 |
<default><![CDATA[]]></default>
|
10275 |
<type/>
|
10276 |
</argument>
|
10277 |
+
<argument line="3643">
|
10278 |
<name>$post_types</name>
|
10279 |
<default><![CDATA[NULL]]></default>
|
10280 |
<type/>
|
10281 |
</argument>
|
10282 |
+
<argument line="3643">
|
10283 |
<name>$post_stati</name>
|
10284 |
<default><![CDATA[NULL]]></default>
|
10285 |
<type/>
|
11912 |
</method>
|
11913 |
</class>
|
11914 |
</file>
|
11915 |
+
<file path="includes\mla-force-download.php" hash="2eb0b7ec32234ab91a0687943fef24ff" package="Media Library Assistant">
|
11916 |
+
<docblock line="2">
|
11917 |
+
<description><![CDATA[Provides Ajax support for downloading a file to the client]]></description>
|
11918 |
+
<long-description><![CDATA[]]></long-description>
|
11919 |
+
<tag line="2" name="package" description="Media Library Assistant"/>
|
11920 |
+
<tag line="2" name="since" description="1.95"/>
|
11921 |
+
</docblock>
|
11922 |
+
</file>
|
11923 |
<file path="includes\mla-main-search-box-template.php" hash="5c9b1f07eb5744e5ee4f2af76c7851cd" package="Media Library Assistant">
|
11924 |
<docblock line="2">
|
11925 |
<description><![CDATA[PHP "template" for Media/Assistant submenu table Search Media box]]></description>
|
11928 |
<tag line="2" name="since" description="1.90"/>
|
11929 |
</docblock>
|
11930 |
</file>
|
11931 |
+
<file path="includes\mla-media-modal-js-template.php" hash="753301536c919f336d3a4aa7943e37f2" package="Media Library Assistant">
|
11932 |
<docblock line="2">
|
11933 |
<description><![CDATA[Backbone/JavaScript template for Media Library Assistant Media Manager enhancements]]></description>
|
11934 |
<long-description><![CDATA[]]></long-description>
|
11936 |
<tag line="2" name="since" description="1.80"/>
|
11937 |
</docblock>
|
11938 |
</file>
|
11939 |
+
<file path="includes\mla-plugin-loader.php" hash="9545d2bc9587053682688dd39d4c160c" package="Media Library Assistant">
|
11940 |
<docblock line="2">
|
11941 |
<description><![CDATA[Media Library Assistant Plugin Loader]]></description>
|
11942 |
<long-description><![CDATA[<p>Defines constants and loads all of the classes and functions required to run the plugin.
|
11944 |
<tag line="2" name="package" description="Media Library Assistant"/>
|
11945 |
<tag line="2" name="since" description="0.20"/>
|
11946 |
</docblock>
|
11947 |
+
<include line="44" type="Require Once" package="Media Library Assistant">
|
11948 |
<name/>
|
11949 |
</include>
|
11950 |
+
<include line="57" type="Require Once" package="Media Library Assistant">
|
11951 |
<name/>
|
11952 |
</include>
|
11953 |
+
<include line="63" type="Require Once" package="Media Library Assistant">
|
11954 |
<name/>
|
11955 |
</include>
|
11956 |
+
<include line="69" type="Require Once" package="Media Library Assistant">
|
11957 |
<name/>
|
11958 |
</include>
|
11959 |
+
<include line="75" type="Require Once" package="Media Library Assistant">
|
11960 |
<name/>
|
11961 |
</include>
|
11962 |
+
<include line="82" type="Require Once" package="Media Library Assistant">
|
11963 |
<name/>
|
11964 |
</include>
|
11965 |
+
<include line="90" type="Require Once" package="Media Library Assistant">
|
11966 |
<name/>
|
11967 |
</include>
|
11968 |
+
<include line="97" type="Require Once" package="Media Library Assistant">
|
11969 |
<name/>
|
11970 |
</include>
|
11971 |
+
<include line="103" type="Require Once" package="Media Library Assistant">
|
11972 |
<name/>
|
11973 |
</include>
|
11974 |
+
<include line="109" type="Require Once" package="Media Library Assistant">
|
11975 |
<name/>
|
11976 |
</include>
|
11977 |
+
<include line="117" type="Require Once" package="Media Library Assistant">
|
11978 |
<name/>
|
11979 |
</include>
|
11980 |
+
<include line="123" type="Require Once" package="Media Library Assistant">
|
11981 |
<name/>
|
11982 |
</include>
|
11983 |
+
<include line="129" type="Require Once" package="Media Library Assistant">
|
11984 |
<name/>
|
11985 |
</include>
|
11986 |
+
<include line="135" type="Require Once" package="Media Library Assistant">
|
11987 |
<name/>
|
11988 |
</include>
|
11989 |
+
<constant namespace="global" line="18" package="Media Library Assistant">
|
11990 |
<name>MLA_OPTION_PREFIX</name>
|
11991 |
<full_name>\MLA_OPTION_PREFIX</full_name>
|
11992 |
<value><![CDATA['mla_']]></value>
|
11993 |
+
<docblock line="15">
|
11994 |
<description><![CDATA[Gives a unique prefix for plugin options; can be set in wp-config.php]]></description>
|
11995 |
<long-description><![CDATA[]]></long-description>
|
11996 |
</docblock>
|
11997 |
</constant>
|
11998 |
+
<function namespace="global" line="33" package="Media Library Assistant">
|
11999 |
<name>mla_plugin_loader_reporting_action</name>
|
12000 |
<full_name>\mla_plugin_loader_reporting_action</full_name>
|
12001 |
+
<docblock line="28">
|
12002 |
<description><![CDATA[Displays version conflict error messages at the top of the Dashboard]]></description>
|
12003 |
<long-description><![CDATA[]]></long-description>
|
12004 |
+
<tag line="28" name="since" description="1.14"/>
|
12005 |
</docblock>
|
12006 |
</function>
|
12007 |
</file>
|
12008 |
+
<file path="index.php" hash="57616d5ae481310cb1f83fc102116b76" package="Media Library Assistant">
|
12009 |
<docblock line="2">
|
12010 |
<description><![CDATA[Provides several enhancements to the handling of images and files held in the WordPress Media Library]]></description>
|
12011 |
<long-description><![CDATA[<p>This file contains several tests for name conflicts with other plugins. Only if the tests are passed
|
12012 |
will the rest of the plugin be loaded and run.</p>]]></long-description>
|
12013 |
<tag line="2" name="package" description="Media Library Assistant"/>
|
12014 |
+
<tag line="2" name="version" description="1.94"/>
|
12015 |
</docblock>
|
12016 |
+
<include line="150" type="Require Once" package="Media Library Assistant">
|
12017 |
<name>includes/mla-plugin-loader.php</name>
|
12018 |
</include>
|
12019 |
+
<constant namespace="global" line="54" package="Media Library Assistant">
|
12020 |
<name>MLA_PLUGIN_PATH</name>
|
12021 |
<full_name>\MLA_PLUGIN_PATH</full_name>
|
12022 |
<value><![CDATA[plugin_dir_path(__FILE__)]]></value>
|
12023 |
+
<docblock line="51">
|
12024 |
<description><![CDATA[Provides path information to the plugin root in file system format, including the trailing slash.]]></description>
|
12025 |
<long-description><![CDATA[]]></long-description>
|
12026 |
</docblock>
|
12027 |
</constant>
|
12028 |
+
<constant namespace="global" line="64" package="Media Library Assistant">
|
12029 |
<name>MLA_PLUGIN_BASENAME</name>
|
12030 |
<full_name>\MLA_PLUGIN_BASENAME</full_name>
|
12031 |
<value><![CDATA[dirname(plugin_basename(__FILE__))]]></value>
|
12032 |
+
<docblock line="61">
|
12033 |
<description><![CDATA[Provides the plugin's directory name, relative to the plugins directory, without leading or trailing slashes.]]></description>
|
12034 |
<long-description><![CDATA[]]></long-description>
|
12035 |
</docblock>
|
12036 |
</constant>
|
12037 |
+
<constant namespace="global" line="74" package="Media Library Assistant">
|
12038 |
<name>MLA_PLUGIN_URL</name>
|
12039 |
<full_name>\MLA_PLUGIN_URL</full_name>
|
12040 |
<value><![CDATA[plugin_dir_url(__FILE__)]]></value>
|
12041 |
+
<docblock line="71">
|
12042 |
<description><![CDATA[Provides path information to the plugin root in URL format.]]></description>
|
12043 |
<long-description><![CDATA[]]></long-description>
|
12044 |
</docblock>
|
12045 |
</constant>
|
12046 |
+
<constant namespace="global" line="83" package="Media Library Assistant">
|
12047 |
<name>MLA_BACKUP_DIR</name>
|
12048 |
<full_name>\MLA_BACKUP_DIR</full_name>
|
12049 |
<value><![CDATA[$content_dir . '/mla-backup/']]></value>
|
12050 |
</constant>
|
12051 |
+
<function namespace="global" line="138" package="Media Library Assistant">
|
12052 |
<name>mla_name_conflict_reporting_action</name>
|
12053 |
<full_name>\mla_name_conflict_reporting_action</full_name>
|
12054 |
+
<docblock line="133">
|
12055 |
<description><![CDATA[Displays name conflict error messages at the top of the Dashboard]]></description>
|
12056 |
<long-description><![CDATA[]]></long-description>
|
12057 |
+
<tag line="133" name="since" description="0.20"/>
|
12058 |
</docblock>
|
12059 |
</function>
|
12060 |
</file>
|
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: 4.0
|
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,27 @@ All of the MLA source code has been annotated with "DocBlocks", a special type o
|
|
152 |
|
153 |
== Changelog ==
|
154 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
155 |
= 1.94 =
|
156 |
|
157 |
* New: An example that shows how to replace the wp_list_categories() item count with an accurate, padded count of the attachments assigned to each term has been added to the /media-library-assistant/examples/twentytwelve-mla directory. The example comprises the "page-tosca30-dropdown.php" and "content-tosca30-dropdown.php" files.
|
@@ -214,7 +235,7 @@ All of the MLA source code has been annotated with "DocBlocks", a special type o
|
|
214 |
* New: An example plugin using **BuddyPress and rtMedia** has been created in `/examples/buddypress-hooks-example.php.txt`. The example shows how to replace the WordPress "attachment/media page" links with "BuddyPress/rtMedia page" links. For audio and video files, an option is provided to substitute the "cover_art" thumbnail image for the item Title in the thumbnail_content.
|
215 |
* Fix: In the Media Manager Modal Window, **adding a taxonomy term** now updates the toolbar "terms filter" dropdown list. It also updates the "parent" dropdown list in the toolbar, if the taxonomy is hierarchical.
|
216 |
* Fix: In the Media Manager Modal Window, the **year/month and taxonomy filter controls** now appear for plugins such as WooCommerce, Slider Revolution, Image Widget and SimpleFields.
|
217 |
-
* Fix: More details added to the "Category Parameters" section of the Settings/Media
|
218 |
* 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.
|
219 |
* Fix: For `[mla_tag_cloud]`, the `number` parameter default is now zero, agreeing with the Documentation.
|
220 |
|
@@ -271,8 +292,8 @@ All of the MLA source code has been annotated with "DocBlocks", a special type o
|
|
271 |
|
272 |
== Upgrade Notice ==
|
273 |
|
274 |
-
= 1.
|
275 |
-
|
276 |
|
277 |
== Other Notes ==
|
278 |
|
@@ -285,7 +306,7 @@ In this section, scroll down to see highlights from the documentation, including
|
|
285 |
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).
|
286 |
|
287 |
<h4>NEW! Hooks for the Edit Media additional meta boxes</h4>
|
288 |
-
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
|
289 |
|
290 |
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:
|
291 |
|
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.1
|
7 |
+
Stable tag: 1.95
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
152 |
|
153 |
== Changelog ==
|
154 |
|
155 |
+
= 1.95 =
|
156 |
+
|
157 |
+
* New: Twenty eight (28) **filters for the Media/Assistant submenu table** support customization of the table display and supporting features like table views, Quick Edit, Bulk Edit and rollover actions.
|
158 |
+
* New: For the `[mla_gallery]` shortcode, the **powerful "date_query" parameter** introduced in WordPress Version 3.7 is now supported.
|
159 |
+
* New: On the Media/Assistant submenu table a **"Download" rollover action** has been added to enable easy, one-click down of Media Library items.
|
160 |
+
* New: On the Media/Assistant submenu table values in the **Base File column can be clicked** to filter the table by the column value. This is useful for plugins such as Polylang that assign the same base file to items translated into multiple languages.
|
161 |
+
* New: On the Media/Assistant submenu table **`template:[+empty+]`** has been added to the Bulk Edit area processing and IPTC/EXIF Standard Field mapping to support deleting the content of the Title, Caption, Description and ALT Text fields.
|
162 |
+
* New: A **"tax_relation" parameter** has been added for `[mla_gallery]` simple taxonomy searches that involve two or more taxonomies.
|
163 |
+
* New: A **"url" format option** has been added for `[mla_gallery]` substitution parameters that must be encoded for use in an HTML href/URL context, e.g., in hyperlink (`a`) or `img` tag.
|
164 |
+
* New: An **"attr" format option** has been added for `[mla_gallery]` substitution parameters that must be encoded for use in an HTML attribute context, e.g., in the `title=` attribute of a hyperlink (`a`) or `img` tag.
|
165 |
+
* New: The "MLA Tax Query Example" plugin in `/examples/mla-tax-query-example.php.txt` has been enhanced to handle `orderby`, `order` and `post_mime_type` parameters.
|
166 |
+
* New: On the "help" dropdown for Media/Assistant submenu table a new tab has been added to document the "Where-used Reporting" information.
|
167 |
+
* New: Examples for custom field mapping/use and IPTC/EXIF mapping/use have been added to the Settings/Media Library Assistant Documentation tab.
|
168 |
+
* Fix: On the Media/Assistant submenu table the table header height is no longer affected by the "Icon Size" option value.
|
169 |
+
* Fix: On the Media/Assistant submenu table a bug in the "where-used" information for attachments inserted in the body of a post/page but not used in a `[gallery]`, `[mla_gallery]` or Featured Image has been fixed.
|
170 |
+
* Fix: For `[mla_gallery]` simple taxonomy searches that involve two or more taxonomies are now processed correctly.
|
171 |
+
* Fix: Improved coverage of `[mla_gallery]` pagination and author parameters (and some others) has been added to the Settings/Media Library Assistant Documentation tab.
|
172 |
+
* Fix: The Title field is now properly encoded when used as the default `title` attribute in `[mla_gallery]` item links.
|
173 |
+
* Fix: The `title` attribute no longer appears twice in `[mla_gallery]` item links when the `mla_viewer=true` parameter is specified.
|
174 |
+
* Fix: An occasional problem with double slashes (`//`) in template path names has been corrected.
|
175 |
+
|
176 |
= 1.94 =
|
177 |
|
178 |
* New: An example that shows how to replace the wp_list_categories() item count with an accurate, padded count of the attachments assigned to each term has been added to the /media-library-assistant/examples/twentytwelve-mla directory. The example comprises the "page-tosca30-dropdown.php" and "content-tosca30-dropdown.php" files.
|
235 |
* New: An example plugin using **BuddyPress and rtMedia** has been created in `/examples/buddypress-hooks-example.php.txt`. The example shows how to replace the WordPress "attachment/media page" links with "BuddyPress/rtMedia page" links. For audio and video files, an option is provided to substitute the "cover_art" thumbnail image for the item Title in the thumbnail_content.
|
236 |
* Fix: In the Media Manager Modal Window, **adding a taxonomy term** now updates the toolbar "terms filter" dropdown list. It also updates the "parent" dropdown list in the toolbar, if the taxonomy is hierarchical.
|
237 |
* Fix: In the Media Manager Modal Window, the **year/month and taxonomy filter controls** now appear for plugins such as WooCommerce, Slider Revolution, Image Widget and SimpleFields.
|
238 |
+
* Fix: More details added to the "Category Parameters" section of the Settings/Media Library Assistant Documentation tab.
|
239 |
* 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.
|
240 |
* Fix: For `[mla_tag_cloud]`, the `number` parameter default is now zero, agreeing with the Documentation.
|
241 |
|
292 |
|
293 |
== Upgrade Notice ==
|
294 |
|
295 |
+
= 1.95 =
|
296 |
+
New [mla_gallery] parameters, Download rollover action, Media/Assistant submenu filters. Eleven enhancements, seven fixes.
|
297 |
|
298 |
== Other Notes ==
|
299 |
|
306 |
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).
|
307 |
|
308 |
<h4>NEW! Hooks for the Edit Media additional meta boxes</h4>
|
309 |
+
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.
|
310 |
|
311 |
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:
|
312 |
|
tests/class-mla-tests.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
* Provides basic run-time tests to ensure the plugin can run in the current WordPress
|
4 |
*
|
5 |
* @package Media Library Assistant
|
6 |
* @since 0.1
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Provides basic run-time tests to ensure the plugin can run in the current WordPress environment
|
4 |
*
|
5 |
* @package Media Library Assistant
|
6 |
* @since 0.1
|
tpls/admin-inline-edit-form.tpl
CHANGED
@@ -81,6 +81,7 @@
|
|
81 |
<p class="submit inline-edit-save">
|
82 |
<a accesskey="c" href="#inline-edit" title="[+Cancel+]" class="button-secondary cancel alignleft">[+Cancel+]</a>
|
83 |
<a accesskey="s" href="#inline-edit" title="[+Update+]" class="button-primary save alignright">[+Update+]</a>
|
|
|
84 |
<input type="hidden" name="page" value="mla-menu" />
|
85 |
<input type="hidden" name="screen" value="media_page_mla-menu" />
|
86 |
<br class="clear" />
|
81 |
<p class="submit inline-edit-save">
|
82 |
<a accesskey="c" href="#inline-edit" title="[+Cancel+]" class="button-secondary cancel alignleft">[+Cancel+]</a>
|
83 |
<a accesskey="s" href="#inline-edit" title="[+Update+]" class="button-primary save alignright">[+Update+]</a>
|
84 |
+
<span class="spinner"></span>
|
85 |
<input type="hidden" name="page" value="mla-menu" />
|
86 |
<input type="hidden" name="screen" value="media_page_mla-menu" />
|
87 |
<br class="clear" />
|
tpls/documentation-settings-tab.tpl
CHANGED
@@ -14,12 +14,14 @@
|
|
14 |
<li><a href="#author_author_name">Author, Author Name</a></li>
|
15 |
<li><a href="#category_parameters">Category Parameters</a></li>
|
16 |
<li><a href="#tag_parameters">Tag Parameters</a></li>
|
17 |
-
<li><a href="#taxonomy_parameters_tax_operator">Taxonomy Parameters, "tax_operator"</a></li>
|
|
|
18 |
<li><a href="#post_mime_type_parameter">Post MIME Type</a></li>
|
19 |
<li><a href="#post_type_post_status">Post Type, Post Status</a></li>
|
20 |
<li><a href="#pagination_parameters">Pagination Parameters</a></li>
|
21 |
-
<li><a href="#time_parameters">Time Parameters</a></li>
|
22 |
-
<li><a href="#custom_field_parameters">Custom Field Parameters</a></li>
|
|
|
23 |
<li><a href="#search_keywords">Search Keywords</a></li>
|
24 |
<li><a href="#cache_parameters">Caching Parameters</a></li>
|
25 |
<li><a href="#debugging_output">Debugging Output</a></li>
|
@@ -96,6 +98,7 @@
|
|
96 |
<a href="#mla_custom_field_mapping"><strong>Custom Field and Attachment Metadata Processing Options</strong></a>
|
97 |
</li>
|
98 |
<ul style="list-style-position:inside; list-style:disc; line-height: 15px; padding-left: 20px">
|
|
|
99 |
<li><a href="#custom_field_mapping_table">The custom field mapping table</a></li>
|
100 |
<li><a href="#custom_field_mapping_buttons">Custom field mapping command buttons</a></li>
|
101 |
<li><a href="#attachment_metadata_mapping">Adding or Changing Attachment Metadata</a></li>
|
@@ -107,6 +110,7 @@
|
|
107 |
<a href="#mla_iptc_exif_mapping"><strong>IPTC & EXIF Processing Options</strong></a>
|
108 |
</li>
|
109 |
<ul style="list-style-position:inside; list-style:disc; line-height: 15px; padding-left: 20px">
|
|
|
110 |
<li><a href="#iptc_exif_mapping_tables">IPTC/EXIF mapping tables</a></li>
|
111 |
<li><a href="#iptc_exif_mapping_buttons">IPTC/EXIF mapping command buttons</a></li>
|
112 |
<li><a href="#iptc_exif_mapping_with_templates">EXIF/Template mapping with Content Templates</a></li>
|
@@ -117,6 +121,7 @@
|
|
117 |
</li>
|
118 |
</ul>
|
119 |
<li><a href="#mla_mapping_hooks"><strong>MLA Custom Field and IPTC/EXIF Mapping Actions and Filters (Hooks)</strong></a></li>
|
|
|
120 |
</ul>
|
121 |
<h3>Plugin Code Documentation</h3>
|
122 |
<p>
|
@@ -141,6 +146,7 @@ The <code>[mla_gallery]</code> shortcode is used in a post, page or custom post
|
|
141 |
<li>You can combine <code>[mla_gallery]</code> data selection with other popular gallery-generating plugins to get the best of both.
|
142 |
</li>
|
143 |
</ul>
|
|
|
144 |
<p>
|
145 |
All of the options/parameters documented for the <code>[gallery]</code> shortcode are supported by the <code>[mla_gallery]</code> shortcode; you can find them in the <a href="http://codex.wordpress.org/Gallery_Shortcode" title="WordPress Codex link" target="_blank">WordPress Codex</a>. Most of the parameters documented for the WP_Query class are also supported; see the <a href="http://codex.wordpress.org/Class_Reference/WP_Query" title="WordPress Codex link" target="_blank">Codex WP_Query class reference</a>. Because the <code>[mla_gallery]</code> shortcode is designed to work with Media Library items, there are some parameter differences and extensions; these are documented below.
|
146 |
<a name="gallery_display_style"></a>
|
@@ -160,10 +166,14 @@ Two <code>[mla_gallery]</code> parameters provide a way to apply custom style an
|
|
160 |
</tr>
|
161 |
</table>
|
162 |
<p>
|
163 |
-
|
164 |
</p>
|
165 |
<table>
|
166 |
<tr>
|
|
|
|
|
|
|
|
|
167 |
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_float</td>
|
168 |
<td>specifies the CSS float attribute of the ".gallery-item" style. Acceptable values are "left", "none", "right"; the default value is "right" if current locale is RTL, "left" on LTR (left-to-right inline flow, e.g., English).</td>
|
169 |
</tr>
|
@@ -185,6 +195,29 @@ These parameters are only important if the gallery thumbnails are too large to f
|
|
185 |
</p>
|
186 |
<p>
|
187 |
The default margin and width calculations try to make the total width of each row as close to 100% as possible, but never exceed 100% due to rounding errors. If you have more advanced style and format needs, you can define custom style and/or markup templates. You can code <code>mla_style=none</code> to suppress inline styles entirely and use a separate stylesheet to control the format of the gallery. You can also code <code>mla_style=theme</code>, if your theme supports it, to use the theme's stylesheet to control the format of the gallery.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
188 |
<a name="gallery_display_content"></a>
|
189 |
</p>
|
190 |
<h4>Gallery Display Content</h4>
|
@@ -344,7 +377,7 @@ The Orderby parameter specifies which database field(s) are used to sort the gal
|
|
344 |
</tr>
|
345 |
<tr>
|
346 |
<td style="padding-right: 10px; vertical-align: top; font-weight:bold"><keyname>, meta_value,<br />meta_value_num</td>
|
347 |
-
<td style="vertical-align: top;">Order by custom field value. Note that a <em>'meta_key=keyname'</em> must also be present in the query
|
348 |
</tr>
|
349 |
<tr>
|
350 |
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">post__in</td>
|
@@ -400,30 +433,61 @@ The Link parameter specifies the target and type of link from the gallery item t
|
|
400 |
<a name="include_exclude"></a>
|
401 |
</p>
|
402 |
<h4>Include, Exclude</h4>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
403 |
<p>
|
404 |
-
You can
|
405 |
<a name="post_id_ids_post_parent"></a>
|
406 |
</p>
|
407 |
<h4>Post ID, "ids", Post Parent</h4>
|
408 |
<p>
|
409 |
-
The "id" parameter lets you specify a post ID for your query. If the "id" parameter is not specified, the <code>[mla_gallery]</code> behavior differs from the <code>[gallery]</code> behavior. If your query uses taxonomy or custom field parameters, "author", "author_name" or "s" (search term), then the query will NOT be restricted to items attached to the current post. This lets you build a gallery with any combination of Media Library items that match the parameters.
|
410 |
</p>
|
411 |
<p>
|
412 |
For WordPress 3.5 and later, the "ids" parameter lets you specify a list of Post IDs. The attachment(s) matching the "ids" values will be displayed in the order specified by the list.
|
413 |
</p>
|
414 |
<p>
|
415 |
-
You can use the "post_parent" to override the default behavior. If you set "post_parent" to a specific post ID, only the items attached to that post are displayed.
|
416 |
-
</p>
|
417 |
-
<p>
|
418 |
-
Two other "post_parent" values let you restrict the gallery to attached or unattached items. If you set "post_parent" to <strong>"any"</strong>, only the items attached to a post or page are displayed. If you set "post_parent" to <strong>"none"</strong>, only the unattached items are displayed.
|
419 |
</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
420 |
<p>
|
421 |
For example, <code>[mla_gallery tag="artisan"]</code> will display all images having the specified tag value, regardless of which post (if any) they are attached to. If you use <code>[mla_gallery tag="artisan" post_parent="current"]</code> it will display images having the specified tag value only if they are attached to the current post.
|
422 |
<a name="author_author_name"></a>
|
423 |
</p>
|
424 |
<h4>Author, Author Name</h4>
|
425 |
<p>
|
426 |
-
You can query by author's id or the "user_nicename"
|
|
|
|
|
|
|
|
|
|
|
|
|
427 |
<a name="category_parameters"></a>
|
428 |
</p>
|
429 |
<h4>Category Parameters</h4>
|
@@ -465,7 +529,7 @@ More information and examples can be found on the <a href="http://codex.wordpres
|
|
465 |
Note that the "tag_id" parameter requires exactly one tag ID; multiple IDs are not allowed. You can use the "tag__in" parameter to query for multiple values.
|
466 |
<a name="taxonomy_parameters_tax_operator"></a>
|
467 |
</p>
|
468 |
-
<h4>Taxonomy Parameters, "tax_operator"</h4>
|
469 |
<p>
|
470 |
The <code>[mla_gallery]</code> shortcode supports the simple "{tax} (string)" values (deprecated as of WordPress version 3.1) as well as the more powerful "<a href="http://codex.wordpress.org/Class_Reference/WP_Query#Taxonomy_Parameters" title="WordPress Codex Documentation for tax_query" target="_blank">tax_query</a>" value. Use these queries for your custom taxonomies (and for the MLA attachment_category and attachment_tag taxonomies); use the above Category and Tag parameters for the WordPress-provided taxonomies. If you do use a tax_query for Categories and Tags, the slug values are "category" and "post_tag".
|
471 |
</p>
|
@@ -485,12 +549,16 @@ Note that you must use the name/slug strings for taxonomy and terms, not the "ti
|
|
485 |
In this example, "attachment_tag" is the WordPress taxonomy name/slug for the taxonomy. If you're using "Att. Category", the slug would be "attachment_category".
|
486 |
</p>
|
487 |
<p>
|
488 |
-
The default behavior of the simple taxonomy query will match any of the terms in the list. MLA enhances the simple taxonomy query form by providing
|
489 |
</p>
|
490 |
<table>
|
491 |
<tr>
|
|
|
|
|
|
|
|
|
492 |
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">tax_operator</td>
|
493 |
-
<td>SQL operator to
|
494 |
</tr>
|
495 |
<tr>
|
496 |
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">tax_include_children</td>
|
@@ -498,14 +566,22 @@ The default behavior of the simple taxonomy query will match any of the terms in
|
|
498 |
</tr>
|
499 |
</table>
|
500 |
<p>
|
501 |
-
If you specify
|
502 |
</p>
|
503 |
<ul class="mla_settings">
|
504 |
<li><code>[mla_gallery attachment_category='separate-category,another-category' tax_operator=AND tax_include_children=false]</code></li>
|
505 |
</ul>
|
506 |
<p>
|
|
|
|
|
|
|
|
|
|
|
|
|
507 |
Note that the default tax_include_children value is true, matching the default WordPress setting. If your tax_operator is "AND", you will almost certainly want to change this setting.
|
|
|
508 |
</p>
|
|
|
509 |
<p>
|
510 |
More complex queries can be specified by using <a href="http://codex.wordpress.org/Class_Reference/WP_Query#Taxonomy_Parameters" title="WordPress Codex Documentation for tax_query" target="_blank">WP_Query's "tax_query"</a>, e.g.:
|
511 |
</p>
|
@@ -535,23 +611,85 @@ For compatibility with the WordPress <code>[gallery]</code> shortcode, these par
|
|
535 |
</p>
|
536 |
<h4>Pagination Parameters</h4>
|
537 |
<p>
|
538 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
539 |
</p>
|
|
|
540 |
<p>
|
541 |
-
The "
|
542 |
</p>
|
543 |
<p>
|
544 |
-
|
545 |
-
|
|
|
|
|
|
|
|
|
|
|
546 |
</p>
|
547 |
-
<h4>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
548 |
<p>
|
549 |
-
|
550 |
-
<a name="
|
551 |
</p>
|
552 |
-
<h4>Custom Field
|
553 |
<p>
|
554 |
-
The <code>[mla_gallery]</code> shortcode supports the
|
555 |
</p>
|
556 |
<p>
|
557 |
When embedding the shortcode in the body of a post, be very careful when coding the meta_query; it must be a valid PHP array specification. In particular, code the query on one line; splitting it across lines can insert HTML <br> tags and corrupt your query. MLA will clean up most of the damage, but if your query fails use the <code>mla_debug=true</code> parameter to see if your query has been corrupted.
|
@@ -597,7 +735,7 @@ The "mla_debug" parameter controls the display of information about the query pa
|
|
597 |
The <code>[mla_gallery]</code> shortcode supports a comprehensive set of filters and actions that give you complete control over gallery 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 Hooks Example source code" href="[+examples_url+]mla-hooks-example.php.txt" target="_blank" style="font-size:14px; font-weight:bold">mla-hooks-example.php.txt</a>. To run the example:
|
598 |
<ol>
|
599 |
<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>
|
600 |
-
<li>Remove the ".txt" extension and
|
601 |
<li>Go to the Plugins/Installed Plugins screen and activate the "MLA Gallery Hooks Example" plugin.</li>
|
602 |
<li>Create a new <code>[mla_gallery]</code> shortcode or modify an existing shortcode, adding the <code>my_filter="all custom"</code> parameter to activate the example output.</li>
|
603 |
<li>View the post or page on which the modified shortcode appears to see a list of each item's custom fields appended to the gallery captions.</li>
|
@@ -695,7 +833,7 @@ The traditional tag cloud output is a "heat map" of term names where larger name
|
|
695 |
<table>
|
696 |
<tr>
|
697 |
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">flat</td>
|
698 |
-
<td>Returns a sequence of hypelink tags without further HTML markup. The "separator" parameter content (default, one newline character) is inserted between each hyperlink.</td>
|
699 |
</tr>
|
700 |
<tr>
|
701 |
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">list</td>
|
@@ -1522,7 +1660,14 @@ This example shows the power of the substitution parameters and in particular th
|
|
1522 |
</p>
|
1523 |
<h4>Next and previous gallery pages; the <code>next_page</code> and <code>previous_page</code> output types</h4>
|
1524 |
<p>
|
1525 |
-
WordPress provides functions that generate links to the "<em>next/previous set of posts within the current query</em>." These are not useful because the "current query" is for posts/pages, <strong>not</strong> Media Library items. What's needed is a way to paginate an <code>[mla_gallery]</code> shortcode on a single post or page. If, for example, you use an <code>[mla_gallery]</code> shortcode to build a gallery of items with a specific Att. Tag value you can use the <code>next_page</code> and <code>previous_page</code> output types to move through the gallery in groups of, say, ten items per "gallery page".
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1526 |
</p>
|
1527 |
<p>
|
1528 |
WordPress uses the "paged" parameter to indicate the current "<em>set of posts within the current query</em>." To avoid built-in WordPress logic that uses this parameter, MLA has its own "mla_paginate_current" parameter to indicate the current set of items within the gallery (the current gallery page). MLA will automatically manage this parameter for you, but you can also use it explicitly to handle special cases.
|
@@ -1554,14 +1699,15 @@ Use the following parameters to specify the size of each gallery page and the cu
|
|
1554 |
</tr>
|
1555 |
<tr>
|
1556 |
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_paginate_rows</td>
|
1557 |
-
<td>If you have some other way of computing the total number of items you want to paginate you can use <code>mla_paginate_rows</code>simplify your shortcode parameters and avoid redundant database access. If, for example, you want pagination controls for a gallery that you know has fifty items you can code <code>[mla_gallery mla_output=paginate_links mla_paginate_rows=50]</code> and then add any other page selection or gallery display content parameters you need.</td>
|
1558 |
</tr>
|
1559 |
<tr>
|
1560 |
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">offset, paged</td>
|
1561 |
<td><strong>DO NOT USE THESE PARAMETERS; THEY WILL BREAK MLA PAGINATION</strong></td>
|
1562 |
</tr>
|
1563 |
</table>
|
1564 |
-
<p>For most applications, "posts_per_page" is the only parameter you need to specify. Make sure this parameter is
|
|
|
1565 |
<h4>Gallery Display Content parameters for <code>next_page</code> and <code>previous_page</code> output types</h4>
|
1566 |
<p>
|
1567 |
The next or previous link returned can use the following Gallery Display Content parameters to control each element of the link:
|
@@ -1968,10 +2114,31 @@ In a template, substitution parameters are surrounded by opening ('[+') and clos
|
|
1968 |
</p>
|
1969 |
<h4>Attachment-specific substitution parameters for the markup template Item part</h4>
|
1970 |
<p>
|
1971 |
-
These substitution parameters are only available in the "Item" part of the markup template, since they require an attachment for their data source.
|
1972 |
</p>
|
1973 |
<p>
|
1974 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1975 |
</p>
|
1976 |
<table>
|
1977 |
<tr>
|
@@ -2331,6 +2498,9 @@ Conditional, choice and template elements can be nested as needed. For example,
|
|
2331 |
<p>
|
2332 |
This template has a String, "Terms: " and a Conditional, "(([+terms: ... none)". This Conditional separates the "Terms: " literal from the first alternative in the Choice. Within the Conditional is a Choice having four alternatives. The first alternative is a Conditional, which will be empty unless both categories and tags are present. The second and third alternatives handle the cases where one of the two taxonomies has terms, and the final alternative is used when neither categories nor tags are present.
|
2333 |
</p>
|
|
|
|
|
|
|
2334 |
<h4>Special characters inside templates</h4>
|
2335 |
<p>
|
2336 |
The conditional and choice elements require delimiters, "(", ")" and "|". If you want to put any of these three characters in your template, preface them with two backslash characters, e.g., "\\(". If you need a backslash in your template, code it as four backslash characters, i.e., "\\\\". The doubling of backslash characters is required because of the way WordPress processes shortcode parameters.
|
@@ -2558,7 +2728,7 @@ Media Library Assistant adds several controls to the toolbar in the Media Manage
|
|
2558 |
</p>
|
2559 |
<h3>Edit Media additional meta boxes (and Hooks)</h3>
|
2560 |
<p>
|
2561 |
-
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
|
2562 |
</p>
|
2563 |
<p>
|
2564 |
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:
|
@@ -2767,6 +2937,40 @@ This is a powerful tool, but it comes at the price of additional database storag
|
|
2767 |
<p>
|
2768 |
If you just want to add a custom field to the Media/Assistant submenu, the quick edit area and/or the bulk edit area you can bypass the mapping logic by leaving the Data Source value as "-- None (select a value) --".
|
2769 |
</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2770 |
<a name="custom_field_mapping_table"></a>
|
2771 |
<p>
|
2772 |
<a href="#backtotop">Go to Top</a>
|
@@ -3330,6 +3534,44 @@ You can define the rules for mapping metadata on the "IPTC/EXIF" tab of the Sett
|
|
3330 |
<p>
|
3331 |
If you just want to add a custom field to the Media/Assistant submenu, the quick edit area and/or the bulk edit area go to the "Custom Fields" tab and follow the instructions there.
|
3332 |
</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3333 |
<a name="iptc_exif_mapping_tables"></a>
|
3334 |
<p>
|
3335 |
<a href="#backtotop">Go to Top</a>
|
@@ -3463,7 +3705,10 @@ You can use a template to compose a value from multiple data sources, e.g., "<co
|
|
3463 |
You can use a template to compose a value from alternative data sources, depending on which fields are populated for a given attachment. For example, "<code>[+iptc:2#020+]|[+iptc:2#025+]|none</code>" will use the IPTC supplemental-category field, if populated, then the IPTC keywords field, if populated, or the literal "none" if neither IPTC field contains a value.
|
3464 |
</p>
|
3465 |
<p>
|
3466 |
-
Using a template in the "Standard field mapping" or "Custom field mapping" tables will yield a text result. For example, multiple IPTC keywords would be converted into a comma-delimited list as a string. In the "Taxonomy term mapping" table the template will deliver an array result if the fields inside the template have multiple values. For example, you can code "<code>([+iptc:2#020+])([+iptc:2#025+])</code>" to store each of the IPTC supplemental-category <em><strong>and</strong></em> keywords values (there is no "|" in the template) as a separate taxonomy term. Note that each of the fields is enclosed in parentheses, so the field is suppressed if it contains no values.
|
|
|
|
|
|
|
3467 |
</p>
|
3468 |
<p>
|
3469 |
Note that the <strong>,array</strong> formatting option is <strong>not</strong> required to get an array result for the field in a Taxonomy term mapping template; it is assumed. If you want a <strong>text</strong>, <strong>single</strong> or <strong>export</strong> result you can add one of those formatting options to your field specification.
|
@@ -3817,7 +4062,7 @@ The native format of this data is somewhat complicated, so MLA converts the most
|
|
3817 |
The Custom Field and IPTC/EXIF Mapping tools support a comprehensive set of filters and actions that give you complete control over rule execution and value creation 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 Mapping Hooks Example source code" href="[+examples_url+]mla-mapping-hooks-example.php.txt" target="_blank" style="font-size:14px; font-weight:bold">mla-mapping-hooks-example.php.txt</a>. To run the example:
|
3818 |
<ol>
|
3819 |
<li>Edit the code to uncomment the <code>error_log()</code> calls so you can see what is passed to the hooks you are interested in.</li>
|
3820 |
-
<li>Remove the ".txt" extension and
|
3821 |
<li>Go to the Plugins/Installed Plugins screen and activate the "MLA Mapping Hooks Example" plugin.</li>
|
3822 |
<li>Upload a new attachment and/or run the mapping rules to exercise the filters and write mapping information to the site's Error Log.</li>
|
3823 |
<li>Examine the Error Log to see the mapping information.</li>
|
@@ -3927,6 +4172,175 @@ The current Settings/Media Library Assistant tab list hook is:
|
|
3927 |
<td>gives you an opportunity to remove one or more tabs from the list that appears on the Settings/Media Library Assistant screen.</td>
|
3928 |
</tr>
|
3929 |
</table>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3930 |
<p>
|
3931 |
<a href="#backtotop">Go to Top</a>
|
3932 |
</p>
|
14 |
<li><a href="#author_author_name">Author, Author Name</a></li>
|
15 |
<li><a href="#category_parameters">Category Parameters</a></li>
|
16 |
<li><a href="#tag_parameters">Tag Parameters</a></li>
|
17 |
+
<li><a href="#taxonomy_parameters_tax_operator">Simple Taxonomy Parameters, "tax_operator"</a></li>
|
18 |
+
<li><a href="#taxonomy_queries">Taxonomy Queries, the "tax_query"</a></li>
|
19 |
<li><a href="#post_mime_type_parameter">Post MIME Type</a></li>
|
20 |
<li><a href="#post_type_post_status">Post Type, Post Status</a></li>
|
21 |
<li><a href="#pagination_parameters">Pagination Parameters</a></li>
|
22 |
+
<li><a href="#time_parameters">Date and Time Parameters</a></li>
|
23 |
+
<li><a href="#custom_field_parameters">Simple Custom Field Parameters</a></li>
|
24 |
+
<li><a href="#custom_field_queries">Custom Field Queries, "meta_query"</a></li>
|
25 |
<li><a href="#search_keywords">Search Keywords</a></li>
|
26 |
<li><a href="#cache_parameters">Caching Parameters</a></li>
|
27 |
<li><a href="#debugging_output">Debugging Output</a></li>
|
98 |
<a href="#mla_custom_field_mapping"><strong>Custom Field and Attachment Metadata Processing Options</strong></a>
|
99 |
</li>
|
100 |
<ul style="list-style-position:inside; list-style:disc; line-height: 15px; padding-left: 20px">
|
101 |
+
<li><a href="#custom_field_mapping_example">Custom field mapping example</a></li>
|
102 |
<li><a href="#custom_field_mapping_table">The custom field mapping table</a></li>
|
103 |
<li><a href="#custom_field_mapping_buttons">Custom field mapping command buttons</a></li>
|
104 |
<li><a href="#attachment_metadata_mapping">Adding or Changing Attachment Metadata</a></li>
|
110 |
<a href="#mla_iptc_exif_mapping"><strong>IPTC & EXIF Processing Options</strong></a>
|
111 |
</li>
|
112 |
<ul style="list-style-position:inside; list-style:disc; line-height: 15px; padding-left: 20px">
|
113 |
+
<li><a href="#iptc_exif_mapping_example">IPTC/EXIF mapping example</a></li>
|
114 |
<li><a href="#iptc_exif_mapping_tables">IPTC/EXIF mapping tables</a></li>
|
115 |
<li><a href="#iptc_exif_mapping_buttons">IPTC/EXIF mapping command buttons</a></li>
|
116 |
<li><a href="#iptc_exif_mapping_with_templates">EXIF/Template mapping with Content Templates</a></li>
|
121 |
</li>
|
122 |
</ul>
|
123 |
<li><a href="#mla_mapping_hooks"><strong>MLA Custom Field and IPTC/EXIF Mapping Actions and Filters (Hooks)</strong></a></li>
|
124 |
+
<li><a href="#mla_list_table_hooks"><strong>Media/Assistant Submenu Actions and Filters (Hooks)</strong></a></li>
|
125 |
</ul>
|
126 |
<h3>Plugin Code Documentation</h3>
|
127 |
<p>
|
146 |
<li>You can combine <code>[mla_gallery]</code> data selection with other popular gallery-generating plugins to get the best of both.
|
147 |
</li>
|
148 |
</ul>
|
149 |
+
<h4>Option/Parameter Documentation Sources</h4>
|
150 |
<p>
|
151 |
All of the options/parameters documented for the <code>[gallery]</code> shortcode are supported by the <code>[mla_gallery]</code> shortcode; you can find them in the <a href="http://codex.wordpress.org/Gallery_Shortcode" title="WordPress Codex link" target="_blank">WordPress Codex</a>. Most of the parameters documented for the WP_Query class are also supported; see the <a href="http://codex.wordpress.org/Class_Reference/WP_Query" title="WordPress Codex link" target="_blank">Codex WP_Query class reference</a>. Because the <code>[mla_gallery]</code> shortcode is designed to work with Media Library items, there are some parameter differences and extensions; these are documented below.
|
152 |
<a name="gallery_display_style"></a>
|
166 |
</tr>
|
167 |
</table>
|
168 |
<p>
|
169 |
+
Four <code>[mla_gallery]</code> parameters provide control over the placement, size and spacing of gallery items without requiring the use of custom Style templates.
|
170 |
</p>
|
171 |
<table>
|
172 |
<tr>
|
173 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">columns</td>
|
174 |
+
<td>specifies the number of columns. The gallery will include a break tag at the end of each row, and calculate the column width as appropriate. The default value is 3. If columns is set to 0, no row breaks will be included.</td>
|
175 |
+
</tr>
|
176 |
+
<tr>
|
177 |
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_float</td>
|
178 |
<td>specifies the CSS float attribute of the ".gallery-item" style. Acceptable values are "left", "none", "right"; the default value is "right" if current locale is RTL, "left" on LTR (left-to-right inline flow, e.g., English).</td>
|
179 |
</tr>
|
195 |
</p>
|
196 |
<p>
|
197 |
The default margin and width calculations try to make the total width of each row as close to 100% as possible, but never exceed 100% due to rounding errors. If you have more advanced style and format needs, you can define custom style and/or markup templates. You can code <code>mla_style=none</code> to suppress inline styles entirely and use a separate stylesheet to control the format of the gallery. You can also code <code>mla_style=theme</code>, if your theme supports it, to use the theme's stylesheet to control the format of the gallery.
|
198 |
+
</p>
|
199 |
+
<p>
|
200 |
+
Three parameters provide control over the XHTML tags used to enclose each part of the gallery items.
|
201 |
+
</p>
|
202 |
+
<table>
|
203 |
+
<tr>
|
204 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">itemtag</td>
|
205 |
+
<td>the name of the XHTML tag used to enclose each item in the gallery. The default is "dl"; if your theme supports HTML5, the default is "figure".</td>
|
206 |
+
</tr>
|
207 |
+
<tr>
|
208 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">icontag</td>
|
209 |
+
<td>the name of the XHTML tag used to enclose each thumbnail icon in the gallery. The default is "dt"; if your theme supports HTML5, the default is "div".</td>
|
210 |
+
</tr>
|
211 |
+
<tr>
|
212 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">captiontag</td>
|
213 |
+
<td>the name of the XHTML tag used to enclose each caption. The default is "dd"; if your theme supports HTML5, the default is "figcaption".</td>
|
214 |
+
</tr>
|
215 |
+
</table>
|
216 |
+
<p>
|
217 |
+
These parameters work together to change the gallery markup. For example, to change the gallery markup to use div, span and p tags:
|
218 |
+
</p>
|
219 |
+
<p>
|
220 |
+
<code>[gallery itemtag="div" icontag="span" captiontag="p"]</code>
|
221 |
<a name="gallery_display_content"></a>
|
222 |
</p>
|
223 |
<h4>Gallery Display Content</h4>
|
377 |
</tr>
|
378 |
<tr>
|
379 |
<td style="padding-right: 10px; vertical-align: top; font-weight:bold"><keyname>, meta_value,<br />meta_value_num</td>
|
380 |
+
<td style="vertical-align: top;">Order by custom field value. Note that a <em>'meta_key=keyname'</em> must also be present in the query. For example, to sort by a custom field called "Publication Date" and display the most recent items first, code <code>[mla_gallery meta_key="Publication Date" orderby=meta_value order=DESC]</code></td>
|
381 |
</tr>
|
382 |
<tr>
|
383 |
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">post__in</td>
|
433 |
<a name="include_exclude"></a>
|
434 |
</p>
|
435 |
<h4>Include, Exclude</h4>
|
436 |
+
<table>
|
437 |
+
<tr>
|
438 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">include</td>
|
439 |
+
<td>comma separated attachment IDs to show only the information from these attachments.</td>
|
440 |
+
</tr>
|
441 |
+
<tr>
|
442 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">exclude</td>
|
443 |
+
<td>comma separated attachment IDs excludes the information from these attachments. Please note that include and exclude cannot be used together.</td>
|
444 |
+
</tr>
|
445 |
+
</table>
|
446 |
<p>
|
447 |
+
You can add <code>post_parent=all</code> to include or exclude attachments regardless of which post or page they are attached to. You can add <code>post_mime_type=all</code> to include or exclude attachments of all MIME types, not just images.
|
448 |
<a name="post_id_ids_post_parent"></a>
|
449 |
</p>
|
450 |
<h4>Post ID, "ids", Post Parent</h4>
|
451 |
<p>
|
452 |
+
The "id" parameter lets you specify a post ID for your query. The gallery will display images which are attached to that post. If the "id" parameter is not specified, the <code>[mla_gallery]</code> behavior differs from the <code>[gallery]</code> behavior. If your query uses taxonomy or custom field parameters, "author", "author_name" or "s" (search term), then the query will NOT be restricted to items attached to the current post. This lets you build a gallery with any combination of Media Library items that match the parameters.
|
453 |
</p>
|
454 |
<p>
|
455 |
For WordPress 3.5 and later, the "ids" parameter lets you specify a list of Post IDs. The attachment(s) matching the "ids" values will be displayed in the order specified by the list.
|
456 |
</p>
|
457 |
<p>
|
458 |
+
You can use the "post_parent" to override the default behavior. If you set "post_parent" to a specific post ID, only the items attached to that post are displayed. There are four additional values available:
|
|
|
|
|
|
|
459 |
</p>
|
460 |
+
<table>
|
461 |
+
<tr>
|
462 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">none</td>
|
463 |
+
<td>all the <strong>unattached</strong> items are displayed, i.e., items with post_parent equal to zero (0)</td>
|
464 |
+
</tr>
|
465 |
+
<tr>
|
466 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">current</td>
|
467 |
+
<td>only the items attached to the current post/page are displayed, i.e., the post/page that contains the shortcode</td>
|
468 |
+
</tr>
|
469 |
+
<tr>
|
470 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">any</td>
|
471 |
+
<td>all the <strong>attached</strong> items are displayed, i.e., items with post_parent not equal to zero (0)</td>
|
472 |
+
</tr>
|
473 |
+
<tr>
|
474 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">all</td>
|
475 |
+
<td>all of the items are displayed, i.e., post_parent is ignored</td>
|
476 |
+
</tr>
|
477 |
+
</table>
|
478 |
<p>
|
479 |
For example, <code>[mla_gallery tag="artisan"]</code> will display all images having the specified tag value, regardless of which post (if any) they are attached to. If you use <code>[mla_gallery tag="artisan" post_parent="current"]</code> it will display images having the specified tag value only if they are attached to the current post.
|
480 |
<a name="author_author_name"></a>
|
481 |
</p>
|
482 |
<h4>Author, Author Name</h4>
|
483 |
<p>
|
484 |
+
You can query by author's id or "Username", the value used to log in to the site. In the database this is the "user_nicename" column (not the "display_name" column). For example, if you log in as "john" and your id is 2 you can code:
|
485 |
+
</p>
|
486 |
+
<ul class="mla_settings">
|
487 |
+
<li><code>[mla_gallery author=2]</code></li>
|
488 |
+
<li><code>[mla_gallery author_name='john']</code></li>
|
489 |
+
</ul>
|
490 |
+
<p>Multiple author ID values are allowed, but only one author name value can be entered.
|
491 |
<a name="category_parameters"></a>
|
492 |
</p>
|
493 |
<h4>Category Parameters</h4>
|
529 |
Note that the "tag_id" parameter requires exactly one tag ID; multiple IDs are not allowed. You can use the "tag__in" parameter to query for multiple values.
|
530 |
<a name="taxonomy_parameters_tax_operator"></a>
|
531 |
</p>
|
532 |
+
<h4>Simple Taxonomy Parameters, "tax_operator"</h4>
|
533 |
<p>
|
534 |
The <code>[mla_gallery]</code> shortcode supports the simple "{tax} (string)" values (deprecated as of WordPress version 3.1) as well as the more powerful "<a href="http://codex.wordpress.org/Class_Reference/WP_Query#Taxonomy_Parameters" title="WordPress Codex Documentation for tax_query" target="_blank">tax_query</a>" value. Use these queries for your custom taxonomies (and for the MLA attachment_category and attachment_tag taxonomies); use the above Category and Tag parameters for the WordPress-provided taxonomies. If you do use a tax_query for Categories and Tags, the slug values are "category" and "post_tag".
|
535 |
</p>
|
549 |
In this example, "attachment_tag" is the WordPress taxonomy name/slug for the taxonomy. If you're using "Att. Category", the slug would be "attachment_category".
|
550 |
</p>
|
551 |
<p>
|
552 |
+
The default behavior of the simple taxonomy query will match any of the terms in the list. If you have two or more simple taxonomy queries, they will be joined by "AND". MLA enhances the simple taxonomy query form by providing three additional parameters:
|
553 |
</p>
|
554 |
<table>
|
555 |
<tr>
|
556 |
+
<tr>
|
557 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">tax_relation</td>
|
558 |
+
<td>SQL operator to join multiple taxonomy queries; can be "AND" (the default) or "OR".</td>
|
559 |
+
</tr>
|
560 |
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">tax_operator</td>
|
561 |
+
<td>SQL operator to join the terms within each taxonomy; can be "IN" (the default), "NOT IN" or "AND".</td>
|
562 |
</tr>
|
563 |
<tr>
|
564 |
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">tax_include_children</td>
|
566 |
</tr>
|
567 |
</table>
|
568 |
<p>
|
569 |
+
If you specify any of these parameters, MLA will convert your query to the more powerful "tax_query" form, searching on the "slug" field and using the operator you specify. For example, a query for two terms in which <strong>both</strong> terms must match would be coded as:
|
570 |
</p>
|
571 |
<ul class="mla_settings">
|
572 |
<li><code>[mla_gallery attachment_category='separate-category,another-category' tax_operator=AND tax_include_children=false]</code></li>
|
573 |
</ul>
|
574 |
<p>
|
575 |
+
If you code two or more simple taxonomy queries, the items selected must contain the terms in <strong><em>all</em></strong> of the taxonomies; they are joined by "AND". If you want to include items that match the terms in <strong><em>any</em></strong> of the taxonomies you can add <code>tax_relation="OR"</code>. For example, a query to match either an <code>attachment_category</code> or an <code>attachment_tag</code> would be coded as:
|
576 |
+
</p>
|
577 |
+
<ul class="mla_settings">
|
578 |
+
<li><code>[mla_gallery attachment_category='some-category' attachment_tag="a-tag" tax_relation=OR]</code></li>
|
579 |
+
</ul>
|
580 |
+
<p>
|
581 |
Note that the default tax_include_children value is true, matching the default WordPress setting. If your tax_operator is "AND", you will almost certainly want to change this setting.
|
582 |
+
<a name="taxonomy_queries"></a>
|
583 |
</p>
|
584 |
+
<h4>Taxonomy Queries, the "tax_query"</h4>
|
585 |
<p>
|
586 |
More complex queries can be specified by using <a href="http://codex.wordpress.org/Class_Reference/WP_Query#Taxonomy_Parameters" title="WordPress Codex Documentation for tax_query" target="_blank">WP_Query's "tax_query"</a>, e.g.:
|
587 |
</p>
|
611 |
</p>
|
612 |
<h4>Pagination Parameters</h4>
|
613 |
<p>
|
614 |
+
Pagination parameters let you divide your <code>[mla_gallery]</code> display into two or more pages when the display includes a large number of items. These parameters work with MLA's <a href="#mla_output">Support for Alternative Gallery Output, e.g., Pagination</a> to make it easy to construct multi-page galleries without resorting to PHP templates and code in your theme.
|
615 |
+
<table>
|
616 |
+
<tr>
|
617 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">nopaging</td>
|
618 |
+
<td>The <code>[mla_gallery]</code> shortcode supplies <code>nopaging=true</code> as a default parameter. If you are working with a template that supports pagination you can replace this with specific values for "numberposts", "posts_per_page", "posts_per_archive_page", "paged" and/or "offset" . You can also pass "paged=current" to suppress the "nopaging" default; "current" will be replaced by the appropriate value (<code>get_query_var('paged')</code> or <code>get_query_var('page')</code>).</td>
|
619 |
+
</tr>
|
620 |
+
<tr>
|
621 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">numberposts,<br />posts_per_page</td>
|
622 |
+
<td>the number of items to display on each gallery page.</td>
|
623 |
+
</tr>
|
624 |
+
<tr>
|
625 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">posts_per_archive_page</td>
|
626 |
+
<td>number of items to show per page - on archive pages only. Over-rides posts_per_page on pages where is_archive() or is_search() would be true. Not often used.</td>
|
627 |
+
</tr>
|
628 |
+
<tr>
|
629 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">paged</td>
|
630 |
+
<td>number of page. Show the items that would normally show up just on page X. The "paged=current" parameter is useful for "paginated single posts" (i.e. posts that include the <code><!--nextpage--></code> Quicktag one or more times). Simply make two or more copies of your <code>[mla_gallery]</code> shortcode separated by the Quicktag and include the "paged=current' in each copy. For true pagination it is better to use the "mla_paginate_current" parameter.</td>
|
631 |
+
</tr>
|
632 |
+
<tr>
|
633 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">offset</td>
|
634 |
+
<td>the number of terms to skip over before starting the current gallery page. This parameter is usually derived automatically from the more useful "mla_paginate_current" parameter.</td>
|
635 |
+
</tr>
|
636 |
+
<tr>
|
637 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_paginate_current</td>
|
638 |
+
<td>the "current" gallery page; defaults to one (1) if not specified. MLA will usually manage this for you, looking for this parameter in the HTML $_REQUEST array if it is not coded in the gallery shortcode.</td>
|
639 |
+
</tr>
|
640 |
+
<tr>
|
641 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_page_parameter</td>
|
642 |
+
<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>
|
643 |
+
</tr>
|
644 |
+
<tr>
|
645 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_paginate_total</td>
|
646 |
+
<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>
|
647 |
+
</tr>
|
648 |
+
</table>
|
649 |
+
<p>
|
650 |
+
The task of dividing a large <code>[mla_gallery]</code> into two or more pages is supported by MLA's <a href="#mla_output">Support for Alternative Gallery Output, e.g., Pagination</a>. For more information and examples, go to that section of the Documentation.
|
651 |
+
<a name="time_parameters"></a>
|
652 |
</p>
|
653 |
+
<h4>Date and Time Parameters</h4>
|
654 |
<p>
|
655 |
+
The <code>[mla_gallery]</code> shortcode supports the "<a href="http://codex.wordpress.org/Class_Reference/WP_Query#Date_Parameters" title="WordPress Codex Documentation for date_query" target="_blank">date_query</a>" parameter introduced in WordPress Version 3.7. You can use a date_query to filter your gallery based on the 'post_date', 'post_date_gmt', 'post_modified', 'post_modified_gmt', 'comment_date', or 'comment_date_gmt' database columns (although the column names include "post", the same columns are used for attachments).
|
656 |
</p>
|
657 |
<p>
|
658 |
+
As the <a href="http://codex.wordpress.org/Class_Reference/WP_Query#Date_Parameters" title="WordPress Codex Documentation for date_query" target="_blank">Codex date_query documentation</a> suggests, "before" and "after" values can use any of the <a href="http://php.net/strtotime" title="PHP Date and Time Formats">PHP strtotime()-compatible string values</a>, which are quite powerful. For example, you can use relative values such as <code>'after' => 'second tuesday of last month'</code>. Careful study of the PHP documentation can be most rewarding. You can use <code>mla_debug=true</code> to see how PHP and WordPress translate your query to specific date-time values.
|
659 |
+
</p>
|
660 |
+
<p>
|
661 |
+
When embedding the shortcode in the body of a post, be very careful when coding the date_query; it must be a valid PHP array specification. Splitting your query over multiple lines or using the "Visual" editor will introduce HTML markup and escape sequences that can render your query invalid. MLA will clean up most of the damage, but if your query fails use the "mla_debug=true" parameter to see if your query has been corrupted.
|
662 |
+
</p>
|
663 |
+
<p>
|
664 |
+
Remember to use <code>post_parent=current</code> if you want to restrict your query to items attached to the current post.<a name="custom_field_parameters"></a>
|
665 |
</p>
|
666 |
+
<h4>Simple Custom Field Parameters</h4>
|
667 |
+
<p>
|
668 |
+
The <code>[mla_gallery]</code> shortcode supports the simple custom field parameters:
|
669 |
+
</p>
|
670 |
+
<table>
|
671 |
+
<tr>
|
672 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">meta_key (string)</td>
|
673 |
+
<td>Custom field key.</td>
|
674 |
+
</tr>
|
675 |
+
<tr>
|
676 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">meta_value (string)</td>
|
677 |
+
<td>Custom field value.</td>
|
678 |
+
</tr>
|
679 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">meta_value_num (number)</td>
|
680 |
+
<td>Custom field value.</td>
|
681 |
+
</tr>
|
682 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">meta_compare (string)</td>
|
683 |
+
<td>Operator to test the 'meta_value'. Possible values are '!=', '>', '>=', '<', or '<='. Default value is '='. </td>
|
684 |
+
</tr>
|
685 |
+
</table>
|
686 |
<p>
|
687 |
+
Remember to use <code>post_parent=current</code> if you want to restrict your query to items attached to the current post.
|
688 |
+
<a name="custom_field_queries"></a>
|
689 |
</p>
|
690 |
+
<h4>Custom Field Queries, "meta_query"</h4>
|
691 |
<p>
|
692 |
+
The <code>[mla_gallery]</code> shortcode supports the more powerful <a href="http://codex.wordpress.org/Class_Reference/WP_Query#Custom_Field_Parameters" title="WordPress Codex documentation for meta_query" target="_blank">"WP_Query meta_query"</a> parameters made available as of WordPress 3.1.
|
693 |
</p>
|
694 |
<p>
|
695 |
When embedding the shortcode in the body of a post, be very careful when coding the meta_query; it must be a valid PHP array specification. In particular, code the query on one line; splitting it across lines can insert HTML <br> tags and corrupt your query. MLA will clean up most of the damage, but if your query fails use the <code>mla_debug=true</code> parameter to see if your query has been corrupted.
|
735 |
The <code>[mla_gallery]</code> shortcode supports a comprehensive set of filters and actions that give you complete control over gallery 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 Hooks Example source code" href="[+examples_url+]mla-hooks-example.php.txt" target="_blank" style="font-size:14px; font-weight:bold">mla-hooks-example.php.txt</a>. To run the example:
|
736 |
<ol>
|
737 |
<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>
|
738 |
+
<li>Remove the ".txt" extension and save the "mla-hooks-example.php" file in your plugins directory.</li>
|
739 |
<li>Go to the Plugins/Installed Plugins screen and activate the "MLA Gallery Hooks Example" plugin.</li>
|
740 |
<li>Create a new <code>[mla_gallery]</code> shortcode or modify an existing shortcode, adding the <code>my_filter="all custom"</code> parameter to activate the example output.</li>
|
741 |
<li>View the post or page on which the modified shortcode appears to see a list of each item's custom fields appended to the gallery captions.</li>
|
833 |
<table>
|
834 |
<tr>
|
835 |
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">flat</td>
|
836 |
+
<td>Returns a sequence of hypelink tags without further HTML markup. The "separator" parameter content (default, one newline character) is inserted between each hyperlink. This is the default value.</td>
|
837 |
</tr>
|
838 |
<tr>
|
839 |
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">list</td>
|
1660 |
</p>
|
1661 |
<h4>Next and previous gallery pages; the <code>next_page</code> and <code>previous_page</code> output types</h4>
|
1662 |
<p>
|
1663 |
+
WordPress provides functions that generate links to the "<em>next/previous set of posts within the current query</em>." These are not useful because the "current query" is for posts/pages, <strong>not</strong> Media Library items. What's needed is a way to paginate an <code>[mla_gallery]</code> shortcode on a single post or page. If, for example, you use an <code>[mla_gallery]</code> shortcode to build a gallery of items with a specific Att. Tag value you can use the <code>next_page</code> and <code>previous_page</code> output types to move through the gallery in groups of, say, ten items per "gallery page". Here is a very simple example of MLA pagination:
|
1664 |
+
</p>
|
1665 |
+
<p>
|
1666 |
+
<code>[mla_gallery post_parent=all posts_per_page=6]<br />
|
1667 |
+
[mla_gallery post_parent=all posts_per_page=6 mla_output=paginate_links]</code>
|
1668 |
+
</p>
|
1669 |
+
<p>
|
1670 |
+
The first shortcode displays the gallery. The data selection parameter is post_parent=all, which will select all of the images in your Media Library. The posts_per_page=6 parameter will divide the gallery into pages of six images each. In the second shortcode, mla_output=paginate_links tells the shortcode to display pagination controls instead of the gallery images.
|
1671 |
</p>
|
1672 |
<p>
|
1673 |
WordPress uses the "paged" parameter to indicate the current "<em>set of posts within the current query</em>." To avoid built-in WordPress logic that uses this parameter, MLA has its own "mla_paginate_current" parameter to indicate the current set of items within the gallery (the current gallery page). MLA will automatically manage this parameter for you, but you can also use it explicitly to handle special cases.
|
1699 |
</tr>
|
1700 |
<tr>
|
1701 |
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_paginate_rows</td>
|
1702 |
+
<td>If you have some other way of computing the total number of items you want to paginate you can use <code>mla_paginate_rows</code> to simplify your shortcode parameters and avoid redundant database access. If, for example, you want pagination controls for a gallery that you know has fifty items you can code <code>[mla_gallery mla_output=paginate_links mla_paginate_rows=50]</code> and then add any other page selection or gallery display content parameters you need.</td>
|
1703 |
</tr>
|
1704 |
<tr>
|
1705 |
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">offset, paged</td>
|
1706 |
<td><strong>DO NOT USE THESE PARAMETERS; THEY WILL BREAK MLA PAGINATION</strong></td>
|
1707 |
</tr>
|
1708 |
</table>
|
1709 |
+
<p>For most applications, "posts_per_page" is the only pagination parameter you need to specify. Make sure this parameter is the same for your main gallery shortcode and for the pagination shortcodes that go with it. Also, make sure you use exactly the same item selection and sorting parameters in both shortcodes.
|
1710 |
+
</p>
|
1711 |
<h4>Gallery Display Content parameters for <code>next_page</code> and <code>previous_page</code> output types</h4>
|
1712 |
<p>
|
1713 |
The next or previous link returned can use the following Gallery Display Content parameters to control each element of the link:
|
2114 |
</p>
|
2115 |
<h4>Attachment-specific substitution parameters for the markup template Item part</h4>
|
2116 |
<p>
|
2117 |
+
These substitution parameters are only available in the "Item" part of the markup template, since they require an attachment for their data source. In addition to the parameters in the list below, you can use any of the <a href="#mla_custom_field_parameters">Data sources for custom field mapping</a> (except "None", "Metadata" and "Template").
|
2118 |
</p>
|
2119 |
<p>
|
2120 |
+
You may need to append one of the format options to the name depending on the context in which the substitution parameter is used. If you need both the native format and the altered format, simply wrap the altered format in a content template, e.g., <code>[+template:([+width,commas+])+]</code>. The template will prevent the native value from being over-written with the formatted value. The format options are:
|
2121 |
+
</p>
|
2122 |
+
<table>
|
2123 |
+
<tr>
|
2124 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">,commas</td>
|
2125 |
+
<td>For numeric data source parameters such as "file_size" you can add the ",commas" option to format the value for display purposes.</td>
|
2126 |
+
</tr>
|
2127 |
+
<tr>
|
2128 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">,raw</td>
|
2129 |
+
<td>If you want to avoid filtering a value through the WordPress <code>sanitize_text_field()</code> function you can add the ",raw" option. This is helpful when, for example, you are using a field that contains HTML markup such as a hyperlink.</td>
|
2130 |
+
</tr>
|
2131 |
+
<tr>
|
2132 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">,attr</td>
|
2133 |
+
<td>If you use a substitution parameter in an HTML attribute such as the <code>title</code> attribute of a hyperlink (<code>a</code>) or <code>img</code> tag you can add the ",attr" option to encode the <, >, &, " and ' (less than, greater than, ampersand, double quote and single quote) characters.</td>
|
2134 |
+
</tr>
|
2135 |
+
<tr>
|
2136 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">,url</td>
|
2137 |
+
<td>If you use a substitution parameter in an HTML <code>href</code> attribute such as a hyperlink (<code>a</code>) or <code>img</code> tag you can add the ",url" option to convert special characters such as quotes, spaces and ampersands to their URL-encoded equivalents.</td>
|
2138 |
+
</tr>
|
2139 |
+
</table>
|
2140 |
+
<p>
|
2141 |
+
The item-level substitution parameter names are:
|
2142 |
</p>
|
2143 |
<table>
|
2144 |
<tr>
|
2498 |
<p>
|
2499 |
This template has a String, "Terms: " and a Conditional, "(([+terms: ... none)". This Conditional separates the "Terms: " literal from the first alternative in the Choice. Within the Conditional is a Choice having four alternatives. The first alternative is a Conditional, which will be empty unless both categories and tags are present. The second and third alternatives handle the cases where one of the two taxonomies has terms, and the final alternative is used when neither categories nor tags are present.
|
2500 |
</p>
|
2501 |
+
<p>
|
2502 |
+
In the Media/Assistant submenu table Bulk Edit area and the IPTC/EXIF Standard Field mapping fields you can use the special <code>template:[+empty+]</code> value to support deleting the content of the Title, Caption, Description and ALT Text fields.
|
2503 |
+
</p>
|
2504 |
<h4>Special characters inside templates</h4>
|
2505 |
<p>
|
2506 |
The conditional and choice elements require delimiters, "(", ")" and "|". If you want to put any of these three characters in your template, preface them with two backslash characters, e.g., "\\(". If you need a backslash in your template, code it as four backslash characters, i.e., "\\\\". The doubling of backslash characters is required because of the way WordPress processes shortcode parameters.
|
2728 |
</p>
|
2729 |
<h3>Edit Media additional meta boxes (and Hooks)</h3>
|
2730 |
<p>
|
2731 |
+
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.
|
2732 |
</p>
|
2733 |
<p>
|
2734 |
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:
|
2937 |
<p>
|
2938 |
If you just want to add a custom field to the Media/Assistant submenu, the quick edit area and/or the bulk edit area you can bypass the mapping logic by leaving the Data Source value as "-- None (select a value) --".
|
2939 |
</p>
|
2940 |
+
<a name="custom_field_mapping_example"></a>
|
2941 |
+
<p>
|
2942 |
+
<a href="#backtotop">Go to Top</a>
|
2943 |
+
</p>
|
2944 |
+
<h4>Custom field mapping example</h4>
|
2945 |
+
<p>
|
2946 |
+
Here is a simple example of mapping the items' file size to a custom field, so you can display it in the Media/Assistant submenu table and use it in and <code>[mla_gallery]</code> shortcode. You can go to the Settings/Media Library Assistant Custom Fields tab and define a rule that maps file size to a WordPress custom field. The steps required are:
|
2947 |
+
<ol>
|
2948 |
+
<li>Navigate to the Settings/Media Library Assistant "Custom Fields" tab.</li>
|
2949 |
+
<li>Make sure the "Enable custom field mapping when adding new media" box is checked. If not, check the box, scroll down to the bottom of the page and click "Save Changes".</li>
|
2950 |
+
<li>Scroll down to the "Add a new Field and Mapping Rule" area.</li>
|
2951 |
+
<li>In the first text box, give your field a name, e.g., "File Size".</li>
|
2952 |
+
<li>From the Data Source dropdown list, select "file_size".</li>
|
2953 |
+
<li>In the "Existing Text" dropdown list, select "Replace".</li>
|
2954 |
+
<li>In the "Format" dropdown list, select "Commas". This will format the values in a more attractive way.</li>
|
2955 |
+
<li>Click the "MLA Column" check box to make the field available in the Media/Assistant submenu table. You can also click the "Quick Edit" and "Bulk Edit" check boxes to make the field available in the Media/Assistant submenu table Quick Edit and Bulk Edit areas if that's useful for you.</li>
|
2956 |
+
<li>In the "Option:" dropdown list, select "Text".</li>
|
2957 |
+
<li>Click the "Delete NULL Values" checkbox.</li>
|
2958 |
+
<li>Click the "Add Field and Map All Attachments" button to save your work and create the "File Size" value for the items already in your Media Library.</li>
|
2959 |
+
</ol>
|
2960 |
+
<p>
|
2961 |
+
On the Media/Assistant screen you can now display a File Size column. If you don't see the column, pull down the Screen Options (upper-right corner) and check the box next to File Size. Each of the terms in the column is a link; click on a value to get a list filtered by that value. You can also sort the table on File Size by clicking on the column header.</p>
|
2962 |
+
<p>
|
2963 |
+
You can use the meta_key, orderby and order parameters to sort an [mla_gallery] by your custom field. For example:<br />
|
2964 |
+
<br />
|
2965 |
+
<code>[mla_gallery post_parent=all meta_key="File Size" orderby=meta_value order=DESC]</code><br />
|
2966 |
+
<br />
|
2967 |
+
The three parameters in the above example will select all of the images in your media library and sort your gallery so the largest files appear first. You can replace <code>post_parent=all</code> with any other data selection parameters to get the items you want. For example, you can use a "meta_query" to select only those items (of any MIME Type) whose File Size is less than 82,168 bytes (and display the size in the gallery item caption):<br />
|
2968 |
+
<br />
|
2969 |
+
<code>[mla_gallery post_mime_type=all meta_query="array( array( 'key' => 'File Size', 'value' => array( ' ', ' 82,168' ), 'compare' => 'BETWEEN' ) )" meta_key="File Size" orderby="meta_value" order="DESC" mla_caption="{+caption+}<br>{+custom:File Size+}"]</code>
|
2970 |
+
</p>
|
2971 |
+
<p>
|
2972 |
+
Note the format of the <code>value</code> and <code>compare</code> parameters within the <code>meta_query</code>. Because the File Size custom field uses the "Commas" format, the values are stored as 15-character strings with leading spaces; this makes the values display and sort sensibly. You must use <code>'compare' => 'BETWEEN'</code> and give the lowest and highest values as an array in the <code>'value' => array( ' ', ' 82,168' )</code> parameter, padding each value out to exactly 15 characters wide.
|
2973 |
+
</p>
|
2974 |
<a name="custom_field_mapping_table"></a>
|
2975 |
<p>
|
2976 |
<a href="#backtotop">Go to Top</a>
|
3534 |
<p>
|
3535 |
If you just want to add a custom field to the Media/Assistant submenu, the quick edit area and/or the bulk edit area go to the "Custom Fields" tab and follow the instructions there.
|
3536 |
</p>
|
3537 |
+
<a name="iptc_exif_mapping_example"></a>
|
3538 |
+
<p>
|
3539 |
+
<a href="#backtotop">Go to Top</a>
|
3540 |
+
</p>
|
3541 |
+
<h4>IPTC/EXIF mapping example</h4>
|
3542 |
+
<p>
|
3543 |
+
Here is a simple example of mapping an image's creation date to a custom field, so you can use it to display a gallery of images sorted by the date on which they were taken. There are three common EXIF fields that are populated in most images. For example:
|
3544 |
+
</p>
|
3545 |
+
<blockquote>
|
3546 |
+
DateTimeDigitized 2012:11:28 15:53:23<br />
|
3547 |
+
DateTimeOriginal 2012:11:28 15:53:23<br />
|
3548 |
+
DateTime 2012:12:01 17:37:05<br />
|
3549 |
+
</blockquote>
|
3550 |
+
<p>
|
3551 |
+
You can go to the Settings/Media Library Assistant IPTC/EXIF tab and define a rule that maps any of these fields to a WordPress custom field. The steps required are:
|
3552 |
+
<ol>
|
3553 |
+
<li>Go to the Settings/Media Library Assistant IPTC/EXIF tab.</li>
|
3554 |
+
<li>Make sure the "Enable IPTC/EXIF Mapping when adding new media" box is checked.</li>
|
3555 |
+
<li>Scroll down to the "Custom field mapping" section.</li>
|
3556 |
+
<li>If you have already defined exif_DateTimeOriginal as a custom field, use the "Add a new Mapping Rule" section and select the field name in the first dropdown. If the field does not yet exist, use the "Add a new Field and Mapping Rule" section and enter, for example, DateTimeCreated in the first text box.</li>
|
3557 |
+
<li>Leave the "IPTC Value" dropdown list set to the default "None (select a value)" setting.</li>
|
3558 |
+
<li>Enter "DateTimeOriginal" in the EXIF/Template Value field.</li>
|
3559 |
+
<li>Set the Priority dropdown to "EXIF".</li>
|
3560 |
+
<li>Set the Existing Text dropdown to "Keep", unless you want to wipe out any values you've assigned earlier.</li>
|
3561 |
+
<li>Click "Add Rule/Add Field" to save your rule.</li>
|
3562 |
+
</ol>
|
3563 |
+
<p>
|
3564 |
+
If you are feeling confident you can click the "Add Rule/Field and Map All Attachments" button to save your rule and map all of the attachments in your Media Library in one step. If you want to test your work first, you can go to the Media/Assistant submenu table and click the "Edit" rollover action for an image you know has keywords. Click the "Map IPTC/EXIF Metadata" link in the upper right "Save" area of the screen, then look down at the Caption meta box and see if your value is correct. Once you've got your rule working you can update individual images, use the Bulk Edit area to update groups of images or use the "Map All Attachments" button below your rule to process all of your images.
|
3565 |
+
</p>
|
3566 |
+
<p>
|
3567 |
+
You can use the meta_key, orderby and order parameters to sort an [mla_gallery] by your custom field. For example:<br />
|
3568 |
+
<br />
|
3569 |
+
<code>[mla_gallery post_parent=all meta_key=DateTimeCreated orderby=meta_value order=DESC]</code><br />
|
3570 |
+
<br />
|
3571 |
+
The three parameters in the above example will select all of the images in your media library and sort your gallery so the newest/most recent images appear first. You can replace <code>post_parent=all</code> with any other data selection parameters to get the images you want. For example, you can use a "meta_query" to select only those images created after 2012-01-01 (and display the date in the gallery item caption):<br />
|
3572 |
+
<br />
|
3573 |
+
<code>[mla_gallery meta_query="array( array( 'key' => 'DateTimeCreated', 'value' => '2012-01-01', 'compare' => '<' ) )" meta_key="DateTimeCreated" orderby="meta_value DESC" mla_caption="{+custom:DateTimeCreated+}" ]</code>
|
3574 |
+
</p>
|
3575 |
<a name="iptc_exif_mapping_tables"></a>
|
3576 |
<p>
|
3577 |
<a href="#backtotop">Go to Top</a>
|
3705 |
You can use a template to compose a value from alternative data sources, depending on which fields are populated for a given attachment. For example, "<code>[+iptc:2#020+]|[+iptc:2#025+]|none</code>" will use the IPTC supplemental-category field, if populated, then the IPTC keywords field, if populated, or the literal "none" if neither IPTC field contains a value.
|
3706 |
</p>
|
3707 |
<p>
|
3708 |
+
Using a template in the "Standard field mapping" or "Custom field mapping" tables will yield a text result. For example, multiple IPTC keywords would be converted into a comma-delimited list as a string. In the "Taxonomy term mapping" table the template will deliver an array result if the fields inside the template have multiple values. For example, you can code "<code>template:([+iptc:2#020+])([+iptc:2#025+])</code>" to store each of the IPTC supplemental-category <em><strong>and</strong></em> keywords values (there is no "|" in the template) as a separate taxonomy term. Note that each of the fields is enclosed in parentheses, so the field is suppressed if it contains no values.
|
3709 |
+
</p>
|
3710 |
+
<p>
|
3711 |
+
In the "Standard field mapping" table a special <code>template:[+empty+]</code> value supports deleting the content of the Title, Caption, Description and ALT Text fields. This value is also available in the Media/Assistant submenu table Bulk Edit area.
|
3712 |
</p>
|
3713 |
<p>
|
3714 |
Note that the <strong>,array</strong> formatting option is <strong>not</strong> required to get an array result for the field in a Taxonomy term mapping template; it is assumed. If you want a <strong>text</strong>, <strong>single</strong> or <strong>export</strong> result you can add one of those formatting options to your field specification.
|
4062 |
The Custom Field and IPTC/EXIF Mapping tools support a comprehensive set of filters and actions that give you complete control over rule execution and value creation 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 Mapping Hooks Example source code" href="[+examples_url+]mla-mapping-hooks-example.php.txt" target="_blank" style="font-size:14px; font-weight:bold">mla-mapping-hooks-example.php.txt</a>. To run the example:
|
4063 |
<ol>
|
4064 |
<li>Edit the code to uncomment the <code>error_log()</code> calls so you can see what is passed to the hooks you are interested in.</li>
|
4065 |
+
<li>Remove the ".txt" extension and save the "mla-mapping-hooks-example.php" file in your plugins directory.</li>
|
4066 |
<li>Go to the Plugins/Installed Plugins screen and activate the "MLA Mapping Hooks Example" plugin.</li>
|
4067 |
<li>Upload a new attachment and/or run the mapping rules to exercise the filters and write mapping information to the site's Error Log.</li>
|
4068 |
<li>Examine the Error Log to see the mapping information.</li>
|
4172 |
<td>gives you an opportunity to remove one or more tabs from the list that appears on the Settings/Media Library Assistant screen.</td>
|
4173 |
</tr>
|
4174 |
</table>
|
4175 |
+
<a name="mla_list_table_hooks"></a>
|
4176 |
+
<p>
|
4177 |
+
<a href="#backtotop">Go to Top</a>
|
4178 |
+
</p>
|
4179 |
+
<h3>Media/Assistant Submenu Actions and Filters (Hooks)</h3>
|
4180 |
+
<p>
|
4181 |
+
The Media/Assistant submenu supports a comprehensive set of filters and actions that give you control over table columns, inline actions and bulk actions 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 Media/Assistant Submenu Example source code" href="[+examples_url+]mla-list-table-hooks-example.php.txt" target="_blank" style="font-size:14px; font-weight:bold">mla-list-table-hooks-example.php.txt</a>. To run the example:
|
4182 |
+
<ol>
|
4183 |
+
<li>Edit the code to uncomment the <code>error_log()</code> calls so you can see what is passed to the hooks you are interested in.</li>
|
4184 |
+
<li>Remove the ".txt" extension and save the "mla-list-table-hooks-example.php" file in your plugins directory.</li>
|
4185 |
+
<li>Go to the Plugins/Installed Plugins screen and activate the "MLA List Table Hooks Example" plugin.</li>
|
4186 |
+
<li>Go to the Media/Assistant submenu to exercise the filters and write filter/action information to the site's Error Log.</li>
|
4187 |
+
<li>Examine the Error Log to see the filter/action information.</li>
|
4188 |
+
</ol>
|
4189 |
+
</p>
|
4190 |
+
<p>
|
4191 |
+
The example code documents each hook with comments in the filter/action function that intercepts each hook. There are hooks that let you add, modify or delete table columns.
|
4192 |
+
</p>
|
4193 |
+
<p>
|
4194 |
+
In addition, there are hooks that run when the Media Library items are selected from the database and hooks for adding and processing custom quick actions and bulk actions.
|
4195 |
+
</p>
|
4196 |
+
<p>
|
4197 |
+
The following hooks are defined in <code>/wp-admin/includes/class-wp-list-table.php</code>:
|
4198 |
+
</p>
|
4199 |
+
<table>
|
4200 |
+
<tr>
|
4201 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">views_media_page_mla_menu</td>
|
4202 |
+
<td>Filter the list of available list table views.</td>
|
4203 |
+
</tr>
|
4204 |
+
<tr>
|
4205 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">bulk_actions-media_page_mla-menu</td>
|
4206 |
+
<td>Filter the list table Bulk Actions drop-down. This WordPress filter can currently only be used to remove bulk actions.</td>
|
4207 |
+
</tr>
|
4208 |
+
<tr>
|
4209 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">months_dropdown_results</td>
|
4210 |
+
<td>Filter the 'Months' drop-down results.</td>
|
4211 |
+
</tr>
|
4212 |
+
<tr>
|
4213 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_entries_per_page</td>
|
4214 |
+
<td>Filter the number of items to be displayed on each page of the list table.</td>
|
4215 |
+
</tr>
|
4216 |
+
<tr>
|
4217 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">manage_media_page_mla-menu_sortable_columns</td>
|
4218 |
+
<td>Filter the list table sortable columns for a specific screen.</td>
|
4219 |
+
</tr>
|
4220 |
+
</table>
|
4221 |
+
<p>
|
4222 |
+
The following hooks are defined in <code>/wp-admin/includes/class-mla-data.php</code>:
|
4223 |
+
</p>
|
4224 |
+
<table>
|
4225 |
+
<tr>
|
4226 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_list_table_search_filter_fields</td>
|
4227 |
+
<td>Gives you an opportunity to add or remove any of the MLA standard fields for Search Media.</td>
|
4228 |
+
</tr>
|
4229 |
+
<tr>
|
4230 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_list_table_search_filter_inner_clause</td>
|
4231 |
+
<td>Gives you an opportunity to modify or add to the inner WHERE clause for Search Media.</td>
|
4232 |
+
</tr>
|
4233 |
+
<tr>
|
4234 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_fetch_attachment_references</td>
|
4235 |
+
<td>Gives you an opportunity to modify or add to the "where-used" reference reporting information.</td>
|
4236 |
+
</tr>
|
4237 |
+
</table>
|
4238 |
+
<p>
|
4239 |
+
The following hooks are defined in <code>/media-library-assistant/includes/class-mla-main.php</code>:
|
4240 |
+
</p>
|
4241 |
+
<table>
|
4242 |
+
<tr>
|
4243 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_list_table_inline_fields</td>
|
4244 |
+
<td>Gives you an opportunity to name the fields passed to the JavaScript functions for Quick editing.</td>
|
4245 |
+
</tr>
|
4246 |
+
<tr>
|
4247 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_list_table_inline_action</td>
|
4248 |
+
<td>Gives you an opportunity to pre-process an MLA_List_Table "Quick Edit" action before the MLA handler.</td>
|
4249 |
+
</tr>
|
4250 |
+
<tr>
|
4251 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_list_table_bulk_action</td>
|
4252 |
+
<td>Gives you an opportunity to pre-process an MLA_List_Table page-level or single-item action, standard or custom, before the MLA handler. The filter is called once for each of the items in $_REQUEST['cb_attachment'].</td>
|
4253 |
+
</tr>
|
4254 |
+
<tr>
|
4255 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_list_table_custom_bulk_action</td>
|
4256 |
+
<td>Gives you an opportunity to process an MLA_List_Table bulk action that MLA does not recognize. The filter is called once for each of the items in $_REQUEST['cb_attachment'].</td>
|
4257 |
+
</tr>
|
4258 |
+
<tr>
|
4259 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_list_table_single_action</td>
|
4260 |
+
<td>Gives you an opportunity to pre-process an MLA_List_Table page-level or single-item action, standard or custom, before the MLA handler.</td>
|
4261 |
+
</tr>
|
4262 |
+
<tr>
|
4263 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_list_table_custom_single_action</td>
|
4264 |
+
<td>Gives you an opportunity to process an MLA_List_Table page-level or single-item action that MLA does not recognize.</td>
|
4265 |
+
</tr>
|
4266 |
+
<tr>
|
4267 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_list_table_clear_filter_by</td>
|
4268 |
+
<td>Gives you an opportunity to clear any custom submenu "Filter-by" parameters.</td>
|
4269 |
+
</tr>
|
4270 |
+
<tr>
|
4271 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_list_table_new_instance</td>
|
4272 |
+
<td>Gives you an opportunity to extend the MLA_List_Table class.</td>
|
4273 |
+
</tr>
|
4274 |
+
<tr>
|
4275 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_list_table_inline_values</td>
|
4276 |
+
<td>Gives you a chance to modify and extend the substitution values for the Quick and Bulk Edit forms.</td>
|
4277 |
+
</tr>
|
4278 |
+
<tr>
|
4279 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_list_table_inline_template</td>
|
4280 |
+
<td>Gives you a chance to modify and extend the template used for the Quick and Bulk Edit forms.</td>
|
4281 |
+
</tr>
|
4282 |
+
<tr>
|
4283 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_list_table_inline_parse</td>
|
4284 |
+
<td>Gives you a final chance to modify and extend the HTML markup used for the Quick and Bulk Edit forms.</td>
|
4285 |
+
</tr>
|
4286 |
+
</table>
|
4287 |
+
<p>
|
4288 |
+
The following hooks are defined in <code>/wp-admin/includes/class-wp-list-table.php</code>:
|
4289 |
+
</p>
|
4290 |
+
<table>
|
4291 |
+
<tr>
|
4292 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_list_table_get_columns</td>
|
4293 |
+
<td>This MLA-specific filter gives you an opportunity to filter the list table columns.</td>
|
4294 |
+
</tr>
|
4295 |
+
<tr>
|
4296 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_list_table_get_hidden_columns</td>
|
4297 |
+
<td>This MLA-specific filter gives you an opportunity to filter the hidden list table columns.</td>
|
4298 |
+
</tr>
|
4299 |
+
<tr>
|
4300 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_list_table_get_sortable_columns</td>
|
4301 |
+
<td>This MLA-specific filter gives you an opportunity to filter the sortable list table columns; a good alternative to the 'manage_media_page_mla_menu_sortable_columns' filter.</td>
|
4302 |
+
</tr>
|
4303 |
+
<tr>
|
4304 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_list_table_get_bulk_actions</td>
|
4305 |
+
<td>This MLA-specific filter gives you an opportunity to filter the list of bulk actions; a good alternative to the 'bulk_actions-media_page_mla-menu' filter.</td>
|
4306 |
+
</tr>
|
4307 |
+
<tr>
|
4308 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_list_table_column_default</td>
|
4309 |
+
<td>Called when the MLA_List_Table can't find a value for a given column.</td>
|
4310 |
+
</tr>
|
4311 |
+
<tr>
|
4312 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_list_table_submenu_arguments</td>
|
4313 |
+
<td>Gives you an opportunity to filter the URL parameters that will be retained when the submenu page refreshes.</td>
|
4314 |
+
</tr>
|
4315 |
+
<tr>
|
4316 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_list_table_prepare_items_pagination</td>
|
4317 |
+
<td>Gives you an opportunity to filter the per_page and current_page parameters used for the prepare_items database query.</td>
|
4318 |
+
</tr>
|
4319 |
+
<tr>
|
4320 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_list_table_prepare_items_total_items</td>
|
4321 |
+
<td>Gives you an opportunity to substitute your own $total_items parameter used for the prepare_items database query.</td>
|
4322 |
+
</tr>
|
4323 |
+
<tr>
|
4324 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_list_table_prepare_items_the_items</td>
|
4325 |
+
<td>Gives you an opportunity to substitute your own items array in place of the default prepare_items database query.</td>
|
4326 |
+
</tr>
|
4327 |
+
<tr>
|
4328 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_list_table_prepare_items</td>
|
4329 |
+
<td>Gives you an opportunity to record or modify the results of the prepare_items database query. </td>
|
4330 |
+
</tr>
|
4331 |
+
<tr>
|
4332 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_list_table_build_rollover_actions</td>
|
4333 |
+
<td>Gives you an opportunity to filter the list of "Rollover" actions giving item-level links such as "Quick Edit", "Move to Trash".</td>
|
4334 |
+
</tr>
|
4335 |
+
<tr>
|
4336 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">mla_list_table_build_inline_data</td>
|
4337 |
+
<td>Gives you an opportunity to filter the data passed to the JavaScript functions for Quick and Bulk editing.</td>
|
4338 |
+
</tr>
|
4339 |
+
<tr>
|
4340 |
+
<td style="padding-right: 10px; vertical-align: top; font-weight:bold">views_upload</td>
|
4341 |
+
<td>Views for the "upload" page when WPML is active. This filter is hooked by WPML Media in wpml-media.class.php, and is only applied when WPML is active.</td>
|
4342 |
+
</tr>
|
4343 |
+
</table>
|
4344 |
<p>
|
4345 |
<a href="#backtotop">Go to Top</a>
|
4346 |
</p>
|
tpls/help-for-media_page_mla-menu.tpl
CHANGED
@@ -5,32 +5,48 @@
|
|
5 |
<p>You can narrow the list by file type/status using the text link filters at the top of the screen. You also can refine the list by month using the dropdown menu above the media table.</p>
|
6 |
<p>If you have selected taxonomy support, e.g., “Att. Categories”, you can filter the list by selecting “All Categories”, “No Categories” or a specific category from the drop down list. If you select a category that has child categories beneath it, attachments in any of the child categories will also appear in the filtered list. You can select the taxonomy you want to filter by on the Settings page.</p>
|
7 |
<p><strong>NOTE:</strong> Month and category filters are “sticky”, i.e., they will persist as you resort the display or change the file type/status view.</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
<!-- template="mla-featured-inserted" -->
|
9 |
-
<!-- title="Featured/Inserted" order="
|
10 |
<p>The “Featured in” and “Inserted in” columns are a powerful tool for managing your attachments. They show you where each attachment is used in a post or page as a “Featured Image” or as an embedded image or link.</p>
|
11 |
<p>You can also use the information in the “Title/Name” column to identify “Orphan” items that are not used in any post or page and items with a “Bad Parent” (a parent that does contain any reference to the item) or an “Invalid Parent” (a parent that does not exist).</p>
|
12 |
<p>If performance is a concern, you can go to the Settings page and disable either or both of these columns.</p>
|
13 |
<!-- template="mla-gallery-in" -->
|
14 |
-
<!-- title="Gallery/MLA Gallery" order="
|
15 |
<p>The “Gallery in” and “MLA Gallery in” columns are a powerful tool for managing your attachments. They show you where each attachment is returned by a <code>[gallery]</code> or <code>[mla_gallery]</code> shortcode in a post or page. These columns do <strong>not</strong> use the post_parent (attached to) status of the item; they actually execute each shortcode and tabulate the attachments they return.</p>
|
16 |
<p>You can also use the information in the “Title/Name” column to identify “Orphan” items that are not used in any post or page and items with a “Bad Parent” (a parent that does contain any reference to the item) or an “Invalid Parent” (a parent that does not exist).</p>
|
17 |
<p>If performance is a concern, you can go to the Settings page and disable either or both of these columns. You can also adjust the settings to cache the results for fifteen minutes between updates. Results are automatically updated after a post, page or attachment is added or updated.</p>
|
18 |
<!-- template="mla-categories-tags" -->
|
19 |
-
<!-- title="Taxonomy Support" order="
|
20 |
<p>The “taxonomy” columns help you to group attachments by subject and keyword values. The columns list any categories and tags associated with the item. You can click on one of the displayed values to get a list of all items associated with that value.</p>
|
21 |
<p>The Media Library Assistant provides two pre-defined taxonomies, “Att. Categories” and “Att. Tags” which are enabled by default. You can add or remove support for any registered taxonomy on the Settings screen. The standard WordPress Categories and Tags as well as any custom taxonomies can be supported.</p>
|
22 |
<p>When you add support for a taxonomy it is visible on the main screen. If you want to hide the column simply use the Screen Options to uncheck the Show on screen box.</p>
|
23 |
<p>Supported taxonomies also appear as submenus below the Media menu at the left of the screen. You can edit the taxonomy terms by clicking these submenus. The taxonomy edit screens include an “Attachments” column which displays the number of attachment objects for each term. You can display a filtered list of the attachments by clicking on the number in this column.</p>
|
24 |
<!-- template="mla-custom-fields" -->
|
25 |
-
<!-- title="Custom Fields" order="
|
26 |
<p>You can add sortable columns to the Media/Assistant submenu table by visiting the Custom Fields tab on the Settings page. There you define rules that map attachment metadata such as file size to WordPress custom fields. The “MLA Column” checkbox for each rule lets you select which rules will appear on this screen.</p>
|
27 |
<!-- template="mla-search-media" -->
|
28 |
-
<!-- title="Search Media" order="
|
29 |
<p>The “Search Media” box supports a keyword search of several attachment fields; enter words and/or phrases in the box, separated by spaces. Click the Search Media button for a case-insensitive "SQL LIKE" search. Each keyword in the search phrase is matched independently, so the order of search words does not have to match the order in the text. For example, searching on "friend" and "best" will match "Best Friend". If you put quotes around a search phrase then word order is required for a match (and spaces between words must match as well). You can also match on partial words, e.g., "rien" will match "friend".</p>
|
30 |
<p>Once you’ve entered the terms you want, use the options below the box to tailor your search. You can pick the connector used between search terms; "or" means any of the terms will match, "and" means all of the terms must match. Use the checkboxes to extend your search to more fields in the database. The "Terms" checkbox will extend the search to the name field of the taxonomies you set on the Settings/Media Library Assistant General tab.</p>
|
31 |
<p>If you enter a numeric value (only) in the search box, it is interpreted as a search by attachment ID or parent ID (post_parent). This is in addition to the normal search in the text fields, e.g., title.</p>
|
32 |
<!-- template="mla-terms-search" -->
|
33 |
-
<!-- title="Terms Search" order="
|
34 |
<p>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:
|
35 |
</p>
|
36 |
<ol>
|
@@ -39,24 +55,26 @@
|
|
39 |
</ol>
|
40 |
<p>You can select which taxonomies participate in the search by entering your choice(s) in the Settings/Media Library Assistant General tab.</p>
|
41 |
<!-- template="mla-bulk-actions" -->
|
42 |
-
<!-- title="Bulk Actions" order="
|
43 |
<p>The “Bulk Actions” dropdown list works with the check box column to let you make changes to many items at once. Click the check box in the column title row to select all items on the page, or click the check box in a row to select items individually.</p>
|
44 |
<p>Once you’ve selected the items you want, pick an action from the dropdown list and click Apply to perform the action on the selected items. The available actions will vary depending on the file type/status view you have picked.</p>
|
45 |
<p>If you have enabled Trash support (define MEDIA_TRASH in wp-config.php) you can use bulk actions to move items to and from the Trash or delete them permamently.</p>
|
46 |
<p>When using Bulk Edit, you can change the metadata (author, parent, taxonomy terms) for all selected attachments at once. To remove an attachment from the grouping, just click the x next to its name in the left column of the Bulk Edit area.</p>
|
47 |
<p>Bulk Edit support for taxonomy terms allows you to <strong>add, remove or completely replace</strong> terms for the selected attachments. Below each taxonomy edit box are three radio buttons that let you select the action you’d like to perform.</p>
|
48 |
<p>The taxonomies that appear in the Bulk Edit area can be a subset of the taxonomies supported on the single item edit screen. You can select which taxonomies appear by entering your choice(s) in the Settings/Media Library Assistant General tab.</p>
|
|
|
49 |
<!-- template="mla-available-actions" -->
|
50 |
-
<!-- title="Available Actions" order="
|
51 |
<p>Hovering over a row reveals action links such as Edit, Quick Edit, Move to Trash and Delete Permanently. Clicking Edit displays a simple screen to edit that individual file’s metadata. Clicking Move to Trash will assign the file to the Trash pile but will not affect pages or posts to which it is attached. Clicking Delete Permanently will delete the file from the media library (as well as from any posts to which it is currently attached). Clicking Quick Edit displays an inline form to edit the file's metadata without leaving the menu screen.</p>
|
52 |
<p>The taxonomies that appear in the Quick Edit area can be a subset of the taxonomies supported on the single item edit screen. You can select which taxonomies appear by entering your choice(s) on the Media Libray Assistant Settings screen.</p>
|
53 |
<!-- template="mla-attaching-files" -->
|
54 |
-
<!-- title="Attaching Files" order="
|
55 |
<p>If a media file has not been attached to any post, you will see (unattached) in the Attached To column. You can click on "Set Parent" in the "Attached to" column, or click the Edit or Quick Edit action to attach the file by assigning a value to the Parent ID field. The "Select Parent" popup window makes it easy to find the right home for your attachment.</p>
|
56 |
<p>You can find more information about the Select Parent popup window in the Settings/Media Library Assistant <a href="[+settingsURL+]?page=mla-settings-menu-documentation&mla_tab=documentation#select_parent" target="_blank">Documentation tab</a>.
|
57 |
<!-- template="sidebar" -->
|
58 |
<p><strong>For more information:</strong></p>
|
59 |
<p><a href="[+settingsURL+]?page=mla-settings-menu-documentation&mla_tab=documentation#terms_search" target="_blank">MLA Documentation for Terms Search</a></p>
|
60 |
<p><a href="[+settingsURL+]?page=mla-settings-menu-documentation&mla_tab=documentation#select_parent" target="_blank">MLA Documentation for the Select Parent popup window</a></p>
|
|
|
61 |
<p><a href="http://codex.wordpress.org/Media_Library_Screen" target="_blank">Codex documentation on Media Library</a></p>
|
62 |
<p><a href="http://wordpress.org/support/plugin/media-library-assistant" target="_blank">MLA Support Forum</a></p>
|
5 |
<p>You can narrow the list by file type/status using the text link filters at the top of the screen. You also can refine the list by month using the dropdown menu above the media table.</p>
|
6 |
<p>If you have selected taxonomy support, e.g., “Att. Categories”, you can filter the list by selecting “All Categories”, “No Categories” or a specific category from the drop down list. If you select a category that has child categories beneath it, attachments in any of the child categories will also appear in the filtered list. You can select the taxonomy you want to filter by on the Settings page.</p>
|
7 |
<p><strong>NOTE:</strong> Month and category filters are “sticky”, i.e., they will persist as you resort the display or change the file type/status view.</p>
|
8 |
+
<!-- template="mla-where-used" -->
|
9 |
+
<!-- title="Where-used Reporting" order="2" -->
|
10 |
+
<p>The “where-used” columns (Featured in, Inserted in, Gallery in, MLA Gallery in) are a powerful tool for managing your attachments. They help you identify Media Library items that are obsolete or, well, unused.
|
11 |
+
</p>
|
12 |
+
<p>
|
13 |
+
The "<strong>(INVALID PARENT)</strong>" notation means that the item is attached (i.e., the <code>post_parent</code> database field is not zero), but either the parent ID is for a post or page which has been deleted or the parent ID exists but the attachment is not used as the Featured Image, not inserted in the body of the post/page and is not used in a <code>[gallery]</code> or <code>[mla_gallery]</code> shortcode on that post/page. There are some problems with the <code>post_parent</code> field; for example, if you change the "Featured Image" for a post the <code>post_parent</code> doesn't always get updated. There are some ways to use an item that MLA is not yet searching for. For example, some other plugin that uses the item in a shortcode other than [gallery] or [mla_gallery].
|
14 |
+
</p>
|
15 |
+
<p>
|
16 |
+
The "<strong>(UNUSED)</strong>" notation means that the MLA search found a valid parent for the item but the parent does not use the item as a Featured Image, it is not inserted in the body of the parent and it is not used in a <code>[gallery]</code> or <code>[mla_gallery]</code> shortcode in the parent.
|
17 |
+
</p>
|
18 |
+
<p>
|
19 |
+
The "<strong>(ORPHAN)</strong>" notation means that the MLA search did not find <strong>any</strong> post or page which uses the item as a Featured Image, it is not inserted in the body of <strong>any</strong> post/page and is not used in <strong>any</strong> <code>[gallery]</code> or <code>[mla_gallery]</code> shortcode.
|
20 |
+
</p>
|
21 |
+
<p>
|
22 |
+
There are four where-used reporting categories and you can turn them on or off with options on the Settings/Media Library Assistant General tab. If one or more of the categories is turned off, you will see "<strong>(UNUSED?)</strong>" or "<strong>(ORPHAN?)</strong>" in the where-used results. The question mark means that the item may be used in a way you are not testing for. If all of the categories are turned off you will see "<strong>(NO REFERENCE TESTS)</strong>" as a reminder.
|
23 |
+
</p>
|
24 |
<!-- template="mla-featured-inserted" -->
|
25 |
+
<!-- title="Featured/Inserted" order="3" -->
|
26 |
<p>The “Featured in” and “Inserted in” columns are a powerful tool for managing your attachments. They show you where each attachment is used in a post or page as a “Featured Image” or as an embedded image or link.</p>
|
27 |
<p>You can also use the information in the “Title/Name” column to identify “Orphan” items that are not used in any post or page and items with a “Bad Parent” (a parent that does contain any reference to the item) or an “Invalid Parent” (a parent that does not exist).</p>
|
28 |
<p>If performance is a concern, you can go to the Settings page and disable either or both of these columns.</p>
|
29 |
<!-- template="mla-gallery-in" -->
|
30 |
+
<!-- title="Gallery/MLA Gallery" order="4" -->
|
31 |
<p>The “Gallery in” and “MLA Gallery in” columns are a powerful tool for managing your attachments. They show you where each attachment is returned by a <code>[gallery]</code> or <code>[mla_gallery]</code> shortcode in a post or page. These columns do <strong>not</strong> use the post_parent (attached to) status of the item; they actually execute each shortcode and tabulate the attachments they return.</p>
|
32 |
<p>You can also use the information in the “Title/Name” column to identify “Orphan” items that are not used in any post or page and items with a “Bad Parent” (a parent that does contain any reference to the item) or an “Invalid Parent” (a parent that does not exist).</p>
|
33 |
<p>If performance is a concern, you can go to the Settings page and disable either or both of these columns. You can also adjust the settings to cache the results for fifteen minutes between updates. Results are automatically updated after a post, page or attachment is added or updated.</p>
|
34 |
<!-- template="mla-categories-tags" -->
|
35 |
+
<!-- title="Taxonomy Support" order="5" -->
|
36 |
<p>The “taxonomy” columns help you to group attachments by subject and keyword values. The columns list any categories and tags associated with the item. You can click on one of the displayed values to get a list of all items associated with that value.</p>
|
37 |
<p>The Media Library Assistant provides two pre-defined taxonomies, “Att. Categories” and “Att. Tags” which are enabled by default. You can add or remove support for any registered taxonomy on the Settings screen. The standard WordPress Categories and Tags as well as any custom taxonomies can be supported.</p>
|
38 |
<p>When you add support for a taxonomy it is visible on the main screen. If you want to hide the column simply use the Screen Options to uncheck the Show on screen box.</p>
|
39 |
<p>Supported taxonomies also appear as submenus below the Media menu at the left of the screen. You can edit the taxonomy terms by clicking these submenus. The taxonomy edit screens include an “Attachments” column which displays the number of attachment objects for each term. You can display a filtered list of the attachments by clicking on the number in this column.</p>
|
40 |
<!-- template="mla-custom-fields" -->
|
41 |
+
<!-- title="Custom Fields" order="6" -->
|
42 |
<p>You can add sortable columns to the Media/Assistant submenu table by visiting the Custom Fields tab on the Settings page. There you define rules that map attachment metadata such as file size to WordPress custom fields. The “MLA Column” checkbox for each rule lets you select which rules will appear on this screen.</p>
|
43 |
<!-- template="mla-search-media" -->
|
44 |
+
<!-- title="Search Media" order="7" -->
|
45 |
<p>The “Search Media” box supports a keyword search of several attachment fields; enter words and/or phrases in the box, separated by spaces. Click the Search Media button for a case-insensitive "SQL LIKE" search. Each keyword in the search phrase is matched independently, so the order of search words does not have to match the order in the text. For example, searching on "friend" and "best" will match "Best Friend". If you put quotes around a search phrase then word order is required for a match (and spaces between words must match as well). You can also match on partial words, e.g., "rien" will match "friend".</p>
|
46 |
<p>Once you’ve entered the terms you want, use the options below the box to tailor your search. You can pick the connector used between search terms; "or" means any of the terms will match, "and" means all of the terms must match. Use the checkboxes to extend your search to more fields in the database. The "Terms" checkbox will extend the search to the name field of the taxonomies you set on the Settings/Media Library Assistant General tab.</p>
|
47 |
<p>If you enter a numeric value (only) in the search box, it is interpreted as a search by attachment ID or parent ID (post_parent). This is in addition to the normal search in the text fields, e.g., title.</p>
|
48 |
<!-- template="mla-terms-search" -->
|
49 |
+
<!-- title="Terms Search" order="8" -->
|
50 |
<p>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:
|
51 |
</p>
|
52 |
<ol>
|
55 |
</ol>
|
56 |
<p>You can select which taxonomies participate in the search by entering your choice(s) in the Settings/Media Library Assistant General tab.</p>
|
57 |
<!-- template="mla-bulk-actions" -->
|
58 |
+
<!-- title="Bulk Actions" order="9" -->
|
59 |
<p>The “Bulk Actions” dropdown list works with the check box column to let you make changes to many items at once. Click the check box in the column title row to select all items on the page, or click the check box in a row to select items individually.</p>
|
60 |
<p>Once you’ve selected the items you want, pick an action from the dropdown list and click Apply to perform the action on the selected items. The available actions will vary depending on the file type/status view you have picked.</p>
|
61 |
<p>If you have enabled Trash support (define MEDIA_TRASH in wp-config.php) you can use bulk actions to move items to and from the Trash or delete them permamently.</p>
|
62 |
<p>When using Bulk Edit, you can change the metadata (author, parent, taxonomy terms) for all selected attachments at once. To remove an attachment from the grouping, just click the x next to its name in the left column of the Bulk Edit area.</p>
|
63 |
<p>Bulk Edit support for taxonomy terms allows you to <strong>add, remove or completely replace</strong> terms for the selected attachments. Below each taxonomy edit box are three radio buttons that let you select the action you’d like to perform.</p>
|
64 |
<p>The taxonomies that appear in the Bulk Edit area can be a subset of the taxonomies supported on the single item edit screen. You can select which taxonomies appear by entering your choice(s) in the Settings/Media Library Assistant General tab.</p>
|
65 |
+
<p>You can update the Title, Caption, Description and ALT Text values for all of the selected attachments. You can use a <a href="[+settingsURL+]?page=mla-settings-menu-documentation&mla_tab=documentation#mla_template_parameters" target="_blank">Content Template</a> to customize the values based on attachment-specific data sources. You can also delete the content of a field by entering the special <code>template:[+empty+]</code> value.</p>
|
66 |
<!-- template="mla-available-actions" -->
|
67 |
+
<!-- title="Available Actions" order="10" -->
|
68 |
<p>Hovering over a row reveals action links such as Edit, Quick Edit, Move to Trash and Delete Permanently. Clicking Edit displays a simple screen to edit that individual file’s metadata. Clicking Move to Trash will assign the file to the Trash pile but will not affect pages or posts to which it is attached. Clicking Delete Permanently will delete the file from the media library (as well as from any posts to which it is currently attached). Clicking Quick Edit displays an inline form to edit the file's metadata without leaving the menu screen.</p>
|
69 |
<p>The taxonomies that appear in the Quick Edit area can be a subset of the taxonomies supported on the single item edit screen. You can select which taxonomies appear by entering your choice(s) on the Media Libray Assistant Settings screen.</p>
|
70 |
<!-- template="mla-attaching-files" -->
|
71 |
+
<!-- title="Attaching Files" order="11" -->
|
72 |
<p>If a media file has not been attached to any post, you will see (unattached) in the Attached To column. You can click on "Set Parent" in the "Attached to" column, or click the Edit or Quick Edit action to attach the file by assigning a value to the Parent ID field. The "Select Parent" popup window makes it easy to find the right home for your attachment.</p>
|
73 |
<p>You can find more information about the Select Parent popup window in the Settings/Media Library Assistant <a href="[+settingsURL+]?page=mla-settings-menu-documentation&mla_tab=documentation#select_parent" target="_blank">Documentation tab</a>.
|
74 |
<!-- template="sidebar" -->
|
75 |
<p><strong>For more information:</strong></p>
|
76 |
<p><a href="[+settingsURL+]?page=mla-settings-menu-documentation&mla_tab=documentation#terms_search" target="_blank">MLA Documentation for Terms Search</a></p>
|
77 |
<p><a href="[+settingsURL+]?page=mla-settings-menu-documentation&mla_tab=documentation#select_parent" target="_blank">MLA Documentation for the Select Parent popup window</a></p>
|
78 |
+
<p><a href="[+settingsURL+]?page=mla-settings-menu-documentation&mla_tab=documentation#mla_template_parameters" target="_blank">MLA Documentation for Content Templates</a></p>
|
79 |
<p><a href="http://codex.wordpress.org/Media_Library_Screen" target="_blank">Codex documentation on Media Library</a></p>
|
80 |
<p><a href="http://wordpress.org/support/plugin/media-library-assistant" target="_blank">MLA Support Forum</a></p>
|