Version Description
- New: On the Media/Assistant submenu and Media Manager Modal Window, a new "Terms Search" popup filter lets you filter the display by terms whose name contains the keywords and phrases entered in the search box. See the Other Notes section section for more details.
- New: On the Media/Assistant submenu and Media Manager Modal Window Search Media boxes, a new "terms" checkbox lets you extend the search to terms whose name contains the keywords and phrases entered in the search box. See the Other Notes section section for more details.
- New: On the Media/Assistant submenu and Media Manager Modal Window Search Media boxes, you can hide the and/or connector and search fields controls by unchecking the appropriate box in the Settings/Media Library Assistant General tab.
- New: On the Media/Assistant submenu and Media Manager Modal Window Search Media boxes, you can change defaults for and/or connector and search fields controls by setting them in the Settings/Media Library Assistant General tab.
- New: The "Select Parent" popup window now has a post type filter and pagination controls. See the Other Notes section section for more details.
- New: The "Select Parent" popup window has been added to the Media/Assistant submenu table Bulk Edit area.
- New: Documentation for "Select Parent" and "Terms Search has been added to the Media/Assistant submenu table "Help" dropdown area and the Settings/Media Library Assistant Documentation tab.
- New: Most of the fields in the "posts" database table have been added as "Data sources for custom field mapping".
- New: For
[mla_tag_cloud]
, a new "pad_counts" parameter lets you add children to their parents' term-specific count(s). - New: For
[mla_tag_cloud]
, new "post_type" and "post_status" parameters give you more control over cloud content when a taxonomy such ascategory
is registered for posts/pages as well as attachments. - New: For
[mla_gallery]
, "category" is accepted as a synonym for "category_name" to make filtering by category more intuitive. - New: An example using a custom SQL Query to replace gallery content has been added to the
mla-hooks-example.php.txt
example plugin. - 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. - 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.
- 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.
- Fix: More details added to the "Category Parameters" section of the Settings/Media LIbrary Assistant Documentation tab.
- Fix: For
[mla_gallery]
, themla_rollover_text=
parameter has been restored. WordPress 3.7 removed thetitle=
attribute from its attachment links, which disabledmla_rollover_text=
as well. - Fix: For
[mla_tag_cloud]
, thenumber
parameter default is now zero, agreeing with the Documentation.
Download this release
Release Info
Developer | dglingren |
Plugin | Media Library Assistant |
Version | 1.90 |
Comparing to | |
See all releases |
Code changes from version 1.83 to 1.90
- css/mla-media-modal-style.css +2 -1
- css/mla-style-set-parent.css +52 -58
- css/mla-style-terms-search.css +172 -0
- css/mla-style.css +3 -2
- examples/buddypress-hooks-example.php.txt +821 -0
- examples/mla-cloud-hooks-example.php.txt +42 -42
- examples/mla-hooks-example.php.txt +265 -77
- examples/mla-mapping-hooks-example.php.txt +38 -38
- examples/mla-media-tagger-example.php.txt +13 -13
- examples/random-feature.php.txt +6 -6
- includes/class-mla-data.php +339 -137
- includes/class-mla-edit-media.php +3 -30
- includes/class-mla-list-table.php +96 -13
- includes/class-mla-main.php +250 -111
- includes/class-mla-media-modal.php +195 -38
- includes/class-mla-objects.php +4 -2
- includes/class-mla-options.php +343 -82
- includes/class-mla-settings.php +30 -3
- includes/class-mla-shortcodes.php +197 -44
- includes/mla-main-search-box-template.php +49 -0
- includes/mla-media-modal-js-template.php +9 -2
- index.php +2 -2
- js/mla-edit-media-scripts.js +23 -23
- js/mla-edit-media-scripts.min.js +1 -1
- js/mla-inline-edit-scripts.js +95 -62
- js/mla-inline-edit-scripts.min.js +1 -1
- js/mla-inline-edit-upload-scripts.js +1 -1
- js/mla-inline-edit-view-scripts.js +1 -1
- js/mla-media-modal-scripts.js +522 -363
- js/mla-media-modal-scripts.min.js +1 -1
- js/mla-set-parent-scripts.js +54 -12
- js/mla-set-parent-scripts.min.js +1 -1
- js/mla-single-edit-scripts.js +2 -2
- js/mla-terms-search-scripts.js +153 -0
- js/mla-terms-search-scripts.min.js +1 -0
- languages/media-library-assistant-en_US.pot +863 -704
- phpDocs/classes/MLA.html +79 -1
- phpDocs/classes/MLAData.html +22 -1
- phpDocs/classes/MLAEdit.html +1 -1
- phpDocs/classes/MLAMime.html +1 -1
- phpDocs/classes/MLAModal.html +76 -2
- phpDocs/classes/MLAObjects.html +1 -1
- phpDocs/classes/MLAOptions.html +90 -3
- phpDocs/classes/MLASettings.html +1 -1
- phpDocs/classes/MLAShortcodes.html +54 -12
- 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 +59 -1
- phpDocs/classes/MLA_Upload_List_Table.html +1 -1
- phpDocs/classes/MLA_Upload_Optional_List_Table.html +1 -1
- phpDocs/classes/MLA_View_List_Table.html +1 -1
- phpDocs/deprecated.html +1 -1
- phpDocs/errors.html +2 -1
- phpDocs/graph_class.html +1 -1
- phpDocs/index.html +1 -1
- phpDocs/markers.html +2 -2
- phpDocs/namespaces/global.html +1 -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 +1 -1
- phpDocs/structure.xml +1974 -1586
css/mla-media-modal-style.css
CHANGED
@@ -34,7 +34,8 @@
|
|
34 |
* Attachment Browser Dropdowns
|
35 |
*/
|
36 |
.media-frame select.attachment-months,
|
37 |
-
.media-frame select.attachment-terms
|
|
|
38 |
margin-top: 11px;
|
39 |
margin-right: 10px;
|
40 |
}
|
34 |
* Attachment Browser Dropdowns
|
35 |
*/
|
36 |
.media-frame select.attachment-months,
|
37 |
+
.media-frame select.attachment-terms,
|
38 |
+
.media-frame input#mla-terms-search {
|
39 |
margin-top: 11px;
|
40 |
margin-right: 10px;
|
41 |
}
|
css/mla-style-set-parent.css
CHANGED
@@ -16,10 +16,15 @@
|
|
16 |
z-index: 100105;
|
17 |
}
|
18 |
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
|
|
|
|
|
|
|
|
|
|
23 |
}
|
24 |
|
25 |
#mla-set-parent-head-div {
|
@@ -36,6 +41,27 @@
|
|
36 |
right: 0;
|
37 |
}
|
38 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
#mla-set-parent-inside-div {
|
40 |
overflow: auto;
|
41 |
padding: 16px;
|
@@ -50,50 +76,47 @@
|
|
50 |
box-sizing: border-box;
|
51 |
}
|
52 |
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
#mla-set-parent-search-div {
|
54 |
padding-bottom: 16px;
|
55 |
}
|
56 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
#mla-set-parent-search-div .spinner {
|
58 |
float: none;
|
59 |
left: 125px;
|
60 |
position: absolute;
|
61 |
top: 18px;
|
|
|
62 |
}
|
63 |
|
64 |
-
#mla-set-parent-input,
|
65 |
#mla-set-parent-search {
|
66 |
float: left;
|
67 |
}
|
68 |
|
69 |
-
#mla-set-parent-
|
70 |
-
|
71 |
-
|
72 |
-
margin:
|
73 |
-
}
|
74 |
-
|
75 |
-
#mla-set-parent-close-div {
|
76 |
-
width: 36px;
|
77 |
-
height: 36px;
|
78 |
-
position: absolute;
|
79 |
-
top: 0;
|
80 |
-
right: 0;
|
81 |
-
cursor: pointer;
|
82 |
-
text-align: center;
|
83 |
-
vertical-align: middle;
|
84 |
-
font-style: normal;
|
85 |
-
font-variant: normal;
|
86 |
-
font-weight: bold;
|
87 |
-
font-size: 24px;
|
88 |
-
font-family: "Open Sans", sans-serif
|
89 |
-
color: #666;
|
90 |
}
|
91 |
|
92 |
-
#mla-set-parent-
|
93 |
-
|
|
|
94 |
}
|
95 |
|
96 |
-
/* Added in JavaScript code */
|
97 |
.mla-set-parent-close-div-dashicons:before {
|
98 |
font: normal 20px/36px 'dashicons';
|
99 |
vertical-align: top;
|
@@ -113,25 +136,6 @@
|
|
113 |
right: 0;
|
114 |
}
|
115 |
|
116 |
-
@media screen and ( max-width: 782px ) {
|
117 |
-
#mla-set-parent-inside-div {
|
118 |
-
bottom: 57px;
|
119 |
-
}
|
120 |
-
}
|
121 |
-
|
122 |
-
@media screen and ( max-width: 660px ) {
|
123 |
-
|
124 |
-
#mla-set-parent-head-div {
|
125 |
-
top: 0;
|
126 |
-
bottom: 0;
|
127 |
-
left: 0;
|
128 |
-
right: 0;
|
129 |
-
margin: 0;
|
130 |
-
width: 100%;
|
131 |
-
}
|
132 |
-
|
133 |
-
}
|
134 |
-
|
135 |
#mla-set-parent-overlay {
|
136 |
position: fixed;
|
137 |
top: 0;
|
@@ -143,13 +147,3 @@
|
|
143 |
filter: alpha(opacity=70);
|
144 |
z-index: 100100;
|
145 |
}
|
146 |
-
|
147 |
-
/* Styling */
|
148 |
-
|
149 |
-
/* Specific Elements */
|
150 |
-
|
151 |
-
#mla-set-parent-titles-div {
|
152 |
-
font-size: 12px;
|
153 |
-
line-height: 14px;
|
154 |
-
margin-bottom: 10px;
|
155 |
-
}
|
16 |
z-index: 100105;
|
17 |
}
|
18 |
|
19 |
+
@media screen and ( max-width: 660px ) {
|
20 |
+
#mla-set-parent-div {
|
21 |
+
top: 0;
|
22 |
+
bottom: 0;
|
23 |
+
left: 0;
|
24 |
+
right: 0;
|
25 |
+
margin: 0;
|
26 |
+
width: 100%;
|
27 |
+
}
|
28 |
}
|
29 |
|
30 |
#mla-set-parent-head-div {
|
41 |
right: 0;
|
42 |
}
|
43 |
|
44 |
+
#mla-set-parent-close-div {
|
45 |
+
width: 36px;
|
46 |
+
height: 36px;
|
47 |
+
position: absolute;
|
48 |
+
top: 0;
|
49 |
+
right: 0;
|
50 |
+
cursor: pointer;
|
51 |
+
text-align: center;
|
52 |
+
vertical-align: middle;
|
53 |
+
font-style: normal;
|
54 |
+
font-variant: normal;
|
55 |
+
font-weight: bold;
|
56 |
+
font-size: 24px;
|
57 |
+
font-family: "Open Sans", sans-serif
|
58 |
+
color: #666;
|
59 |
+
}
|
60 |
+
|
61 |
+
#mla-set-parent-close-div:hover {
|
62 |
+
color: #2ea2cc;
|
63 |
+
}
|
64 |
+
|
65 |
#mla-set-parent-inside-div {
|
66 |
overflow: auto;
|
67 |
padding: 16px;
|
76 |
box-sizing: border-box;
|
77 |
}
|
78 |
|
79 |
+
@media screen and ( max-width: 782px ) {
|
80 |
+
#mla-set-parent-inside-div {
|
81 |
+
bottom: 57px;
|
82 |
+
}
|
83 |
+
}
|
84 |
+
|
85 |
#mla-set-parent-search-div {
|
86 |
padding-bottom: 16px;
|
87 |
}
|
88 |
|
89 |
+
#mla-set-parent-input {
|
90 |
+
float: left;
|
91 |
+
width: 140px;
|
92 |
+
height: 28px;
|
93 |
+
margin: 0 4px 0 0;
|
94 |
+
}
|
95 |
+
|
96 |
#mla-set-parent-search-div .spinner {
|
97 |
float: none;
|
98 |
left: 125px;
|
99 |
position: absolute;
|
100 |
top: 18px;
|
101 |
+
padding: 4px 10px 0;
|
102 |
}
|
103 |
|
|
|
104 |
#mla-set-parent-search {
|
105 |
float: left;
|
106 |
}
|
107 |
|
108 |
+
#mla-set-parent-current-title-div {
|
109 |
+
float:left;
|
110 |
+
font-size: 12px;
|
111 |
+
margin-top: 10px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
112 |
}
|
113 |
|
114 |
+
#mla-set-parent-pagination-div {
|
115 |
+
float: right;
|
116 |
+
padding-bottom: 4px;
|
117 |
}
|
118 |
|
119 |
+
/* Added or modified in JavaScript code */
|
120 |
.mla-set-parent-close-div-dashicons:before {
|
121 |
font: normal 20px/36px 'dashicons';
|
122 |
vertical-align: top;
|
136 |
right: 0;
|
137 |
}
|
138 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
139 |
#mla-set-parent-overlay {
|
140 |
position: fixed;
|
141 |
top: 0;
|
147 |
filter: alpha(opacity=70);
|
148 |
z-index: 100100;
|
149 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
css/mla-style-terms-search.css
ADDED
@@ -0,0 +1,172 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*
|
2 |
+
* This stylesheet is used for the "Search Terms" popup window.
|
3 |
+
*/
|
4 |
+
|
5 |
+
#mla-terms-search-div {
|
6 |
+
background-color: #fff;
|
7 |
+
-webkit-box-shadow: 0 3px 6px rgba( 0, 0, 0, 0.3 );
|
8 |
+
box-shadow: 0 3px 6px rgba( 0, 0, 0, 0.3 );
|
9 |
+
width: 500px;
|
10 |
+
overflow: hidden;
|
11 |
+
margin-left: -250px;
|
12 |
+
position: fixed;
|
13 |
+
top: 30px;
|
14 |
+
bottom: 30px;
|
15 |
+
left: 50%;
|
16 |
+
z-index: 200105;
|
17 |
+
}
|
18 |
+
|
19 |
+
#mla-terms-search-div .spinner {
|
20 |
+
padding: 4px 10px 0;
|
21 |
+
vertical-align: top;
|
22 |
+
float: right;
|
23 |
+
}
|
24 |
+
|
25 |
+
#mla-terms-search-head-div {
|
26 |
+
background: #fcfcfc;
|
27 |
+
border-bottom: 1px solid #dfdfdf;
|
28 |
+
height: 36px;
|
29 |
+
font-size: 18px;
|
30 |
+
font-weight: 600;
|
31 |
+
line-height: 36px;
|
32 |
+
padding: 0 36px 0 16px;
|
33 |
+
position: absolute;
|
34 |
+
top: 0;
|
35 |
+
left: 0;
|
36 |
+
right: 0;
|
37 |
+
}
|
38 |
+
|
39 |
+
#mla-terms-search-close-div {
|
40 |
+
width: 36px;
|
41 |
+
height: 36px;
|
42 |
+
position: absolute;
|
43 |
+
top: 0;
|
44 |
+
right: 0;
|
45 |
+
cursor: pointer;
|
46 |
+
text-align: center;
|
47 |
+
vertical-align: middle;
|
48 |
+
font-style: normal;
|
49 |
+
font-variant: normal;
|
50 |
+
font-weight: bold;
|
51 |
+
font-size: 24px;
|
52 |
+
font-family: "Open Sans", sans-serif
|
53 |
+
color: #666;
|
54 |
+
}
|
55 |
+
|
56 |
+
#mla-terms-search-close-div:hover {
|
57 |
+
color: #2ea2cc;
|
58 |
+
}
|
59 |
+
|
60 |
+
/* Added in JavaScript code */
|
61 |
+
.mla-terms-search-close-div-dashicons:before {
|
62 |
+
font: normal 20px/36px 'dashicons';
|
63 |
+
vertical-align: top;
|
64 |
+
speak: none;
|
65 |
+
-webkit-font-smoothing: antialiased;
|
66 |
+
-moz-osx-font-smoothing: grayscale;
|
67 |
+
content: '\f158';
|
68 |
+
}
|
69 |
+
|
70 |
+
#mla-terms-search-inside-div {
|
71 |
+
overflow: auto;
|
72 |
+
padding: 16px;
|
73 |
+
background-color: #fff;
|
74 |
+
position: absolute;
|
75 |
+
top: 37px;
|
76 |
+
bottom: 45px;
|
77 |
+
overflow-y: scroll;
|
78 |
+
width: 100%;
|
79 |
+
-webkit-box-sizing: border-box;
|
80 |
+
-moz-box-sizing: border-box;
|
81 |
+
box-sizing: border-box;
|
82 |
+
}
|
83 |
+
|
84 |
+
#mla-terms-search-search-div {
|
85 |
+
padding-bottom: 16px;
|
86 |
+
}
|
87 |
+
|
88 |
+
#mla-terms-search-search-div .spinner {
|
89 |
+
float: none;
|
90 |
+
left: 125px;
|
91 |
+
position: absolute;
|
92 |
+
top: 18px;
|
93 |
+
}
|
94 |
+
|
95 |
+
#mla-terms-search-input,
|
96 |
+
#mla-terms-search-search {
|
97 |
+
float: left;
|
98 |
+
}
|
99 |
+
|
100 |
+
#mla-terms-search-input {
|
101 |
+
width: 300px;
|
102 |
+
height: 28px;
|
103 |
+
margin: 0 4px 0 0;
|
104 |
+
}
|
105 |
+
|
106 |
+
#mla-terms-search-radio-div {
|
107 |
+
border: 1px solid #dfdfdf;
|
108 |
+
width: 220px;
|
109 |
+
}
|
110 |
+
|
111 |
+
#mla-terms-search-radio-phrases-div {
|
112 |
+
display:inline-block;
|
113 |
+
margin-right: 10px;
|
114 |
+
padding: 0px 10px;
|
115 |
+
border-right: 1px solid #dfdfdf;
|
116 |
+
}
|
117 |
+
|
118 |
+
#mla-terms-search-radio-terms-div {
|
119 |
+
display:inline-block;
|
120 |
+
padding-right: 10px;
|
121 |
+
}
|
122 |
+
|
123 |
+
#mla-terms-search-buttons-div {
|
124 |
+
padding: 8px 16px;
|
125 |
+
background: #fcfcfc;
|
126 |
+
border-top: 1px solid #dfdfdf;
|
127 |
+
position: absolute;
|
128 |
+
bottom: 0;
|
129 |
+
left: 0;
|
130 |
+
right: 0;
|
131 |
+
}
|
132 |
+
|
133 |
+
@media screen and ( max-width: 782px ) {
|
134 |
+
#mla-terms-search-inside-div {
|
135 |
+
bottom: 57px;
|
136 |
+
}
|
137 |
+
}
|
138 |
+
|
139 |
+
@media screen and ( max-width: 660px ) {
|
140 |
+
|
141 |
+
#mla-terms-search-head-div {
|
142 |
+
top: 0;
|
143 |
+
bottom: 0;
|
144 |
+
left: 0;
|
145 |
+
right: 0;
|
146 |
+
margin: 0;
|
147 |
+
width: 100%;
|
148 |
+
}
|
149 |
+
|
150 |
+
}
|
151 |
+
|
152 |
+
#mla-terms-search-overlay {
|
153 |
+
position: fixed;
|
154 |
+
top: 0;
|
155 |
+
left: 0;
|
156 |
+
right: 0;
|
157 |
+
bottom: 0;
|
158 |
+
background: #000;
|
159 |
+
opacity: 0.7;
|
160 |
+
filter: alpha(opacity=70);
|
161 |
+
z-index: 200100;
|
162 |
+
}
|
163 |
+
|
164 |
+
/* Styling */
|
165 |
+
|
166 |
+
/* Specific Elements */
|
167 |
+
|
168 |
+
#mla-terms-search-titles-div {
|
169 |
+
font-size: 12px;
|
170 |
+
line-height: 14px;
|
171 |
+
margin-bottom: 10px;
|
172 |
+
}
|
css/mla-style.css
CHANGED
@@ -150,10 +150,11 @@ textarea[readonly] {
|
|
150 |
padding-top: 2px;
|
151 |
}
|
152 |
|
153 |
-
.quick-edit-row-attachment fieldset.inline-edit-col-left input#inline-edit-post-set-parent
|
|
|
154 |
display:inline;
|
155 |
line-height: 16px;
|
156 |
-
margin
|
157 |
}
|
158 |
|
159 |
.quick-edit-row-attachment fieldset.inline-edit-col-left label.inline-edit-post-parent-title .input-text-wrap input[type=text] {
|
150 |
padding-top: 2px;
|
151 |
}
|
152 |
|
153 |
+
.quick-edit-row-attachment fieldset.inline-edit-col-left input#inline-edit-post-set-parent,
|
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] {
|
examples/buddypress-hooks-example.php.txt
ADDED
@@ -0,0 +1,821 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Provides an example of hooking the filters provided by the [mla_gallery] shortcode
|
4 |
+
*
|
5 |
+
* In this example, the WordPress "attachment/media page" links are replaced by
|
6 |
+
* "BuddyPress/rtMedia page" links. For audio and video files, an option is provided to
|
7 |
+
* substitute the "cover_art" thumbnail image for the item Title in the thumbnail_content.
|
8 |
+
*
|
9 |
+
* @package MLA Gallery Hooks for BuddyPress & rtMedia Example
|
10 |
+
* @version 1.05
|
11 |
+
*/
|
12 |
+
|
13 |
+
/*
|
14 |
+
Plugin Name: MLA Gallery Hooks for BuddyPress & rtMedia Example
|
15 |
+
Plugin URI: http://fairtradejudaica.org/media-library-assistant-a-wordpress-plugin/
|
16 |
+
Description: Provides an example of hooking the filters provided by the [mla_gallery] shortcode
|
17 |
+
Author: David Lingren
|
18 |
+
Version: 1.05
|
19 |
+
Author URI: http://fairtradejudaica.org/our-story/staff/
|
20 |
+
|
21 |
+
Copyright 2013, 2014 David Lingren
|
22 |
+
|
23 |
+
This program is free software; you can redistribute it and/or modify
|
24 |
+
it under the terms of the GNU General Public License as published by
|
25 |
+
the Free Software Foundation; either version 2 of the License, or
|
26 |
+
(at your option) any later version.
|
27 |
+
|
28 |
+
This program is distributed in the hope that it will be useful,
|
29 |
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
30 |
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
31 |
+
GNU General Public License for more details.
|
32 |
+
|
33 |
+
You can get a copy of the GNU General Public License by writing to the
|
34 |
+
Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
|
35 |
+
*/
|
36 |
+
|
37 |
+
/**
|
38 |
+
* Class MLA BuddyPress Hooks Example hooks all of the filters provided by the [mla_gallery] shortcode
|
39 |
+
*
|
40 |
+
* Call it anything you want, but give it an unlikely and hopefully unique name. Hiding enerything
|
41 |
+
* else inside a class means this is the only name you have to worry about.
|
42 |
+
*
|
43 |
+
* @package MLA Gallery Hooks for BuddyPress & rtMedia Example
|
44 |
+
* @since 1.00
|
45 |
+
*/
|
46 |
+
class MLABuddyPressHooksExample {
|
47 |
+
/**
|
48 |
+
* Initialization function, similar to __construct()
|
49 |
+
*
|
50 |
+
* @since 1.00
|
51 |
+
*
|
52 |
+
* @return void
|
53 |
+
*/
|
54 |
+
public static function initialize() {
|
55 |
+
/*
|
56 |
+
* The filters are only useful for front-end posts/pages; exit if in the admin section
|
57 |
+
*/
|
58 |
+
if ( is_admin() )
|
59 |
+
return;
|
60 |
+
|
61 |
+
/*
|
62 |
+
* add_filter parameters:
|
63 |
+
* $tag - name of the hook you're filtering; defined by [mla_gallery]
|
64 |
+
* $function_to_add - function to be called when [mla_gallery] applies the filter
|
65 |
+
* $priority - default 10; lower runs earlier, higher runs later
|
66 |
+
* $accepted_args - number of arguments your function accepts
|
67 |
+
*
|
68 |
+
* Comment out the filters you don't need; save them for future use
|
69 |
+
*/
|
70 |
+
//add_filter( 'mla_gallery_raw_attributes', 'MLABuddyPressHooksExample::mla_gallery_raw_attributes_filter', 10, 1 );
|
71 |
+
add_filter( 'mla_gallery_attributes', 'MLABuddyPressHooksExample::mla_gallery_attributes_filter', 10, 1 );
|
72 |
+
//add_filter( 'mla_gallery_initial_content', 'MLABuddyPressHooksExample::mla_gallery_initial_content_filter', 10, 2 );
|
73 |
+
//add_filter( 'mla_gallery_arguments', 'MLABuddyPressHooksExample::mla_gallery_arguments_filter', 10, 1 );
|
74 |
+
//add_filter( 'mla_gallery_query_attributes', 'MLABuddyPressHooksExample::mla_gallery_query_attributes_filter', 10, 1 );
|
75 |
+
//add_filter( 'mla_gallery_query_arguments', 'MLABuddyPressHooksExample::mla_gallery_query_arguments_filter', 10, 1 );
|
76 |
+
add_action( 'mla_gallery_wp_query_object', 'MLABuddyPressHooksExample::mla_gallery_wp_query_object_action', 10, 1 );
|
77 |
+
//add_filter( 'mla_gallery_final_content', 'MLABuddyPressHooksExample::mla_gallery_final_content_filter', 10, 1 );
|
78 |
+
|
79 |
+
//add_filter( 'use_mla_gallery_style', 'MLABuddyPressHooksExample::use_mla_gallery_style_filter', 10, 2 );
|
80 |
+
|
81 |
+
//add_filter( 'mla_gallery_style_values', 'MLABuddyPressHooksExample::mla_gallery_style_values_filter', 10, 1 );
|
82 |
+
//add_filter( 'mla_gallery_style_template', 'MLABuddyPressHooksExample::mla_gallery_style_template_filter', 10, 1 );
|
83 |
+
//add_filter( 'mla_gallery_style_parse', 'MLABuddyPressHooksExample::mla_gallery_style_parse_filter', 10, 3 );
|
84 |
+
|
85 |
+
//add_filter( 'mla_gallery_open_values', 'MLABuddyPressHooksExample::mla_gallery_open_values_filter', 10, 1 );
|
86 |
+
//add_filter( 'mla_gallery_open_template', 'MLABuddyPressHooksExample::mla_gallery_open_template_filter', 10, 1 );
|
87 |
+
//add_filter( 'mla_gallery_open_parse', 'MLABuddyPressHooksExample::mla_gallery_open_parse_filter', 10, 3 );
|
88 |
+
|
89 |
+
//add_filter( 'mla_gallery_style', 'MLABuddyPressHooksExample::mla_gallery_style_filter', 10, 5 );
|
90 |
+
|
91 |
+
//add_filter( 'mla_gallery_row_open_values', 'MLABuddyPressHooksExample::mla_gallery_row_open_values_filter', 10, 1 );
|
92 |
+
//add_filter( 'mla_gallery_row_open_template', 'MLABuddyPressHooksExample::mla_gallery_row_open_template_filter', 10, 1 );
|
93 |
+
//add_filter( 'mla_gallery_row_open_parse', 'MLABuddyPressHooksExample::mla_gallery_row_open_parse_filter', 10, 3 );
|
94 |
+
|
95 |
+
add_filter( 'mla_gallery_item_values', 'MLABuddyPressHooksExample::mla_gallery_item_values_filter', 10, 1 );
|
96 |
+
//add_filter( 'mla_gallery_item_template', 'MLABuddyPressHooksExample::mla_gallery_item_template_filter', 10, 1 );
|
97 |
+
//add_filter( 'mla_gallery_item_parse', 'MLABuddyPressHooksExample::mla_gallery_item_parse_filter', 10, 3 );
|
98 |
+
|
99 |
+
//add_filter( 'mla_gallery_row_close_values', 'MLABuddyPressHooksExample::mla_gallery_row_close_values_filter', 10, 1 );
|
100 |
+
//add_filter( 'mla_gallery_row_close_template', 'MLABuddyPressHooksExample::mla_gallery_row_close_template_filter', 10, 1 );
|
101 |
+
//add_filter( 'mla_gallery_row_close_parse', 'MLABuddyPressHooksExample::mla_gallery_row_close_parse_filter', 10, 3 );
|
102 |
+
|
103 |
+
//add_filter( 'mla_gallery_close_values', 'MLABuddyPressHooksExample::mla_gallery_close_values_filter', 10, 1 );
|
104 |
+
//add_filter( 'mla_gallery_close_template', 'MLABuddyPressHooksExample::mla_gallery_close_template_filter', 10, 1 );
|
105 |
+
//add_filter( 'mla_gallery_close_parse', 'MLABuddyPressHooksExample::mla_gallery_close_parse_filter', 10, 3 );
|
106 |
+
}
|
107 |
+
|
108 |
+
/**
|
109 |
+
* Save the shortcode attributes
|
110 |
+
*
|
111 |
+
* @since 1.00
|
112 |
+
*
|
113 |
+
* @var array
|
114 |
+
*/
|
115 |
+
private static $shortcode_attributes = array();
|
116 |
+
|
117 |
+
/**
|
118 |
+
* MLA Gallery Raw (Display) Attributes
|
119 |
+
*
|
120 |
+
* This filter gives you an opportunity to record or modify the arguments passed in to the shortcode
|
121 |
+
* before they pass through the logic to handle the 'mla_page_parameter' and "request:" prefix processing.
|
122 |
+
*
|
123 |
+
* The $shortcode_attributes array is where you will find any of your own parameters that are coded in the
|
124 |
+
* shortcode, e.g., [mla_gallery my_parameter="my value"].
|
125 |
+
*
|
126 |
+
* @since 1.03
|
127 |
+
*
|
128 |
+
* @param array the raw shortcode parameters passed in to the shortcode
|
129 |
+
*
|
130 |
+
* @return array updated shortcode attributes
|
131 |
+
*/
|
132 |
+
public static function mla_gallery_raw_attributes_filter( $shortcode_attributes ) {
|
133 |
+
/*
|
134 |
+
* Uncomment the error_log statements in any of the filters to see what's passed in
|
135 |
+
*/
|
136 |
+
//error_log( 'MLABuddyPressHooksExample::mla_gallery_raw_attributes_filter $shortcode_attributes = ' . var_export( $shortcode_attributes, true ), 0 );
|
137 |
+
|
138 |
+
/*
|
139 |
+
* Note that the global $post; object is available here and in all later filters.
|
140 |
+
* It contains the post/page on which the [mla_gallery] appears.
|
141 |
+
* Some [mla_gallery] invocations are not associated with a post/page; these will
|
142 |
+
* have a substitute $post object with $post->ID == 0.
|
143 |
+
*/
|
144 |
+
global $post;
|
145 |
+
//error_log( 'MLABuddyPressHooksExample::mla_gallery_raw_attributes_filter $post->ID = ' . var_export( $post->ID, true ), 0 );
|
146 |
+
|
147 |
+
return $shortcode_attributes;
|
148 |
+
} // mla_gallery_raw_attributes_filter
|
149 |
+
|
150 |
+
/**
|
151 |
+
* MLA Gallery (Display) Attributes
|
152 |
+
*
|
153 |
+
* This filter gives you an opportunity to record or modify the arguments passed in to the shortcode
|
154 |
+
* before they are merged with the default arguments used for the gallery display.
|
155 |
+
*
|
156 |
+
* The $shortcode_attributes array is where you will find any of your own parameters that are coded in the
|
157 |
+
* shortcode, e.g., [mla_gallery my_parameter="my value"].
|
158 |
+
*
|
159 |
+
* @since 1.00
|
160 |
+
*
|
161 |
+
* @param array the shortcode parameters passed in to the shortcode
|
162 |
+
*
|
163 |
+
* @return array updated shortcode attributes
|
164 |
+
*/
|
165 |
+
public static function mla_gallery_attributes_filter( $shortcode_attributes ) {
|
166 |
+
/*
|
167 |
+
* Uncomment the error_log statements in any of the filters to see what's passed in
|
168 |
+
*/
|
169 |
+
//error_log( 'MLABuddyPressHooksExample::mla_gallery_attributes_filter $shortcode_attributes = ' . var_export( $shortcode_attributes, true ), 0 );
|
170 |
+
|
171 |
+
/*
|
172 |
+
* Save the attributes for use in the later filters
|
173 |
+
*/
|
174 |
+
self::$shortcode_attributes = $shortcode_attributes;
|
175 |
+
|
176 |
+
return $shortcode_attributes;
|
177 |
+
} // mla_gallery_attributes_filter
|
178 |
+
|
179 |
+
/**
|
180 |
+
* Save the enclosed content
|
181 |
+
*
|
182 |
+
* @since 1.02
|
183 |
+
*
|
184 |
+
* @var NULL|string
|
185 |
+
*/
|
186 |
+
private static $shortcode_content = NULL;
|
187 |
+
|
188 |
+
/**
|
189 |
+
* MLA Gallery Enclosed Content, initial filter
|
190 |
+
*
|
191 |
+
* This filter gives you an opportunity to record or modify the content enclosed by the shortcode
|
192 |
+
* when the [mla_gallery]content[/mla_gallery] form is used.
|
193 |
+
* This initial filter is called just after the 'mla_gallery_attributes' filter above.
|
194 |
+
*
|
195 |
+
* @since 1.02
|
196 |
+
*
|
197 |
+
* @param NULL|string content enclosed by the shortcode, if any
|
198 |
+
* @param array the shortcode parameters passed in to the shortcode
|
199 |
+
*
|
200 |
+
* @return array updated shortcode content
|
201 |
+
*/
|
202 |
+
public static function mla_gallery_initial_content_filter( $shortcode_content, $shortcode_attributes ) {
|
203 |
+
//error_log( 'MLABuddyPressHooksExample::mla_gallery_initial_content_filter $shortcode_content = ' . var_export( $shortcode_content, true ), 0 );
|
204 |
+
//error_log( 'MLABuddyPressHooksExample::mla_gallery_initial_content_filter $shortcode_attributes = ' . var_export( $shortcode_attributes, true ), 0 );
|
205 |
+
|
206 |
+
/*
|
207 |
+
* Save the attributes for use in the later filters
|
208 |
+
*/
|
209 |
+
self::$shortcode_content = $shortcode_content;
|
210 |
+
|
211 |
+
return $shortcode_content;
|
212 |
+
} // mla_gallery_initial_content_filter
|
213 |
+
|
214 |
+
/**
|
215 |
+
* Save the shortcode arguments
|
216 |
+
*
|
217 |
+
* @since 1.00
|
218 |
+
*
|
219 |
+
* @var array
|
220 |
+
*/
|
221 |
+
private static $all_display_parameters = array();
|
222 |
+
|
223 |
+
/**
|
224 |
+
* MLA Gallery (Display) Arguments
|
225 |
+
*
|
226 |
+
* This filter gives you an opportunity to record or modify the gallery display arguments
|
227 |
+
* after the shortcode attributes are merged with the default arguments.
|
228 |
+
*
|
229 |
+
* Note that the values in this array are input or default values, not the final computed values
|
230 |
+
* used for the gallery display. The computed values are in the $style_values, $markup_values and
|
231 |
+
* $item_values arrays passed to later filters below.
|
232 |
+
*
|
233 |
+
* @since 1.00
|
234 |
+
*
|
235 |
+
* @param array shortcode arguments merged with gallery display defaults, so every possible parameter is present
|
236 |
+
*
|
237 |
+
* @return array updated gallery display arguments
|
238 |
+
*/
|
239 |
+
public static function mla_gallery_arguments_filter( $all_display_parameters ) {
|
240 |
+
//error_log( 'MLABuddyPressHooksExample::mla_gallery_arguments_filter $all_display_parameters = ' . var_export( $all_display_parameters, true ), 0 );
|
241 |
+
|
242 |
+
self::$all_display_parameters = $all_display_parameters;
|
243 |
+
return $all_display_parameters;
|
244 |
+
} // mla_gallery_arguments_filter
|
245 |
+
|
246 |
+
/**
|
247 |
+
* Save the query attributes
|
248 |
+
*
|
249 |
+
* @since 1.00
|
250 |
+
*
|
251 |
+
* @var array
|
252 |
+
*/
|
253 |
+
private static $query_attributes = array();
|
254 |
+
|
255 |
+
/**
|
256 |
+
* MLA Gallery Query Attributes
|
257 |
+
*
|
258 |
+
* This filter gives you an opportunity to record or modify the arguments passed in to the shortcode
|
259 |
+
* before they are merged with the default arguments used to select the attachments for the gallery.
|
260 |
+
*
|
261 |
+
* The query attributes passed in to this filter are the same as those passed through the
|
262 |
+
* "MLA Gallery (Display) Attributes" filter above. This filter is provided so you can modify
|
263 |
+
* the data selection attributes without disturbing the attributes used for gallery display.
|
264 |
+
*
|
265 |
+
* @since 1.00
|
266 |
+
*
|
267 |
+
* @param array the shortcode parameters passed in to the shortcode
|
268 |
+
*
|
269 |
+
* @return array updated shortcode attributes
|
270 |
+
*/
|
271 |
+
public static function mla_gallery_query_attributes_filter( $query_attributes ) {
|
272 |
+
//error_log( 'MLABuddyPressHooksExample::mla_gallery_query_attributes_filter $query_attributes = ' . var_export( $query_attributes, true ), 0 );
|
273 |
+
|
274 |
+
self::$query_attributes = $query_attributes;
|
275 |
+
return $query_attributes;
|
276 |
+
} // mla_gallery_query_attributes_filter
|
277 |
+
|
278 |
+
/**
|
279 |
+
* Save the query arguments
|
280 |
+
*
|
281 |
+
* @since 1.00
|
282 |
+
*
|
283 |
+
* @var array
|
284 |
+
*/
|
285 |
+
private static $all_query_parameters = array();
|
286 |
+
|
287 |
+
/**
|
288 |
+
* MLA Gallery Query Arguments
|
289 |
+
*
|
290 |
+
* This filter gives you an opportunity to record or modify the attachment query arguments
|
291 |
+
* after the shortcode attributes are merged with the default arguments.
|
292 |
+
*
|
293 |
+
* @since 1.00
|
294 |
+
*
|
295 |
+
* @param array shortcode arguments merged with attachment selection defaults, so every possible parameter is present
|
296 |
+
*
|
297 |
+
* @return array updated attachment query arguments
|
298 |
+
*/
|
299 |
+
public static function mla_gallery_query_arguments_filter( $all_query_parameters ) {
|
300 |
+
//error_log( 'MLABuddyPressHooksExample::mla_gallery_query_arguments_filter $all_query_parameters = ' . var_export( $all_query_parameters, true ), 0 );
|
301 |
+
|
302 |
+
self::$all_query_parameters = $all_query_parameters;
|
303 |
+
|
304 |
+
return $all_query_parameters;
|
305 |
+
} // mla_gallery_query_arguments_filter
|
306 |
+
|
307 |
+
/**
|
308 |
+
* Save some of the WP_Query object properties
|
309 |
+
*
|
310 |
+
* @since 1.00
|
311 |
+
*
|
312 |
+
* @var array
|
313 |
+
*/
|
314 |
+
private static $wp_query_properties = array();
|
315 |
+
|
316 |
+
/**
|
317 |
+
* MLA Gallery WP Query Object
|
318 |
+
*
|
319 |
+
* This action gives you an opportunity (read-only) to record anything you need from the WP_Query object used
|
320 |
+
* to select the attachments for gallery display. This is the ONLY point at which the WP_Query object is defined.
|
321 |
+
*
|
322 |
+
* @since 1.00
|
323 |
+
* @uses MLAShortcodes::$mla_gallery_wp_query_object
|
324 |
+
*
|
325 |
+
* @param array query arguments passed to WP_Query->query
|
326 |
+
*
|
327 |
+
* @return void actions never return anything
|
328 |
+
*/
|
329 |
+
public static function mla_gallery_wp_query_object_action( $query_arguments ) {
|
330 |
+
//error_log( 'MLABuddyPressHooksExample::mla_gallery_wp_query_object_action $query_arguments = ' . var_export( $query_arguments, true ), 0 );
|
331 |
+
|
332 |
+
self::$wp_query_properties = array();
|
333 |
+
self::$wp_query_properties ['post_count'] = MLAShortcodes::$mla_gallery_wp_query_object->post_count;
|
334 |
+
|
335 |
+
if ( empty( self::$shortcode_attributes['buddypress_urls'] ) ) {
|
336 |
+
return; // Don't need custom URLs
|
337 |
+
}
|
338 |
+
|
339 |
+
if ( 0 == self::$wp_query_properties ['post_count'] ) {
|
340 |
+
return; // Empty gallery - nothing to do
|
341 |
+
}
|
342 |
+
|
343 |
+
global $wpdb;
|
344 |
+
|
345 |
+
// Assemble the WordPress attachment IDs
|
346 |
+
$post_info = array();
|
347 |
+
foreach( MLAShortcodes::$mla_gallery_wp_query_object->posts as $value ) {
|
348 |
+
$post_info[ $value->ID ] = $value->ID;
|
349 |
+
}
|
350 |
+
|
351 |
+
// Build an array of SQL clauses, then run the query
|
352 |
+
$query = array();
|
353 |
+
$query_parameters = array();
|
354 |
+
|
355 |
+
$query[] = "SELECT rtm.id, rtm.media_id, rtm.media_author, rtm.cover_art, u.user_nicename FROM {$wpdb->prefix}rt_rtm_media AS rtm";
|
356 |
+
$query[] = "LEFT JOIN {$wpdb->users} as u";
|
357 |
+
$query[] = "ON (rtm.media_author = u.ID)";
|
358 |
+
|
359 |
+
$placeholders = array();
|
360 |
+
foreach ( $post_info as $value ) {
|
361 |
+
$placeholders[] = '%s';
|
362 |
+
$query_parameters[] = $value;
|
363 |
+
}
|
364 |
+
$query[] = 'WHERE ( rtm.media_id IN (' . join( ',', $placeholders ) . ') )';
|
365 |
+
|
366 |
+
$query = join(' ', $query);
|
367 |
+
$results = $wpdb->get_results( $wpdb->prepare( $query, $query_parameters ) );
|
368 |
+
|
369 |
+
// Save the values, indexed by WordPress attachment ID, for use in the item filter
|
370 |
+
$post_info = array();
|
371 |
+
if ( is_array( $results ) ) {
|
372 |
+
foreach ( $results as $value ) {
|
373 |
+
$post_info[ $value->media_id ] = $value;
|
374 |
+
}
|
375 |
+
}
|
376 |
+
|
377 |
+
self::$wp_query_properties ['post_info'] = $post_info;
|
378 |
+
|
379 |
+
/*
|
380 |
+
* Unlike Filters, Actions never return anything
|
381 |
+
*/
|
382 |
+
return;
|
383 |
+
} // mla_gallery_wp_query_object_action
|
384 |
+
|
385 |
+
/**
|
386 |
+
* MLA Gallery Enclosed Content, final filter
|
387 |
+
*
|
388 |
+
* This filter gives you an opportunity to record or modify the content enclosed by the shortcode
|
389 |
+
* when the [mla_gallery]content[/mla_gallery] form is used.
|
390 |
+
* This final filter is called just after the WP_query and before control is passed
|
391 |
+
* to the alternate gallery shortcode.
|
392 |
+
*
|
393 |
+
* @since 1.02
|
394 |
+
*
|
395 |
+
* @param NULL|string content enclosed by the shortcode, if any
|
396 |
+
*
|
397 |
+
* @return array updated shortcode content
|
398 |
+
*/
|
399 |
+
public static function mla_gallery_final_content_filter( $shortcode_content ) {
|
400 |
+
//error_log( 'MLABuddyPressHooksExample::mla_gallery_final_content_filter $shortcode_content = ' . var_export( $shortcode_content, true ), 0 );
|
401 |
+
|
402 |
+
return $shortcode_content;
|
403 |
+
} // mla_gallery_final_content_filter
|
404 |
+
|
405 |
+
/**
|
406 |
+
* Use MLA Gallery Style
|
407 |
+
*
|
408 |
+
* You can use this filter to allow or suppress the inclusion of CSS styles in the
|
409 |
+
* gallery output. Return 'true' to allow the styles, false to suppress them. You can also
|
410 |
+
* suppress styles by returning an empty string from the mla_gallery_style_parse_filter below.
|
411 |
+
*
|
412 |
+
* @since 1.00
|
413 |
+
*
|
414 |
+
* @param boolean true unless the mla_style parameter is "none"
|
415 |
+
* @param string value of the mla_style parameter
|
416 |
+
*
|
417 |
+
* @return boolean true to fetch and parse the style template, false to leave it empty
|
418 |
+
*/
|
419 |
+
public static function use_mla_gallery_style_filter( $use_style_template, $style_template_name ) {
|
420 |
+
//error_log( 'MLABuddyPressHooksExample::use_mla_gallery_style_filter $use_style_template = ' . var_export( $use_style_template, true ), 0 );
|
421 |
+
//error_log( 'MLABuddyPressHooksExample::use_mla_gallery_style_filter $style_template_name = ' . var_export( $style_template_name, true ), 0 );
|
422 |
+
|
423 |
+
/*
|
424 |
+
* Filters must return the first argument passed in, unchanged or updated
|
425 |
+
*/
|
426 |
+
return $use_style_template;
|
427 |
+
} // use_mla_gallery_style_filter
|
428 |
+
|
429 |
+
/**
|
430 |
+
* MLA Gallery Style Values
|
431 |
+
*
|
432 |
+
* The "Values" series of filters gives you a chance to modify the substitution parameter values
|
433 |
+
* before they are used to complete the associated template (in the corresponding "Parse" filter).
|
434 |
+
* It is called just before the values are used to parse the associated template.
|
435 |
+
* You can add, change or delete parameters as needed.
|
436 |
+
*
|
437 |
+
* @since 1.00
|
438 |
+
*
|
439 |
+
* @param array parameter_name => parameter_value pairs
|
440 |
+
*
|
441 |
+
* @return array updated substitution parameter name => value pairs
|
442 |
+
*/
|
443 |
+
public static function mla_gallery_style_values_filter( $style_values ) {
|
444 |
+
//error_log( 'MLABuddyPressHooksExample::mla_gallery_style_values_filter $style_values = ' . var_export( $style_values, true ), 0 );
|
445 |
+
|
446 |
+
/*
|
447 |
+
* You also have access to the PHP Super Globals, e.g., $_REQUEST, $_SERVER
|
448 |
+
*/
|
449 |
+
//error_log( 'MLABuddyPressHooksExample::mla_gallery_style_values_filter $_REQUEST = ' . var_export( $_REQUEST, true ), 0 );
|
450 |
+
//error_log( 'MLABuddyPressHooksExample::mla_gallery_style_values_filter $_SERVER[ REQUEST_URI ] = ' . var_export( $_SERVER['REQUEST_URI'], true ), 0 );
|
451 |
+
|
452 |
+
/*
|
453 |
+
* You can use the WordPress globals like $wp_query, $wpdb and $table_prefix as well.
|
454 |
+
* Note that $wp_query contains values for the post/page query, NOT the [mla_gallery] query.
|
455 |
+
*/
|
456 |
+
global $wp_query;
|
457 |
+
//error_log( 'MLABuddyPressHooksExample::mla_gallery_style_values_filter $wp_query->query = ' . var_export( $wp_query->query, true ), 0 );
|
458 |
+
|
459 |
+
return $style_values;
|
460 |
+
} // mla_gallery_style_values_filter
|
461 |
+
|
462 |
+
/**
|
463 |
+
* MLA Gallery Style Template
|
464 |
+
*
|
465 |
+
* The "Template" series of filters gives you a chance to modify the template value before
|
466 |
+
* it is used to generate the HTML markup (in the corresponding "Parse" filter).
|
467 |
+
* It is called just before the template is used to generate the markup.
|
468 |
+
* You can modify the template as needed.
|
469 |
+
*
|
470 |
+
* @since 1.00
|
471 |
+
*
|
472 |
+
* @param string template used to generate the HTML markup
|
473 |
+
*
|
474 |
+
* @return string updated template
|
475 |
+
*/
|
476 |
+
public static function mla_gallery_style_template_filter( $style_template ) {
|
477 |
+
//error_log( 'MLABuddyPressHooksExample::mla_gallery_style_template_filter $style_template = ' . var_export( $style_template, true ), 0 );
|
478 |
+
|
479 |
+
return $style_template;
|
480 |
+
} // mla_gallery_style_template_filter
|
481 |
+
|
482 |
+
/**
|
483 |
+
* MLA Gallery Style Parse
|
484 |
+
*
|
485 |
+
* The "Parse" series of filters gives you a chance to modify or replace the HTML markup
|
486 |
+
* that will be added to the [mla_gallery] output. It is called just after the values array
|
487 |
+
* (updated in the corresponding "Values" filter) is combined (parsed) with the template.
|
488 |
+
* You can modify the HTML markup already prepared or start over with the template and the
|
489 |
+
* substitution values.
|
490 |
+
*
|
491 |
+
* @since 1.00
|
492 |
+
*
|
493 |
+
* @param string HTML markup returned by the template parser
|
494 |
+
* @param string template used to generate the HTML markup
|
495 |
+
* @param array parameter_name => parameter_value pairs
|
496 |
+
*
|
497 |
+
* @return array updated HTML markup for gallery output
|
498 |
+
*/
|
499 |
+
public static function mla_gallery_style_parse_filter( $html_markup, $style_template, $style_values ) {
|
500 |
+
//error_log( 'MLABuddyPressHooksExample::mla_gallery_style_parse_filter $html_markup = ' . var_export( $html_markup, true ), 0 );
|
501 |
+
//error_log( 'MLABuddyPressHooksExample::mla_gallery_style_parse_filter $style_template = ' . var_export( $style_template, true ), 0 );
|
502 |
+
//error_log( 'MLABuddyPressHooksExample::mla_gallery_style_parse_filter $style_values = ' . var_export( $style_values, true ), 0 );
|
503 |
+
|
504 |
+
return $html_markup;
|
505 |
+
} // mla_gallery_style_parse_filter
|
506 |
+
|
507 |
+
/**
|
508 |
+
* MLA Gallery Open Values
|
509 |
+
*
|
510 |
+
* Note: The $markup_values array is shared among the open, row open, row close and close functions.
|
511 |
+
* It is also used to initialize the $item_values array.
|
512 |
+
*
|
513 |
+
* @since 1.00
|
514 |
+
*
|
515 |
+
* @param array parameter_name => parameter_value pairs
|
516 |
+
*
|
517 |
+
* @return array updated substitution parameter name => value pairs
|
518 |
+
*/
|
519 |
+
public static function mla_gallery_open_values_filter( $markup_values ) {
|
520 |
+
//error_log( 'MLABuddyPressHooksExample::mla_gallery_open_values_filter $markup_values = ' . var_export( $markup_values, true ), 0 );
|
521 |
+
|
522 |
+
return $markup_values;
|
523 |
+
} // mla_gallery_open_values_filter
|
524 |
+
|
525 |
+
/**
|
526 |
+
* MLA Gallery Open Template
|
527 |
+
*
|
528 |
+
* @since 1.00
|
529 |
+
*
|
530 |
+
* @param string template used to generate the HTML markup
|
531 |
+
*
|
532 |
+
* @return string updated template
|
533 |
+
*/
|
534 |
+
public static function mla_gallery_open_template_filter( $open_template ) {
|
535 |
+
//error_log( 'MLABuddyPressHooksExample::mla_gallery_open_template_filter $open_template = ' . var_export( $open_template, true ), 0 );
|
536 |
+
|
537 |
+
return $open_template;
|
538 |
+
} // mla_gallery_open_template_filter
|
539 |
+
|
540 |
+
/**
|
541 |
+
* MLA Gallery Open Parse
|
542 |
+
*
|
543 |
+
* @since 1.00
|
544 |
+
*
|
545 |
+
* @param string HTML markup returned by the template parser
|
546 |
+
* @param string template used to generate the HTML markup
|
547 |
+
* @param array parameter_name => parameter_value pairs
|
548 |
+
*
|
549 |
+
* @return array updated HTML markup for gallery output
|
550 |
+
*/
|
551 |
+
public static function mla_gallery_open_parse_filter( $html_markup, $open_template, $markup_values ) {
|
552 |
+
//error_log( 'MLABuddyPressHooksExample::mla_gallery_open_parse_filter $html_markup = ' . var_export( $html_markup, true ), 0 );
|
553 |
+
//error_log( 'MLABuddyPressHooksExample::mla_gallery_open_parse_filter $open_template = ' . var_export( $open_template, true ), 0 );
|
554 |
+
//error_log( 'MLABuddyPressHooksExample::mla_gallery_open_parse_filter $markup_values = ' . var_export( $markup_values, true ), 0 );
|
555 |
+
|
556 |
+
return $html_markup;
|
557 |
+
} // mla_gallery_open_parse_filter
|
558 |
+
|
559 |
+
/**
|
560 |
+
* MLA Gallery Style
|
561 |
+
*
|
562 |
+
* This is an old filter retained for compatibility with earlier MLA versions.
|
563 |
+
* You will probably find the "Values" and "Parse" filters more useful.
|
564 |
+
*
|
565 |
+
* @since 1.00
|
566 |
+
*
|
567 |
+
* @param string HTML markup for "gallery style" and "gallery open", combined
|
568 |
+
* @param array parameter_name => parameter_value pairs for gallery style
|
569 |
+
* @param array parameter_name => parameter_value pairs for gallery open
|
570 |
+
* @param string template used to generate the HTML markup for gallery style
|
571 |
+
* @param string template used to generate the HTML markup for gallery open
|
572 |
+
*
|
573 |
+
* @return array updated HTML markup for "gallery style" and "gallery open" output
|
574 |
+
*/
|
575 |
+
public static function mla_gallery_style_filter( $html_markup, $style_values, $open_values, $style_template, $open_template ) {
|
576 |
+
//error_log( 'MLABuddyPressHooksExample::mla_gallery_style_filter $html_markup = ' . var_export( $html_markup, true ), 0 );
|
577 |
+
//error_log( 'MLABuddyPressHooksExample::mla_gallery_style_filter $style_values = ' . var_export( $style_values, true ), 0 );
|
578 |
+
//error_log( 'MLABuddyPressHooksExample::mla_gallery_style_filter $open_values = ' . var_export( $open_values, true ), 0 );
|
579 |
+
//error_log( 'MLABuddyPressHooksExample::mla_gallery_style_filter $style_template = ' . var_export( $style_template, true ), 0 );
|
580 |
+
//error_log( 'MLABuddyPressHooksExample::mla_gallery_style_filter $open_template = ' . var_export( $open_template, true ), 0 );
|
581 |
+
|
582 |
+
return $html_markup;
|
583 |
+
} // mla_gallery_style_filter
|
584 |
+
|
585 |
+
/**
|
586 |
+
* MLA Gallery Row Open Values
|
587 |
+
*
|
588 |
+
* @since 1.00
|
589 |
+
*
|
590 |
+
* @param array parameter_name => parameter_value pairs
|
591 |
+
*
|
592 |
+
* @return array updated substitution parameter name => value pairs
|
593 |
+
*/
|
594 |
+
public static function mla_gallery_row_open_values_filter( $markup_values ) {
|
595 |
+
//error_log( 'MLABuddyPressHooksExample::mla_gallery_row_open_values_filter $markup_values = ' . var_export( $markup_values, true ), 0 );
|
596 |
+
|
597 |
+
return $markup_values;
|
598 |
+
} // mla_gallery_row_open_values_filter
|
599 |
+
|
600 |
+
/**
|
601 |
+
* MLA Gallery Row Open Template
|
602 |
+
*
|
603 |
+
* @since 1.00
|
604 |
+
*
|
605 |
+
* @param string template used to generate the HTML markup
|
606 |
+
*
|
607 |
+
* @return string updated template
|
608 |
+
*/
|
609 |
+
public static function mla_gallery_row_open_template_filter( $row_open_template ) {
|
610 |
+
//error_log( 'MLABuddyPressHooksExample::mla_gallery_row_open_template_filter $row_open_template = ' . var_export( $row_open_template, true ), 0 );
|
611 |
+
|
612 |
+
return $row_open_template;
|
613 |
+
} // mla_gallery_row_open_template_filter
|
614 |
+
|
615 |
+
/**
|
616 |
+
* MLA Gallery Row Open Parse
|
617 |
+
*
|
618 |
+
* @since 1.00
|
619 |
+
*
|
620 |
+
* @param string HTML markup returned by the template parser
|
621 |
+
* @param string template used to generate the HTML markup
|
622 |
+
* @param array parameter_name => parameter_value pairs
|
623 |
+
*
|
624 |
+
* @return array updated HTML markup for gallery output
|
625 |
+
*/
|
626 |
+
public static function mla_gallery_row_open_parse_filter( $html_markup, $row_open_template, $markup_values ) {
|
627 |
+
//error_log( 'MLABuddyPressHooksExample::mla_gallery_row_open_parse_filter $html_markup = ' . var_export( $html_markup, true ), 0 );
|
628 |
+
//error_log( 'MLABuddyPressHooksExample::mla_gallery_row_open_parse_filter $row_open_template = ' . var_export( $row_open_template, true ), 0 );
|
629 |
+
//error_log( 'MLABuddyPressHooksExample::mla_gallery_row_open_parse_filter $markup_values = ' . var_export( $markup_values, true ), 0 );
|
630 |
+
|
631 |
+
return $html_markup;
|
632 |
+
} // mla_gallery_row_open_parse_filter
|
633 |
+
|
634 |
+
/**
|
635 |
+
* MLA Gallery Item Values
|
636 |
+
*
|
637 |
+
* @since 1.00
|
638 |
+
*
|
639 |
+
* @param array parameter_name => parameter_value pairs
|
640 |
+
*
|
641 |
+
* @return array updated substitution parameter name => value pairs
|
642 |
+
*/
|
643 |
+
public static function mla_gallery_item_values_filter( $item_values ) {
|
644 |
+
//error_log( 'MLABuddyPressHooksExample::mla_gallery_item_values_filter $item_values = ' . var_export( $item_values, true ), 0 );
|
645 |
+
|
646 |
+
/*
|
647 |
+
* We use a shortcode parameter of our own to apply our filters on a gallery-by-gallery basis,
|
648 |
+
* leaving other [mla_gallery] instances untouched. If the "my_filter" parameter is not present,
|
649 |
+
* we have nothing to do.
|
650 |
+
*/
|
651 |
+
if ( ! isset( self::$shortcode_attributes['buddypress_urls'] ) ) {
|
652 |
+
return $item_values; // leave them unchanged
|
653 |
+
}
|
654 |
+
|
655 |
+
$use_cover_art = 'cover' == strtolower( trim( self::$shortcode_attributes['buddypress_urls'] ) );
|
656 |
+
|
657 |
+
if ( isset( self::$wp_query_properties ['post_info'][ $item_values['attachment_ID'] ] ) ) {
|
658 |
+
$post_info = self::$wp_query_properties ['post_info'][ $item_values['attachment_ID'] ];
|
659 |
+
} else {
|
660 |
+
return $item_values; // no matching rtMedia item
|
661 |
+
}
|
662 |
+
|
663 |
+
$new_url = $item_values['site_url'] . '/members/' . $post_info->user_nicename . '/media/' . $post_info->id . '/';
|
664 |
+
$new_link = str_replace( $item_values['link_url'], $new_url, $item_values['link'] );
|
665 |
+
|
666 |
+
// Add the "media thumbnail", if desired and present. Note that the size is fixed at 150x150 pixels.
|
667 |
+
if ( $use_cover_art && ! empty( $post_info->cover_art ) ) {
|
668 |
+
$new_thumbnail = '<img width="150" height="150" src="' . $post_info->cover_art . '" class="attachment-thumbnail" alt="' . $item_values['thumbnail_content'] . '" />';
|
669 |
+
$new_link = str_replace( $item_values['thumbnail_content'] . '</a>', $new_thumbnail . '</a>', $new_link );
|
670 |
+
|
671 |
+
$item_values['thumbnail_content'] = $new_thumbnail;
|
672 |
+
$item_values['thumbnail_width'] = '150';
|
673 |
+
$item_values['thumbnail_height'] = '150';
|
674 |
+
$item_values['thumbnail_url'] = $post_info->cover_art;
|
675 |
+
}
|
676 |
+
|
677 |
+
$item_values['link_url'] = $new_url;
|
678 |
+
$item_values['link'] = $new_link;
|
679 |
+
|
680 |
+
return $item_values;
|
681 |
+
} // mla_gallery_item_values_filter
|
682 |
+
|
683 |
+
/**
|
684 |
+
* MLA Gallery Item Template
|
685 |
+
*
|
686 |
+
* @since 1.00
|
687 |
+
*
|
688 |
+
* @param string template used to generate the HTML markup
|
689 |
+
*
|
690 |
+
* @return string updated template
|
691 |
+
*/
|
692 |
+
public static function mla_gallery_item_template_filter( $item_template ) {
|
693 |
+
//error_log( 'MLABuddyPressHooksExample::mla_gallery_item_template_filter $item_template = ' . var_export( $item_template, true ), 0 );
|
694 |
+
|
695 |
+
return $item_template;
|
696 |
+
} // mla_gallery_item_template_filter
|
697 |
+
|
698 |
+
/**
|
699 |
+
* MLA Gallery Item Parse
|
700 |
+
*
|
701 |
+
* @since 1.00
|
702 |
+
*
|
703 |
+
* @param string HTML markup returned by the template parser
|
704 |
+
* @param string template used to generate the HTML markup
|
705 |
+
* @param array parameter_name => parameter_value pairs
|
706 |
+
*
|
707 |
+
* @return array updated HTML markup for gallery output
|
708 |
+
*/
|
709 |
+
public static function mla_gallery_item_parse_filter( $html_markup, $item_template, $item_values ) {
|
710 |
+
//error_log( 'MLABuddyPressHooksExample::mla_gallery_item_parse_filter $html_markup = ' . var_export( $html_markup, true ), 0 );
|
711 |
+
//error_log( 'MLABuddyPressHooksExample::mla_gallery_item_parse_filter $item_template = ' . var_export( $item_template, true ), 0 );
|
712 |
+
//error_log( 'MLABuddyPressHooksExample::mla_gallery_item_parse_filter $item_values = ' . var_export( $item_values, true ), 0 );
|
713 |
+
|
714 |
+
return $html_markup;
|
715 |
+
} // mla_gallery_item_parse_filter
|
716 |
+
|
717 |
+
/**
|
718 |
+
* MLA Gallery Row Close Values
|
719 |
+
*
|
720 |
+
* @since 1.00
|
721 |
+
*
|
722 |
+
* @param array parameter_name => parameter_value pairs
|
723 |
+
*
|
724 |
+
* @return array updated substitution parameter name => value pairs
|
725 |
+
*/
|
726 |
+
public static function mla_gallery_row_close_values_filter( $markup_values ) {
|
727 |
+
//error_log( 'MLABuddyPressHooksExample::mla_gallery_row_close_values_filter $markup_values = ' . var_export( $markup_values, true ), 0 );
|
728 |
+
|
729 |
+
return $markup_values;
|
730 |
+
} // mla_gallery_row_close_values_filter
|
731 |
+
|
732 |
+
/**
|
733 |
+
* MLA Gallery Row Close Template
|
734 |
+
*
|
735 |
+
* @since 1.00
|
736 |
+
*
|
737 |
+
* @param string template used to generate the HTML markup
|
738 |
+
*
|
739 |
+
* @return string updated template
|
740 |
+
*/
|
741 |
+
public static function mla_gallery_row_close_template_filter( $row_close_template ) {
|
742 |
+
//error_log( 'MLABuddyPressHooksExample::mla_gallery_row_close_template_filter $row_close_template = ' . var_export( $row_close_template, true ), 0 );
|
743 |
+
|
744 |
+
return $row_close_template;
|
745 |
+
} // mla_gallery_row_close_template_filter
|
746 |
+
|
747 |
+
/**
|
748 |
+
* MLA Gallery Row Close Parse
|
749 |
+
*
|
750 |
+
* @since 1.00
|
751 |
+
*
|
752 |
+
* @param string HTML markup returned by the template parser
|
753 |
+
* @param string template used to generate the HTML markup
|
754 |
+
* @param array parameter_name => parameter_value pairs
|
755 |
+
*
|
756 |
+
* @return array updated HTML markup for gallery output
|
757 |
+
*/
|
758 |
+
public static function mla_gallery_row_close_parse_filter( $html_markup, $row_close_template, $markup_values ) {
|
759 |
+
//error_log( 'MLABuddyPressHooksExample::mla_gallery_row_close_parse_filter $html_markup = ' . var_export( $html_markup, true ), 0 );
|
760 |
+
//error_log( 'MLABuddyPressHooksExample::mla_gallery_row_close_parse_filter $row_close_template = ' . var_export( $row_close_template, true ), 0 );
|
761 |
+
//error_log( 'MLABuddyPressHooksExample::mla_gallery_row_close_parse_filter $markup_values = ' . var_export( $markup_values, true ), 0 );
|
762 |
+
|
763 |
+
return $html_markup;
|
764 |
+
} // mla_gallery_row_close_parse_filter
|
765 |
+
|
766 |
+
/**
|
767 |
+
* MLA Gallery Close Values
|
768 |
+
*
|
769 |
+
* @since 1.00
|
770 |
+
*
|
771 |
+
* @param array parameter_name => parameter_value pairs
|
772 |
+
*
|
773 |
+
* @return array updated substitution parameter name => value pairs
|
774 |
+
*/
|
775 |
+
public static function mla_gallery_close_values_filter( $markup_values ) {
|
776 |
+
//error_log( 'MLABuddyPressHooksExample::mla_gallery_close_values_filter $markup_values = ' . var_export( $markup_values, true ), 0 );
|
777 |
+
|
778 |
+
return $markup_values;
|
779 |
+
} // mla_gallery_close_values_filter
|
780 |
+
|
781 |
+
/**
|
782 |
+
* MLA Gallery Close Template
|
783 |
+
*
|
784 |
+
* @since 1.00
|
785 |
+
*
|
786 |
+
* @param string template used to generate the HTML markup
|
787 |
+
*
|
788 |
+
* @return string updated template
|
789 |
+
*/
|
790 |
+
public static function mla_gallery_close_template_filter( $close_template ) {
|
791 |
+
//error_log( 'MLABuddyPressHooksExample::mla_gallery_close_template_filter $close_template = ' . var_export( $close_template, true ), 0 );
|
792 |
+
|
793 |
+
return $close_template;
|
794 |
+
} // mla_gallery_close_template_filter
|
795 |
+
|
796 |
+
/**
|
797 |
+
* MLA Gallery Close Parse
|
798 |
+
*
|
799 |
+
* @since 1.00
|
800 |
+
*
|
801 |
+
* @param string HTML markup returned by the template parser
|
802 |
+
* @param string template used to generate the HTML markup
|
803 |
+
* @param array parameter_name => parameter_value pairs
|
804 |
+
*
|
805 |
+
* @return array updated HTML markup for gallery output
|
806 |
+
*/
|
807 |
+
public static function mla_gallery_close_parse_filter( $html_markup, $close_template, $markup_values ) {
|
808 |
+
//error_log( 'MLABuddyPressHooksExample::mla_gallery_close_parse_filter $html_markup = ' . var_export( $html_markup, true ), 0 );
|
809 |
+
//error_log( 'MLABuddyPressHooksExample::mla_gallery_close_parse_filter $close_template = ' . var_export( $close_template, true ), 0 );
|
810 |
+
//error_log( 'MLABuddyPressHooksExample::mla_gallery_close_parse_filter $markup_values = ' . var_export( $markup_values, true ), 0 );
|
811 |
+
|
812 |
+
return $html_markup;
|
813 |
+
} // mla_gallery_close_parse_filter
|
814 |
+
|
815 |
+
} // Class MLABuddyPressHooksExample
|
816 |
+
|
817 |
+
/*
|
818 |
+
* Install the filters at an early opportunity
|
819 |
+
*/
|
820 |
+
add_action('init', 'MLABuddyPressHooksExample::initialize');
|
821 |
+
?>
|
examples/mla-cloud-hooks-example.php.txt
CHANGED
@@ -76,15 +76,15 @@ class MLATagCloudHooksExample {
|
|
76 |
add_filter( 'mla_tag_cloud_scale', 'MLATagCloudHooksExample::mla_tag_cloud_scale_filter', 10, 4 );
|
77 |
|
78 |
add_filter( 'use_mla_tag_cloud_style', 'MLATagCloudHooksExample::use_mla_tag_cloud_style_filter', 10, 2 );
|
79 |
-
|
80 |
add_filter( 'mla_tag_cloud_style_values', 'MLATagCloudHooksExample::mla_tag_cloud_style_values_filter', 10, 1 );
|
81 |
add_filter( 'mla_tag_cloud_style_template', 'MLATagCloudHooksExample::mla_tag_cloud_style_template_filter', 10, 1 );
|
82 |
add_filter( 'mla_tag_cloud_style_parse', 'MLATagCloudHooksExample::mla_tag_cloud_style_parse_filter', 10, 3 );
|
83 |
-
|
84 |
add_filter( 'mla_tag_cloud_open_values', 'MLATagCloudHooksExample::mla_tag_cloud_open_values_filter', 10, 1 );
|
85 |
add_filter( 'mla_tag_cloud_open_template', 'MLATagCloudHooksExample::mla_tag_cloud_open_template_filter', 10, 1 );
|
86 |
add_filter( 'mla_tag_cloud_open_parse', 'MLATagCloudHooksExample::mla_tag_cloud_open_parse_filter', 10, 3 );
|
87 |
-
|
88 |
add_filter( 'mla_tag_cloud_row_open_values', 'MLATagCloudHooksExample::mla_tag_cloud_row_open_values_filter', 10, 1 );
|
89 |
add_filter( 'mla_tag_cloud_row_open_template', 'MLATagCloudHooksExample::mla_tag_cloud_row_open_template_filter', 10, 1 );
|
90 |
add_filter( 'mla_tag_cloud_row_open_parse', 'MLATagCloudHooksExample::mla_tag_cloud_row_open_parse_filter', 10, 3 );
|
@@ -110,7 +110,7 @@ class MLATagCloudHooksExample {
|
|
110 |
* @var array
|
111 |
*/
|
112 |
private static $shortcode_attributes = array();
|
113 |
-
|
114 |
/**
|
115 |
* MLA Tag Cloud (Display) Attributes
|
116 |
*
|
@@ -132,7 +132,7 @@ class MLATagCloudHooksExample {
|
|
132 |
* Uncomment the error_log statements in any of the filters to see what's passed in
|
133 |
*/
|
134 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_attributes_filter $shortcode_attributes = ' . var_export( $shortcode_attributes, true ), 0 );
|
135 |
-
|
136 |
/*
|
137 |
* Save the attributes for use in the later filters
|
138 |
*/
|
@@ -152,7 +152,7 @@ class MLATagCloudHooksExample {
|
|
152 |
* @var array
|
153 |
*/
|
154 |
private static $all_display_parameters = array();
|
155 |
-
|
156 |
/**
|
157 |
* MLA Tag Cloud (Display) Arguments
|
158 |
*
|
@@ -172,7 +172,7 @@ class MLATagCloudHooksExample {
|
|
172 |
*/
|
173 |
public static function mla_tag_cloud_arguments_filter( $all_display_parameters ) {
|
174 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_arguments_filter $all_display_parameters = ' . var_export( $all_display_parameters, true ), 0 );
|
175 |
-
|
176 |
self::$all_display_parameters = $all_display_parameters;
|
177 |
return $all_display_parameters;
|
178 |
} // mla_tag_cloud_arguments_filter
|
@@ -185,7 +185,7 @@ class MLATagCloudHooksExample {
|
|
185 |
* @var array
|
186 |
*/
|
187 |
private static $query_attributes = array();
|
188 |
-
|
189 |
/**
|
190 |
* MLA Tag Cloud Query Attributes
|
191 |
*
|
@@ -205,7 +205,7 @@ class MLATagCloudHooksExample {
|
|
205 |
*/
|
206 |
public static function mla_get_terms_query_attributes_filter( $query_attributes ) {
|
207 |
//error_log( 'MLATagCloudHooksExample::mla_get_terms_query_attributes_filter $query_attributes = ' . var_export( $query_attributes, true ), 0 );
|
208 |
-
|
209 |
self::$query_attributes = $query_attributes;
|
210 |
return $query_attributes;
|
211 |
} // mla_get_terms_query_attributes_filter
|
@@ -218,7 +218,7 @@ class MLATagCloudHooksExample {
|
|
218 |
* @var array
|
219 |
*/
|
220 |
private static $all_query_parameters = array();
|
221 |
-
|
222 |
/**
|
223 |
* MLA Tag Cloud Query Arguments
|
224 |
*
|
@@ -234,7 +234,7 @@ class MLATagCloudHooksExample {
|
|
234 |
*/
|
235 |
public static function mla_get_terms_query_arguments_filter( $all_query_parameters ) {
|
236 |
//error_log( 'MLATagCloudHooksExample::mla_get_terms_query_arguments_filter $all_query_parameters = ' . var_export( $all_query_parameters, true ), 0 );
|
237 |
-
|
238 |
self::$all_query_parameters = $all_query_parameters;
|
239 |
return $all_query_parameters;
|
240 |
} // mla_get_terms_query_arguments_filter
|
@@ -253,7 +253,7 @@ class MLATagCloudHooksExample {
|
|
253 |
*/
|
254 |
public static function mla_get_terms_query_results_filter( $tag_objects ) {
|
255 |
//error_log( 'MLATagCloudHooksExample::mla_get_terms_query_results_filter $tag_objects = ' . var_export( $tag_objects, true ), 0 );
|
256 |
-
|
257 |
return $tag_objects;
|
258 |
} // mla_get_terms_query_results_filter
|
259 |
|
@@ -301,7 +301,7 @@ class MLATagCloudHooksExample {
|
|
301 |
public static function use_mla_tag_cloud_style_filter( $use_style_template, $style_template_name ) {
|
302 |
//error_log( 'MLATagCloudHooksExample::use_mla_tag_cloud_style_filter $use_style_template = ' . var_export( $use_style_template, true ), 0 );
|
303 |
//error_log( 'MLATagCloudHooksExample::use_mla_tag_cloud_style_filter $style_template_name = ' . var_export( $style_template_name, true ), 0 );
|
304 |
-
|
305 |
return $use_style_template;
|
306 |
} // use_mla_tag_cloud_style_filter
|
307 |
|
@@ -321,20 +321,20 @@ class MLATagCloudHooksExample {
|
|
321 |
*/
|
322 |
public static function mla_tag_cloud_style_values_filter( $style_values ) {
|
323 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_style_values_filter $style_values = ' . var_export( $style_values, true ), 0 );
|
324 |
-
|
325 |
/*
|
326 |
* You also have access to the PHP Super Globals, e.g., $_REQUEST, $_SERVER
|
327 |
*/
|
328 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_style_values_filter $_REQUEST = ' . var_export( $_REQUEST, true ), 0 );
|
329 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_style_values_filter $_SERVER[ REQUEST_URI ] = ' . var_export( $_SERVER['REQUEST_URI'], true ), 0 );
|
330 |
-
|
331 |
/*
|
332 |
* You can use the WordPress globals like $wp_query, $wpdb and $table_prefix as well.
|
333 |
* Note that $wp_query contains values for the post/page query, NOT the [mla_tag_cloud] query.
|
334 |
*/
|
335 |
global $wp_query;
|
336 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_style_values_filter $wp_query->query = ' . var_export( $wp_query->query, true ), 0 );
|
337 |
-
|
338 |
return $style_values;
|
339 |
} // mla_tag_cloud_style_values_filter
|
340 |
|
@@ -354,7 +354,7 @@ class MLATagCloudHooksExample {
|
|
354 |
*/
|
355 |
public static function mla_tag_cloud_style_template_filter( $style_template ) {
|
356 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_style_template_filter $style_template = ' . var_export( $style_template, true ), 0 );
|
357 |
-
|
358 |
return $style_template;
|
359 |
} // mla_tag_cloud_style_template_filter
|
360 |
|
@@ -379,10 +379,10 @@ class MLATagCloudHooksExample {
|
|
379 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_style_parse_filter $html_markup = ' . var_export( $html_markup, true ), 0 );
|
380 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_style_parse_filter $style_template = ' . var_export( $style_template, true ), 0 );
|
381 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_style_parse_filter $style_values = ' . var_export( $style_values, true ), 0 );
|
382 |
-
|
383 |
return $html_markup;
|
384 |
} // mla_tag_cloud_style_parse_filter
|
385 |
-
|
386 |
/**
|
387 |
* MLA Tag Cloud Open Values
|
388 |
*
|
@@ -397,7 +397,7 @@ class MLATagCloudHooksExample {
|
|
397 |
*/
|
398 |
public static function mla_tag_cloud_open_values_filter( $markup_values ) {
|
399 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_open_values_filter $markup_values = ' . var_export( $markup_values, true ), 0 );
|
400 |
-
|
401 |
return $markup_values;
|
402 |
} // mla_tag_cloud_open_values_filter
|
403 |
|
@@ -412,7 +412,7 @@ class MLATagCloudHooksExample {
|
|
412 |
*/
|
413 |
public static function mla_tag_cloud_open_template_filter( $open_template ) {
|
414 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_open_template_filter $open_template = ' . var_export( $open_template, true ), 0 );
|
415 |
-
|
416 |
return $open_template;
|
417 |
} // mla_tag_cloud_open_template_filter
|
418 |
|
@@ -431,10 +431,10 @@ class MLATagCloudHooksExample {
|
|
431 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_open_parse_filter $html_markup = ' . var_export( $html_markup, true ), 0 );
|
432 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_open_parse_filter $open_template = ' . var_export( $open_template, true ), 0 );
|
433 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_open_parse_filter $markup_values = ' . var_export( $markup_values, true ), 0 );
|
434 |
-
|
435 |
return $html_markup;
|
436 |
} // mla_tag_cloud_open_parse_filter
|
437 |
-
|
438 |
/**
|
439 |
* MLA Tag Cloud Style
|
440 |
*
|
@@ -457,10 +457,10 @@ class MLATagCloudHooksExample {
|
|
457 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_style_filter $open_values = ' . var_export( $open_values, true ), 0 );
|
458 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_style_filter $style_template = ' . var_export( $style_template, true ), 0 );
|
459 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_style_filter $open_template = ' . var_export( $open_template, true ), 0 );
|
460 |
-
|
461 |
return $html_markup;
|
462 |
} // mla_tag_cloud_style_filter
|
463 |
-
|
464 |
/**
|
465 |
* MLA Tag Cloud Row Open Values
|
466 |
*
|
@@ -472,7 +472,7 @@ class MLATagCloudHooksExample {
|
|
472 |
*/
|
473 |
public static function mla_tag_cloud_row_open_values_filter( $markup_values ) {
|
474 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_row_open_values_filter $markup_values = ' . var_export( $markup_values, true ), 0 );
|
475 |
-
|
476 |
return $markup_values;
|
477 |
} // mla_tag_cloud_row_open_values_filter
|
478 |
|
@@ -487,7 +487,7 @@ class MLATagCloudHooksExample {
|
|
487 |
*/
|
488 |
public static function mla_tag_cloud_row_open_template_filter( $row_open_template ) {
|
489 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_row_open_template_filter $row_open_template = ' . var_export( $row_open_template, true ), 0 );
|
490 |
-
|
491 |
return $row_open_template;
|
492 |
} // mla_tag_cloud_row_open_template_filter
|
493 |
|
@@ -506,10 +506,10 @@ class MLATagCloudHooksExample {
|
|
506 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_row_open_parse_filter $html_markup = ' . var_export( $html_markup, true ), 0 );
|
507 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_row_open_parse_filter $row_open_template = ' . var_export( $row_open_template, true ), 0 );
|
508 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_row_open_parse_filter $markup_values = ' . var_export( $markup_values, true ), 0 );
|
509 |
-
|
510 |
return $html_markup;
|
511 |
} // mla_tag_cloud_row_open_parse_filter
|
512 |
-
|
513 |
/**
|
514 |
* MLA Tag Cloud Item Values
|
515 |
*
|
@@ -521,7 +521,7 @@ class MLATagCloudHooksExample {
|
|
521 |
*/
|
522 |
public static function mla_tag_cloud_item_values_filter( $item_values ) {
|
523 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_item_values_filter $item_values = ' . var_export( $item_values, true ), 0 );
|
524 |
-
|
525 |
/*
|
526 |
* For this example, we will color the "heat map" of cloud item size values. We use a shortcode parameter of our
|
527 |
* own to do this on a gallery-by-gallery basis, leaving other [mla_tag_cloud] instances untouched.
|
@@ -556,7 +556,7 @@ class MLATagCloudHooksExample {
|
|
556 |
$item_values['viewlink'] = str_replace( $old_style, $new_style, $item_values['viewlink'] );
|
557 |
$item_values['thelink'] = str_replace( $old_style, $new_style, $item_values['thelink'] );
|
558 |
}
|
559 |
-
|
560 |
return $item_values;
|
561 |
} // mla_tag_cloud_item_values_filter
|
562 |
|
@@ -571,7 +571,7 @@ class MLATagCloudHooksExample {
|
|
571 |
*/
|
572 |
public static function mla_tag_cloud_item_template_filter( $item_template ) {
|
573 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_item_template_filter $item_template = ' . var_export( $item_template, true ), 0 );
|
574 |
-
|
575 |
return $item_template;
|
576 |
} // mla_tag_cloud_item_template_filter
|
577 |
|
@@ -590,10 +590,10 @@ class MLATagCloudHooksExample {
|
|
590 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_item_parse_filter $html_markup = ' . var_export( $html_markup, true ), 0 );
|
591 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_item_parse_filter $item_template = ' . var_export( $item_template, true ), 0 );
|
592 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_item_parse_filter $item_values = ' . var_export( $item_values, true ), 0 );
|
593 |
-
|
594 |
return $html_markup;
|
595 |
} // mla_tag_cloud_item_parse_filter
|
596 |
-
|
597 |
/**
|
598 |
* MLA Tag Cloud Row Close Values
|
599 |
*
|
@@ -605,7 +605,7 @@ class MLATagCloudHooksExample {
|
|
605 |
*/
|
606 |
public static function mla_tag_cloud_row_close_values_filter( $markup_values ) {
|
607 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_row_close_values_filter $markup_values = ' . var_export( $markup_values, true ), 0 );
|
608 |
-
|
609 |
return $markup_values;
|
610 |
} // mla_tag_cloud_row_close_values_filter
|
611 |
|
@@ -620,7 +620,7 @@ class MLATagCloudHooksExample {
|
|
620 |
*/
|
621 |
public static function mla_tag_cloud_row_close_template_filter( $row_close_template ) {
|
622 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_row_close_template_filter $row_close_template = ' . var_export( $row_close_template, true ), 0 );
|
623 |
-
|
624 |
return $row_close_template;
|
625 |
} // mla_tag_cloud_row_close_template_filter
|
626 |
|
@@ -639,10 +639,10 @@ class MLATagCloudHooksExample {
|
|
639 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_row_close_parse_filter $html_markup = ' . var_export( $html_markup, true ), 0 );
|
640 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_row_close_parse_filter $row_close_template = ' . var_export( $row_close_template, true ), 0 );
|
641 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_row_close_parse_filter $markup_values = ' . var_export( $markup_values, true ), 0 );
|
642 |
-
|
643 |
return $html_markup;
|
644 |
} // mla_tag_cloud_row_close_parse_filter
|
645 |
-
|
646 |
/**
|
647 |
* MLA Tag Cloud Close Values
|
648 |
*
|
@@ -654,7 +654,7 @@ class MLATagCloudHooksExample {
|
|
654 |
*/
|
655 |
public static function mla_tag_cloud_close_values_filter( $markup_values ) {
|
656 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_close_values_filter $markup_values = ' . var_export( $markup_values, true ), 0 );
|
657 |
-
|
658 |
return $markup_values;
|
659 |
} // mla_tag_cloud_close_values_filter
|
660 |
|
@@ -669,7 +669,7 @@ class MLATagCloudHooksExample {
|
|
669 |
*/
|
670 |
public static function mla_tag_cloud_close_template_filter( $close_template ) {
|
671 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_close_template_filter $close_template = ' . var_export( $close_template, true ), 0 );
|
672 |
-
|
673 |
return $close_template;
|
674 |
} // mla_tag_cloud_close_template_filter
|
675 |
|
@@ -688,10 +688,10 @@ class MLATagCloudHooksExample {
|
|
688 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_close_parse_filter $html_markup = ' . var_export( $html_markup, true ), 0 );
|
689 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_close_parse_filter $close_template = ' . var_export( $close_template, true ), 0 );
|
690 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_close_parse_filter $markup_values = ' . var_export( $markup_values, true ), 0 );
|
691 |
-
|
692 |
return $html_markup;
|
693 |
} // mla_tag_cloud_close_parse_filter
|
694 |
-
|
695 |
} // Class MLATagCloudHooksExample
|
696 |
|
697 |
/*
|
76 |
add_filter( 'mla_tag_cloud_scale', 'MLATagCloudHooksExample::mla_tag_cloud_scale_filter', 10, 4 );
|
77 |
|
78 |
add_filter( 'use_mla_tag_cloud_style', 'MLATagCloudHooksExample::use_mla_tag_cloud_style_filter', 10, 2 );
|
79 |
+
|
80 |
add_filter( 'mla_tag_cloud_style_values', 'MLATagCloudHooksExample::mla_tag_cloud_style_values_filter', 10, 1 );
|
81 |
add_filter( 'mla_tag_cloud_style_template', 'MLATagCloudHooksExample::mla_tag_cloud_style_template_filter', 10, 1 );
|
82 |
add_filter( 'mla_tag_cloud_style_parse', 'MLATagCloudHooksExample::mla_tag_cloud_style_parse_filter', 10, 3 );
|
83 |
+
|
84 |
add_filter( 'mla_tag_cloud_open_values', 'MLATagCloudHooksExample::mla_tag_cloud_open_values_filter', 10, 1 );
|
85 |
add_filter( 'mla_tag_cloud_open_template', 'MLATagCloudHooksExample::mla_tag_cloud_open_template_filter', 10, 1 );
|
86 |
add_filter( 'mla_tag_cloud_open_parse', 'MLATagCloudHooksExample::mla_tag_cloud_open_parse_filter', 10, 3 );
|
87 |
+
|
88 |
add_filter( 'mla_tag_cloud_row_open_values', 'MLATagCloudHooksExample::mla_tag_cloud_row_open_values_filter', 10, 1 );
|
89 |
add_filter( 'mla_tag_cloud_row_open_template', 'MLATagCloudHooksExample::mla_tag_cloud_row_open_template_filter', 10, 1 );
|
90 |
add_filter( 'mla_tag_cloud_row_open_parse', 'MLATagCloudHooksExample::mla_tag_cloud_row_open_parse_filter', 10, 3 );
|
110 |
* @var array
|
111 |
*/
|
112 |
private static $shortcode_attributes = array();
|
113 |
+
|
114 |
/**
|
115 |
* MLA Tag Cloud (Display) Attributes
|
116 |
*
|
132 |
* Uncomment the error_log statements in any of the filters to see what's passed in
|
133 |
*/
|
134 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_attributes_filter $shortcode_attributes = ' . var_export( $shortcode_attributes, true ), 0 );
|
135 |
+
|
136 |
/*
|
137 |
* Save the attributes for use in the later filters
|
138 |
*/
|
152 |
* @var array
|
153 |
*/
|
154 |
private static $all_display_parameters = array();
|
155 |
+
|
156 |
/**
|
157 |
* MLA Tag Cloud (Display) Arguments
|
158 |
*
|
172 |
*/
|
173 |
public static function mla_tag_cloud_arguments_filter( $all_display_parameters ) {
|
174 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_arguments_filter $all_display_parameters = ' . var_export( $all_display_parameters, true ), 0 );
|
175 |
+
|
176 |
self::$all_display_parameters = $all_display_parameters;
|
177 |
return $all_display_parameters;
|
178 |
} // mla_tag_cloud_arguments_filter
|
185 |
* @var array
|
186 |
*/
|
187 |
private static $query_attributes = array();
|
188 |
+
|
189 |
/**
|
190 |
* MLA Tag Cloud Query Attributes
|
191 |
*
|
205 |
*/
|
206 |
public static function mla_get_terms_query_attributes_filter( $query_attributes ) {
|
207 |
//error_log( 'MLATagCloudHooksExample::mla_get_terms_query_attributes_filter $query_attributes = ' . var_export( $query_attributes, true ), 0 );
|
208 |
+
|
209 |
self::$query_attributes = $query_attributes;
|
210 |
return $query_attributes;
|
211 |
} // mla_get_terms_query_attributes_filter
|
218 |
* @var array
|
219 |
*/
|
220 |
private static $all_query_parameters = array();
|
221 |
+
|
222 |
/**
|
223 |
* MLA Tag Cloud Query Arguments
|
224 |
*
|
234 |
*/
|
235 |
public static function mla_get_terms_query_arguments_filter( $all_query_parameters ) {
|
236 |
//error_log( 'MLATagCloudHooksExample::mla_get_terms_query_arguments_filter $all_query_parameters = ' . var_export( $all_query_parameters, true ), 0 );
|
237 |
+
|
238 |
self::$all_query_parameters = $all_query_parameters;
|
239 |
return $all_query_parameters;
|
240 |
} // mla_get_terms_query_arguments_filter
|
253 |
*/
|
254 |
public static function mla_get_terms_query_results_filter( $tag_objects ) {
|
255 |
//error_log( 'MLATagCloudHooksExample::mla_get_terms_query_results_filter $tag_objects = ' . var_export( $tag_objects, true ), 0 );
|
256 |
+
|
257 |
return $tag_objects;
|
258 |
} // mla_get_terms_query_results_filter
|
259 |
|
301 |
public static function use_mla_tag_cloud_style_filter( $use_style_template, $style_template_name ) {
|
302 |
//error_log( 'MLATagCloudHooksExample::use_mla_tag_cloud_style_filter $use_style_template = ' . var_export( $use_style_template, true ), 0 );
|
303 |
//error_log( 'MLATagCloudHooksExample::use_mla_tag_cloud_style_filter $style_template_name = ' . var_export( $style_template_name, true ), 0 );
|
304 |
+
|
305 |
return $use_style_template;
|
306 |
} // use_mla_tag_cloud_style_filter
|
307 |
|
321 |
*/
|
322 |
public static function mla_tag_cloud_style_values_filter( $style_values ) {
|
323 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_style_values_filter $style_values = ' . var_export( $style_values, true ), 0 );
|
324 |
+
|
325 |
/*
|
326 |
* You also have access to the PHP Super Globals, e.g., $_REQUEST, $_SERVER
|
327 |
*/
|
328 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_style_values_filter $_REQUEST = ' . var_export( $_REQUEST, true ), 0 );
|
329 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_style_values_filter $_SERVER[ REQUEST_URI ] = ' . var_export( $_SERVER['REQUEST_URI'], true ), 0 );
|
330 |
+
|
331 |
/*
|
332 |
* You can use the WordPress globals like $wp_query, $wpdb and $table_prefix as well.
|
333 |
* Note that $wp_query contains values for the post/page query, NOT the [mla_tag_cloud] query.
|
334 |
*/
|
335 |
global $wp_query;
|
336 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_style_values_filter $wp_query->query = ' . var_export( $wp_query->query, true ), 0 );
|
337 |
+
|
338 |
return $style_values;
|
339 |
} // mla_tag_cloud_style_values_filter
|
340 |
|
354 |
*/
|
355 |
public static function mla_tag_cloud_style_template_filter( $style_template ) {
|
356 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_style_template_filter $style_template = ' . var_export( $style_template, true ), 0 );
|
357 |
+
|
358 |
return $style_template;
|
359 |
} // mla_tag_cloud_style_template_filter
|
360 |
|
379 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_style_parse_filter $html_markup = ' . var_export( $html_markup, true ), 0 );
|
380 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_style_parse_filter $style_template = ' . var_export( $style_template, true ), 0 );
|
381 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_style_parse_filter $style_values = ' . var_export( $style_values, true ), 0 );
|
382 |
+
|
383 |
return $html_markup;
|
384 |
} // mla_tag_cloud_style_parse_filter
|
385 |
+
|
386 |
/**
|
387 |
* MLA Tag Cloud Open Values
|
388 |
*
|
397 |
*/
|
398 |
public static function mla_tag_cloud_open_values_filter( $markup_values ) {
|
399 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_open_values_filter $markup_values = ' . var_export( $markup_values, true ), 0 );
|
400 |
+
|
401 |
return $markup_values;
|
402 |
} // mla_tag_cloud_open_values_filter
|
403 |
|
412 |
*/
|
413 |
public static function mla_tag_cloud_open_template_filter( $open_template ) {
|
414 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_open_template_filter $open_template = ' . var_export( $open_template, true ), 0 );
|
415 |
+
|
416 |
return $open_template;
|
417 |
} // mla_tag_cloud_open_template_filter
|
418 |
|
431 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_open_parse_filter $html_markup = ' . var_export( $html_markup, true ), 0 );
|
432 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_open_parse_filter $open_template = ' . var_export( $open_template, true ), 0 );
|
433 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_open_parse_filter $markup_values = ' . var_export( $markup_values, true ), 0 );
|
434 |
+
|
435 |
return $html_markup;
|
436 |
} // mla_tag_cloud_open_parse_filter
|
437 |
+
|
438 |
/**
|
439 |
* MLA Tag Cloud Style
|
440 |
*
|
457 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_style_filter $open_values = ' . var_export( $open_values, true ), 0 );
|
458 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_style_filter $style_template = ' . var_export( $style_template, true ), 0 );
|
459 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_style_filter $open_template = ' . var_export( $open_template, true ), 0 );
|
460 |
+
|
461 |
return $html_markup;
|
462 |
} // mla_tag_cloud_style_filter
|
463 |
+
|
464 |
/**
|
465 |
* MLA Tag Cloud Row Open Values
|
466 |
*
|
472 |
*/
|
473 |
public static function mla_tag_cloud_row_open_values_filter( $markup_values ) {
|
474 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_row_open_values_filter $markup_values = ' . var_export( $markup_values, true ), 0 );
|
475 |
+
|
476 |
return $markup_values;
|
477 |
} // mla_tag_cloud_row_open_values_filter
|
478 |
|
487 |
*/
|
488 |
public static function mla_tag_cloud_row_open_template_filter( $row_open_template ) {
|
489 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_row_open_template_filter $row_open_template = ' . var_export( $row_open_template, true ), 0 );
|
490 |
+
|
491 |
return $row_open_template;
|
492 |
} // mla_tag_cloud_row_open_template_filter
|
493 |
|
506 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_row_open_parse_filter $html_markup = ' . var_export( $html_markup, true ), 0 );
|
507 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_row_open_parse_filter $row_open_template = ' . var_export( $row_open_template, true ), 0 );
|
508 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_row_open_parse_filter $markup_values = ' . var_export( $markup_values, true ), 0 );
|
509 |
+
|
510 |
return $html_markup;
|
511 |
} // mla_tag_cloud_row_open_parse_filter
|
512 |
+
|
513 |
/**
|
514 |
* MLA Tag Cloud Item Values
|
515 |
*
|
521 |
*/
|
522 |
public static function mla_tag_cloud_item_values_filter( $item_values ) {
|
523 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_item_values_filter $item_values = ' . var_export( $item_values, true ), 0 );
|
524 |
+
|
525 |
/*
|
526 |
* For this example, we will color the "heat map" of cloud item size values. We use a shortcode parameter of our
|
527 |
* own to do this on a gallery-by-gallery basis, leaving other [mla_tag_cloud] instances untouched.
|
556 |
$item_values['viewlink'] = str_replace( $old_style, $new_style, $item_values['viewlink'] );
|
557 |
$item_values['thelink'] = str_replace( $old_style, $new_style, $item_values['thelink'] );
|
558 |
}
|
559 |
+
|
560 |
return $item_values;
|
561 |
} // mla_tag_cloud_item_values_filter
|
562 |
|
571 |
*/
|
572 |
public static function mla_tag_cloud_item_template_filter( $item_template ) {
|
573 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_item_template_filter $item_template = ' . var_export( $item_template, true ), 0 );
|
574 |
+
|
575 |
return $item_template;
|
576 |
} // mla_tag_cloud_item_template_filter
|
577 |
|
590 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_item_parse_filter $html_markup = ' . var_export( $html_markup, true ), 0 );
|
591 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_item_parse_filter $item_template = ' . var_export( $item_template, true ), 0 );
|
592 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_item_parse_filter $item_values = ' . var_export( $item_values, true ), 0 );
|
593 |
+
|
594 |
return $html_markup;
|
595 |
} // mla_tag_cloud_item_parse_filter
|
596 |
+
|
597 |
/**
|
598 |
* MLA Tag Cloud Row Close Values
|
599 |
*
|
605 |
*/
|
606 |
public static function mla_tag_cloud_row_close_values_filter( $markup_values ) {
|
607 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_row_close_values_filter $markup_values = ' . var_export( $markup_values, true ), 0 );
|
608 |
+
|
609 |
return $markup_values;
|
610 |
} // mla_tag_cloud_row_close_values_filter
|
611 |
|
620 |
*/
|
621 |
public static function mla_tag_cloud_row_close_template_filter( $row_close_template ) {
|
622 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_row_close_template_filter $row_close_template = ' . var_export( $row_close_template, true ), 0 );
|
623 |
+
|
624 |
return $row_close_template;
|
625 |
} // mla_tag_cloud_row_close_template_filter
|
626 |
|
639 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_row_close_parse_filter $html_markup = ' . var_export( $html_markup, true ), 0 );
|
640 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_row_close_parse_filter $row_close_template = ' . var_export( $row_close_template, true ), 0 );
|
641 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_row_close_parse_filter $markup_values = ' . var_export( $markup_values, true ), 0 );
|
642 |
+
|
643 |
return $html_markup;
|
644 |
} // mla_tag_cloud_row_close_parse_filter
|
645 |
+
|
646 |
/**
|
647 |
* MLA Tag Cloud Close Values
|
648 |
*
|
654 |
*/
|
655 |
public static function mla_tag_cloud_close_values_filter( $markup_values ) {
|
656 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_close_values_filter $markup_values = ' . var_export( $markup_values, true ), 0 );
|
657 |
+
|
658 |
return $markup_values;
|
659 |
} // mla_tag_cloud_close_values_filter
|
660 |
|
669 |
*/
|
670 |
public static function mla_tag_cloud_close_template_filter( $close_template ) {
|
671 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_close_template_filter $close_template = ' . var_export( $close_template, true ), 0 );
|
672 |
+
|
673 |
return $close_template;
|
674 |
} // mla_tag_cloud_close_template_filter
|
675 |
|
688 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_close_parse_filter $html_markup = ' . var_export( $html_markup, true ), 0 );
|
689 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_close_parse_filter $close_template = ' . var_export( $close_template, true ), 0 );
|
690 |
//error_log( 'MLATagCloudHooksExample::mla_tag_cloud_close_parse_filter $markup_values = ' . var_export( $markup_values, true ), 0 );
|
691 |
+
|
692 |
return $html_markup;
|
693 |
} // mla_tag_cloud_close_parse_filter
|
694 |
+
|
695 |
} // Class MLATagCloudHooksExample
|
696 |
|
697 |
/*
|
examples/mla-hooks-example.php.txt
CHANGED
@@ -1,22 +1,26 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
* Provides
|
4 |
*
|
5 |
-
* In
|
6 |
-
*
|
7 |
-
*
|
8 |
-
*
|
|
|
|
|
|
|
|
|
9 |
*
|
10 |
* @package MLA Gallery Hooks Example
|
11 |
-
* @version 1.
|
12 |
*/
|
13 |
|
14 |
/*
|
15 |
Plugin Name: MLA Gallery Hooks Example
|
16 |
Plugin URI: http://fairtradejudaica.org/media-library-assistant-a-wordpress-plugin/
|
17 |
-
Description: Provides
|
18 |
Author: David Lingren
|
19 |
-
Version: 1.
|
20 |
Author URI: http://fairtradejudaica.org/our-story/staff/
|
21 |
|
22 |
Copyright 2013, 2014 David Lingren
|
@@ -76,17 +80,17 @@ class MLAGalleryHooksExample {
|
|
76 |
add_filter( 'mla_gallery_query_arguments', 'MLAGalleryHooksExample::mla_gallery_query_arguments_filter', 10, 1 );
|
77 |
add_action( 'mla_gallery_wp_query_object', 'MLAGalleryHooksExample::mla_gallery_wp_query_object_action', 10, 1 );
|
78 |
add_filter( 'mla_gallery_final_content', 'MLAGalleryHooksExample::mla_gallery_final_content_filter', 10, 1 );
|
79 |
-
|
80 |
add_filter( 'use_mla_gallery_style', 'MLAGalleryHooksExample::use_mla_gallery_style_filter', 10, 2 );
|
81 |
-
|
82 |
add_filter( 'mla_gallery_style_values', 'MLAGalleryHooksExample::mla_gallery_style_values_filter', 10, 1 );
|
83 |
add_filter( 'mla_gallery_style_template', 'MLAGalleryHooksExample::mla_gallery_style_template_filter', 10, 1 );
|
84 |
add_filter( 'mla_gallery_style_parse', 'MLAGalleryHooksExample::mla_gallery_style_parse_filter', 10, 3 );
|
85 |
-
|
86 |
add_filter( 'mla_gallery_open_values', 'MLAGalleryHooksExample::mla_gallery_open_values_filter', 10, 1 );
|
87 |
add_filter( 'mla_gallery_open_template', 'MLAGalleryHooksExample::mla_gallery_open_template_filter', 10, 1 );
|
88 |
add_filter( 'mla_gallery_open_parse', 'MLAGalleryHooksExample::mla_gallery_open_parse_filter', 10, 3 );
|
89 |
-
|
90 |
add_filter( 'mla_gallery_style', 'MLAGalleryHooksExample::mla_gallery_style_filter', 10, 5 );
|
91 |
|
92 |
add_filter( 'mla_gallery_row_open_values', 'MLAGalleryHooksExample::mla_gallery_row_open_values_filter', 10, 1 );
|
@@ -114,7 +118,7 @@ class MLAGalleryHooksExample {
|
|
114 |
* @var array
|
115 |
*/
|
116 |
private static $shortcode_attributes = array();
|
117 |
-
|
118 |
/**
|
119 |
* MLA Gallery Raw (Display) Attributes
|
120 |
*
|
@@ -135,16 +139,16 @@ class MLAGalleryHooksExample {
|
|
135 |
* Uncomment the error_log statements in any of the filters to see what's passed in
|
136 |
*/
|
137 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_raw_attributes_filter $shortcode_attributes = ' . var_export( $shortcode_attributes, true ), 0 );
|
138 |
-
|
139 |
/*
|
140 |
* Note that the global $post; object is available here and in all later filters.
|
141 |
* It contains the post/page on which the [mla_gallery] appears.
|
142 |
* Some [mla_gallery] invocations are not associated with a post/page; these will
|
143 |
-
* have a substitute $post
|
144 |
*/
|
145 |
global $post;
|
146 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_raw_attributes_filter $post->ID = ' . var_export( $post->ID, true ), 0 );
|
147 |
-
|
148 |
return $shortcode_attributes;
|
149 |
} // mla_gallery_raw_attributes_filter
|
150 |
|
@@ -168,7 +172,7 @@ class MLAGalleryHooksExample {
|
|
168 |
* Uncomment the error_log statements in any of the filters to see what's passed in
|
169 |
*/
|
170 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_attributes_filter $shortcode_attributes = ' . var_export( $shortcode_attributes, true ), 0 );
|
171 |
-
|
172 |
/*
|
173 |
* Save the attributes for use in the later filters
|
174 |
*/
|
@@ -185,7 +189,7 @@ class MLAGalleryHooksExample {
|
|
185 |
* @var NULL|string
|
186 |
*/
|
187 |
private static $shortcode_content = NULL;
|
188 |
-
|
189 |
/**
|
190 |
* MLA Gallery Enclosed Content, initial filter
|
191 |
*
|
@@ -203,7 +207,7 @@ class MLAGalleryHooksExample {
|
|
203 |
public static function mla_gallery_initial_content_filter( $shortcode_content, $shortcode_attributes ) {
|
204 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_initial_content_filter $shortcode_content = ' . var_export( $shortcode_content, true ), 0 );
|
205 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_initial_content_filter $shortcode_attributes = ' . var_export( $shortcode_attributes, true ), 0 );
|
206 |
-
|
207 |
/*
|
208 |
* Save the attributes for use in the later filters
|
209 |
*/
|
@@ -220,7 +224,7 @@ class MLAGalleryHooksExample {
|
|
220 |
* @var array
|
221 |
*/
|
222 |
private static $all_display_parameters = array();
|
223 |
-
|
224 |
/**
|
225 |
* MLA Gallery (Display) Arguments
|
226 |
*
|
@@ -239,7 +243,7 @@ class MLAGalleryHooksExample {
|
|
239 |
*/
|
240 |
public static function mla_gallery_arguments_filter( $all_display_parameters ) {
|
241 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_arguments_filter $all_display_parameters = ' . var_export( $all_display_parameters, true ), 0 );
|
242 |
-
|
243 |
self::$all_display_parameters = $all_display_parameters;
|
244 |
return $all_display_parameters;
|
245 |
} // mla_gallery_arguments_filter
|
@@ -252,7 +256,7 @@ class MLAGalleryHooksExample {
|
|
252 |
* @var array
|
253 |
*/
|
254 |
private static $query_attributes = array();
|
255 |
-
|
256 |
/**
|
257 |
* MLA Gallery Query Attributes
|
258 |
*
|
@@ -271,7 +275,7 @@ class MLAGalleryHooksExample {
|
|
271 |
*/
|
272 |
public static function mla_gallery_query_attributes_filter( $query_attributes ) {
|
273 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_query_attributes_filter $query_attributes = ' . var_export( $query_attributes, true ), 0 );
|
274 |
-
|
275 |
self::$query_attributes = $query_attributes;
|
276 |
return $query_attributes;
|
277 |
} // mla_gallery_query_attributes_filter
|
@@ -284,7 +288,7 @@ class MLAGalleryHooksExample {
|
|
284 |
* @var array
|
285 |
*/
|
286 |
private static $all_query_parameters = array();
|
287 |
-
|
288 |
/**
|
289 |
* MLA Gallery Query Arguments
|
290 |
*
|
@@ -299,8 +303,192 @@ class MLAGalleryHooksExample {
|
|
299 |
*/
|
300 |
public static function mla_gallery_query_arguments_filter( $all_query_parameters ) {
|
301 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_query_arguments_filter $all_query_parameters = ' . var_export( $all_query_parameters, true ), 0 );
|
302 |
-
|
303 |
self::$all_query_parameters = $all_query_parameters;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
304 |
return $all_query_parameters;
|
305 |
} // mla_gallery_query_arguments_filter
|
306 |
|
@@ -312,7 +500,7 @@ class MLAGalleryHooksExample {
|
|
312 |
* @var array
|
313 |
*/
|
314 |
private static $wp_query_properties = array();
|
315 |
-
|
316 |
/**
|
317 |
* MLA Gallery WP Query Object
|
318 |
*
|
@@ -328,14 +516,14 @@ class MLAGalleryHooksExample {
|
|
328 |
*/
|
329 |
public static function mla_gallery_wp_query_object_action( $query_arguments ) {
|
330 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_wp_query_object_action $query_arguments = ' . var_export( $query_arguments, true ), 0 );
|
331 |
-
|
332 |
self::$wp_query_properties = array();
|
333 |
self::$wp_query_properties ['request'] = MLAShortcodes::$mla_gallery_wp_query_object->request;
|
334 |
self::$wp_query_properties ['query_vars'] = MLAShortcodes::$mla_gallery_wp_query_object->query_vars;
|
335 |
self::$wp_query_properties ['post_count'] = MLAShortcodes::$mla_gallery_wp_query_object->post_count;
|
336 |
|
337 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_wp_query_object_action self::$wp_query_properties = ' . var_export( self::$wp_query_properties, true ), 0 );
|
338 |
-
|
339 |
/*
|
340 |
* Unlike Filters, Actions never return anything
|
341 |
*/
|
@@ -379,7 +567,7 @@ class MLAGalleryHooksExample {
|
|
379 |
public static function use_mla_gallery_style_filter( $use_style_template, $style_template_name ) {
|
380 |
//error_log( 'MLAGalleryHooksExample::use_mla_gallery_style_filter $use_style_template = ' . var_export( $use_style_template, true ), 0 );
|
381 |
//error_log( 'MLAGalleryHooksExample::use_mla_gallery_style_filter $style_template_name = ' . var_export( $style_template_name, true ), 0 );
|
382 |
-
|
383 |
/*
|
384 |
* Filters must return the first argument passed in, unchanged or updated
|
385 |
*/
|
@@ -402,20 +590,20 @@ class MLAGalleryHooksExample {
|
|
402 |
*/
|
403 |
public static function mla_gallery_style_values_filter( $style_values ) {
|
404 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_style_values_filter $style_values = ' . var_export( $style_values, true ), 0 );
|
405 |
-
|
406 |
/*
|
407 |
* You also have access to the PHP Super Globals, e.g., $_REQUEST, $_SERVER
|
408 |
*/
|
409 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_style_values_filter $_REQUEST = ' . var_export( $_REQUEST, true ), 0 );
|
410 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_style_values_filter $_SERVER[ REQUEST_URI ] = ' . var_export( $_SERVER['REQUEST_URI'], true ), 0 );
|
411 |
-
|
412 |
/*
|
413 |
* You can use the WordPress globals like $wp_query, $wpdb and $table_prefix as well.
|
414 |
* Note that $wp_query contains values for the post/page query, NOT the [mla_gallery] query.
|
415 |
*/
|
416 |
global $wp_query;
|
417 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_style_values_filter $wp_query->query = ' . var_export( $wp_query->query, true ), 0 );
|
418 |
-
|
419 |
return $style_values;
|
420 |
} // mla_gallery_style_values_filter
|
421 |
|
@@ -435,7 +623,7 @@ class MLAGalleryHooksExample {
|
|
435 |
*/
|
436 |
public static function mla_gallery_style_template_filter( $style_template ) {
|
437 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_style_template_filter $style_template = ' . var_export( $style_template, true ), 0 );
|
438 |
-
|
439 |
return $style_template;
|
440 |
} // mla_gallery_style_template_filter
|
441 |
|
@@ -460,10 +648,10 @@ class MLAGalleryHooksExample {
|
|
460 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_style_parse_filter $html_markup = ' . var_export( $html_markup, true ), 0 );
|
461 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_style_parse_filter $style_template = ' . var_export( $style_template, true ), 0 );
|
462 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_style_parse_filter $style_values = ' . var_export( $style_values, true ), 0 );
|
463 |
-
|
464 |
return $html_markup;
|
465 |
} // mla_gallery_style_parse_filter
|
466 |
-
|
467 |
/**
|
468 |
* MLA Gallery Open Values
|
469 |
*
|
@@ -478,7 +666,7 @@ class MLAGalleryHooksExample {
|
|
478 |
*/
|
479 |
public static function mla_gallery_open_values_filter( $markup_values ) {
|
480 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_open_values_filter $markup_values = ' . var_export( $markup_values, true ), 0 );
|
481 |
-
|
482 |
return $markup_values;
|
483 |
} // mla_gallery_open_values_filter
|
484 |
|
@@ -493,7 +681,7 @@ class MLAGalleryHooksExample {
|
|
493 |
*/
|
494 |
public static function mla_gallery_open_template_filter( $open_template ) {
|
495 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_open_template_filter $open_template = ' . var_export( $open_template, true ), 0 );
|
496 |
-
|
497 |
return $open_template;
|
498 |
} // mla_gallery_open_template_filter
|
499 |
|
@@ -512,10 +700,10 @@ class MLAGalleryHooksExample {
|
|
512 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_open_parse_filter $html_markup = ' . var_export( $html_markup, true ), 0 );
|
513 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_open_parse_filter $open_template = ' . var_export( $open_template, true ), 0 );
|
514 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_open_parse_filter $markup_values = ' . var_export( $markup_values, true ), 0 );
|
515 |
-
|
516 |
return $html_markup;
|
517 |
} // mla_gallery_open_parse_filter
|
518 |
-
|
519 |
/**
|
520 |
* MLA Gallery Style
|
521 |
*
|
@@ -538,10 +726,10 @@ class MLAGalleryHooksExample {
|
|
538 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_style_filter $open_values = ' . var_export( $open_values, true ), 0 );
|
539 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_style_filter $style_template = ' . var_export( $style_template, true ), 0 );
|
540 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_style_filter $open_template = ' . var_export( $open_template, true ), 0 );
|
541 |
-
|
542 |
return $html_markup;
|
543 |
} // mla_gallery_style_filter
|
544 |
-
|
545 |
/**
|
546 |
* MLA Gallery Row Open Values
|
547 |
*
|
@@ -553,7 +741,7 @@ class MLAGalleryHooksExample {
|
|
553 |
*/
|
554 |
public static function mla_gallery_row_open_values_filter( $markup_values ) {
|
555 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_row_open_values_filter $markup_values = ' . var_export( $markup_values, true ), 0 );
|
556 |
-
|
557 |
return $markup_values;
|
558 |
} // mla_gallery_row_open_values_filter
|
559 |
|
@@ -568,7 +756,7 @@ class MLAGalleryHooksExample {
|
|
568 |
*/
|
569 |
public static function mla_gallery_row_open_template_filter( $row_open_template ) {
|
570 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_row_open_template_filter $row_open_template = ' . var_export( $row_open_template, true ), 0 );
|
571 |
-
|
572 |
return $row_open_template;
|
573 |
} // mla_gallery_row_open_template_filter
|
574 |
|
@@ -587,10 +775,10 @@ class MLAGalleryHooksExample {
|
|
587 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_row_open_parse_filter $html_markup = ' . var_export( $html_markup, true ), 0 );
|
588 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_row_open_parse_filter $row_open_template = ' . var_export( $row_open_template, true ), 0 );
|
589 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_row_open_parse_filter $markup_values = ' . var_export( $markup_values, true ), 0 );
|
590 |
-
|
591 |
return $html_markup;
|
592 |
} // mla_gallery_row_open_parse_filter
|
593 |
-
|
594 |
/**
|
595 |
* MLA Gallery Item Values
|
596 |
*
|
@@ -606,12 +794,12 @@ class MLAGalleryHooksExample {
|
|
606 |
/*
|
607 |
* We use a shortcode parameter of our own to apply our filters on a gallery-by-gallery basis,
|
608 |
* leaving other [mla_gallery] instances untouched. If the "my_filter" parameter is not present,
|
609 |
-
* we have nothing to do
|
610 |
*/
|
611 |
if ( ! isset( self::$shortcode_attributes['my_filter'] ) ) {
|
612 |
return $item_values; // leave them unchanged
|
613 |
}
|
614 |
-
|
615 |
/*
|
616 |
* For this first example, we will reformat the 'date' value as d/m/Y.
|
617 |
*/
|
@@ -623,7 +811,7 @@ class MLAGalleryHooksExample {
|
|
623 |
*/
|
624 |
$old_date = $item_values['date'];
|
625 |
$timestamp = mktime( substr( $old_date, 11, 2 ), substr( $old_date, 14, 2 ), substr( $old_date, 17, 2 ), substr( $old_date, 5, 2 ), substr( $old_date, 8, 2 ), substr( $old_date, 0, 4 ) );
|
626 |
-
|
627 |
/*
|
628 |
* Update the $item_values and pass them back from the filter.
|
629 |
* We must also update the caption because it was composed before this filter is called.
|
@@ -639,7 +827,7 @@ class MLAGalleryHooksExample {
|
|
639 |
|
640 |
return $item_values;
|
641 |
}
|
642 |
-
|
643 |
/*
|
644 |
* The second example adds a formatted file size element to the existing caption.
|
645 |
*/
|
@@ -655,7 +843,7 @@ class MLAGalleryHooksExample {
|
|
655 |
'option' => 'raw'
|
656 |
);
|
657 |
$file_size = (float) MLAOptions::mla_get_data_source( $item_values['attachment_ID'], 'single_attachment_mapping', $my_setting, NULL );
|
658 |
-
|
659 |
if ( 1048576 < $file_size ) {
|
660 |
$file_size = number_format( ($file_size/1048576), 3 ).' MB';
|
661 |
} elseif ( 10240 < $file_size ) {
|
@@ -663,15 +851,15 @@ class MLAGalleryHooksExample {
|
|
663 |
} else {
|
664 |
$file_size = number_format( $file_size );
|
665 |
}
|
666 |
-
|
667 |
/*
|
668 |
* Compose a new caption, adding the file size.
|
669 |
*/
|
670 |
$item_values['caption'] = sprintf( '%1$s<br>Size: %2$s', $item_values['caption'], $file_size );
|
671 |
-
|
672 |
return $item_values;
|
673 |
}
|
674 |
-
|
675 |
/*
|
676 |
* Our third example changes taxonomy terms into links to term-specific archive pages.
|
677 |
*/
|
@@ -685,7 +873,7 @@ class MLAGalleryHooksExample {
|
|
685 |
} else {
|
686 |
$my_href = '';
|
687 |
}
|
688 |
-
|
689 |
/*
|
690 |
* Collect non-empty term lists, convert to slugs,
|
691 |
* make into links, replace $item_values
|
@@ -699,21 +887,21 @@ class MLAGalleryHooksExample {
|
|
699 |
$term_links = array();
|
700 |
foreach( $terms as $term_name ) {
|
701 |
$term_object = get_term_by( 'name', $term_name, $taxonomy );
|
702 |
-
|
703 |
if ( empty( $my_href ) ) {
|
704 |
$term_links[] = sprintf( '<a href=%1$s/%2$s/%3$s>%4$s,</a>', get_site_url(), $taxonomy, $term_object->slug, esc_html( $term_name ) );
|
705 |
} else {
|
706 |
$term_links[] = sprintf( '<a href=%1$s/%2$s?my_taxonomy=%3$s&my_term=%4$s>%5$s</a>', get_site_url(),$my_href, $taxonomy, $term_object->slug, esc_html( $term_name ) );
|
707 |
}
|
708 |
}
|
709 |
-
|
710 |
$item_values[ $key ] = implode( ' ', $term_links );
|
711 |
}
|
712 |
}
|
713 |
-
|
714 |
return $item_values;
|
715 |
}
|
716 |
-
|
717 |
/*
|
718 |
* For our final example, we will add to the $item_values['caption'] value an unordered list
|
719 |
* of the custom fields populated for each gallery item. We use a shortcode parameter of our
|
@@ -721,14 +909,14 @@ class MLAGalleryHooksExample {
|
|
721 |
*/
|
722 |
if ( 'all custom' != self::$shortcode_attributes['my_filter'] )
|
723 |
return $item_values; // leave them unchanged
|
724 |
-
|
725 |
/*
|
726 |
* Preserve the existing caption, if present
|
727 |
*/
|
728 |
$my_caption = '';
|
729 |
if ( ! empty( $item_values['caption'] ) )
|
730 |
$my_caption .= $item_values['caption'] . "<br />\r\n";
|
731 |
-
|
732 |
/*
|
733 |
* Retrieve the custom fields for this item, if any,
|
734 |
* and extract the values we are interested in.
|
@@ -736,12 +924,12 @@ class MLAGalleryHooksExample {
|
|
736 |
$custom_fields = array();
|
737 |
$post_meta = get_metadata( 'post', $item_values['attachment_ID'] );
|
738 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_item_values_filter $post_meta = ' . var_export( $post_meta, true ), 0 );
|
739 |
-
|
740 |
if ( is_array( $post_meta ) ) {
|
741 |
foreach ( $post_meta as $post_meta_key => $post_meta_value ) {
|
742 |
if ( empty( $post_meta_key ) )
|
743 |
continue;
|
744 |
-
|
745 |
/*
|
746 |
* WordPress stores several of its own values as custom fields, which we will skip.
|
747 |
* Some of the values you might find useful are:
|
@@ -749,7 +937,7 @@ class MLAGalleryHooksExample {
|
|
749 |
*/
|
750 |
if ( '_' == $post_meta_key{0} )
|
751 |
continue;
|
752 |
-
|
753 |
/*
|
754 |
* At this point, every value is an array; one element per instance of the key.
|
755 |
* We'll test anyway, just to be sure, then convert single-instance values to a scalar.
|
@@ -768,13 +956,13 @@ class MLAGalleryHooksExample {
|
|
768 |
} // foreach $post_meta
|
769 |
}
|
770 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_item_values_filter $custom_fields = ' . var_export( $custom_fields, true ), 0 );
|
771 |
-
|
772 |
/*
|
773 |
* Don't alter the caption if there are no custom fields to display
|
774 |
*/
|
775 |
if ( empty( $custom_fields ) )
|
776 |
return $item_values;
|
777 |
-
|
778 |
/*
|
779 |
* Add the definition list to the caption
|
780 |
*/
|
@@ -784,7 +972,7 @@ class MLAGalleryHooksExample {
|
|
784 |
$my_caption .= "<dd class=\"value\">{$value}</dd>\r\n";
|
785 |
} // foreach custom field
|
786 |
$my_caption .= "</dl>";
|
787 |
-
|
788 |
/*
|
789 |
* Update the $item_values and pass them back from the filter.
|
790 |
*/
|
@@ -803,7 +991,7 @@ class MLAGalleryHooksExample {
|
|
803 |
*/
|
804 |
public static function mla_gallery_item_template_filter( $item_template ) {
|
805 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_item_template_filter $item_template = ' . var_export( $item_template, true ), 0 );
|
806 |
-
|
807 |
return $item_template;
|
808 |
} // mla_gallery_item_template_filter
|
809 |
|
@@ -822,10 +1010,10 @@ class MLAGalleryHooksExample {
|
|
822 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_item_parse_filter $html_markup = ' . var_export( $html_markup, true ), 0 );
|
823 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_item_parse_filter $item_template = ' . var_export( $item_template, true ), 0 );
|
824 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_item_parse_filter $item_values = ' . var_export( $item_values, true ), 0 );
|
825 |
-
|
826 |
return $html_markup;
|
827 |
} // mla_gallery_item_parse_filter
|
828 |
-
|
829 |
/**
|
830 |
* MLA Gallery Row Close Values
|
831 |
*
|
@@ -837,7 +1025,7 @@ class MLAGalleryHooksExample {
|
|
837 |
*/
|
838 |
public static function mla_gallery_row_close_values_filter( $markup_values ) {
|
839 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_row_close_values_filter $markup_values = ' . var_export( $markup_values, true ), 0 );
|
840 |
-
|
841 |
return $markup_values;
|
842 |
} // mla_gallery_row_close_values_filter
|
843 |
|
@@ -852,7 +1040,7 @@ class MLAGalleryHooksExample {
|
|
852 |
*/
|
853 |
public static function mla_gallery_row_close_template_filter( $row_close_template ) {
|
854 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_row_close_template_filter $row_close_template = ' . var_export( $row_close_template, true ), 0 );
|
855 |
-
|
856 |
return $row_close_template;
|
857 |
} // mla_gallery_row_close_template_filter
|
858 |
|
@@ -871,10 +1059,10 @@ class MLAGalleryHooksExample {
|
|
871 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_row_close_parse_filter $html_markup = ' . var_export( $html_markup, true ), 0 );
|
872 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_row_close_parse_filter $row_close_template = ' . var_export( $row_close_template, true ), 0 );
|
873 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_row_close_parse_filter $markup_values = ' . var_export( $markup_values, true ), 0 );
|
874 |
-
|
875 |
return $html_markup;
|
876 |
} // mla_gallery_row_close_parse_filter
|
877 |
-
|
878 |
/**
|
879 |
* MLA Gallery Close Values
|
880 |
*
|
@@ -886,7 +1074,7 @@ class MLAGalleryHooksExample {
|
|
886 |
*/
|
887 |
public static function mla_gallery_close_values_filter( $markup_values ) {
|
888 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_close_values_filter $markup_values = ' . var_export( $markup_values, true ), 0 );
|
889 |
-
|
890 |
return $markup_values;
|
891 |
} // mla_gallery_close_values_filter
|
892 |
|
@@ -901,7 +1089,7 @@ class MLAGalleryHooksExample {
|
|
901 |
*/
|
902 |
public static function mla_gallery_close_template_filter( $close_template ) {
|
903 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_close_template_filter $close_template = ' . var_export( $close_template, true ), 0 );
|
904 |
-
|
905 |
return $close_template;
|
906 |
} // mla_gallery_close_template_filter
|
907 |
|
@@ -920,10 +1108,10 @@ class MLAGalleryHooksExample {
|
|
920 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_close_parse_filter $html_markup = ' . var_export( $html_markup, true ), 0 );
|
921 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_close_parse_filter $close_template = ' . var_export( $close_template, true ), 0 );
|
922 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_close_parse_filter $markup_values = ' . var_export( $markup_values, true ), 0 );
|
923 |
-
|
924 |
return $html_markup;
|
925 |
} // mla_gallery_close_parse_filter
|
926 |
-
|
927 |
} // Class MLAGalleryHooksExample
|
928 |
|
929 |
/*
|
1 |
<?php
|
2 |
/**
|
3 |
+
* Provides examples of hooking the filters provided by the [mla_gallery] shortcode:
|
4 |
*
|
5 |
+
* - In the "mla_gallery_query_arguments_filter" function are two examples of custom
|
6 |
+
* SQL queries that replace the usual get_posts/WP_Query results.
|
7 |
+
*
|
8 |
+
* - In the "mla_gallery_item_values_filter" filter are four examples that modify the
|
9 |
+
* attachment-specific data elements used to compose the gallery display.
|
10 |
+
*
|
11 |
+
* The example plugin documents ALL the filters available in the [mla_gallery] shortcode
|
12 |
+
* and illustrates some of the techniques you can use to customize the gallery display.
|
13 |
*
|
14 |
* @package MLA Gallery Hooks Example
|
15 |
+
* @version 1.04
|
16 |
*/
|
17 |
|
18 |
/*
|
19 |
Plugin Name: MLA Gallery Hooks Example
|
20 |
Plugin URI: http://fairtradejudaica.org/media-library-assistant-a-wordpress-plugin/
|
21 |
+
Description: Provides examples of hooking the filters provided by the [mla_gallery] shortcode
|
22 |
Author: David Lingren
|
23 |
+
Version: 1.04
|
24 |
Author URI: http://fairtradejudaica.org/our-story/staff/
|
25 |
|
26 |
Copyright 2013, 2014 David Lingren
|
80 |
add_filter( 'mla_gallery_query_arguments', 'MLAGalleryHooksExample::mla_gallery_query_arguments_filter', 10, 1 );
|
81 |
add_action( 'mla_gallery_wp_query_object', 'MLAGalleryHooksExample::mla_gallery_wp_query_object_action', 10, 1 );
|
82 |
add_filter( 'mla_gallery_final_content', 'MLAGalleryHooksExample::mla_gallery_final_content_filter', 10, 1 );
|
83 |
+
|
84 |
add_filter( 'use_mla_gallery_style', 'MLAGalleryHooksExample::use_mla_gallery_style_filter', 10, 2 );
|
85 |
+
|
86 |
add_filter( 'mla_gallery_style_values', 'MLAGalleryHooksExample::mla_gallery_style_values_filter', 10, 1 );
|
87 |
add_filter( 'mla_gallery_style_template', 'MLAGalleryHooksExample::mla_gallery_style_template_filter', 10, 1 );
|
88 |
add_filter( 'mla_gallery_style_parse', 'MLAGalleryHooksExample::mla_gallery_style_parse_filter', 10, 3 );
|
89 |
+
|
90 |
add_filter( 'mla_gallery_open_values', 'MLAGalleryHooksExample::mla_gallery_open_values_filter', 10, 1 );
|
91 |
add_filter( 'mla_gallery_open_template', 'MLAGalleryHooksExample::mla_gallery_open_template_filter', 10, 1 );
|
92 |
add_filter( 'mla_gallery_open_parse', 'MLAGalleryHooksExample::mla_gallery_open_parse_filter', 10, 3 );
|
93 |
+
|
94 |
add_filter( 'mla_gallery_style', 'MLAGalleryHooksExample::mla_gallery_style_filter', 10, 5 );
|
95 |
|
96 |
add_filter( 'mla_gallery_row_open_values', 'MLAGalleryHooksExample::mla_gallery_row_open_values_filter', 10, 1 );
|
118 |
* @var array
|
119 |
*/
|
120 |
private static $shortcode_attributes = array();
|
121 |
+
|
122 |
/**
|
123 |
* MLA Gallery Raw (Display) Attributes
|
124 |
*
|
139 |
* Uncomment the error_log statements in any of the filters to see what's passed in
|
140 |
*/
|
141 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_raw_attributes_filter $shortcode_attributes = ' . var_export( $shortcode_attributes, true ), 0 );
|
142 |
+
|
143 |
/*
|
144 |
* Note that the global $post; object is available here and in all later filters.
|
145 |
* It contains the post/page on which the [mla_gallery] appears.
|
146 |
* Some [mla_gallery] invocations are not associated with a post/page; these will
|
147 |
+
* have a substitute $post object with $post->ID == 0.
|
148 |
*/
|
149 |
global $post;
|
150 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_raw_attributes_filter $post->ID = ' . var_export( $post->ID, true ), 0 );
|
151 |
+
|
152 |
return $shortcode_attributes;
|
153 |
} // mla_gallery_raw_attributes_filter
|
154 |
|
172 |
* Uncomment the error_log statements in any of the filters to see what's passed in
|
173 |
*/
|
174 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_attributes_filter $shortcode_attributes = ' . var_export( $shortcode_attributes, true ), 0 );
|
175 |
+
|
176 |
/*
|
177 |
* Save the attributes for use in the later filters
|
178 |
*/
|
189 |
* @var NULL|string
|
190 |
*/
|
191 |
private static $shortcode_content = NULL;
|
192 |
+
|
193 |
/**
|
194 |
* MLA Gallery Enclosed Content, initial filter
|
195 |
*
|
207 |
public static function mla_gallery_initial_content_filter( $shortcode_content, $shortcode_attributes ) {
|
208 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_initial_content_filter $shortcode_content = ' . var_export( $shortcode_content, true ), 0 );
|
209 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_initial_content_filter $shortcode_attributes = ' . var_export( $shortcode_attributes, true ), 0 );
|
210 |
+
|
211 |
/*
|
212 |
* Save the attributes for use in the later filters
|
213 |
*/
|
224 |
* @var array
|
225 |
*/
|
226 |
private static $all_display_parameters = array();
|
227 |
+
|
228 |
/**
|
229 |
* MLA Gallery (Display) Arguments
|
230 |
*
|
243 |
*/
|
244 |
public static function mla_gallery_arguments_filter( $all_display_parameters ) {
|
245 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_arguments_filter $all_display_parameters = ' . var_export( $all_display_parameters, true ), 0 );
|
246 |
+
|
247 |
self::$all_display_parameters = $all_display_parameters;
|
248 |
return $all_display_parameters;
|
249 |
} // mla_gallery_arguments_filter
|
256 |
* @var array
|
257 |
*/
|
258 |
private static $query_attributes = array();
|
259 |
+
|
260 |
/**
|
261 |
* MLA Gallery Query Attributes
|
262 |
*
|
275 |
*/
|
276 |
public static function mla_gallery_query_attributes_filter( $query_attributes ) {
|
277 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_query_attributes_filter $query_attributes = ' . var_export( $query_attributes, true ), 0 );
|
278 |
+
|
279 |
self::$query_attributes = $query_attributes;
|
280 |
return $query_attributes;
|
281 |
} // mla_gallery_query_attributes_filter
|
288 |
* @var array
|
289 |
*/
|
290 |
private static $all_query_parameters = array();
|
291 |
+
|
292 |
/**
|
293 |
* MLA Gallery Query Arguments
|
294 |
*
|
303 |
*/
|
304 |
public static function mla_gallery_query_arguments_filter( $all_query_parameters ) {
|
305 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_query_arguments_filter $all_query_parameters = ' . var_export( $all_query_parameters, true ), 0 );
|
306 |
+
|
307 |
self::$all_query_parameters = $all_query_parameters;
|
308 |
+
|
309 |
+
/*
|
310 |
+
* This example executes a custom SQL query that cannot be done with the usual WordPress WP_Query
|
311 |
+
* arguments. The query results are fed back to the [mla_gallery] shortcode as a list of attachments
|
312 |
+
* using the "include" parameter.
|
313 |
+
*
|
314 |
+
* We use a shortcode parameter of our own to apply this filter on a gallery-by-gallery basis,
|
315 |
+
* leaving other [mla_gallery] instances untouched. If the "my_custom_sql" parameter is not present,
|
316 |
+
* we have nothing to do. If the parameter IS present, extract taxonomy, parent and post type values,
|
317 |
+
* then build a custom query that connects them with "OR" (WordPress would use "AND").
|
318 |
+
*/
|
319 |
+
if ( isset( self::$shortcode_attributes['my_custom_sql'] ) ) {
|
320 |
+
global $wpdb;
|
321 |
+
|
322 |
+
// Make sure $my_query_vars is an array, even if it's empty
|
323 |
+
$my_query_vars = self::$shortcode_attributes['my_custom_sql'];
|
324 |
+
if ( empty( $my_query_vars ) ) {
|
325 |
+
$my_query_vars = array();
|
326 |
+
} elseif ( is_string( $my_query_vars ) ) {
|
327 |
+
$my_query_vars = shortcode_parse_atts( $my_query_vars );
|
328 |
+
}
|
329 |
+
|
330 |
+
// Start with empty parameter values
|
331 |
+
$ttids = array();
|
332 |
+
$post_parents = array();
|
333 |
+
$parent_types = array();
|
334 |
+
|
335 |
+
// Find taxonomy argument, if present, and collect terms
|
336 |
+
$taxonomies = get_taxonomies( array( 'object_type' => array( 'attachment' ) ), 'names' );
|
337 |
+
foreach( $taxonomies as $taxonomy ) {
|
338 |
+
if ( empty( $my_query_vars[ $taxonomy ] ) ) {
|
339 |
+
continue;
|
340 |
+
}
|
341 |
+
|
342 |
+
// Found the taxonomy; collect the terms
|
343 |
+
$include_children = isset( $my_query_vars['include_children'] ) && 'true' == strtolower( trim( $my_query_vars['include_children'] ) );
|
344 |
+
|
345 |
+
// Allow for multiple term slug values
|
346 |
+
$terms = array();
|
347 |
+
$slugs = explode( ',', $my_query_vars[ $taxonomy ] );
|
348 |
+
foreach ( $slugs as $slug ) {
|
349 |
+
$args = array( 'slug' => $slug, 'hide_empty' => false );
|
350 |
+
$terms = array_merge( $terms, get_terms( $taxonomy, $args ) );
|
351 |
+
}
|
352 |
+
|
353 |
+
foreach( $terms as $term ) {
|
354 |
+
// Index by ttid to remove duplicates
|
355 |
+
$ttids[ $term->term_taxonomy_id ] = $term->term_taxonomy_id;
|
356 |
+
|
357 |
+
if ( $include_children ) {
|
358 |
+
$args = array( 'child_of' => $term->term_id, 'hide_empty' => false );
|
359 |
+
$children = get_terms( 'attachment_category', $args );
|
360 |
+
foreach( $children as $child ) {
|
361 |
+
$ttids[] = $child->term_taxonomy_id;
|
362 |
+
}
|
363 |
+
} // include_children
|
364 |
+
} // $term
|
365 |
+
|
366 |
+
break;
|
367 |
+
}
|
368 |
+
|
369 |
+
if ( isset( $my_query_vars['post_parent'] ) ) {
|
370 |
+
// Allow for multiple parent values
|
371 |
+
$post_parents = explode( ',', $my_query_vars['post_parent'] );
|
372 |
+
}
|
373 |
+
|
374 |
+
if ( isset( $my_query_vars['parent_type'] ) ) {
|
375 |
+
// Allow for multiple parent values
|
376 |
+
$parent_types = explode( ',', $my_query_vars['parent_type'] );
|
377 |
+
}
|
378 |
+
|
379 |
+
// Build an array of SQL clauses
|
380 |
+
$query = array();
|
381 |
+
$query_parameters = array();
|
382 |
+
|
383 |
+
$query[] = "SELECT p.ID FROM {$wpdb->posts} AS p";
|
384 |
+
|
385 |
+
if ( ! empty( $parent_types ) ) {
|
386 |
+
$query[] = "LEFT JOIN {$wpdb->posts} as p2";
|
387 |
+
$query[] = "ON (p.post_parent = p2.ID)";
|
388 |
+
}
|
389 |
+
|
390 |
+
if ( ! empty( $ttids ) ) {
|
391 |
+
$query[] = "LEFT JOIN {$wpdb->term_relationships} as tr";
|
392 |
+
$query[] = "ON (p.ID = tr.object_id)";
|
393 |
+
}
|
394 |
+
|
395 |
+
// Start with a WHERE clause that doesn't match anything, since OR is the connector
|
396 |
+
$query[] = 'WHERE ( ( 1=0 )';
|
397 |
+
|
398 |
+
if ( ! empty( $post_parents ) ) {
|
399 |
+
$placeholders = array();
|
400 |
+
foreach ( $post_parents as $post_parent ) {
|
401 |
+
$placeholders[] = '%s';
|
402 |
+
$query_parameters[] = $post_parent;
|
403 |
+
}
|
404 |
+
|
405 |
+
$query[] = 'OR ( p.post_parent IN (' . join( ',', $placeholders ) . ') )';
|
406 |
+
}
|
407 |
+
|
408 |
+
if ( ! empty( $parent_types ) ) {
|
409 |
+
$placeholders = array();
|
410 |
+
foreach ( $parent_types as $parent_type ) {
|
411 |
+
$placeholders[] = '%s';
|
412 |
+
$query_parameters[] = $parent_type;
|
413 |
+
}
|
414 |
+
|
415 |
+
$query[] = 'OR ( p2.post_type IN (' . join( ',', $placeholders ) . ') )';
|
416 |
+
}
|
417 |
+
|
418 |
+
if ( ! empty( $ttids ) ) {
|
419 |
+
$placeholders = array();
|
420 |
+
foreach ( $ttids as $ttid ) {
|
421 |
+
$placeholders[] = '%s';
|
422 |
+
$query_parameters[] = $ttid;
|
423 |
+
}
|
424 |
+
|
425 |
+
$query[] = 'OR ( tr.term_taxonomy_id IN (' . join( ',', $placeholders ) . ') )';
|
426 |
+
}
|
427 |
+
|
428 |
+
// Close the WHERE clause
|
429 |
+
$query[] = ')';
|
430 |
+
|
431 |
+
$query[] = "AND (p.post_mime_type LIKE 'image/%%')";
|
432 |
+
$query[] = "AND p.post_type = 'attachment'";
|
433 |
+
$query[] = "AND p.post_status = 'inherit'";
|
434 |
+
$query[] = "GROUP BY p.ID";
|
435 |
+
// ORDER BY clause would go here, if needed
|
436 |
+
|
437 |
+
/*
|
438 |
+
* Add pagination to our query, then remove it from the query
|
439 |
+
* that WordPress will process after we're done.
|
440 |
+
*/
|
441 |
+
$paged = $all_query_parameters['paged'];
|
442 |
+
if ( empty( $paged ) ) {
|
443 |
+
$paged = 1;
|
444 |
+
} elseif ( 'current' == strtolower( $paged ) ) {
|
445 |
+
/*
|
446 |
+
* Note: The query variable 'page' holds the pagenumber for a single paginated
|
447 |
+
* Post or Page that includes the <!--nextpage--> Quicktag in the post content.
|
448 |
+
*/
|
449 |
+
if ( get_query_var( 'page' ) ) {
|
450 |
+
$paged = get_query_var( 'page' );
|
451 |
+
} else {
|
452 |
+
$paged = ( get_query_var('paged') ) ? get_query_var('paged') : 1;
|
453 |
+
}
|
454 |
+
} elseif ( is_numeric( $paged ) ) {
|
455 |
+
$paged = absint( $paged );
|
456 |
+
} elseif ( '' === $paged ) {
|
457 |
+
$paged = 1;
|
458 |
+
}
|
459 |
+
|
460 |
+
$limit = absint( ! empty( $all_query_parameters['posts_per_page'] ) ? $all_query_parameters['posts_per_page'] : $all_query_parameters['numberposts'] );
|
461 |
+
$offset = $limit * ( $paged - 1);
|
462 |
+
if ( 0 < $offset && 0 < $limit ) {
|
463 |
+
$query[] = 'LIMIT %d, %d';
|
464 |
+
$query_parameters[] = $offset;
|
465 |
+
$query_parameters[] = $limit;
|
466 |
+
} elseif ( 0 < $limit ) {
|
467 |
+
$query[] = 'LIMIT %d';
|
468 |
+
$query_parameters[] = $limit;
|
469 |
+
} elseif ( 0 < $offset ) {
|
470 |
+
$query[] = 'LIMIT %d, %d';
|
471 |
+
$query_parameters[] = $offset;
|
472 |
+
$query_parameters[] = 0x7FFFFFFF; // big number!
|
473 |
+
}
|
474 |
+
|
475 |
+
$all_query_parameters['paged'] = NULL;
|
476 |
+
$all_query_parameters['posts_per_page'] = 0;
|
477 |
+
$all_query_parameters['numberposts'] = 0;
|
478 |
+
|
479 |
+
$query = join(' ', $query);
|
480 |
+
$ids = $wpdb->get_results( $wpdb->prepare( $query, $query_parameters ) );
|
481 |
+
if ( is_array( $ids ) ) {
|
482 |
+
$includes = array();
|
483 |
+
foreach ( $ids as $id ) {
|
484 |
+
$includes[] = $id->ID;
|
485 |
+
}
|
486 |
+
$all_query_parameters['include'] = implode( ',', $includes );
|
487 |
+
} else {
|
488 |
+
$all_query_parameters['include'] = '1'; // return no images
|
489 |
+
}
|
490 |
+
} // parameter "my_custom_sql" is present
|
491 |
+
|
492 |
return $all_query_parameters;
|
493 |
} // mla_gallery_query_arguments_filter
|
494 |
|
500 |
* @var array
|
501 |
*/
|
502 |
private static $wp_query_properties = array();
|
503 |
+
|
504 |
/**
|
505 |
* MLA Gallery WP Query Object
|
506 |
*
|
516 |
*/
|
517 |
public static function mla_gallery_wp_query_object_action( $query_arguments ) {
|
518 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_wp_query_object_action $query_arguments = ' . var_export( $query_arguments, true ), 0 );
|
519 |
+
|
520 |
self::$wp_query_properties = array();
|
521 |
self::$wp_query_properties ['request'] = MLAShortcodes::$mla_gallery_wp_query_object->request;
|
522 |
self::$wp_query_properties ['query_vars'] = MLAShortcodes::$mla_gallery_wp_query_object->query_vars;
|
523 |
self::$wp_query_properties ['post_count'] = MLAShortcodes::$mla_gallery_wp_query_object->post_count;
|
524 |
|
525 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_wp_query_object_action self::$wp_query_properties = ' . var_export( self::$wp_query_properties, true ), 0 );
|
526 |
+
|
527 |
/*
|
528 |
* Unlike Filters, Actions never return anything
|
529 |
*/
|
567 |
public static function use_mla_gallery_style_filter( $use_style_template, $style_template_name ) {
|
568 |
//error_log( 'MLAGalleryHooksExample::use_mla_gallery_style_filter $use_style_template = ' . var_export( $use_style_template, true ), 0 );
|
569 |
//error_log( 'MLAGalleryHooksExample::use_mla_gallery_style_filter $style_template_name = ' . var_export( $style_template_name, true ), 0 );
|
570 |
+
|
571 |
/*
|
572 |
* Filters must return the first argument passed in, unchanged or updated
|
573 |
*/
|
590 |
*/
|
591 |
public static function mla_gallery_style_values_filter( $style_values ) {
|
592 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_style_values_filter $style_values = ' . var_export( $style_values, true ), 0 );
|
593 |
+
|
594 |
/*
|
595 |
* You also have access to the PHP Super Globals, e.g., $_REQUEST, $_SERVER
|
596 |
*/
|
597 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_style_values_filter $_REQUEST = ' . var_export( $_REQUEST, true ), 0 );
|
598 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_style_values_filter $_SERVER[ REQUEST_URI ] = ' . var_export( $_SERVER['REQUEST_URI'], true ), 0 );
|
599 |
+
|
600 |
/*
|
601 |
* You can use the WordPress globals like $wp_query, $wpdb and $table_prefix as well.
|
602 |
* Note that $wp_query contains values for the post/page query, NOT the [mla_gallery] query.
|
603 |
*/
|
604 |
global $wp_query;
|
605 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_style_values_filter $wp_query->query = ' . var_export( $wp_query->query, true ), 0 );
|
606 |
+
|
607 |
return $style_values;
|
608 |
} // mla_gallery_style_values_filter
|
609 |
|
623 |
*/
|
624 |
public static function mla_gallery_style_template_filter( $style_template ) {
|
625 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_style_template_filter $style_template = ' . var_export( $style_template, true ), 0 );
|
626 |
+
|
627 |
return $style_template;
|
628 |
} // mla_gallery_style_template_filter
|
629 |
|
648 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_style_parse_filter $html_markup = ' . var_export( $html_markup, true ), 0 );
|
649 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_style_parse_filter $style_template = ' . var_export( $style_template, true ), 0 );
|
650 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_style_parse_filter $style_values = ' . var_export( $style_values, true ), 0 );
|
651 |
+
|
652 |
return $html_markup;
|
653 |
} // mla_gallery_style_parse_filter
|
654 |
+
|
655 |
/**
|
656 |
* MLA Gallery Open Values
|
657 |
*
|
666 |
*/
|
667 |
public static function mla_gallery_open_values_filter( $markup_values ) {
|
668 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_open_values_filter $markup_values = ' . var_export( $markup_values, true ), 0 );
|
669 |
+
|
670 |
return $markup_values;
|
671 |
} // mla_gallery_open_values_filter
|
672 |
|
681 |
*/
|
682 |
public static function mla_gallery_open_template_filter( $open_template ) {
|
683 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_open_template_filter $open_template = ' . var_export( $open_template, true ), 0 );
|
684 |
+
|
685 |
return $open_template;
|
686 |
} // mla_gallery_open_template_filter
|
687 |
|
700 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_open_parse_filter $html_markup = ' . var_export( $html_markup, true ), 0 );
|
701 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_open_parse_filter $open_template = ' . var_export( $open_template, true ), 0 );
|
702 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_open_parse_filter $markup_values = ' . var_export( $markup_values, true ), 0 );
|
703 |
+
|
704 |
return $html_markup;
|
705 |
} // mla_gallery_open_parse_filter
|
706 |
+
|
707 |
/**
|
708 |
* MLA Gallery Style
|
709 |
*
|
726 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_style_filter $open_values = ' . var_export( $open_values, true ), 0 );
|
727 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_style_filter $style_template = ' . var_export( $style_template, true ), 0 );
|
728 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_style_filter $open_template = ' . var_export( $open_template, true ), 0 );
|
729 |
+
|
730 |
return $html_markup;
|
731 |
} // mla_gallery_style_filter
|
732 |
+
|
733 |
/**
|
734 |
* MLA Gallery Row Open Values
|
735 |
*
|
741 |
*/
|
742 |
public static function mla_gallery_row_open_values_filter( $markup_values ) {
|
743 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_row_open_values_filter $markup_values = ' . var_export( $markup_values, true ), 0 );
|
744 |
+
|
745 |
return $markup_values;
|
746 |
} // mla_gallery_row_open_values_filter
|
747 |
|
756 |
*/
|
757 |
public static function mla_gallery_row_open_template_filter( $row_open_template ) {
|
758 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_row_open_template_filter $row_open_template = ' . var_export( $row_open_template, true ), 0 );
|
759 |
+
|
760 |
return $row_open_template;
|
761 |
} // mla_gallery_row_open_template_filter
|
762 |
|
775 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_row_open_parse_filter $html_markup = ' . var_export( $html_markup, true ), 0 );
|
776 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_row_open_parse_filter $row_open_template = ' . var_export( $row_open_template, true ), 0 );
|
777 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_row_open_parse_filter $markup_values = ' . var_export( $markup_values, true ), 0 );
|
778 |
+
|
779 |
return $html_markup;
|
780 |
} // mla_gallery_row_open_parse_filter
|
781 |
+
|
782 |
/**
|
783 |
* MLA Gallery Item Values
|
784 |
*
|
794 |
/*
|
795 |
* We use a shortcode parameter of our own to apply our filters on a gallery-by-gallery basis,
|
796 |
* leaving other [mla_gallery] instances untouched. If the "my_filter" parameter is not present,
|
797 |
+
* we have nothing to do.
|
798 |
*/
|
799 |
if ( ! isset( self::$shortcode_attributes['my_filter'] ) ) {
|
800 |
return $item_values; // leave them unchanged
|
801 |
}
|
802 |
+
|
803 |
/*
|
804 |
* For this first example, we will reformat the 'date' value as d/m/Y.
|
805 |
*/
|
811 |
*/
|
812 |
$old_date = $item_values['date'];
|
813 |
$timestamp = mktime( substr( $old_date, 11, 2 ), substr( $old_date, 14, 2 ), substr( $old_date, 17, 2 ), substr( $old_date, 5, 2 ), substr( $old_date, 8, 2 ), substr( $old_date, 0, 4 ) );
|
814 |
+
|
815 |
/*
|
816 |
* Update the $item_values and pass them back from the filter.
|
817 |
* We must also update the caption because it was composed before this filter is called.
|
827 |
|
828 |
return $item_values;
|
829 |
}
|
830 |
+
|
831 |
/*
|
832 |
* The second example adds a formatted file size element to the existing caption.
|
833 |
*/
|
843 |
'option' => 'raw'
|
844 |
);
|
845 |
$file_size = (float) MLAOptions::mla_get_data_source( $item_values['attachment_ID'], 'single_attachment_mapping', $my_setting, NULL );
|
846 |
+
|
847 |
if ( 1048576 < $file_size ) {
|
848 |
$file_size = number_format( ($file_size/1048576), 3 ).' MB';
|
849 |
} elseif ( 10240 < $file_size ) {
|
851 |
} else {
|
852 |
$file_size = number_format( $file_size );
|
853 |
}
|
854 |
+
|
855 |
/*
|
856 |
* Compose a new caption, adding the file size.
|
857 |
*/
|
858 |
$item_values['caption'] = sprintf( '%1$s<br>Size: %2$s', $item_values['caption'], $file_size );
|
859 |
+
|
860 |
return $item_values;
|
861 |
}
|
862 |
+
|
863 |
/*
|
864 |
* Our third example changes taxonomy terms into links to term-specific archive pages.
|
865 |
*/
|
873 |
} else {
|
874 |
$my_href = '';
|
875 |
}
|
876 |
+
|
877 |
/*
|
878 |
* Collect non-empty term lists, convert to slugs,
|
879 |
* make into links, replace $item_values
|
887 |
$term_links = array();
|
888 |
foreach( $terms as $term_name ) {
|
889 |
$term_object = get_term_by( 'name', $term_name, $taxonomy );
|
890 |
+
|
891 |
if ( empty( $my_href ) ) {
|
892 |
$term_links[] = sprintf( '<a href=%1$s/%2$s/%3$s>%4$s,</a>', get_site_url(), $taxonomy, $term_object->slug, esc_html( $term_name ) );
|
893 |
} else {
|
894 |
$term_links[] = sprintf( '<a href=%1$s/%2$s?my_taxonomy=%3$s&my_term=%4$s>%5$s</a>', get_site_url(),$my_href, $taxonomy, $term_object->slug, esc_html( $term_name ) );
|
895 |
}
|
896 |
}
|
897 |
+
|
898 |
$item_values[ $key ] = implode( ' ', $term_links );
|
899 |
}
|
900 |
}
|
901 |
+
|
902 |
return $item_values;
|
903 |
}
|
904 |
+
|
905 |
/*
|
906 |
* For our final example, we will add to the $item_values['caption'] value an unordered list
|
907 |
* of the custom fields populated for each gallery item. We use a shortcode parameter of our
|
909 |
*/
|
910 |
if ( 'all custom' != self::$shortcode_attributes['my_filter'] )
|
911 |
return $item_values; // leave them unchanged
|
912 |
+
|
913 |
/*
|
914 |
* Preserve the existing caption, if present
|
915 |
*/
|
916 |
$my_caption = '';
|
917 |
if ( ! empty( $item_values['caption'] ) )
|
918 |
$my_caption .= $item_values['caption'] . "<br />\r\n";
|
919 |
+
|
920 |
/*
|
921 |
* Retrieve the custom fields for this item, if any,
|
922 |
* and extract the values we are interested in.
|
924 |
$custom_fields = array();
|
925 |
$post_meta = get_metadata( 'post', $item_values['attachment_ID'] );
|
926 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_item_values_filter $post_meta = ' . var_export( $post_meta, true ), 0 );
|
927 |
+
|
928 |
if ( is_array( $post_meta ) ) {
|
929 |
foreach ( $post_meta as $post_meta_key => $post_meta_value ) {
|
930 |
if ( empty( $post_meta_key ) )
|
931 |
continue;
|
932 |
+
|
933 |
/*
|
934 |
* WordPress stores several of its own values as custom fields, which we will skip.
|
935 |
* Some of the values you might find useful are:
|
937 |
*/
|
938 |
if ( '_' == $post_meta_key{0} )
|
939 |
continue;
|
940 |
+
|
941 |
/*
|
942 |
* At this point, every value is an array; one element per instance of the key.
|
943 |
* We'll test anyway, just to be sure, then convert single-instance values to a scalar.
|
956 |
} // foreach $post_meta
|
957 |
}
|
958 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_item_values_filter $custom_fields = ' . var_export( $custom_fields, true ), 0 );
|
959 |
+
|
960 |
/*
|
961 |
* Don't alter the caption if there are no custom fields to display
|
962 |
*/
|
963 |
if ( empty( $custom_fields ) )
|
964 |
return $item_values;
|
965 |
+
|
966 |
/*
|
967 |
* Add the definition list to the caption
|
968 |
*/
|
972 |
$my_caption .= "<dd class=\"value\">{$value}</dd>\r\n";
|
973 |
} // foreach custom field
|
974 |
$my_caption .= "</dl>";
|
975 |
+
|
976 |
/*
|
977 |
* Update the $item_values and pass them back from the filter.
|
978 |
*/
|
991 |
*/
|
992 |
public static function mla_gallery_item_template_filter( $item_template ) {
|
993 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_item_template_filter $item_template = ' . var_export( $item_template, true ), 0 );
|
994 |
+
|
995 |
return $item_template;
|
996 |
} // mla_gallery_item_template_filter
|
997 |
|
1010 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_item_parse_filter $html_markup = ' . var_export( $html_markup, true ), 0 );
|
1011 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_item_parse_filter $item_template = ' . var_export( $item_template, true ), 0 );
|
1012 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_item_parse_filter $item_values = ' . var_export( $item_values, true ), 0 );
|
1013 |
+
|
1014 |
return $html_markup;
|
1015 |
} // mla_gallery_item_parse_filter
|
1016 |
+
|
1017 |
/**
|
1018 |
* MLA Gallery Row Close Values
|
1019 |
*
|
1025 |
*/
|
1026 |
public static function mla_gallery_row_close_values_filter( $markup_values ) {
|
1027 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_row_close_values_filter $markup_values = ' . var_export( $markup_values, true ), 0 );
|
1028 |
+
|
1029 |
return $markup_values;
|
1030 |
} // mla_gallery_row_close_values_filter
|
1031 |
|
1040 |
*/
|
1041 |
public static function mla_gallery_row_close_template_filter( $row_close_template ) {
|
1042 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_row_close_template_filter $row_close_template = ' . var_export( $row_close_template, true ), 0 );
|
1043 |
+
|
1044 |
return $row_close_template;
|
1045 |
} // mla_gallery_row_close_template_filter
|
1046 |
|
1059 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_row_close_parse_filter $html_markup = ' . var_export( $html_markup, true ), 0 );
|
1060 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_row_close_parse_filter $row_close_template = ' . var_export( $row_close_template, true ), 0 );
|
1061 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_row_close_parse_filter $markup_values = ' . var_export( $markup_values, true ), 0 );
|
1062 |
+
|
1063 |
return $html_markup;
|
1064 |
} // mla_gallery_row_close_parse_filter
|
1065 |
+
|
1066 |
/**
|
1067 |
* MLA Gallery Close Values
|
1068 |
*
|
1074 |
*/
|
1075 |
public static function mla_gallery_close_values_filter( $markup_values ) {
|
1076 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_close_values_filter $markup_values = ' . var_export( $markup_values, true ), 0 );
|
1077 |
+
|
1078 |
return $markup_values;
|
1079 |
} // mla_gallery_close_values_filter
|
1080 |
|
1089 |
*/
|
1090 |
public static function mla_gallery_close_template_filter( $close_template ) {
|
1091 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_close_template_filter $close_template = ' . var_export( $close_template, true ), 0 );
|
1092 |
+
|
1093 |
return $close_template;
|
1094 |
} // mla_gallery_close_template_filter
|
1095 |
|
1108 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_close_parse_filter $html_markup = ' . var_export( $html_markup, true ), 0 );
|
1109 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_close_parse_filter $close_template = ' . var_export( $close_template, true ), 0 );
|
1110 |
//error_log( 'MLAGalleryHooksExample::mla_gallery_close_parse_filter $markup_values = ' . var_export( $markup_values, true ), 0 );
|
1111 |
+
|
1112 |
return $html_markup;
|
1113 |
} // mla_gallery_close_parse_filter
|
1114 |
+
|
1115 |
} // Class MLAGalleryHooksExample
|
1116 |
|
1117 |
/*
|
examples/mla-mapping-hooks-example.php.txt
CHANGED
@@ -69,13 +69,13 @@ class MLAMappingHooksExample {
|
|
69 |
*/
|
70 |
add_filter( 'mla_upload_prefilter', 'MLAMappingHooksExample::mla_upload_prefilter_filter', 10, 2 );
|
71 |
add_filter( 'mla_upload_filter', 'MLAMappingHooksExample::mla_upload_filter_filter', 10, 2 );
|
72 |
-
|
73 |
add_action( 'mla_add_attachment', 'MLAMappingHooksExample::mla_add_attachment_action', 10, 1 );
|
74 |
-
|
75 |
add_filter( 'mla_update_attachment_metadata_options', 'MLAMappingHooksExample::mla_update_attachment_metadata_options_filter', 10, 3 );
|
76 |
add_filter( 'mla_update_attachment_metadata_prefilter', 'MLAMappingHooksExample::mla_update_attachment_metadata_prefilter_filter', 10, 3 );
|
77 |
add_filter( 'mla_update_attachment_metadata_postfilter', 'MLAMappingHooksExample::mla_update_attachment_metadata_postfilter_filter', 10, 3 );
|
78 |
-
|
79 |
add_filter( 'mla_mapping_settings', 'MLAMappingHooksExample::mla_mapping_settings_filter', 10, 4 );
|
80 |
add_filter( 'mla_mapping_rule', 'MLAMappingHooksExample::mla_mapping_rule_filter', 10, 4 );
|
81 |
add_filter( 'mla_mapping_custom_value', 'MLAMappingHooksExample::mla_mapping_custom_value_filter', 10, 5 );
|
@@ -101,7 +101,7 @@ class MLAMappingHooksExample {
|
|
101 |
*/
|
102 |
private static $image_metadata = array();
|
103 |
private static $raw_metadata = array();
|
104 |
-
|
105 |
/**
|
106 |
* MLA Mapping Upload Prefilter
|
107 |
*
|
@@ -125,13 +125,13 @@ class MLAMappingHooksExample {
|
|
125 |
*/
|
126 |
//error_log( 'MLAMappingHooksExample::mla_upload_prefilter_filter $file = ' . var_export( $file, true ), 0 );
|
127 |
//error_log( 'MLAMappingHooksExample::mla_upload_prefilter_filter $image_metadata = ' . var_export( $image_metadata, true ), 0 );
|
128 |
-
|
129 |
/*
|
130 |
* Save the information for use in the later filters
|
131 |
*/
|
132 |
self::$image_metadata = $image_metadata;
|
133 |
self::$image_metadata['preload_file'] = $file;
|
134 |
-
|
135 |
/*
|
136 |
* Save the EXIF, XMP, IPTC and COM data from JPEG files
|
137 |
*/
|
@@ -144,7 +144,7 @@ class MLAMappingHooksExample {
|
|
144 |
|
145 |
return $file;
|
146 |
} // mla_upload_prefilter_filter
|
147 |
-
|
148 |
/**
|
149 |
* MLA Mapping Upload Filter
|
150 |
*
|
@@ -164,7 +164,7 @@ class MLAMappingHooksExample {
|
|
164 |
public static function mla_upload_filter_filter( $file, $id3_data ) {
|
165 |
//error_log( 'MLAMappingHooksExample::mla_upload_filter_filter $file = ' . var_export( $file, true ), 0 );
|
166 |
//error_log( 'MLAMappingHooksExample::mla_upload_filter_filter $id3_data = ' . var_export( $id3_data, true ), 0 );
|
167 |
-
|
168 |
/*
|
169 |
* Save the information for use in the later filters
|
170 |
*/
|
@@ -173,7 +173,7 @@ class MLAMappingHooksExample {
|
|
173 |
|
174 |
return $file;
|
175 |
} // mla_upload_filter_filter
|
176 |
-
|
177 |
/**
|
178 |
* MLA Add Attachment Action
|
179 |
*
|
@@ -191,13 +191,13 @@ class MLAMappingHooksExample {
|
|
191 |
*/
|
192 |
public static function mla_add_attachment_action( $post_ID ) {
|
193 |
//error_log( 'MLAMappingHooksExample::mla_add_attachment_action $post_ID = ' . var_export( $post_ID, true ), 0 );
|
194 |
-
|
195 |
/*
|
196 |
* Save the information for use in the later filters
|
197 |
*/
|
198 |
self::$image_metadata['post_id'] = $post_ID;
|
199 |
} // mla_add_attachment_action
|
200 |
-
|
201 |
/**
|
202 |
* MLA Update Attachment Metadata Options
|
203 |
*
|
@@ -223,10 +223,10 @@ class MLAMappingHooksExample {
|
|
223 |
//error_log( 'MLAMappingHooksExample::mla_update_attachment_metadata_options_filter $options = ' . var_export( $options, true ), 0 );
|
224 |
//error_log( 'MLAMappingHooksExample::mla_update_attachment_metadata_options_filter $data = ' . var_export( $data, true ), 0 );
|
225 |
//error_log( 'MLAMappingHooksExample::mla_update_attachment_metadata_options_filter $post_ID = ' . var_export( $post_ID, true ), 0 );
|
226 |
-
|
227 |
return $options;
|
228 |
} // mla_update_attachment_metadata_prefilter_filter
|
229 |
-
|
230 |
/**
|
231 |
* MLA Update Attachment Metadata Prefilter
|
232 |
*
|
@@ -250,7 +250,7 @@ class MLAMappingHooksExample {
|
|
250 |
//error_log( 'MLAMappingHooksExample::mla_update_attachment_metadata_prefilter_filter $data = ' . var_export( $data, true ), 0 );
|
251 |
//error_log( 'MLAMappingHooksExample::mla_update_attachment_metadata_prefilter_filter $post_ID = ' . var_export( $post_ID, true ), 0 );
|
252 |
//error_log( 'MLAMappingHooksExample::mla_update_attachment_metadata_prefilter_filter $options = ' . var_export( $options, true ), 0 );
|
253 |
-
|
254 |
/*
|
255 |
* If the metadata has been stripped, try to replace it
|
256 |
* NOTE: Uncomment/comment the "self::" and "$data = " lines to activate/deactivate
|
@@ -262,10 +262,10 @@ class MLAMappingHooksExample {
|
|
262 |
//error_log( 'regenerated data = ' . var_export( $data, true ), 0 );
|
263 |
|
264 |
}
|
265 |
-
|
266 |
return $data;
|
267 |
} // mla_update_attachment_metadata_prefilter_filter
|
268 |
-
|
269 |
/**
|
270 |
* MLA Update Attachment Metadata Postfilter
|
271 |
*
|
@@ -288,7 +288,7 @@ class MLAMappingHooksExample {
|
|
288 |
|
289 |
return $data;
|
290 |
} // mla_update_attachment_metadata_postfilter_filter
|
291 |
-
|
292 |
/**
|
293 |
* MLA Mapping Settings Filter
|
294 |
*
|
@@ -309,7 +309,7 @@ class MLAMappingHooksExample {
|
|
309 |
//error_log( 'MLAMappingHooksExample::mla_mapping_settings_filter $post_ID = ' . var_export( $post_ID, true ), 0 );
|
310 |
//error_log( 'MLAMappingHooksExample::mla_mapping_settings_filter $category = ' . var_export( $category, true ), 0 );
|
311 |
//error_log( 'MLAMappingHooksExample::mla_mapping_settings_filter $attachment_metadata = ' . var_export( $attachment_metadata, true ), 0 );
|
312 |
-
|
313 |
/*
|
314 |
* $category gives the context in which the rule is applied:
|
315 |
* 'custom_field_mapping' - mapping custom fields for ALL attachments
|
@@ -369,7 +369,7 @@ class MLAMappingHooksExample {
|
|
369 |
*/
|
370 |
return $settings;
|
371 |
} // mla_mapping_settings_filter
|
372 |
-
|
373 |
/**
|
374 |
* MLA Mapping Rule Filter
|
375 |
*
|
@@ -398,7 +398,7 @@ class MLAMappingHooksExample {
|
|
398 |
*/
|
399 |
return $setting_value;
|
400 |
} // mla_mapping_rule_filter
|
401 |
-
|
402 |
/**
|
403 |
* MLA Mapping Custom Field Value Filter
|
404 |
*
|
@@ -523,7 +523,7 @@ class MLAMappingHooksExample {
|
|
523 |
*/
|
524 |
return $exif_value;
|
525 |
} // mla_mapping_exif_value_filter
|
526 |
-
|
527 |
/**
|
528 |
* MLA Mapping Updates Filter
|
529 |
*
|
@@ -578,7 +578,7 @@ class MLAMappingHooksExample {
|
|
578 |
* Return an updated $mla_tablist ( $tab = NULL ), an updated single element or false
|
579 |
*/
|
580 |
return $results;
|
581 |
-
|
582 |
/*
|
583 |
* Comment out the above return statement to fall through to this example,
|
584 |
* which removes the "Uploads" tab from the Settings/Media Library Assistant submenu
|
@@ -588,7 +588,7 @@ class MLAMappingHooksExample {
|
|
588 |
} elseif ( 'upload' == $tab ) {
|
589 |
$results = false;
|
590 |
}
|
591 |
-
|
592 |
return $results;
|
593 |
} // mla_get_options_tablist_filter
|
594 |
|
@@ -625,22 +625,22 @@ class MLAMappingHooksExample {
|
|
625 |
$file_length = strlen( $file_contents );
|
626 |
$file_offset = 0;
|
627 |
$section_array = array();
|
628 |
-
|
629 |
while ( $file_offset < $file_length ) {
|
630 |
$section_value = array();
|
631 |
-
|
632 |
// Find a marker
|
633 |
for ( $i = 0; $i < 7; $i++ ) {
|
634 |
if ( 0xFF != ord( $file_contents[ $file_offset + $i ] ) ) {
|
635 |
break;
|
636 |
}
|
637 |
}
|
638 |
-
|
639 |
$section_value['marker'] = $marker = ord( $file_contents[ $file_offset + $i ] );
|
640 |
-
|
641 |
if ( $marker >= self::SOF0 && $marker <= self::COM ) {
|
642 |
$section_value['offset'] = $file_offset + ( $i - 1);
|
643 |
-
|
644 |
if ( ( self::SOI == $marker ) || ( self::EOI == $marker ) ) {
|
645 |
$file_offset = $file_offset + ( $i + 1 );
|
646 |
} elseif ( self::SOS == $marker ) {
|
@@ -671,7 +671,7 @@ class MLAMappingHooksExample {
|
|
671 |
$section_value['offset'] = $file_offset + $i;
|
672 |
}
|
673 |
$file_offset = $file_offset + ( $i + 1 );
|
674 |
-
|
675 |
while ( $file_offset < $file_length ) {
|
676 |
if ( 0xFF == ord( $file_contents[ $file_offset ] ) ) {
|
677 |
break;
|
@@ -685,7 +685,7 @@ class MLAMappingHooksExample {
|
|
685 |
$section_array[] = $section_value;
|
686 |
//error_log( 'MLAMappingHooksExample::_enumerate_jpeg_sections $section_value = ' . var_export( $section_value, true ), 0 );
|
687 |
} // while offset < length
|
688 |
-
|
689 |
return $section_array;
|
690 |
} // _enumerate_jpeg_sections
|
691 |
|
@@ -777,25 +777,25 @@ class MLAMappingHooksExample {
|
|
777 |
//error_log( 'MLAMappingHooksExample::_replace_jpeg_metadata $APP0_section = ' . var_export( $APP0_section, true ), 0 );
|
778 |
//error_log( 'MLAMappingHooksExample::_replace_jpeg_metadata $COM_section = ' . var_export( $COM_section, true ), 0 );
|
779 |
//error_log( 'MLAMappingHooksExample::_replace_jpeg_metadata $destination_sections = ' . var_export( $destination_sections, true ), 0 );
|
780 |
-
|
781 |
if ( ( NULL == $SOI_section ) || ( NULL == $APP0_section ) ) {
|
782 |
return;
|
783 |
}
|
784 |
-
|
785 |
@unlink( $temp_path );
|
786 |
$temp_handle = @fopen( $temp_path, 'wb' );
|
787 |
if ( false === $temp_handle ) {
|
788 |
//error_log( 'MLAMappingHooksExample::_replace_jpeg_metadata fopen error = ' . var_export( error_get_last(), true ), 0 );
|
789 |
return;
|
790 |
}
|
791 |
-
|
792 |
if ( false === @fwrite( $temp_handle, $SOI_section ) ) {
|
793 |
//error_log( 'MLAMappingHooksExample::_replace_jpeg_metadata fwrite SOI error = ' . var_export( error_get_last(), true ), 0 );
|
794 |
@fclose( $temp_handle );
|
795 |
@unlink( $temp_path );
|
796 |
return;
|
797 |
}
|
798 |
-
|
799 |
if ( false === @fwrite( $temp_handle, $APP0_section ) ) {
|
800 |
//error_log( 'MLAMappingHooksExample::_replace_jpeg_metadata fwrite APP0 error = ' . var_export( error_get_last(), true ), 0 );
|
801 |
@fclose( $temp_handle );
|
@@ -811,7 +811,7 @@ class MLAMappingHooksExample {
|
|
811 |
return;
|
812 |
}
|
813 |
}
|
814 |
-
|
815 |
foreach ( $metadata as $section ) {
|
816 |
if ( false === @fwrite( $temp_handle, $section['content'] ) ) {
|
817 |
//error_log( 'MLAMappingHooksExample::_replace_jpeg_metadata fwrite metadata marker = ' . var_export( $section['marker'], true ), 0 );
|
@@ -821,7 +821,7 @@ class MLAMappingHooksExample {
|
|
821 |
return;
|
822 |
}
|
823 |
}
|
824 |
-
|
825 |
foreach ( $destination_sections as $section ) {
|
826 |
if ( false === @fwrite( $temp_handle, substr( $file_contents, $section['offset'], $section['length'] ) ) ) {
|
827 |
//error_log( 'MLAMappingHooksExample::_replace_jpeg_metadata fwrite destination_sections marker = ' . var_export( $section['marker'], true ), 0 );
|
@@ -831,12 +831,12 @@ class MLAMappingHooksExample {
|
|
831 |
return;
|
832 |
}
|
833 |
}
|
834 |
-
|
835 |
if ( false === @fclose( $temp_handle ) ) {
|
836 |
error_log( 'ERROR: MLAMappingHooksExample::_replace_jpeg_metadata fclose = ' . var_export( error_get_last(), true ), 0 );
|
837 |
return;
|
838 |
}
|
839 |
-
|
840 |
if ( false === @unlink( $path ) ) {
|
841 |
error_log( 'ERROR: MLAMappingHooksExample::_replace_jpeg_metadata unlink = ' . var_export( error_get_last(), true ), 0 );
|
842 |
return;
|
69 |
*/
|
70 |
add_filter( 'mla_upload_prefilter', 'MLAMappingHooksExample::mla_upload_prefilter_filter', 10, 2 );
|
71 |
add_filter( 'mla_upload_filter', 'MLAMappingHooksExample::mla_upload_filter_filter', 10, 2 );
|
72 |
+
|
73 |
add_action( 'mla_add_attachment', 'MLAMappingHooksExample::mla_add_attachment_action', 10, 1 );
|
74 |
+
|
75 |
add_filter( 'mla_update_attachment_metadata_options', 'MLAMappingHooksExample::mla_update_attachment_metadata_options_filter', 10, 3 );
|
76 |
add_filter( 'mla_update_attachment_metadata_prefilter', 'MLAMappingHooksExample::mla_update_attachment_metadata_prefilter_filter', 10, 3 );
|
77 |
add_filter( 'mla_update_attachment_metadata_postfilter', 'MLAMappingHooksExample::mla_update_attachment_metadata_postfilter_filter', 10, 3 );
|
78 |
+
|
79 |
add_filter( 'mla_mapping_settings', 'MLAMappingHooksExample::mla_mapping_settings_filter', 10, 4 );
|
80 |
add_filter( 'mla_mapping_rule', 'MLAMappingHooksExample::mla_mapping_rule_filter', 10, 4 );
|
81 |
add_filter( 'mla_mapping_custom_value', 'MLAMappingHooksExample::mla_mapping_custom_value_filter', 10, 5 );
|
101 |
*/
|
102 |
private static $image_metadata = array();
|
103 |
private static $raw_metadata = array();
|
104 |
+
|
105 |
/**
|
106 |
* MLA Mapping Upload Prefilter
|
107 |
*
|
125 |
*/
|
126 |
//error_log( 'MLAMappingHooksExample::mla_upload_prefilter_filter $file = ' . var_export( $file, true ), 0 );
|
127 |
//error_log( 'MLAMappingHooksExample::mla_upload_prefilter_filter $image_metadata = ' . var_export( $image_metadata, true ), 0 );
|
128 |
+
|
129 |
/*
|
130 |
* Save the information for use in the later filters
|
131 |
*/
|
132 |
self::$image_metadata = $image_metadata;
|
133 |
self::$image_metadata['preload_file'] = $file;
|
134 |
+
|
135 |
/*
|
136 |
* Save the EXIF, XMP, IPTC and COM data from JPEG files
|
137 |
*/
|
144 |
|
145 |
return $file;
|
146 |
} // mla_upload_prefilter_filter
|
147 |
+
|
148 |
/**
|
149 |
* MLA Mapping Upload Filter
|
150 |
*
|
164 |
public static function mla_upload_filter_filter( $file, $id3_data ) {
|
165 |
//error_log( 'MLAMappingHooksExample::mla_upload_filter_filter $file = ' . var_export( $file, true ), 0 );
|
166 |
//error_log( 'MLAMappingHooksExample::mla_upload_filter_filter $id3_data = ' . var_export( $id3_data, true ), 0 );
|
167 |
+
|
168 |
/*
|
169 |
* Save the information for use in the later filters
|
170 |
*/
|
173 |
|
174 |
return $file;
|
175 |
} // mla_upload_filter_filter
|
176 |
+
|
177 |
/**
|
178 |
* MLA Add Attachment Action
|
179 |
*
|
191 |
*/
|
192 |
public static function mla_add_attachment_action( $post_ID ) {
|
193 |
//error_log( 'MLAMappingHooksExample::mla_add_attachment_action $post_ID = ' . var_export( $post_ID, true ), 0 );
|
194 |
+
|
195 |
/*
|
196 |
* Save the information for use in the later filters
|
197 |
*/
|
198 |
self::$image_metadata['post_id'] = $post_ID;
|
199 |
} // mla_add_attachment_action
|
200 |
+
|
201 |
/**
|
202 |
* MLA Update Attachment Metadata Options
|
203 |
*
|
223 |
//error_log( 'MLAMappingHooksExample::mla_update_attachment_metadata_options_filter $options = ' . var_export( $options, true ), 0 );
|
224 |
//error_log( 'MLAMappingHooksExample::mla_update_attachment_metadata_options_filter $data = ' . var_export( $data, true ), 0 );
|
225 |
//error_log( 'MLAMappingHooksExample::mla_update_attachment_metadata_options_filter $post_ID = ' . var_export( $post_ID, true ), 0 );
|
226 |
+
|
227 |
return $options;
|
228 |
} // mla_update_attachment_metadata_prefilter_filter
|
229 |
+
|
230 |
/**
|
231 |
* MLA Update Attachment Metadata Prefilter
|
232 |
*
|
250 |
//error_log( 'MLAMappingHooksExample::mla_update_attachment_metadata_prefilter_filter $data = ' . var_export( $data, true ), 0 );
|
251 |
//error_log( 'MLAMappingHooksExample::mla_update_attachment_metadata_prefilter_filter $post_ID = ' . var_export( $post_ID, true ), 0 );
|
252 |
//error_log( 'MLAMappingHooksExample::mla_update_attachment_metadata_prefilter_filter $options = ' . var_export( $options, true ), 0 );
|
253 |
+
|
254 |
/*
|
255 |
* If the metadata has been stripped, try to replace it
|
256 |
* NOTE: Uncomment/comment the "self::" and "$data = " lines to activate/deactivate
|
262 |
//error_log( 'regenerated data = ' . var_export( $data, true ), 0 );
|
263 |
|
264 |
}
|
265 |
+
|
266 |
return $data;
|
267 |
} // mla_update_attachment_metadata_prefilter_filter
|
268 |
+
|
269 |
/**
|
270 |
* MLA Update Attachment Metadata Postfilter
|
271 |
*
|
288 |
|
289 |
return $data;
|
290 |
} // mla_update_attachment_metadata_postfilter_filter
|
291 |
+
|
292 |
/**
|
293 |
* MLA Mapping Settings Filter
|
294 |
*
|
309 |
//error_log( 'MLAMappingHooksExample::mla_mapping_settings_filter $post_ID = ' . var_export( $post_ID, true ), 0 );
|
310 |
//error_log( 'MLAMappingHooksExample::mla_mapping_settings_filter $category = ' . var_export( $category, true ), 0 );
|
311 |
//error_log( 'MLAMappingHooksExample::mla_mapping_settings_filter $attachment_metadata = ' . var_export( $attachment_metadata, true ), 0 );
|
312 |
+
|
313 |
/*
|
314 |
* $category gives the context in which the rule is applied:
|
315 |
* 'custom_field_mapping' - mapping custom fields for ALL attachments
|
369 |
*/
|
370 |
return $settings;
|
371 |
} // mla_mapping_settings_filter
|
372 |
+
|
373 |
/**
|
374 |
* MLA Mapping Rule Filter
|
375 |
*
|
398 |
*/
|
399 |
return $setting_value;
|
400 |
} // mla_mapping_rule_filter
|
401 |
+
|
402 |
/**
|
403 |
* MLA Mapping Custom Field Value Filter
|
404 |
*
|
523 |
*/
|
524 |
return $exif_value;
|
525 |
} // mla_mapping_exif_value_filter
|
526 |
+
|
527 |
/**
|
528 |
* MLA Mapping Updates Filter
|
529 |
*
|
578 |
* Return an updated $mla_tablist ( $tab = NULL ), an updated single element or false
|
579 |
*/
|
580 |
return $results;
|
581 |
+
|
582 |
/*
|
583 |
* Comment out the above return statement to fall through to this example,
|
584 |
* which removes the "Uploads" tab from the Settings/Media Library Assistant submenu
|
588 |
} elseif ( 'upload' == $tab ) {
|
589 |
$results = false;
|
590 |
}
|
591 |
+
|
592 |
return $results;
|
593 |
} // mla_get_options_tablist_filter
|
594 |
|
625 |
$file_length = strlen( $file_contents );
|
626 |
$file_offset = 0;
|
627 |
$section_array = array();
|
628 |
+
|
629 |
while ( $file_offset < $file_length ) {
|
630 |
$section_value = array();
|
631 |
+
|
632 |
// Find a marker
|
633 |
for ( $i = 0; $i < 7; $i++ ) {
|
634 |
if ( 0xFF != ord( $file_contents[ $file_offset + $i ] ) ) {
|
635 |
break;
|
636 |
}
|
637 |
}
|
638 |
+
|
639 |
$section_value['marker'] = $marker = ord( $file_contents[ $file_offset + $i ] );
|
640 |
+
|
641 |
if ( $marker >= self::SOF0 && $marker <= self::COM ) {
|
642 |
$section_value['offset'] = $file_offset + ( $i - 1);
|
643 |
+
|
644 |
if ( ( self::SOI == $marker ) || ( self::EOI == $marker ) ) {
|
645 |
$file_offset = $file_offset + ( $i + 1 );
|
646 |
} elseif ( self::SOS == $marker ) {
|
671 |
$section_value['offset'] = $file_offset + $i;
|
672 |
}
|
673 |
$file_offset = $file_offset + ( $i + 1 );
|
674 |
+
|
675 |
while ( $file_offset < $file_length ) {
|
676 |
if ( 0xFF == ord( $file_contents[ $file_offset ] ) ) {
|
677 |
break;
|
685 |
$section_array[] = $section_value;
|
686 |
//error_log( 'MLAMappingHooksExample::_enumerate_jpeg_sections $section_value = ' . var_export( $section_value, true ), 0 );
|
687 |
} // while offset < length
|
688 |
+
|
689 |
return $section_array;
|
690 |
} // _enumerate_jpeg_sections
|
691 |
|
777 |
//error_log( 'MLAMappingHooksExample::_replace_jpeg_metadata $APP0_section = ' . var_export( $APP0_section, true ), 0 );
|
778 |
//error_log( 'MLAMappingHooksExample::_replace_jpeg_metadata $COM_section = ' . var_export( $COM_section, true ), 0 );
|
779 |
//error_log( 'MLAMappingHooksExample::_replace_jpeg_metadata $destination_sections = ' . var_export( $destination_sections, true ), 0 );
|
780 |
+
|
781 |
if ( ( NULL == $SOI_section ) || ( NULL == $APP0_section ) ) {
|
782 |
return;
|
783 |
}
|
784 |
+
|
785 |
@unlink( $temp_path );
|
786 |
$temp_handle = @fopen( $temp_path, 'wb' );
|
787 |
if ( false === $temp_handle ) {
|
788 |
//error_log( 'MLAMappingHooksExample::_replace_jpeg_metadata fopen error = ' . var_export( error_get_last(), true ), 0 );
|
789 |
return;
|
790 |
}
|
791 |
+
|
792 |
if ( false === @fwrite( $temp_handle, $SOI_section ) ) {
|
793 |
//error_log( 'MLAMappingHooksExample::_replace_jpeg_metadata fwrite SOI error = ' . var_export( error_get_last(), true ), 0 );
|
794 |
@fclose( $temp_handle );
|
795 |
@unlink( $temp_path );
|
796 |
return;
|
797 |
}
|
798 |
+
|
799 |
if ( false === @fwrite( $temp_handle, $APP0_section ) ) {
|
800 |
//error_log( 'MLAMappingHooksExample::_replace_jpeg_metadata fwrite APP0 error = ' . var_export( error_get_last(), true ), 0 );
|
801 |
@fclose( $temp_handle );
|
811 |
return;
|
812 |
}
|
813 |
}
|
814 |
+
|
815 |
foreach ( $metadata as $section ) {
|
816 |
if ( false === @fwrite( $temp_handle, $section['content'] ) ) {
|
817 |
//error_log( 'MLAMappingHooksExample::_replace_jpeg_metadata fwrite metadata marker = ' . var_export( $section['marker'], true ), 0 );
|
821 |
return;
|
822 |
}
|
823 |
}
|
824 |
+
|
825 |
foreach ( $destination_sections as $section ) {
|
826 |
if ( false === @fwrite( $temp_handle, substr( $file_contents, $section['offset'], $section['length'] ) ) ) {
|
827 |
//error_log( 'MLAMappingHooksExample::_replace_jpeg_metadata fwrite destination_sections marker = ' . var_export( $section['marker'], true ), 0 );
|
831 |
return;
|
832 |
}
|
833 |
}
|
834 |
+
|
835 |
if ( false === @fclose( $temp_handle ) ) {
|
836 |
error_log( 'ERROR: MLAMappingHooksExample::_replace_jpeg_metadata fclose = ' . var_export( error_get_last(), true ), 0 );
|
837 |
return;
|
838 |
}
|
839 |
+
|
840 |
if ( false === @unlink( $path ) ) {
|
841 |
error_log( 'ERROR: MLAMappingHooksExample::_replace_jpeg_metadata unlink = ' . var_export( error_get_last(), true ), 0 );
|
842 |
return;
|
examples/mla-media-tagger-example.php.txt
CHANGED
@@ -113,7 +113,7 @@ class MLAMediaTaggerExample {
|
|
113 |
$debug_data['post_ID'] = var_export( $post_ID, true );
|
114 |
$debug_data['setting_value'] = var_export( $setting_value, true );
|
115 |
$debug_data['category'] = var_export( $category, true );
|
116 |
-
|
117 |
/*
|
118 |
* Look for the rule we're handling and just return any other rules.
|
119 |
*
|
@@ -124,10 +124,10 @@ class MLAMediaTaggerExample {
|
|
124 |
//update_post_meta( $post_ID, 'Media Tagger', var_export( $debug_data, true ) );
|
125 |
return $setting_value;
|
126 |
}
|
127 |
-
|
128 |
global $wpdb; // The WordPress class of functions for all database manipulations.
|
129 |
static $all_term_slugs = NULL;
|
130 |
-
|
131 |
/*
|
132 |
* Build $all_term_slugs once per page load for "Map all attachments" efficiency
|
133 |
*/
|
@@ -137,7 +137,7 @@ class MLAMediaTaggerExample {
|
|
137 |
);
|
138 |
//error_log( 'MLAMediaTaggerExample::mla_mapping_rule_filter custom_field_mapping $term_values = ' . var_export( $term_values, true ), 0 );
|
139 |
//$debug_data['term_values'] = var_export( $term_values, true );
|
140 |
-
|
141 |
$all_term_slugs = array();
|
142 |
foreach ( $term_values as $value ) {
|
143 |
$all_term_slugs[ $value->term_taxonomy_id ]['taxonomy'] = $value->taxonomy;
|
@@ -146,7 +146,7 @@ class MLAMediaTaggerExample {
|
|
146 |
//error_log( 'MLAMediaTaggerExample::mla_mapping_rule_filter custom_field_mapping $all_term_slugs = ' . var_export( $all_term_slugs, true ), 0 );
|
147 |
//$debug_data['all_term_slugs'] = var_export( $all_term_slugs, true );
|
148 |
}
|
149 |
-
|
150 |
/*
|
151 |
* 1. Select the term_taxonomy_id(s) from the mediatagger table
|
152 |
* for the post_ID (passed to the MLA filter).
|
@@ -157,7 +157,7 @@ class MLAMediaTaggerExample {
|
|
157 |
) );
|
158 |
//error_log( 'MLAMediaTaggerExample::mla_mapping_rule_filter get_col $term_taxonomy_ids = ' . var_export( $term_taxonomy_ids, true ), 0 );
|
159 |
$debug_data['term_taxonomy_ids'] = var_export( $term_taxonomy_ids, true );
|
160 |
-
|
161 |
if ( empty( $term_taxonomy_ids ) ) {
|
162 |
//error_log( 'MLAMediaTaggerExample::mla_mapping_rule_filter empty $term_taxonomy_ids', 0 );
|
163 |
//update_post_meta( $post_ID, 'Media Tagger', var_export( $debug_data, true ) );
|
@@ -188,21 +188,21 @@ class MLAMediaTaggerExample {
|
|
188 |
//update_post_meta( $post_ID, 'Media Tagger', var_export( $debug_data, true ) );
|
189 |
return $setting_value;
|
190 |
}
|
191 |
-
|
192 |
$term_ids = array();
|
193 |
foreach ( $term_taxonomy_values as $value ) {
|
194 |
$term_ids[ $value->term_id ] = $value->term_id;
|
195 |
}
|
196 |
//error_log( 'MLAMediaTaggerExample::mla_mapping_rule_filter $term_ids = ' . var_export( $term_ids, true ), 0 );
|
197 |
$debug_data['term_ids'] = var_export( $term_ids, true );
|
198 |
-
|
199 |
$term_values = $wpdb->get_results( sprintf(
|
200 |
"SELECT t.term_id, t.slug FROM " . $wpdb->terms . " as t WHERE t.term_id IN ( %s )",
|
201 |
implode( ',', $term_ids )
|
202 |
) );
|
203 |
//error_log( 'MLAMediaTaggerExample::mla_mapping_rule_filter get_results $term_values = ' . var_export( $term_values, true ), 0 );
|
204 |
$debug_data['term_values'] = var_export( $term_values, true );
|
205 |
-
|
206 |
$term_slugs = array();
|
207 |
foreach ( $term_values as $value ) {
|
208 |
$term_slugs[ $value->term_id ] = $value->slug;
|
@@ -222,7 +222,7 @@ class MLAMediaTaggerExample {
|
|
222 |
}
|
223 |
//error_log( 'MLAMediaTaggerExample::mla_mapping_rule_filter $new_terms = ' . var_export( $new_terms, true ), 0 );
|
224 |
$debug_data['new_terms'] = var_export( $new_terms, true );
|
225 |
-
|
226 |
/*
|
227 |
* 3. Use wp_set_object_terms() to assign the taxonomy and term_id value(s)
|
228 |
* to the post_ID. You can either replace any existing terms or append the new terms.
|
@@ -236,13 +236,13 @@ class MLAMediaTaggerExample {
|
|
236 |
// 'post_tag' => 'attachment_tag',
|
237 |
// 'category' => 'attachment_category'
|
238 |
);
|
239 |
-
|
240 |
$term_arrays = array ();
|
241 |
foreach ( $new_terms as $key => $value ) {
|
242 |
if ( isset( $taxonomy_change[ $key ] ) ) {
|
243 |
$key = $taxonomy_change[ $key ];
|
244 |
}
|
245 |
-
|
246 |
$term_arrays[ $key ] = $value;
|
247 |
}
|
248 |
//error_log( "MLAMediaTaggerExample::mla_mapping_rule_filter {$post_ID} term_arrays = " . var_export( $term_arrays, true ), 0 );
|
@@ -269,7 +269,7 @@ class MLAMediaTaggerExample {
|
|
269 |
* Uncomment this line to write debugging information into the 'Media Tagger' custom field
|
270 |
*/
|
271 |
//update_post_meta( $post_ID, 'Media Tagger', var_export( $debug_data, true ) );
|
272 |
-
|
273 |
/*
|
274 |
* $setting_value is an array containing a mapping rule; see above
|
275 |
* To stop this rule's evaluation and mapping, return NULL
|
113 |
$debug_data['post_ID'] = var_export( $post_ID, true );
|
114 |
$debug_data['setting_value'] = var_export( $setting_value, true );
|
115 |
$debug_data['category'] = var_export( $category, true );
|
116 |
+
|
117 |
/*
|
118 |
* Look for the rule we're handling and just return any other rules.
|
119 |
*
|
124 |
//update_post_meta( $post_ID, 'Media Tagger', var_export( $debug_data, true ) );
|
125 |
return $setting_value;
|
126 |
}
|
127 |
+
|
128 |
global $wpdb; // The WordPress class of functions for all database manipulations.
|
129 |
static $all_term_slugs = NULL;
|
130 |
+
|
131 |
/*
|
132 |
* Build $all_term_slugs once per page load for "Map all attachments" efficiency
|
133 |
*/
|
137 |
);
|
138 |
//error_log( 'MLAMediaTaggerExample::mla_mapping_rule_filter custom_field_mapping $term_values = ' . var_export( $term_values, true ), 0 );
|
139 |
//$debug_data['term_values'] = var_export( $term_values, true );
|
140 |
+
|
141 |
$all_term_slugs = array();
|
142 |
foreach ( $term_values as $value ) {
|
143 |
$all_term_slugs[ $value->term_taxonomy_id ]['taxonomy'] = $value->taxonomy;
|
146 |
//error_log( 'MLAMediaTaggerExample::mla_mapping_rule_filter custom_field_mapping $all_term_slugs = ' . var_export( $all_term_slugs, true ), 0 );
|
147 |
//$debug_data['all_term_slugs'] = var_export( $all_term_slugs, true );
|
148 |
}
|
149 |
+
|
150 |
/*
|
151 |
* 1. Select the term_taxonomy_id(s) from the mediatagger table
|
152 |
* for the post_ID (passed to the MLA filter).
|
157 |
) );
|
158 |
//error_log( 'MLAMediaTaggerExample::mla_mapping_rule_filter get_col $term_taxonomy_ids = ' . var_export( $term_taxonomy_ids, true ), 0 );
|
159 |
$debug_data['term_taxonomy_ids'] = var_export( $term_taxonomy_ids, true );
|
160 |
+
|
161 |
if ( empty( $term_taxonomy_ids ) ) {
|
162 |
//error_log( 'MLAMediaTaggerExample::mla_mapping_rule_filter empty $term_taxonomy_ids', 0 );
|
163 |
//update_post_meta( $post_ID, 'Media Tagger', var_export( $debug_data, true ) );
|
188 |
//update_post_meta( $post_ID, 'Media Tagger', var_export( $debug_data, true ) );
|
189 |
return $setting_value;
|
190 |
}
|
191 |
+
|
192 |
$term_ids = array();
|
193 |
foreach ( $term_taxonomy_values as $value ) {
|
194 |
$term_ids[ $value->term_id ] = $value->term_id;
|
195 |
}
|
196 |
//error_log( 'MLAMediaTaggerExample::mla_mapping_rule_filter $term_ids = ' . var_export( $term_ids, true ), 0 );
|
197 |
$debug_data['term_ids'] = var_export( $term_ids, true );
|
198 |
+
|
199 |
$term_values = $wpdb->get_results( sprintf(
|
200 |
"SELECT t.term_id, t.slug FROM " . $wpdb->terms . " as t WHERE t.term_id IN ( %s )",
|
201 |
implode( ',', $term_ids )
|
202 |
) );
|
203 |
//error_log( 'MLAMediaTaggerExample::mla_mapping_rule_filter get_results $term_values = ' . var_export( $term_values, true ), 0 );
|
204 |
$debug_data['term_values'] = var_export( $term_values, true );
|
205 |
+
|
206 |
$term_slugs = array();
|
207 |
foreach ( $term_values as $value ) {
|
208 |
$term_slugs[ $value->term_id ] = $value->slug;
|
222 |
}
|
223 |
//error_log( 'MLAMediaTaggerExample::mla_mapping_rule_filter $new_terms = ' . var_export( $new_terms, true ), 0 );
|
224 |
$debug_data['new_terms'] = var_export( $new_terms, true );
|
225 |
+
|
226 |
/*
|
227 |
* 3. Use wp_set_object_terms() to assign the taxonomy and term_id value(s)
|
228 |
* to the post_ID. You can either replace any existing terms or append the new terms.
|
236 |
// 'post_tag' => 'attachment_tag',
|
237 |
// 'category' => 'attachment_category'
|
238 |
);
|
239 |
+
|
240 |
$term_arrays = array ();
|
241 |
foreach ( $new_terms as $key => $value ) {
|
242 |
if ( isset( $taxonomy_change[ $key ] ) ) {
|
243 |
$key = $taxonomy_change[ $key ];
|
244 |
}
|
245 |
+
|
246 |
$term_arrays[ $key ] = $value;
|
247 |
}
|
248 |
//error_log( "MLAMediaTaggerExample::mla_mapping_rule_filter {$post_ID} term_arrays = " . var_export( $term_arrays, true ), 0 );
|
269 |
* Uncomment this line to write debugging information into the 'Media Tagger' custom field
|
270 |
*/
|
271 |
//update_post_meta( $post_ID, 'Media Tagger', var_export( $debug_data, true ) );
|
272 |
+
|
273 |
/*
|
274 |
* $setting_value is an array containing a mapping rule; see above
|
275 |
* To stop this rule's evaluation and mapping, return NULL
|
examples/random-feature.php.txt
CHANGED
@@ -34,12 +34,12 @@ class RandomFeaturedImage {
|
|
34 |
* Select the approach: 1) (true) use the shortcode, 2) (false) parse the gallery
|
35 |
*/
|
36 |
const USE_SHORTCODE = false; //true;
|
37 |
-
|
38 |
/**
|
39 |
* Select the taxonomy, e.g., 'category', 'post_tag', 'attachment_category', 'attachment_tag'
|
40 |
*/
|
41 |
const TAXONOMY = 'category';
|
42 |
-
|
43 |
/**
|
44 |
* Initialization function, similar to __construct()
|
45 |
*
|
@@ -87,7 +87,7 @@ class RandomFeaturedImage {
|
|
87 |
*/
|
88 |
if ( 'category' == self::TAXONOMY ) {
|
89 |
$default_category_id= get_option('default_category');
|
90 |
-
|
91 |
foreach( $the_terms as $index => $term ) {
|
92 |
if ( $term->term_id == $default_category_id ) {
|
93 |
unset( $the_terms[ $index ] );
|
@@ -102,12 +102,12 @@ class RandomFeaturedImage {
|
|
102 |
if ( '' != get_the_post_thumbnail( $post_ID ) ) {
|
103 |
return;
|
104 |
}
|
105 |
-
|
106 |
/*
|
107 |
* Pick the term, e.g. the first value or perhaps a random value
|
108 |
*/
|
109 |
$chosen_name = $the_terms[0]->name;
|
110 |
-
|
111 |
/*
|
112 |
* Find the right [mla_gallery] parameter name for the taxonomy
|
113 |
*/
|
@@ -171,7 +171,7 @@ class RandomFeaturedImage {
|
|
171 |
if ( empty( $arguments['rfi_post_id'] ) ) {
|
172 |
return '';
|
173 |
}
|
174 |
-
|
175 |
/*
|
176 |
* Make sure we have exactly one image ID
|
177 |
*/
|
34 |
* Select the approach: 1) (true) use the shortcode, 2) (false) parse the gallery
|
35 |
*/
|
36 |
const USE_SHORTCODE = false; //true;
|
37 |
+
|
38 |
/**
|
39 |
* Select the taxonomy, e.g., 'category', 'post_tag', 'attachment_category', 'attachment_tag'
|
40 |
*/
|
41 |
const TAXONOMY = 'category';
|
42 |
+
|
43 |
/**
|
44 |
* Initialization function, similar to __construct()
|
45 |
*
|
87 |
*/
|
88 |
if ( 'category' == self::TAXONOMY ) {
|
89 |
$default_category_id= get_option('default_category');
|
90 |
+
|
91 |
foreach( $the_terms as $index => $term ) {
|
92 |
if ( $term->term_id == $default_category_id ) {
|
93 |
unset( $the_terms[ $index ] );
|
102 |
if ( '' != get_the_post_thumbnail( $post_ID ) ) {
|
103 |
return;
|
104 |
}
|
105 |
+
|
106 |
/*
|
107 |
* Pick the term, e.g. the first value or perhaps a random value
|
108 |
*/
|
109 |
$chosen_name = $the_terms[0]->name;
|
110 |
+
|
111 |
/*
|
112 |
* Find the right [mla_gallery] parameter name for the taxonomy
|
113 |
*/
|
171 |
if ( empty( $arguments['rfi_post_id'] ) ) {
|
172 |
return '';
|
173 |
}
|
174 |
+
|
175 |
/*
|
176 |
* Make sure we have exactly one image ID
|
177 |
*/
|
includes/class-mla-data.php
CHANGED
@@ -616,7 +616,7 @@ class MLAData {
|
|
616 |
case 'choice':
|
617 |
foreach ( $node['value'] as $value ) {
|
618 |
$node_result = self::_evaluate_template_array_node( $value, $markup_values );
|
619 |
-
if ( !empty( $node_result ) ) {
|
620 |
foreach ( $node_result as $value )
|
621 |
$result[] = $value;
|
622 |
break;
|
@@ -684,7 +684,7 @@ class MLAData {
|
|
684 |
case 'choice':
|
685 |
foreach ( $node['value'] as $value ) {
|
686 |
$results = self::_evaluate_template_node( $value, $markup_values );
|
687 |
-
if ( !empty( $results ) ) {
|
688 |
return $results;
|
689 |
}
|
690 |
}
|
@@ -1381,6 +1381,14 @@ class MLAData {
|
|
1381 |
$clean_request[ $key ] = $value;
|
1382 |
}
|
1383 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1384 |
break;
|
1385 |
case 'mla_search_connector':
|
1386 |
case 'mla_search_fields':
|
@@ -1438,21 +1446,38 @@ class MLAData {
|
|
1438 |
self::$query_parameters['mla-metavalue'] = $clean_request['mla-metavalue'];
|
1439 |
}
|
1440 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1441 |
/*
|
1442 |
* We will handle keyword search in the mla_query_posts_search_filter.
|
1443 |
-
* There must be at least one search field to do a search.
|
1444 |
*/
|
1445 |
if ( isset( $clean_request['s'] ) ) {
|
1446 |
-
|
1447 |
-
|
1448 |
-
|
1449 |
-
|
1450 |
-
|
1451 |
-
|
1452 |
-
|
1453 |
-
|
1454 |
-
|
1455 |
-
|
1456 |
|
1457 |
unset( $clean_request['s'] );
|
1458 |
unset( $clean_request['mla_search_connector'] );
|
@@ -1588,7 +1613,7 @@ class MLAData {
|
|
1588 |
* @return object WP_Query object with query results
|
1589 |
*/
|
1590 |
private static function _execute_list_table_query( $request ) {
|
1591 |
-
global $wpdb
|
1592 |
|
1593 |
/*
|
1594 |
* Custom fields are special; we have to use an SQL VIEW to build
|
@@ -1598,7 +1623,7 @@ class MLAData {
|
|
1598 |
if ( self::$query_parameters['use_postmeta_view'] ) {
|
1599 |
$view_name = self::$mla_alt_text_view;
|
1600 |
$key_name = self::$query_parameters['postmeta_key'];
|
1601 |
-
$table_name = $
|
1602 |
|
1603 |
$result = $wpdb->query(
|
1604 |
"
|
@@ -1611,8 +1636,9 @@ class MLAData {
|
|
1611 |
}
|
1612 |
|
1613 |
add_filter( 'posts_search', 'MLAData::mla_query_posts_search_filter', 10, 2 ); // $search, &$this
|
1614 |
-
add_filter( 'posts_join', 'MLAData::mla_query_posts_join_filter' );
|
1615 |
add_filter( 'posts_where', 'MLAData::mla_query_posts_where_filter' );
|
|
|
|
|
1616 |
add_filter( 'posts_orderby', 'MLAData::mla_query_posts_orderby_filter' );
|
1617 |
|
1618 |
/*
|
@@ -1666,8 +1692,9 @@ class MLAData {
|
|
1666 |
}
|
1667 |
|
1668 |
remove_filter( 'posts_orderby', 'MLAData::mla_query_posts_orderby_filter' );
|
1669 |
-
remove_filter( '
|
1670 |
remove_filter( 'posts_join', 'MLAData::mla_query_posts_join_filter' );
|
|
|
1671 |
remove_filter( 'posts_search', 'MLAData::mla_query_posts_search_filter' );
|
1672 |
|
1673 |
if ( self::$query_parameters['use_postmeta_view'] ) {
|
@@ -1705,13 +1732,93 @@ class MLAData {
|
|
1705 |
* @return string query clause after keyword search addition
|
1706 |
*/
|
1707 |
public static function mla_query_posts_search_filter( $search_string, &$query_object ) {
|
1708 |
-
global $
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1709 |
/*
|
1710 |
* Process the keyword search argument, if present.
|
1711 |
*/
|
1712 |
-
$search_clause = '';
|
1713 |
if ( isset( self::$query_parameters['s'] ) ) {
|
1714 |
-
|
1715 |
if ( isset( self::$query_parameters['debug'] ) ) {
|
1716 |
$debug_array = array( 's' => self::$query_parameters['s'] );
|
1717 |
} // debug
|
@@ -1731,11 +1838,11 @@ class MLAData {
|
|
1731 |
self::$query_parameters['s'] = str_replace( array( "\r", "\n" ), '', self::$query_parameters['s'] );
|
1732 |
|
1733 |
if ( self::$query_parameters['sentence'] ) {
|
1734 |
-
$
|
1735 |
} else {
|
1736 |
// v3.6.1 was '/".*?("|$)|((?<=[\r\n\t ",+])|^)[^\r\n\t ",+]+/'
|
1737 |
preg_match_all('/".*?("|$)|((?<=[\t ",+])|^)[^\t ",+]+/', self::$query_parameters['s'], $matches);
|
1738 |
-
$
|
1739 |
}
|
1740 |
|
1741 |
$fields = self::$query_parameters['mla_search_fields'];
|
@@ -1745,108 +1852,127 @@ class MLAData {
|
|
1745 |
if ( empty( $fields ) ) {
|
1746 |
$search_clause = '1=0';
|
1747 |
} else {
|
1748 |
-
|
1749 |
-
|
1750 |
-
|
1751 |
-
|
1752 |
-
|
1753 |
-
|
1754 |
-
|
|
|
|
|
1755 |
$inner_connector = ' OR ';
|
1756 |
-
|
1757 |
-
|
1758 |
-
|
1759 |
-
$
|
1760 |
$inner_connector = ' OR ';
|
1761 |
-
|
1762 |
-
|
1763 |
-
|
1764 |
-
$
|
1765 |
$inner_connector = ' OR ';
|
1766 |
-
|
1767 |
-
|
1768 |
-
|
1769 |
$view_name = self::$mla_alt_text_view;
|
1770 |
-
$
|
1771 |
$inner_connector = ' OR ';
|
1772 |
-
|
1773 |
-
|
1774 |
-
if ( in_array( 'name', $fields ) ) {
|
1775 |
-
$search_clause .= "{$inner_connector}({$wpdb->posts}.post_name LIKE '{$percent}{$term}{$percent}')";
|
1776 |
-
}
|
1777 |
-
|
1778 |
-
$search_clause .= ")";
|
1779 |
-
$connector = ' ' . self::$query_parameters['mla_search_connector'] . ' ';
|
1780 |
-
} // foreach
|
1781 |
-
}
|
1782 |
-
|
1783 |
-
if ( !empty($search_clause) ) {
|
1784 |
-
$search_clause = " AND ( {$numeric_clause}{$search_clause} ) ";
|
1785 |
|
1786 |
-
|
1787 |
-
|
1788 |
-
|
1789 |
-
}
|
1790 |
-
}
|
1791 |
|
1792 |
-
|
1793 |
-
|
1794 |
-
|
|
|
1795 |
|
1796 |
-
|
1797 |
-
|
1798 |
-
|
1799 |
-
|
1800 |
-
|
1801 |
-
|
1802 |
-
|
1803 |
-
|
1804 |
-
} // isset 's'
|
1805 |
|
1806 |
-
|
1807 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1808 |
|
1809 |
-
|
1810 |
-
|
1811 |
-
|
1812 |
-
|
1813 |
-
|
1814 |
-
|
1815 |
-
|
1816 |
-
|
1817 |
-
|
1818 |
-
|
1819 |
-
|
1820 |
-
|
1821 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1822 |
|
1823 |
-
if (
|
1824 |
-
$
|
1825 |
}
|
1826 |
|
1827 |
-
|
1828 |
-
|
1829 |
-
|
1830 |
-
|
1831 |
-
|
1832 |
-
|
1833 |
-
|
1834 |
-
$join_clause .= " LEFT JOIN {$view_name} ON ({$table_prefix}posts.ID = {$view_name}.post_id)";
|
1835 |
}
|
1836 |
|
1837 |
if ( isset( self::$query_parameters['debug'] ) ) {
|
1838 |
-
$debug_array['
|
|
|
1839 |
|
1840 |
if ( 'console' == self::$query_parameters['debug'] ) {
|
1841 |
-
/* translators: 1: search
|
1842 |
-
trigger_error( sprintf( __( '
|
1843 |
} else {
|
1844 |
-
/* translators: 1: search
|
1845 |
-
error_log( sprintf( _x( 'DEBUG:
|
1846 |
}
|
1847 |
} // debug
|
1848 |
|
1849 |
-
return $
|
1850 |
}
|
1851 |
|
1852 |
/**
|
@@ -1862,7 +1988,7 @@ class MLAData {
|
|
1862 |
* @return string query clause after "detached" item modification
|
1863 |
*/
|
1864 |
public static function mla_query_posts_where_filter( $where_clause ) {
|
1865 |
-
global $
|
1866 |
|
1867 |
if ( isset( self::$query_parameters['debug'] ) ) {
|
1868 |
$debug_array = array( 'where_string' => $where_clause );
|
@@ -1896,17 +2022,17 @@ class MLAData {
|
|
1896 |
* Unattached items require some help
|
1897 |
*/
|
1898 |
if ( self::$query_parameters['detached'] ) {
|
1899 |
-
$where_clause .=
|
1900 |
}
|
1901 |
|
1902 |
if ( isset( self::$query_parameters['debug'] ) ) {
|
1903 |
$debug_array['where_clause'] = $where_clause;
|
1904 |
|
1905 |
if ( 'console' == self::$query_parameters['debug'] ) {
|
1906 |
-
/* translators: 1:
|
1907 |
trigger_error( sprintf( __( 'mla_query_posts_where_filter = "%1$s".', 'media-library-assistant' ), var_export( $debug_array, true ) ), E_USER_WARNING );
|
1908 |
} else {
|
1909 |
-
/* translators: 1:
|
1910 |
error_log( sprintf( _x( 'DEBUG: mla_query_posts_where_filter = "%1$s".', 'error_log', 'media-library-assistant' ), var_export( $debug_array, true ) ), 0 );
|
1911 |
}
|
1912 |
} // debug
|
@@ -1914,6 +2040,82 @@ class MLAData {
|
|
1914 |
return $where_clause;
|
1915 |
}
|
1916 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1917 |
/**
|
1918 |
* Adds a ORDERBY clause, if required
|
1919 |
*
|
@@ -1927,7 +2129,7 @@ class MLAData {
|
|
1927 |
* @return string updated query clause
|
1928 |
*/
|
1929 |
public static function mla_query_posts_orderby_filter( $orderby_clause ) {
|
1930 |
-
global $
|
1931 |
|
1932 |
if ( isset( self::$query_parameters['debug'] ) ) {
|
1933 |
$debug_array = array( 'orderby_string' => $orderby_clause );
|
@@ -1953,7 +2155,7 @@ class MLAData {
|
|
1953 |
* we actually sort on the database column.
|
1954 |
*/
|
1955 |
case 'title_name':
|
1956 |
-
$orderby =
|
1957 |
break;
|
1958 |
/*
|
1959 |
* The _wp_attached_file meta data value is present for all attachments, and the
|
@@ -1970,7 +2172,7 @@ class MLAData {
|
|
1970 |
$orderby = self::$mla_alt_text_view . '.meta_value';
|
1971 |
break;
|
1972 |
default:
|
1973 |
-
$orderby =
|
1974 |
} // $query_parameters['orderby']
|
1975 |
}
|
1976 |
|
@@ -1983,10 +2185,10 @@ class MLAData {
|
|
1983 |
$debug_array['orderby_clause'] = $orderby_clause;
|
1984 |
|
1985 |
if ( 'console' == self::$query_parameters['debug'] ) {
|
1986 |
-
/* translators: 1:
|
1987 |
trigger_error( sprintf( __( 'mla_query_posts_orderby_filter = "%1$s".', 'media-library-assistant' ), var_export( $debug_array, true ) ), E_USER_WARNING );
|
1988 |
} else {
|
1989 |
-
/* translators: 1:
|
1990 |
error_log( sprintf( _x( 'DEBUG: mla_query_posts_orderby_filter = "%1$s".', 'error_log', 'media-library-assistant' ), var_export( $debug_array, true ) ), 0 );
|
1991 |
}
|
1992 |
} // debug
|
@@ -2344,7 +2546,7 @@ class MLAData {
|
|
2344 |
$results[ $key ] = $post_meta_value;
|
2345 |
} // foreach $post_meta
|
2346 |
|
2347 |
-
if ( !empty( $attached_file ) ) {
|
2348 |
$last_slash = strrpos( $attached_file, '/' );
|
2349 |
if ( false === $last_slash ) {
|
2350 |
$results['mla_wp_attached_path'] = '';
|
@@ -2449,7 +2651,7 @@ class MLAData {
|
|
2449 |
|
2450 |
$attachment_metadata = get_post_meta( $ID, '_wp_attachment_metadata', true );
|
2451 |
$sizes = isset( $attachment_metadata['sizes'] ) ? $attachment_metadata['sizes'] : NULL;
|
2452 |
-
if ( !empty( $sizes ) ) {
|
2453 |
/* Using the name as the array key ensures each name is added only once */
|
2454 |
foreach ( $sizes as $size ) {
|
2455 |
$references['files'][ $references['path'] . $size['file'] ] = $size;
|
@@ -2485,7 +2687,7 @@ class MLAData {
|
|
2485 |
"
|
2486 |
);
|
2487 |
|
2488 |
-
if ( !empty( $features ) ) {
|
2489 |
foreach ( $features as $feature ) {
|
2490 |
$feature_results = $wpdb->get_results(
|
2491 |
"
|
@@ -2495,14 +2697,14 @@ class MLAData {
|
|
2495 |
"
|
2496 |
);
|
2497 |
|
2498 |
-
if ( !empty( $feature_results ) ) {
|
2499 |
$references['found_reference'] = true;
|
2500 |
$references['features'][ $feature->post_id ] = $feature_results[0];
|
2501 |
|
2502 |
if ( $feature->post_id == $parent ) {
|
2503 |
$references['found_parent'] = true;
|
2504 |
}
|
2505 |
-
} // !empty
|
2506 |
} // foreach $feature
|
2507 |
}
|
2508 |
} // $process_featured_in
|
@@ -2552,7 +2754,7 @@ class MLAData {
|
|
2552 |
$wpdb->prepare( $query, $query_parameters )
|
2553 |
);
|
2554 |
|
2555 |
-
if ( !empty( $inserts ) ) {
|
2556 |
$references['found_reference'] = true;
|
2557 |
$references['inserts'][ $pathinfo['filename'] ] = $inserts;
|
2558 |
|
@@ -2561,7 +2763,7 @@ class MLAData {
|
|
2561 |
$references['found_parent'] = true;
|
2562 |
}
|
2563 |
} // foreach $insert
|
2564 |
-
} // !empty
|
2565 |
} else { // process base names
|
2566 |
foreach ( $references['files'] as $file => $file_data ) {
|
2567 |
$like = like_escape( $file );
|
@@ -2572,7 +2774,7 @@ class MLAData {
|
|
2572 |
)
|
2573 |
);
|
2574 |
|
2575 |
-
if ( !empty( $inserts ) ) {
|
2576 |
$references['found_reference'] = true;
|
2577 |
$references['inserts'][ $file ] = $inserts;
|
2578 |
|
@@ -2581,7 +2783,7 @@ class MLAData {
|
|
2581 |
$references['found_parent'] = true;
|
2582 |
}
|
2583 |
} // foreach $insert
|
2584 |
-
} // !empty
|
2585 |
} // foreach $file
|
2586 |
} // process intermediate sizes
|
2587 |
} // $process_inserted_in
|
@@ -2593,7 +2795,7 @@ class MLAData {
|
|
2593 |
$reference_tests++;
|
2594 |
if ( self::_build_mla_galleries( MLAOptions::MLA_MLA_GALLERY_IN_TUNING, self::$mla_galleries, '[mla_gallery', $exclude_revisions ) ) {
|
2595 |
$galleries = self::_search_mla_galleries( self::$mla_galleries, $ID );
|
2596 |
-
if ( !empty( $galleries ) ) {
|
2597 |
$references['found_reference'] = true;
|
2598 |
$references['mla_galleries'] = $galleries;
|
2599 |
|
@@ -2602,7 +2804,7 @@ class MLAData {
|
|
2602 |
$references['found_parent'] = true;
|
2603 |
}
|
2604 |
} // foreach $gallery
|
2605 |
-
} else { // !empty
|
2606 |
$references['mla_galleries'] = array();
|
2607 |
}
|
2608 |
}
|
@@ -2615,7 +2817,7 @@ class MLAData {
|
|
2615 |
$reference_tests++;
|
2616 |
if ( self::_build_mla_galleries( MLAOptions::MLA_GALLERY_IN_TUNING, self::$galleries, '[gallery', $exclude_revisions ) ) {
|
2617 |
$galleries = self::_search_mla_galleries( self::$galleries, $ID );
|
2618 |
-
if ( !empty( $galleries ) ) {
|
2619 |
$references['found_reference'] = true;
|
2620 |
$references['galleries'] = $galleries;
|
2621 |
|
@@ -2624,7 +2826,7 @@ class MLAData {
|
|
2624 |
$references['found_parent'] = true;
|
2625 |
}
|
2626 |
} // foreach $gallery
|
2627 |
-
} else { // !empty
|
2628 |
$references['galleries'] = array();
|
2629 |
}
|
2630 |
}
|
@@ -2645,7 +2847,7 @@ class MLAData {
|
|
2645 |
$errors .= '(' . sprintf( __( 'ORPHAN', 'media-library-assistant' ) . '%1$s) ', $suffix );
|
2646 |
}
|
2647 |
|
2648 |
-
if ( !$references['found_parent'] && !empty( $references['parent_title'] ) ) {
|
2649 |
$errors .= '(' . sprintf( __( 'UNUSED', 'media-library-assistant' ) . '%1$s) ', $suffix );
|
2650 |
}
|
2651 |
}
|
@@ -2868,7 +3070,7 @@ class MLAData {
|
|
2868 |
$gallery_refs[ $parent_id ] = array ( 'post_title' => $gallery['parent_title'], 'post_type' => $gallery['parent_type'] );
|
2869 |
}
|
2870 |
} // foreach gallery
|
2871 |
-
} // !empty
|
2872 |
|
2873 |
return $gallery_refs;
|
2874 |
}
|
@@ -4588,7 +4790,7 @@ class MLAData {
|
|
4588 |
//error_log( 'mla_IPTC_EXIF_error_handler $string = ' . var_export( $string, true ), 0 );
|
4589 |
//error_log( 'mla_IPTC_EXIF_error_handler $file = ' . var_export( $file, true ), 0 );
|
4590 |
//error_log( 'mla_IPTC_EXIF_error_handler $line = ' . var_export( $line, true ), 0 );
|
4591 |
-
|
4592 |
switch ( $type ) {
|
4593 |
case E_ERROR:
|
4594 |
$level = 'E_ERROR';
|
@@ -4602,11 +4804,11 @@ class MLAData {
|
|
4602 |
default:
|
4603 |
$level = 'OTHER';
|
4604 |
}
|
4605 |
-
|
4606 |
$path_info = pathinfo( $file );
|
4607 |
$file_name = $path_info['basename'];
|
4608 |
MLAData::$mla_IPTC_EXIF_errors[] = "{$level} ({$type}) - {$string} [{$file_name} : {$line}]";
|
4609 |
-
|
4610 |
/* Don't execute PHP internal error handler */
|
4611 |
return true;
|
4612 |
}
|
@@ -4642,17 +4844,17 @@ class MLAData {
|
|
4642 |
$size = getimagesize( $path, $info );
|
4643 |
|
4644 |
if ( is_callable( 'iptcparse' ) ) {
|
4645 |
-
if ( !empty( $info['APP13'] ) ) {
|
4646 |
//set_error_handler( 'MLAData::mla_IPTC_EXIF_error_handler' );
|
4647 |
$iptc_values = iptcparse( $info['APP13'] );
|
4648 |
//restore_error_handler();
|
4649 |
-
|
4650 |
if ( ! empty( MLAData::$mla_IPTC_EXIF_errors ) ) {
|
4651 |
$results['mla_iptc_errors'] = MLAData::$mla_IPTC_EXIF_errors;
|
4652 |
MLAData::$mla_IPTC_EXIF_errors = array();
|
4653 |
error_log( 'ERROR: $results[mla_iptc_errors] = ' . var_export( $results['mla_exif_errors'], true ), 0 );
|
4654 |
}
|
4655 |
-
|
4656 |
if ( ! is_array( $iptc_values ) ) {
|
4657 |
$iptc_values = array();
|
4658 |
}
|
@@ -4667,14 +4869,14 @@ class MLAData {
|
|
4667 |
$results['mla_iptc_metadata'][ $key ] = $value;
|
4668 |
}
|
4669 |
} // foreach $value
|
4670 |
-
} // !empty
|
4671 |
}
|
4672 |
|
4673 |
if ( is_callable( 'exif_read_data' ) && in_array( $size[2], array( IMAGETYPE_JPEG, IMAGETYPE_TIFF_II, IMAGETYPE_TIFF_MM ) ) ) {
|
4674 |
//set_error_handler( 'MLAData::mla_IPTC_EXIF_error_handler' );
|
4675 |
$results['mla_exif_metadata'] = $exif_data = @exif_read_data( $path );
|
4676 |
//restore_error_handler();
|
4677 |
-
|
4678 |
if ( ! empty( MLAData::$mla_IPTC_EXIF_errors ) ) {
|
4679 |
$results['mla_exif_errors'] = MLAData::$mla_IPTC_EXIF_errors;
|
4680 |
MLAData::$mla_IPTC_EXIF_errors = array();
|
@@ -5232,9 +5434,9 @@ class MLAData {
|
|
5232 |
} // switch $key
|
5233 |
} // foreach $new_data
|
5234 |
|
5235 |
-
if ( !empty( $tax_input ) ) {
|
5236 |
foreach ( $tax_input as $taxonomy => $tags ) {
|
5237 |
-
if ( !empty( $tax_actions ) ) {
|
5238 |
$tax_action = $tax_actions[ $taxonomy ];
|
5239 |
} else {
|
5240 |
$tax_action = 'replace';
|
@@ -5283,7 +5485,7 @@ class MLAData {
|
|
5283 |
$message .= sprintf( __( 'You cannot assign "%1$s" terms', 'media-library-assistant' ) . '<br>', $taxonomy );
|
5284 |
}
|
5285 |
} // foreach $tax_input
|
5286 |
-
} // !empty $tax_input
|
5287 |
|
5288 |
if ( is_array( $new_meta ) ) {
|
5289 |
$message .= self::mla_update_item_postmeta( $post_id, $new_meta );
|
616 |
case 'choice':
|
617 |
foreach ( $node['value'] as $value ) {
|
618 |
$node_result = self::_evaluate_template_array_node( $value, $markup_values );
|
619 |
+
if ( ! empty( $node_result ) ) {
|
620 |
foreach ( $node_result as $value )
|
621 |
$result[] = $value;
|
622 |
break;
|
684 |
case 'choice':
|
685 |
foreach ( $node['value'] as $value ) {
|
686 |
$results = self::_evaluate_template_node( $value, $markup_values );
|
687 |
+
if ( ! empty( $results ) ) {
|
688 |
return $results;
|
689 |
}
|
690 |
}
|
1381 |
$clean_request[ $key ] = $value;
|
1382 |
}
|
1383 |
|
1384 |
+
break;
|
1385 |
+
case 'mla_terms_search':
|
1386 |
+
if ( ! empty( $value['phrases'] ) && ! empty( $value['taxonomies'] ) ) {
|
1387 |
+
$value['phrases'] = stripslashes( trim( $value['phrases'] ) );
|
1388 |
+
if ( ! empty( $value['phrases'] ) ) {
|
1389 |
+
$clean_request[ $key ] = $value;
|
1390 |
+
}
|
1391 |
+
}
|
1392 |
break;
|
1393 |
case 'mla_search_connector':
|
1394 |
case 'mla_search_fields':
|
1446 |
self::$query_parameters['mla-metavalue'] = $clean_request['mla-metavalue'];
|
1447 |
}
|
1448 |
|
1449 |
+
/*
|
1450 |
+
* We will handle "Terms Search" in the mla_query_posts_search_filter.
|
1451 |
+
*/
|
1452 |
+
if ( isset( $clean_request['mla_terms_search'] ) ) {
|
1453 |
+
self::$query_parameters['mla_terms_search'] = $clean_request['mla_terms_search'];
|
1454 |
+
|
1455 |
+
/*
|
1456 |
+
* The Terms Search overrides any terms-based keyword search for now; too complicated.
|
1457 |
+
*/
|
1458 |
+
if ( isset( $clean_request['mla_search_fields'] ) ) {
|
1459 |
+
foreach ( $clean_request['mla_search_fields'] as $index => $field ) {
|
1460 |
+
if ( 'terms' == $field ) {
|
1461 |
+
unset ( $clean_request['mla_search_fields'][ $index ] );
|
1462 |
+
}
|
1463 |
+
}
|
1464 |
+
}
|
1465 |
+
}
|
1466 |
+
|
1467 |
/*
|
1468 |
* We will handle keyword search in the mla_query_posts_search_filter.
|
|
|
1469 |
*/
|
1470 |
if ( isset( $clean_request['s'] ) ) {
|
1471 |
+
self::$query_parameters['s'] = $clean_request['s'];
|
1472 |
+
self::$query_parameters['mla_search_connector'] = $clean_request['mla_search_connector'];
|
1473 |
+
self::$query_parameters['mla_search_fields'] = $clean_request['mla_search_fields'];
|
1474 |
+
self::$query_parameters['sentence'] = isset( $clean_request['sentence'] );
|
1475 |
+
self::$query_parameters['exact'] = isset( $clean_request['exact'] );
|
1476 |
+
|
1477 |
+
if ( in_array( 'alt-text', self::$query_parameters['mla_search_fields'] ) ) {
|
1478 |
+
self::$query_parameters['use_postmeta_view'] = true;
|
1479 |
+
self::$query_parameters['postmeta_key'] = '_wp_attachment_image_alt';
|
1480 |
+
}
|
1481 |
|
1482 |
unset( $clean_request['s'] );
|
1483 |
unset( $clean_request['mla_search_connector'] );
|
1613 |
* @return object WP_Query object with query results
|
1614 |
*/
|
1615 |
private static function _execute_list_table_query( $request ) {
|
1616 |
+
global $wpdb;
|
1617 |
|
1618 |
/*
|
1619 |
* Custom fields are special; we have to use an SQL VIEW to build
|
1623 |
if ( self::$query_parameters['use_postmeta_view'] ) {
|
1624 |
$view_name = self::$mla_alt_text_view;
|
1625 |
$key_name = self::$query_parameters['postmeta_key'];
|
1626 |
+
$table_name = $wpdb->postmeta;
|
1627 |
|
1628 |
$result = $wpdb->query(
|
1629 |
"
|
1636 |
}
|
1637 |
|
1638 |
add_filter( 'posts_search', 'MLAData::mla_query_posts_search_filter', 10, 2 ); // $search, &$this
|
|
|
1639 |
add_filter( 'posts_where', 'MLAData::mla_query_posts_where_filter' );
|
1640 |
+
add_filter( 'posts_join', 'MLAData::mla_query_posts_join_filter' );
|
1641 |
+
add_filter( 'posts_groupby', 'MLAData::mla_query_posts_groupby_filter' );
|
1642 |
add_filter( 'posts_orderby', 'MLAData::mla_query_posts_orderby_filter' );
|
1643 |
|
1644 |
/*
|
1692 |
}
|
1693 |
|
1694 |
remove_filter( 'posts_orderby', 'MLAData::mla_query_posts_orderby_filter' );
|
1695 |
+
remove_filter( 'posts_groupby', 'MLAData::mla_query_posts_groupby_filter' );
|
1696 |
remove_filter( 'posts_join', 'MLAData::mla_query_posts_join_filter' );
|
1697 |
+
remove_filter( 'posts_where', 'MLAData::mla_query_posts_where_filter' );
|
1698 |
remove_filter( 'posts_search', 'MLAData::mla_query_posts_search_filter' );
|
1699 |
|
1700 |
if ( self::$query_parameters['use_postmeta_view'] ) {
|
1732 |
* @return string query clause after keyword search addition
|
1733 |
*/
|
1734 |
public static function mla_query_posts_search_filter( $search_string, &$query_object ) {
|
1735 |
+
global $wpdb;
|
1736 |
+
|
1737 |
+
$numeric_clause = '';
|
1738 |
+
$search_clause = '';
|
1739 |
+
$tax_clause = '';
|
1740 |
+
$tax_connector = 'AND';
|
1741 |
+
$tax_index = 0;
|
1742 |
+
|
1743 |
+
/*
|
1744 |
+
* Process the Terms Search arguments, if present.
|
1745 |
+
*/
|
1746 |
+
if ( isset( self::$query_parameters['mla_terms_search'] ) ) {
|
1747 |
+
$terms = array_map( 'trim', explode( ',', self::$query_parameters['mla_terms_search']['phrases'] ) );
|
1748 |
+
if ( 1 < count( $terms ) ) {
|
1749 |
+
$terms_connector = '(';
|
1750 |
+
} else {
|
1751 |
+
$terms_connector = '';
|
1752 |
+
}
|
1753 |
+
|
1754 |
+
foreach ( $terms as $term ) {
|
1755 |
+
preg_match_all('/".*?("|$)|((?<=[\t ",+])|^)[^\t ",+]+/', $term, $matches);
|
1756 |
+
$phrases = array_map('MLAData::mla_search_terms_tidy', $matches[0]);
|
1757 |
+
|
1758 |
+
$tax_terms = array();
|
1759 |
+
$tax_counts = array();
|
1760 |
+
foreach ( $phrases as $phrase ) {
|
1761 |
+
$the_terms = get_terms( self::$query_parameters['mla_terms_search']['taxonomies'], array( 'name__like' => $phrase, 'fields' => 'all', 'hide_empty' => false ) );
|
1762 |
+
foreach( $the_terms as $the_term ) {
|
1763 |
+
$tax_terms[ $the_term->taxonomy ][ $the_term->term_id ] = (integer) $the_term->term_taxonomy_id;
|
1764 |
+
|
1765 |
+
if ( isset( $tax_counts[ $the_term->taxonomy ][ $the_term->term_id ] ) ) {
|
1766 |
+
$tax_counts[ $the_term->taxonomy ][ $the_term->term_id ]++;
|
1767 |
+
} else {
|
1768 |
+
$tax_counts[ $the_term->taxonomy ][ $the_term->term_id ] = 1;
|
1769 |
+
}
|
1770 |
+
}
|
1771 |
+
} // foreach phrase
|
1772 |
+
|
1773 |
+
/*
|
1774 |
+
* For the AND connector, a taxonomy term must have all of the search terms within it
|
1775 |
+
*/
|
1776 |
+
if ( 'AND' == self::$query_parameters['mla_terms_search']['radio_phrases'] ) {
|
1777 |
+
$search_term_count = count( $phrases );
|
1778 |
+
foreach ($tax_terms as $taxonomy => $term_ids ) {
|
1779 |
+
foreach ( $term_ids as $term_id => $term_taxonomy_id ) {
|
1780 |
+
if ( $search_term_count != $tax_counts[ $taxonomy ][ $term_id ] ) {
|
1781 |
+
unset( $term_ids[ $term_id ] );
|
1782 |
+
}
|
1783 |
+
}
|
1784 |
+
|
1785 |
+
if ( empty( $term_ids ) ) {
|
1786 |
+
unset( $tax_terms[ $taxonomy ] );
|
1787 |
+
} else {
|
1788 |
+
$tax_terms[ $taxonomy ] = $term_ids;
|
1789 |
+
}
|
1790 |
+
} // foreach taxonomy
|
1791 |
+
} // AND (i.e., All phrases)
|
1792 |
+
|
1793 |
+
if ( ! empty( $tax_terms ) ) {
|
1794 |
+
$inner_connector = '';
|
1795 |
+
|
1796 |
+
$tax_clause .= $terms_connector;
|
1797 |
+
foreach( $tax_terms as $tax_term ) {
|
1798 |
+
$prefix = 'mlatt' . $tax_index++;
|
1799 |
+
$tax_clause .= sprintf( '%1$s %2$s.term_taxonomy_id IN (%3$s)', $inner_connector, $prefix, implode( ',', $tax_term ) );
|
1800 |
+
$inner_connector = ' OR';
|
1801 |
+
} // foreach tax_term
|
1802 |
+
|
1803 |
+
$terms_connector = ' ) ' . self::$query_parameters['mla_terms_search']['radio_terms'] . ' (';
|
1804 |
+
} // tax_terms present
|
1805 |
+
} // foreach term
|
1806 |
+
|
1807 |
+
if ( 1 < count( $terms ) && ! empty( $tax_clause ) ) {
|
1808 |
+
$tax_clause .= ')';
|
1809 |
+
}
|
1810 |
+
|
1811 |
+
if ( empty( $tax_clause ) ) {
|
1812 |
+
$tax_clause = '1=0';
|
1813 |
+
} else {
|
1814 |
+
self::$query_parameters['tax_terms_count'] = $tax_index;
|
1815 |
+
};
|
1816 |
+
} // isset mla_terms_search
|
1817 |
+
|
1818 |
/*
|
1819 |
* Process the keyword search argument, if present.
|
1820 |
*/
|
|
|
1821 |
if ( isset( self::$query_parameters['s'] ) ) {
|
|
|
1822 |
if ( isset( self::$query_parameters['debug'] ) ) {
|
1823 |
$debug_array = array( 's' => self::$query_parameters['s'] );
|
1824 |
} // debug
|
1838 |
self::$query_parameters['s'] = str_replace( array( "\r", "\n" ), '', self::$query_parameters['s'] );
|
1839 |
|
1840 |
if ( self::$query_parameters['sentence'] ) {
|
1841 |
+
$terms_search = array( self::$query_parameters['s'] );
|
1842 |
} else {
|
1843 |
// v3.6.1 was '/".*?("|$)|((?<=[\r\n\t ",+])|^)[^\r\n\t ",+]+/'
|
1844 |
preg_match_all('/".*?("|$)|((?<=[\t ",+])|^)[^\t ",+]+/', self::$query_parameters['s'], $matches);
|
1845 |
+
$terms_search = array_map('MLAData::mla_search_terms_tidy', $matches[0]);
|
1846 |
}
|
1847 |
|
1848 |
$fields = self::$query_parameters['mla_search_fields'];
|
1852 |
if ( empty( $fields ) ) {
|
1853 |
$search_clause = '1=0';
|
1854 |
} else {
|
1855 |
+
$tax_terms = array();
|
1856 |
+
$tax_counts = array();
|
1857 |
+
foreach ( $terms_search as $term ) {
|
1858 |
+
$term = esc_sql( like_escape( $term ) );
|
1859 |
+
$inner_connector = '';
|
1860 |
+
$inner_clause = '';
|
1861 |
+
|
1862 |
+
if ( in_array( 'content', $fields ) ) {
|
1863 |
+
$inner_clause .= "{$inner_connector}({$wpdb->posts}.post_content LIKE '{$percent}{$term}{$percent}')";
|
1864 |
$inner_connector = ' OR ';
|
1865 |
+
}
|
1866 |
+
|
1867 |
+
if ( in_array( 'title', $fields ) ) {
|
1868 |
+
$inner_clause .= "{$inner_connector}({$wpdb->posts}.post_title LIKE '{$percent}{$term}{$percent}')";
|
1869 |
$inner_connector = ' OR ';
|
1870 |
+
}
|
1871 |
+
|
1872 |
+
if ( in_array( 'excerpt', $fields ) ) {
|
1873 |
+
$inner_clause .= "{$inner_connector}({$wpdb->posts}.post_excerpt LIKE '{$percent}{$term}{$percent}')";
|
1874 |
$inner_connector = ' OR ';
|
1875 |
+
}
|
1876 |
+
|
1877 |
+
if ( in_array( 'alt-text', $fields ) ) {
|
1878 |
$view_name = self::$mla_alt_text_view;
|
1879 |
+
$inner_clause .= "{$inner_connector}({$view_name}.meta_value LIKE '{$percent}{$term}{$percent}')";
|
1880 |
$inner_connector = ' OR ';
|
1881 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1882 |
|
1883 |
+
if ( in_array( 'name', $fields ) ) {
|
1884 |
+
$inner_clause .= "{$inner_connector}({$wpdb->posts}.post_name LIKE '{$percent}{$term}{$percent}')";
|
1885 |
+
}
|
|
|
|
|
1886 |
|
1887 |
+
if ( ! empty($inner_clause) ) {
|
1888 |
+
$search_clause .= "{$connector}({$inner_clause})";
|
1889 |
+
$connector = ' ' . self::$query_parameters['mla_search_connector'] . ' ';
|
1890 |
+
}
|
1891 |
|
1892 |
+
/*
|
1893 |
+
* Convert search term text to term_taxonomy_id value(s),
|
1894 |
+
* separated by taxonomy.
|
1895 |
+
*/
|
1896 |
+
if ( in_array( 'terms', $fields ) ) {
|
1897 |
+
$the_terms = get_terms( MLAOptions::mla_supported_taxonomies( 'term-search' ), array( 'name__like' => $term, 'fields' => 'all', 'hide_empty' => false ) );
|
1898 |
+
foreach( $the_terms as $the_term ) {
|
1899 |
+
$tax_terms[ $the_term->taxonomy ][ $the_term->term_id ] = (integer) $the_term->term_taxonomy_id;
|
|
|
1900 |
|
1901 |
+
if ( isset( $tax_counts[ $the_term->taxonomy ][ $the_term->term_id ] ) ) {
|
1902 |
+
$tax_counts[ $the_term->taxonomy ][ $the_term->term_id ]++;
|
1903 |
+
} else {
|
1904 |
+
$tax_counts[ $the_term->taxonomy ][ $the_term->term_id ] = 1;
|
1905 |
+
}
|
1906 |
+
}
|
1907 |
+
} // in_array terms
|
1908 |
+
} // foreach term
|
1909 |
+
|
1910 |
+
if ( in_array( 'terms', $fields ) ) {
|
1911 |
+
/*
|
1912 |
+
* For the AND connector, a taxonomy term must have all of the search terms within it
|
1913 |
+
*/
|
1914 |
+
if ( 'AND' == self::$query_parameters['mla_search_connector'] ) {
|
1915 |
+
$search_term_count = count( $terms_search );
|
1916 |
+
foreach ($tax_terms as $taxonomy => $term_ids ) {
|
1917 |
+
foreach ( $term_ids as $term_id => $term_taxonomy_id ) {
|
1918 |
+
if ( $search_term_count != $tax_counts[ $taxonomy ][ $term_id ] ) {
|
1919 |
+
unset( $term_ids[ $term_id ] );
|
1920 |
+
}
|
1921 |
+
}
|
1922 |
|
1923 |
+
if ( empty( $term_ids ) ) {
|
1924 |
+
unset( $tax_terms[ $taxonomy ] );
|
1925 |
+
} else {
|
1926 |
+
$tax_terms[ $taxonomy ] = $term_ids;
|
1927 |
+
}
|
1928 |
+
} // foreach taxonomy
|
1929 |
+
} // AND connector
|
1930 |
+
|
1931 |
+
if ( ! empty( $tax_terms ) ) {
|
1932 |
+
self::$query_parameters['tax_terms'] = $tax_terms;
|
1933 |
+
$tax_index = 0;
|
1934 |
+
$inner_connector = '';
|
1935 |
+
|
1936 |
+
foreach( self::$query_parameters['tax_terms'] as $tax_term ) {
|
1937 |
+
$prefix = 'mlatt' . $tax_index++;
|
1938 |
+
$tax_clause .= sprintf( '%1$s %2$s.term_taxonomy_id IN (%3$s)', $inner_connector, $prefix, implode( ',', $tax_term ) );
|
1939 |
+
$inner_connector = ' OR';
|
1940 |
+
} // foreach tax_term
|
1941 |
+
|
1942 |
+
self::$query_parameters['tax_terms_count'] = $tax_index;
|
1943 |
+
$tax_connector = 'OR';
|
1944 |
+
} // tax_terms present
|
1945 |
+
} // terms in fields
|
1946 |
+
} // fields not empty
|
1947 |
+
} // isset 's'
|
1948 |
|
1949 |
+
if ( ! empty( $tax_clause ) && ! empty( $search_clause ) ) {
|
1950 |
+
$tax_clause = " {$tax_connector} ({$tax_clause} )";
|
1951 |
}
|
1952 |
|
1953 |
+
if ( ! empty( $search_clause ) || ! empty( $tax_clause ) ) {
|
1954 |
+
$search_clause = " AND ( {$numeric_clause}{$search_clause}{$tax_clause} ) ";
|
1955 |
+
|
1956 |
+
if ( ! is_user_logged_in() ) {
|
1957 |
+
$post_password = $wpdb->posts.post_password;
|
1958 |
+
$search_clause .= " AND ( {$post_password} = '' ) ";
|
1959 |
+
}
|
|
|
1960 |
}
|
1961 |
|
1962 |
if ( isset( self::$query_parameters['debug'] ) ) {
|
1963 |
+
$debug_array['search_clause'] = $search_clause;
|
1964 |
+
$debug_array['search_string'] = $search_string;
|
1965 |
|
1966 |
if ( 'console' == self::$query_parameters['debug'] ) {
|
1967 |
+
/* translators: 1: search filter details */
|
1968 |
+
trigger_error( sprintf( __( 'mla_query_posts_search_filter not numeric, = "%1$s".', 'media-library-assistant' ), var_export( $debug_array, true ) ), E_USER_WARNING );
|
1969 |
} else {
|
1970 |
+
/* translators: 1: search filter details */
|
1971 |
+
error_log( sprintf( _x( 'DEBUG: mla_query_posts_search_filter not numeric, = "%1$s".', 'error_log', 'media-library-assistant' ), var_export( $debug_array, true ) ), 0 );
|
1972 |
}
|
1973 |
} // debug
|
1974 |
|
1975 |
+
return $search_clause;
|
1976 |
}
|
1977 |
|
1978 |
/**
|
1988 |
* @return string query clause after "detached" item modification
|
1989 |
*/
|
1990 |
public static function mla_query_posts_where_filter( $where_clause ) {
|
1991 |
+
global $wpdb;
|
1992 |
|
1993 |
if ( isset( self::$query_parameters['debug'] ) ) {
|
1994 |
$debug_array = array( 'where_string' => $where_clause );
|
2022 |
* Unattached items require some help
|
2023 |
*/
|
2024 |
if ( self::$query_parameters['detached'] ) {
|
2025 |
+
$where_clause .= sprintf( ' AND %1$s.post_parent < 1', $wpdb->posts );
|
2026 |
}
|
2027 |
|
2028 |
if ( isset( self::$query_parameters['debug'] ) ) {
|
2029 |
$debug_array['where_clause'] = $where_clause;
|
2030 |
|
2031 |
if ( 'console' == self::$query_parameters['debug'] ) {
|
2032 |
+
/* translators: 1: where filter details */
|
2033 |
trigger_error( sprintf( __( 'mla_query_posts_where_filter = "%1$s".', 'media-library-assistant' ), var_export( $debug_array, true ) ), E_USER_WARNING );
|
2034 |
} else {
|
2035 |
+
/* translators: 1: where filter details */
|
2036 |
error_log( sprintf( _x( 'DEBUG: mla_query_posts_where_filter = "%1$s".', 'error_log', 'media-library-assistant' ), var_export( $debug_array, true ) ), 0 );
|
2037 |
}
|
2038 |
} // debug
|
2040 |
return $where_clause;
|
2041 |
}
|
2042 |
|
2043 |
+
/**
|
2044 |
+
* Adds a JOIN clause, if required, to handle sorting/searching on custom fields or ALT Text
|
2045 |
+
*
|
2046 |
+
* Defined as public because it's a filter.
|
2047 |
+
*
|
2048 |
+
* @since 0.30
|
2049 |
+
*
|
2050 |
+
* @param string query clause before modification
|
2051 |
+
*
|
2052 |
+
* @return string query clause after "LEFT JOIN view ON post_id" item modification
|
2053 |
+
*/
|
2054 |
+
public static function mla_query_posts_join_filter( $join_clause ) {
|
2055 |
+
global $wpdb;
|
2056 |
+
|
2057 |
+
if ( isset( self::$query_parameters['debug'] ) ) {
|
2058 |
+
$debug_array = array( 'join_string' => $join_clause );
|
2059 |
+
}
|
2060 |
+
|
2061 |
+
/*
|
2062 |
+
* '_wp_attachment_image_alt' is special; we have to use an SQL VIEW to
|
2063 |
+
* build an intermediate table and modify the JOIN to include posts with
|
2064 |
+
* no value for this metadata field.
|
2065 |
+
*/
|
2066 |
+
if ( self::$query_parameters['use_postmeta_view'] ) {
|
2067 |
+
$join_clause .= sprintf( ' LEFT JOIN %1$s ON (%2$s.ID = %1$s.post_id)', self::$mla_alt_text_view, $wpdb->posts );
|
2068 |
+
}
|
2069 |
+
|
2070 |
+
if ( isset( self::$query_parameters['tax_terms_count'] ) ) {
|
2071 |
+
$tax_index = 0;
|
2072 |
+
$tax_clause = '';
|
2073 |
+
|
2074 |
+
while ( $tax_index < self::$query_parameters['tax_terms_count'] ) {
|
2075 |
+
$prefix = 'mlatt' . $tax_index++;
|
2076 |
+
$tax_clause .= sprintf( ' INNER JOIN %1$s AS %2$s ON (%3$s.ID = %2$s.object_id)', $wpdb->term_relationships, $prefix, $wpdb->posts );
|
2077 |
+
}
|
2078 |
+
|
2079 |
+
$join_clause .= $tax_clause;
|
2080 |
+
}
|
2081 |
+
|
2082 |
+
if ( isset( self::$query_parameters['debug'] ) ) {
|
2083 |
+
$debug_array['join_clause'] = $join_clause;
|
2084 |
+
|
2085 |
+
if ( 'console' == self::$query_parameters['debug'] ) {
|
2086 |
+
/* translators: 1: join filter details */
|
2087 |
+
trigger_error( sprintf( __( 'mla_query_posts_join_filter = "%1$s".', 'media-library-assistant' ), var_export( $debug_array, true ) ), E_USER_WARNING );
|
2088 |
+
} else {
|
2089 |
+
/* translators: 1: join filter details */
|
2090 |
+
error_log( sprintf( _x( 'DEBUG: mla_query_posts_join_filter = "%1$s".', 'error_log', 'media-library-assistant' ), var_export( $debug_array, true ) ), 0 );
|
2091 |
+
}
|
2092 |
+
} // debug
|
2093 |
+
|
2094 |
+
return $join_clause;
|
2095 |
+
}
|
2096 |
+
|
2097 |
+
/**
|
2098 |
+
* Adds a GROUPBY clause, if required
|
2099 |
+
*
|
2100 |
+
* Taxonomy text queries require a GROUPBY clause.
|
2101 |
+
* Defined as public because it's a filter.
|
2102 |
+
*
|
2103 |
+
* @since 1.90
|
2104 |
+
*
|
2105 |
+
* @param string query clause before modification
|
2106 |
+
*
|
2107 |
+
* @return string updated query clause
|
2108 |
+
*/
|
2109 |
+
public static function mla_query_posts_groupby_filter( $groupby_clause ) {
|
2110 |
+
global $wpdb;
|
2111 |
+
|
2112 |
+
if ( isset( self::$query_parameters['tax_terms_count'] ) ) {
|
2113 |
+
$groupby_clause = "{$wpdb->posts}.ID";
|
2114 |
+
}
|
2115 |
+
|
2116 |
+
return $groupby_clause;
|
2117 |
+
}
|
2118 |
+
|
2119 |
/**
|
2120 |
* Adds a ORDERBY clause, if required
|
2121 |
*
|
2129 |
* @return string updated query clause
|
2130 |
*/
|
2131 |
public static function mla_query_posts_orderby_filter( $orderby_clause ) {
|
2132 |
+
global $wpdb;
|
2133 |
|
2134 |
if ( isset( self::$query_parameters['debug'] ) ) {
|
2135 |
$debug_array = array( 'orderby_string' => $orderby_clause );
|
2155 |
* we actually sort on the database column.
|
2156 |
*/
|
2157 |
case 'title_name':
|
2158 |
+
$orderby = $wpdb->posts . '.post_title';
|
2159 |
break;
|
2160 |
/*
|
2161 |
* The _wp_attached_file meta data value is present for all attachments, and the
|
2172 |
$orderby = self::$mla_alt_text_view . '.meta_value';
|
2173 |
break;
|
2174 |
default:
|
2175 |
+
$orderby = $wpdb->posts . '.' . self::$query_parameters['orderby'];
|
2176 |
} // $query_parameters['orderby']
|
2177 |
}
|
2178 |
|
2185 |
$debug_array['orderby_clause'] = $orderby_clause;
|
2186 |
|
2187 |
if ( 'console' == self::$query_parameters['debug'] ) {
|
2188 |
+
/* translators: 1: orderby details details */
|
2189 |
trigger_error( sprintf( __( 'mla_query_posts_orderby_filter = "%1$s".', 'media-library-assistant' ), var_export( $debug_array, true ) ), E_USER_WARNING );
|
2190 |
} else {
|
2191 |
+
/* translators: 1: orderby details details */
|
2192 |
error_log( sprintf( _x( 'DEBUG: mla_query_posts_orderby_filter = "%1$s".', 'error_log', 'media-library-assistant' ), var_export( $debug_array, true ) ), 0 );
|
2193 |
}
|
2194 |
} // debug
|
2546 |
$results[ $key ] = $post_meta_value;
|
2547 |
} // foreach $post_meta
|
2548 |
|
2549 |
+
if ( ! empty( $attached_file ) ) {
|
2550 |
$last_slash = strrpos( $attached_file, '/' );
|
2551 |
if ( false === $last_slash ) {
|
2552 |
$results['mla_wp_attached_path'] = '';
|
2651 |
|
2652 |
$attachment_metadata = get_post_meta( $ID, '_wp_attachment_metadata', true );
|
2653 |
$sizes = isset( $attachment_metadata['sizes'] ) ? $attachment_metadata['sizes'] : NULL;
|
2654 |
+
if ( ! empty( $sizes ) ) {
|
2655 |
/* Using the name as the array key ensures each name is added only once */
|
2656 |
foreach ( $sizes as $size ) {
|
2657 |
$references['files'][ $references['path'] . $size['file'] ] = $size;
|
2687 |
"
|
2688 |
);
|
2689 |
|
2690 |
+
if ( ! empty( $features ) ) {
|
2691 |
foreach ( $features as $feature ) {
|
2692 |
$feature_results = $wpdb->get_results(
|
2693 |
"
|
2697 |
"
|
2698 |
);
|
2699 |
|
2700 |
+
if ( ! empty( $feature_results ) ) {
|
2701 |
$references['found_reference'] = true;
|
2702 |
$references['features'][ $feature->post_id ] = $feature_results[0];
|
2703 |
|
2704 |
if ( $feature->post_id == $parent ) {
|
2705 |
$references['found_parent'] = true;
|
2706 |
}
|
2707 |
+
} // ! empty
|
2708 |
} // foreach $feature
|
2709 |
}
|
2710 |
} // $process_featured_in
|
2754 |
$wpdb->prepare( $query, $query_parameters )
|
2755 |
);
|
2756 |
|
2757 |
+
if ( ! empty( $inserts ) ) {
|
2758 |
$references['found_reference'] = true;
|
2759 |
$references['inserts'][ $pathinfo['filename'] ] = $inserts;
|
2760 |
|
2763 |
$references['found_parent'] = true;
|
2764 |
}
|
2765 |
} // foreach $insert
|
2766 |
+
} // ! empty
|
2767 |
} else { // process base names
|
2768 |
foreach ( $references['files'] as $file => $file_data ) {
|
2769 |
$like = like_escape( $file );
|
2774 |
)
|
2775 |
);
|
2776 |
|
2777 |
+
if ( ! empty( $inserts ) ) {
|
2778 |
$references['found_reference'] = true;
|
2779 |
$references['inserts'][ $file ] = $inserts;
|
2780 |
|
2783 |
$references['found_parent'] = true;
|
2784 |
}
|
2785 |
} // foreach $insert
|
2786 |
+
} // ! empty
|
2787 |
} // foreach $file
|
2788 |
} // process intermediate sizes
|
2789 |
} // $process_inserted_in
|
2795 |
$reference_tests++;
|
2796 |
if ( self::_build_mla_galleries( MLAOptions::MLA_MLA_GALLERY_IN_TUNING, self::$mla_galleries, '[mla_gallery', $exclude_revisions ) ) {
|
2797 |
$galleries = self::_search_mla_galleries( self::$mla_galleries, $ID );
|
2798 |
+
if ( ! empty( $galleries ) ) {
|
2799 |
$references['found_reference'] = true;
|
2800 |
$references['mla_galleries'] = $galleries;
|
2801 |
|
2804 |
$references['found_parent'] = true;
|
2805 |
}
|
2806 |
} // foreach $gallery
|
2807 |
+
} else { // ! empty
|
2808 |
$references['mla_galleries'] = array();
|
2809 |
}
|
2810 |
}
|
2817 |
$reference_tests++;
|
2818 |
if ( self::_build_mla_galleries( MLAOptions::MLA_GALLERY_IN_TUNING, self::$galleries, '[gallery', $exclude_revisions ) ) {
|
2819 |
$galleries = self::_search_mla_galleries( self::$galleries, $ID );
|
2820 |
+
if ( ! empty( $galleries ) ) {
|
2821 |
$references['found_reference'] = true;
|
2822 |
$references['galleries'] = $galleries;
|
2823 |
|
2826 |
$references['found_parent'] = true;
|
2827 |
}
|
2828 |
} // foreach $gallery
|
2829 |
+
} else { // ! empty
|
2830 |
$references['galleries'] = array();
|
2831 |
}
|
2832 |
}
|
2847 |
$errors .= '(' . sprintf( __( 'ORPHAN', 'media-library-assistant' ) . '%1$s) ', $suffix );
|
2848 |
}
|
2849 |
|
2850 |
+
if ( !$references['found_parent'] && ! empty( $references['parent_title'] ) ) {
|
2851 |
$errors .= '(' . sprintf( __( 'UNUSED', 'media-library-assistant' ) . '%1$s) ', $suffix );
|
2852 |
}
|
2853 |
}
|
3070 |
$gallery_refs[ $parent_id ] = array ( 'post_title' => $gallery['parent_title'], 'post_type' => $gallery['parent_type'] );
|
3071 |
}
|
3072 |
} // foreach gallery
|
3073 |
+
} // ! empty
|
3074 |
|
3075 |
return $gallery_refs;
|
3076 |
}
|
4790 |
//error_log( 'mla_IPTC_EXIF_error_handler $string = ' . var_export( $string, true ), 0 );
|
4791 |
//error_log( 'mla_IPTC_EXIF_error_handler $file = ' . var_export( $file, true ), 0 );
|
4792 |
//error_log( 'mla_IPTC_EXIF_error_handler $line = ' . var_export( $line, true ), 0 );
|
4793 |
+
|
4794 |
switch ( $type ) {
|
4795 |
case E_ERROR:
|
4796 |
$level = 'E_ERROR';
|
4804 |
default:
|
4805 |
$level = 'OTHER';
|
4806 |
}
|
4807 |
+
|
4808 |
$path_info = pathinfo( $file );
|
4809 |
$file_name = $path_info['basename'];
|
4810 |
MLAData::$mla_IPTC_EXIF_errors[] = "{$level} ({$type}) - {$string} [{$file_name} : {$line}]";
|
4811 |
+
|
4812 |
/* Don't execute PHP internal error handler */
|
4813 |
return true;
|
4814 |
}
|
4844 |
$size = getimagesize( $path, $info );
|
4845 |
|
4846 |
if ( is_callable( 'iptcparse' ) ) {
|
4847 |
+
if ( ! empty( $info['APP13'] ) ) {
|
4848 |
//set_error_handler( 'MLAData::mla_IPTC_EXIF_error_handler' );
|
4849 |
$iptc_values = iptcparse( $info['APP13'] );
|
4850 |
//restore_error_handler();
|
4851 |
+
|
4852 |
if ( ! empty( MLAData::$mla_IPTC_EXIF_errors ) ) {
|
4853 |
$results['mla_iptc_errors'] = MLAData::$mla_IPTC_EXIF_errors;
|
4854 |
MLAData::$mla_IPTC_EXIF_errors = array();
|
4855 |
error_log( 'ERROR: $results[mla_iptc_errors] = ' . var_export( $results['mla_exif_errors'], true ), 0 );
|
4856 |
}
|
4857 |
+
|
4858 |
if ( ! is_array( $iptc_values ) ) {
|
4859 |
$iptc_values = array();
|
4860 |
}
|
4869 |
$results['mla_iptc_metadata'][ $key ] = $value;
|
4870 |
}
|
4871 |
} // foreach $value
|
4872 |
+
} // ! empty
|
4873 |
}
|
4874 |
|
4875 |
if ( is_callable( 'exif_read_data' ) && in_array( $size[2], array( IMAGETYPE_JPEG, IMAGETYPE_TIFF_II, IMAGETYPE_TIFF_MM ) ) ) {
|
4876 |
//set_error_handler( 'MLAData::mla_IPTC_EXIF_error_handler' );
|
4877 |
$results['mla_exif_metadata'] = $exif_data = @exif_read_data( $path );
|
4878 |
//restore_error_handler();
|
4879 |
+
|
4880 |
if ( ! empty( MLAData::$mla_IPTC_EXIF_errors ) ) {
|
4881 |
$results['mla_exif_errors'] = MLAData::$mla_IPTC_EXIF_errors;
|
4882 |
MLAData::$mla_IPTC_EXIF_errors = array();
|
5434 |
} // switch $key
|
5435 |
} // foreach $new_data
|
5436 |
|
5437 |
+
if ( ! empty( $tax_input ) ) {
|
5438 |
foreach ( $tax_input as $taxonomy => $tags ) {
|
5439 |
+
if ( ! empty( $tax_actions ) ) {
|
5440 |
$tax_action = $tax_actions[ $taxonomy ];
|
5441 |
} else {
|
5442 |
$tax_action = 'replace';
|
5485 |
$message .= sprintf( __( 'You cannot assign "%1$s" terms', 'media-library-assistant' ) . '<br>', $taxonomy );
|
5486 |
}
|
5487 |
} // foreach $tax_input
|
5488 |
+
} // ! empty $tax_input
|
5489 |
|
5490 |
if ( is_array( $new_meta ) ) {
|
5491 |
$message .= self::mla_update_item_postmeta( $post_id, $new_meta );
|
includes/class-mla-edit-media.php
CHANGED
@@ -176,7 +176,8 @@ class MLAEdit {
|
|
176 |
if ( version_compare( get_bloginfo( 'version' ), '3.9', '>=' ) ) {
|
177 |
$script_variables['setParentDataType'] = 'json';
|
178 |
} else {
|
179 |
-
$script_variables['setParentDataType'] = 'xml';
|
|
|
180 |
}
|
181 |
|
182 |
if ( version_compare( get_bloginfo( 'version' ), '3.8', '>=' ) ) {
|
@@ -419,35 +420,7 @@ class MLAEdit {
|
|
419 |
echo '<td><label class="screen-reader-text" for="mla_parent_info">' . __( 'Select Parent', 'media-library-assistant' ) . '</label><input id="mla_set_parent" class="button-primary parent" type="button" name="post_parent_set" value="' . __( 'Select', 'media-library-assistant' ) . '" /></td>';
|
420 |
echo '</tr></table>';
|
421 |
|
422 |
-
|
423 |
-
if ( ! array( $set_parent_template ) ) {
|
424 |
-
/* translators: 1: function name 2: non-array value */
|
425 |
-
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 );
|
426 |
-
return '';
|
427 |
-
}
|
428 |
-
|
429 |
-
$query_args = array( 'post' => $post->ID, 'action' => 'edit' );
|
430 |
-
if ( isset( $_REQUEST['mla_source'] ) ) {
|
431 |
-
$query_args['mla_source'] = $_REQUEST['mla_source'];
|
432 |
-
}
|
433 |
-
|
434 |
-
$page_values = array(
|
435 |
-
'Select Parent' => __( 'Select Parent', 'media-library-assistant' ),
|
436 |
-
'Search' => __( 'Search', 'media-library-assistant' ),
|
437 |
-
'For' => __( 'For', 'media-library-assistant' ),
|
438 |
-
'Unattached' => __( 'Unattached', 'media-library-assistant' ),
|
439 |
-
'mla_find_posts_nonce' => wp_nonce_field( 'find-posts', 'mla-set-parent-ajax-nonce', false ),
|
440 |
-
);
|
441 |
-
|
442 |
-
ob_start();
|
443 |
-
submit_button( __( 'Cancel', 'media-library-assistant' ), 'button-secondary cancel alignleft', 'mla-set-parent-cancel', false );
|
444 |
-
$page_values['mla_set_parent_cancel'] = ob_get_clean();
|
445 |
-
|
446 |
-
ob_start();
|
447 |
-
submit_button( __( 'Update', 'media-library-assistant' ), 'button-primary alignright', 'mla-set-parent-submit', false );
|
448 |
-
$page_values['mla_set_parent_update'] = ob_get_clean();
|
449 |
-
|
450 |
-
echo MLAData::mla_parse_template( $set_parent_template['mla-set-parent-div'], $page_values );
|
451 |
}
|
452 |
|
453 |
/**
|
176 |
if ( version_compare( get_bloginfo( 'version' ), '3.9', '>=' ) ) {
|
177 |
$script_variables['setParentDataType'] = 'json';
|
178 |
} else {
|
179 |
+
// $script_variables['setParentDataType'] = 'xml';
|
180 |
+
$script_variables['setParentDataType'] = 'json';
|
181 |
}
|
182 |
|
183 |
if ( version_compare( get_bloginfo( 'version' ), '3.8', '>=' ) ) {
|
420 |
echo '<td><label class="screen-reader-text" for="mla_parent_info">' . __( 'Select Parent', 'media-library-assistant' ) . '</label><input id="mla_set_parent" class="button-primary parent" type="button" name="post_parent_set" value="' . __( 'Select', 'media-library-assistant' ) . '" /></td>';
|
421 |
echo '</tr></table>';
|
422 |
|
423 |
+
echo MLA::mla_set_parent_form( false );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
424 |
}
|
425 |
|
426 |
/**
|
includes/class-mla-list-table.php
CHANGED
@@ -307,11 +307,77 @@ class MLA_List_Table extends WP_List_Table {
|
|
307 |
*
|
308 |
* @return array Updated list of available list table views
|
309 |
*/
|
310 |
-
public
|
311 |
$views = apply_filters( "views_upload", $views );
|
312 |
return $views;
|
313 |
}
|
314 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
315 |
/**
|
316 |
* Builds the $default_columns array with translated source texts.
|
317 |
*
|
@@ -389,6 +455,8 @@ class MLA_List_Table extends WP_List_Table {
|
|
389 |
* @return void
|
390 |
*/
|
391 |
function __construct( ) {
|
|
|
|
|
392 |
$this->detached = isset( $_REQUEST['detached'] );
|
393 |
$this->is_trash = isset( $_REQUEST['status'] ) && $_REQUEST['status'] == 'trash';
|
394 |
|
@@ -406,9 +474,15 @@ class MLA_List_Table extends WP_List_Table {
|
|
406 |
* NOTE: There is one add_action call at the end of this source file.
|
407 |
* NOTE: There are two add_filter calls at the end of this source file.
|
408 |
*
|
409 |
-
*
|
410 |
* object is created too late to be useful.
|
411 |
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
412 |
}
|
413 |
|
414 |
/**
|
@@ -528,7 +602,7 @@ class MLA_List_Table extends WP_List_Table {
|
|
528 |
$thumb = preg_replace( '/width=\"[^\"]*\"/', sprintf( 'width="%1$d"', $dimensions[1] ), $thumb );
|
529 |
$thumb = preg_replace( '/height=\"[^\"]*\"/', sprintf( 'height="%1$d"', $dimensions[0] ), $thumb );
|
530 |
}
|
531 |
-
|
532 |
if ( $this->is_trash || ! current_user_can( 'edit_post', $item->ID ) ) {
|
533 |
return $thumb;
|
534 |
}
|
@@ -1141,20 +1215,19 @@ class MLA_List_Table extends WP_List_Table {
|
|
1141 |
} else {
|
1142 |
$parent_date = '';
|
1143 |
}
|
1144 |
-
|
1145 |
if ( isset( $item->parent_type ) ) {
|
1146 |
$parent_type = '(' . $item->parent_type . ' ' . (string) $item->post_parent . ')';
|
1147 |
} else {
|
1148 |
$parent_type = '';
|
1149 |
}
|
1150 |
-
|
1151 |
$parent = sprintf( '%1$s<br>%2$s<br>%3$s', /*%1$s*/ $parent_title, /*%2$s*/ mysql2date( __( 'Y/m/d', 'media-library-assistant' ), $parent_date ), /*%3$s*/ $parent_type ); // . "<br>\r\n";
|
1152 |
} else {
|
1153 |
$parent = '(' . _x( 'Unattached', 'post_mime_types_singular', 'media-library-assistant' ) . ')';
|
1154 |
}
|
1155 |
-
|
1156 |
-
|
1157 |
-
$set_parent = sprintf( '<a class="hide-if-no-js" id="mla-child-%2$s" onclick="mla.inlineEditAttachment.tableParentOpen( \'%1$s\',\'%2$s\',\'%3$s\' ); return false;" href="#the-list">%4$s</a><br>', /*%1$s*/ $item->post_parent, /*%2$s*/ $item->ID, /*%3$s*/ esc_attr( $item->post_title ), __( 'Set Parent', 'media-library-assistant' ) );
|
1158 |
|
1159 |
return $parent . "<br>\n" . $set_parent . "\n";
|
1160 |
}
|
@@ -1202,8 +1275,14 @@ class MLA_List_Table extends WP_List_Table {
|
|
1202 |
*/
|
1203 |
if ( !empty( $_REQUEST['s'] ) ) {
|
1204 |
$submenu_arguments['s'] = $_REQUEST['s'];
|
1205 |
-
|
1206 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
1207 |
}
|
1208 |
|
1209 |
/*
|
@@ -1470,6 +1549,7 @@ class MLA_List_Table extends WP_List_Table {
|
|
1470 |
if ( isset( $query['post_mime_type'] ) ) {
|
1471 |
$query['post_mime_type'] = urlencode( $query['post_mime_type'] );
|
1472 |
} else {
|
|
|
1473 |
$query['meta_query'] = urlencode( serialize( $query['meta_query'] ) );
|
1474 |
}
|
1475 |
|
@@ -1584,6 +1664,10 @@ class MLA_List_Table extends WP_List_Table {
|
|
1584 |
submit_button( __( 'Filter', 'media-library-assistant' ), 'secondary', 'mla_filter', false, array(
|
1585 |
'id' => 'post-query-submit'
|
1586 |
) );
|
|
|
|
|
|
|
|
|
1587 |
}
|
1588 |
|
1589 |
if ( self::mla_submenu_arguments( true ) != self::mla_submenu_arguments( false ) ) {
|
@@ -1667,12 +1751,11 @@ class MLA_List_Table extends WP_List_Table {
|
|
1667 |
} // class MLA_List_Table
|
1668 |
|
1669 |
/*
|
1670 |
-
*
|
1671 |
-
* object is created too late to be useful.
|
1672 |
*/
|
1673 |
add_action( 'admin_init', 'MLA_List_Table::mla_admin_init_action' );
|
1674 |
|
1675 |
add_filter( 'get_user_option_managemedia_page_' . MLA::ADMIN_PAGE_SLUG . 'columnshidden', 'MLA_List_Table::mla_manage_hidden_columns_filter', 10, 3 );
|
1676 |
add_filter( 'manage_media_page_' . MLA::ADMIN_PAGE_SLUG . '_columns', 'MLA_List_Table::mla_manage_columns_filter', 10, 0 );
|
1677 |
-
add_filter( 'views_media_page_mla-menu', 'MLA_List_Table::mla_views_media_page_mla_menu_filter', 0x7FFFFFFF, 1 );
|
1678 |
?>
|
307 |
*
|
308 |
* @return array Updated list of available list table views
|
309 |
*/
|
310 |
+
public function mla_views_media_page_mla_menu_filter( $views ) {
|
311 |
$views = apply_filters( "views_upload", $views );
|
312 |
return $views;
|
313 |
}
|
314 |
|
315 |
+
/**
|
316 |
+
* Handler for filter "wpml-media_view-upload-count" in /plugins/wpml-media/inc/wpml-media.class.php
|
317 |
+
*
|
318 |
+
* Computes the number of attachments that satisfy a meta_query specification.
|
319 |
+
* The count is automatically made language-specific by WPML filters.
|
320 |
+
*
|
321 |
+
* @since 1.90
|
322 |
+
*
|
323 |
+
* @param NULL default return value if not replacing count
|
324 |
+
* @param string key/slug value for the selected view
|
325 |
+
* @param string HTML <a></a> tag for the link to the selected view
|
326 |
+
* @param string language code, e.g., 'en', 'es'
|
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 ) {
|
334 |
+
wp_parse_str( $href_matches[3], $href_args );
|
335 |
+
|
336 |
+
if ( isset( $href_args['meta_query'] ) ) {
|
337 |
+
$meta_view = self::_get_view( $key, '' );
|
338 |
+
// extract the count value
|
339 |
+
$href_count = preg_match( '/class="count">\(([^\)]*)\)/', $meta_view, $href_matches );
|
340 |
+
if ( $href_count ) {
|
341 |
+
$count = array( $href_matches[1] );
|
342 |
+
}
|
343 |
+
}
|
344 |
+
}
|
345 |
+
|
346 |
+
return $count;
|
347 |
+
}
|
348 |
+
|
349 |
+
/**
|
350 |
+
* Handler for filter "wpml-media_view-upload-page-count" in /plugins/wpml-media/inc/wpml-media.class.php
|
351 |
+
*
|
352 |
+
* Computes the number of language-specific attachments that satisfy a meta_query specification.
|
353 |
+
* The count is made language-specific by WPML filters when the current_language is set.
|
354 |
+
*
|
355 |
+
* @since 1.90
|
356 |
+
*
|
357 |
+
* @param NULL default return value if not replacing count
|
358 |
+
* @param string language code, e.g., 'en', 'es'
|
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'] ) ) {
|
366 |
+
$save_lang = $sitepress->get_current_language();
|
367 |
+
$sitepress->switch_lang( $lang['code'] );
|
368 |
+
$meta_view = self::_get_view( $_GET['meta_slug'], '' );
|
369 |
+
$sitepress->switch_lang( $save_lang );
|
370 |
+
|
371 |
+
// extract the count value
|
372 |
+
$href_count = preg_match( '/class="count">\(([^\)]*)\)/', $meta_view, $href_matches );
|
373 |
+
if ( $href_count ) {
|
374 |
+
$count = array( $href_matches[1] );
|
375 |
+
}
|
376 |
+
}
|
377 |
+
|
378 |
+
return $count;
|
379 |
+
}
|
380 |
+
|
381 |
/**
|
382 |
* Builds the $default_columns array with translated source texts.
|
383 |
*
|
455 |
* @return void
|
456 |
*/
|
457 |
function __construct( ) {
|
458 |
+
global $sitepress;
|
459 |
+
|
460 |
$this->detached = isset( $_REQUEST['detached'] );
|
461 |
$this->is_trash = isset( $_REQUEST['status'] ) && $_REQUEST['status'] == 'trash';
|
462 |
|
474 |
* NOTE: There is one add_action call at the end of this source file.
|
475 |
* NOTE: There are two add_filter calls at the end of this source file.
|
476 |
*
|
477 |
+
* They are added when the source file is loaded because the MLA_List_Table
|
478 |
* object is created too late to be useful.
|
479 |
*/
|
480 |
+
|
481 |
+
if ( is_object( $sitepress ) ) {
|
482 |
+
add_filter( 'views_media_page_mla-menu', array( $this, 'mla_views_media_page_mla_menu_filter' ), 10, 1 );
|
483 |
+
add_filter( 'wpml-media_view-upload-count', array( $this, 'mla_wpml_media_view_upload_count_filter' ), 10, 4 );
|
484 |
+
add_filter( 'wpml-media_view-upload-page-count', array( $this, 'mla_wpml_media_view_upload_page_count_filter' ), 10, 2 );
|
485 |
+
}
|
486 |
}
|
487 |
|
488 |
/**
|
602 |
$thumb = preg_replace( '/width=\"[^\"]*\"/', sprintf( 'width="%1$d"', $dimensions[1] ), $thumb );
|
603 |
$thumb = preg_replace( '/height=\"[^\"]*\"/', sprintf( 'height="%1$d"', $dimensions[0] ), $thumb );
|
604 |
}
|
605 |
+
|
606 |
if ( $this->is_trash || ! current_user_can( 'edit_post', $item->ID ) ) {
|
607 |
return $thumb;
|
608 |
}
|
1215 |
} else {
|
1216 |
$parent_date = '';
|
1217 |
}
|
1218 |
+
|
1219 |
if ( isset( $item->parent_type ) ) {
|
1220 |
$parent_type = '(' . $item->parent_type . ' ' . (string) $item->post_parent . ')';
|
1221 |
} else {
|
1222 |
$parent_type = '';
|
1223 |
}
|
1224 |
+
|
1225 |
$parent = sprintf( '%1$s<br>%2$s<br>%3$s', /*%1$s*/ $parent_title, /*%2$s*/ mysql2date( __( 'Y/m/d', 'media-library-assistant' ), $parent_date ), /*%3$s*/ $parent_type ); // . "<br>\r\n";
|
1226 |
} else {
|
1227 |
$parent = '(' . _x( 'Unattached', 'post_mime_types_singular', 'media-library-assistant' ) . ')';
|
1228 |
}
|
1229 |
+
|
1230 |
+
$set_parent = sprintf( '<a class="hide-if-no-js" id="mla-child-%2$s" onclick="mla.inlineEditAttachment.tableParentOpen( \'%1$s\',\'%2$s\',\'%3$s\' ); return false;" href="#the-list">%4$s</a><br>', /*%1$s*/ $item->post_parent, /*%2$s*/ $item->ID, /*%3$s*/ esc_attr( $item->post_title ), /*%4$s*/ __( 'Set Parent', 'media-library-assistant' ) );
|
|
|
1231 |
|
1232 |
return $parent . "<br>\n" . $set_parent . "\n";
|
1233 |
}
|
1275 |
*/
|
1276 |
if ( !empty( $_REQUEST['s'] ) ) {
|
1277 |
$submenu_arguments['s'] = $_REQUEST['s'];
|
1278 |
+
|
1279 |
+
if ( isset( $_REQUEST['mla_search_connector'] ) ) {
|
1280 |
+
$submenu_arguments['mla_search_connector'] = $_REQUEST['mla_search_connector'];
|
1281 |
+
}
|
1282 |
+
|
1283 |
+
if ( isset( $_REQUEST['mla_search_fields'] ) ) {
|
1284 |
+
$submenu_arguments['mla_search_fields'] = $_REQUEST['mla_search_fields'];
|
1285 |
+
}
|
1286 |
}
|
1287 |
|
1288 |
/*
|
1549 |
if ( isset( $query['post_mime_type'] ) ) {
|
1550 |
$query['post_mime_type'] = urlencode( $query['post_mime_type'] );
|
1551 |
} else {
|
1552 |
+
$query['meta_slug'] = $view_slug;
|
1553 |
$query['meta_query'] = urlencode( serialize( $query['meta_query'] ) );
|
1554 |
}
|
1555 |
|
1664 |
submit_button( __( 'Filter', 'media-library-assistant' ), 'secondary', 'mla_filter', false, array(
|
1665 |
'id' => 'post-query-submit'
|
1666 |
) );
|
1667 |
+
|
1668 |
+
submit_button( __( 'Terms Search', 'media-library-assistant' ), 'secondary', 'mla_filter', false, array(
|
1669 |
+
'id' => 'mla-terms-search-open', 'onclick' => 'mlaTaxonomy.termsSearch.open()'
|
1670 |
+
) );
|
1671 |
}
|
1672 |
|
1673 |
if ( self::mla_submenu_arguments( true ) != self::mla_submenu_arguments( false ) ) {
|
1751 |
} // class MLA_List_Table
|
1752 |
|
1753 |
/*
|
1754 |
+
* Some actions and filters are added here, when the source file is loaded, because the
|
1755 |
+
* MLA_List_Table object is created too late to be useful.
|
1756 |
*/
|
1757 |
add_action( 'admin_init', 'MLA_List_Table::mla_admin_init_action' );
|
1758 |
|
1759 |
add_filter( 'get_user_option_managemedia_page_' . MLA::ADMIN_PAGE_SLUG . 'columnshidden', 'MLA_List_Table::mla_manage_hidden_columns_filter', 10, 3 );
|
1760 |
add_filter( 'manage_media_page_' . MLA::ADMIN_PAGE_SLUG . '_columns', 'MLA_List_Table::mla_manage_columns_filter', 10, 0 );
|
|
|
1761 |
?>
|
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
|
@@ -166,6 +166,15 @@ class MLA {
|
|
166 |
*/
|
167 |
const MLA_ADMIN_SET_PARENT = 'set_parent';
|
168 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
169 |
/**
|
170 |
* Holds screen ids to match help text to corresponding screen
|
171 |
*
|
@@ -242,11 +251,11 @@ class MLA {
|
|
242 |
*/
|
243 |
if ( !empty( $_REQUEST['mla_admin_action'] ) ) {
|
244 |
if ( isset( $_REQUEST['mla-set-parent-ajax-nonce'] ) ) {
|
245 |
-
check_admin_referer( '
|
246 |
} else {
|
247 |
check_admin_referer( self::MLA_ADMIN_NONCE );
|
248 |
}
|
249 |
-
|
250 |
|
251 |
switch ( $_REQUEST['mla_admin_action'] ) {
|
252 |
case self::MLA_ADMIN_SINGLE_CUSTOM_FIELD_MAP:
|
@@ -274,6 +283,7 @@ class MLA {
|
|
274 |
|
275 |
add_action( 'wp_ajax_' . self::JAVASCRIPT_INLINE_EDIT_SLUG, 'MLA::mla_inline_edit_ajax_action' );
|
276 |
add_action( 'wp_ajax_' . self::JAVASCRIPT_INLINE_EDIT_SLUG . '-set-parent', 'MLA::mla_set_parent_ajax_action' );
|
|
|
277 |
}
|
278 |
|
279 |
/**
|
@@ -324,6 +334,8 @@ class MLA {
|
|
324 |
wp_enqueue_script( self::JAVASCRIPT_INLINE_EDIT_SLUG . '-set-parent', MLA_PLUGIN_URL . "js/mla-set-parent-scripts{$suffix}.js",
|
325 |
array( 'wp-lists', 'suggest', 'jquery', self::JAVASCRIPT_INLINE_EDIT_SLUG ), self::CURRENT_MLA_VERSION, false );
|
326 |
|
|
|
|
|
327 |
$fields = array( 'post_title', 'post_name', 'post_excerpt', 'post_content', 'image_alt', 'post_parent', 'post_parent_title', 'menu_order', 'post_author' );
|
328 |
$custom_fields = MLAOptions::mla_custom_field_support( 'quick_edit' );
|
329 |
$custom_fields = array_merge( $custom_fields, MLAOptions::mla_custom_field_support( 'bulk_edit' ) );
|
@@ -336,8 +348,9 @@ class MLA {
|
|
336 |
'ajaxFailError' => __( 'An ajax.fail error has occurred. Please reload the page and try again.', 'media-library-assistant' ),
|
337 |
'ajaxDoneError' => __( 'An ajax.done error has occurred. Please reload the page and try again.', 'media-library-assistant' ),
|
338 |
'error' => __( 'Error while saving the changes.', 'media-library-assistant' ),
|
339 |
-
'
|
340 |
-
'
|
|
|
341 |
'comma' => _x( ',', 'tag_delimiter', 'media-library-assistant' ),
|
342 |
'ajax_action' => self::JAVASCRIPT_INLINE_EDIT_SLUG,
|
343 |
'ajax_nonce' => wp_create_nonce( self::MLA_ADMIN_NONCE )
|
@@ -346,13 +359,8 @@ class MLA {
|
|
346 |
if ( version_compare( get_bloginfo( 'version' ), '3.9', '>=' ) ) {
|
347 |
$script_variables['setParentDataType'] = 'json';
|
348 |
} else {
|
349 |
-
$script_variables['setParentDataType'] = 'xml';
|
350 |
-
|
351 |
-
|
352 |
-
if ( version_compare( get_bloginfo( 'version' ), '3.8', '>=' ) ) {
|
353 |
-
$script_variables['useDashicons'] = true;
|
354 |
-
} else {
|
355 |
-
$script_variables['useDashicons'] = false;
|
356 |
}
|
357 |
|
358 |
wp_localize_script( self::JAVASCRIPT_INLINE_EDIT_SLUG, self::JAVASCRIPT_INLINE_EDIT_OBJECT, $script_variables );
|
@@ -385,12 +393,12 @@ class MLA {
|
|
385 |
if ( empty( $page_title ) ) {
|
386 |
$page_title = MLAOptions::mla_get_option( MLAOptions::MLA_SCREEN_PAGE_TITLE, true );
|
387 |
}
|
388 |
-
|
389 |
$menu_title = MLAOptions::mla_get_option( MLAOptions::MLA_SCREEN_MENU_TITLE );
|
390 |
if ( empty( $menu_title ) ) {
|
391 |
$menu_title = MLAOptions::mla_get_option( MLAOptions::MLA_SCREEN_MENU_TITLE, true );
|
392 |
}
|
393 |
-
|
394 |
$hook = add_submenu_page( 'upload.php', $page_title, $menu_title, 'upload_files', self::ADMIN_PAGE_SLUG, 'MLA::mla_render_admin_page' );
|
395 |
add_action( 'load-' . $hook, 'MLA::mla_add_menu_options' );
|
396 |
add_action( 'load-' . $hook, 'MLA::mla_add_help_tab' );
|
@@ -428,7 +436,7 @@ class MLA {
|
|
428 |
} else {
|
429 |
$menu_position = (integer) MLAOptions::mla_get_option( MLAOptions::MLA_SCREEN_ORDER );
|
430 |
}
|
431 |
-
|
432 |
if ( $menu_position && is_array( $submenu['upload.php'] ) ) {
|
433 |
foreach ( $submenu['upload.php'] as $menu_order => $menu_item ) {
|
434 |
if ( self::ADMIN_PAGE_SLUG == $menu_item[2] ) {
|
@@ -555,7 +563,9 @@ class MLA {
|
|
555 |
*/
|
556 |
if ( ! ( 'edit-tags' == $screen->base && in_array( $screen->taxonomy, array( 'post_tag', 'category' ) ) ) ) {
|
557 |
if ( !empty( $template_array['sidebar'] ) ) {
|
558 |
-
$
|
|
|
|
|
559 |
}
|
560 |
}
|
561 |
unset( $template_array['sidebar'] );
|
@@ -591,6 +601,8 @@ class MLA {
|
|
591 |
}
|
592 |
}
|
593 |
|
|
|
|
|
594 |
$screen->add_help_tab( $value );
|
595 |
}
|
596 |
}
|
@@ -793,7 +805,7 @@ class MLA {
|
|
793 |
if ( empty( $page_title ) ) {
|
794 |
$page_title = MLAOptions::mla_get_option( MLAOptions::MLA_SCREEN_PAGE_TITLE, true );
|
795 |
}
|
796 |
-
|
797 |
echo "<div class=\"wrap\">\n";
|
798 |
echo "<div id=\"icon-upload\" class=\"icon32\"><br/></div>\n";
|
799 |
echo "<h2>{$page_title}"; // trailing </h2> is action-specific
|
@@ -982,6 +994,9 @@ class MLA {
|
|
982 |
unset( $_REQUEST['mla-metavalue'] );
|
983 |
}
|
984 |
|
|
|
|
|
|
|
985 |
if ( isset( $_REQUEST['delete_all'] ) ) {
|
986 |
global $wpdb;
|
987 |
|
@@ -1041,23 +1056,39 @@ class MLA {
|
|
1041 |
break;
|
1042 |
case self::MLA_ADMIN_SET_PARENT:
|
1043 |
$new_data = array( 'post_parent' => $_REQUEST['found_post_id'] );
|
1044 |
-
|
1045 |
foreach( $_REQUEST['children'] as $child ) {
|
1046 |
$item_content = MLAData::mla_update_single_item( $child, $new_data );
|
1047 |
$page_content['message'] .= $item_content['message'] . '<br>';
|
1048 |
}
|
1049 |
-
|
1050 |
unset( $_REQUEST['parent'] );
|
1051 |
unset( $_REQUEST['children'] );
|
1052 |
unset( $_REQUEST['mla-set-parent-ajax-nonce'] );
|
1053 |
-
unset( $_REQUEST['
|
1054 |
unset( $_REQUEST['found_post_id'] );
|
1055 |
unset( $_REQUEST['mla-set-parent-submit'] );
|
1056 |
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1057 |
default:
|
1058 |
$page_content = array(
|
1059 |
-
/* translators: 1:
|
1060 |
-
|
1061 |
'body' => ''
|
1062 |
);
|
1063 |
break;
|
@@ -1084,6 +1115,8 @@ class MLA {
|
|
1084 |
*/
|
1085 |
if ( !empty( $_REQUEST['heading_suffix'] ) ) {
|
1086 |
echo ' - ' . esc_html( $_REQUEST['heading_suffix'] ) . "</h2>\n";
|
|
|
|
|
1087 |
} elseif ( !empty( $_REQUEST['s'] ) ) {
|
1088 |
if ( empty( $_REQUEST['mla_search_fields'] ) ) {
|
1089 |
echo ' - ' . __( 'post/parent results for', 'media-library-assistant' ) . ' "' . esc_html( stripslashes( trim( $_REQUEST['s'] ) ) ) . "\"</h2>\n";
|
@@ -1131,7 +1164,7 @@ class MLA {
|
|
1131 |
if ( is_numeric( $option_value ) ) {
|
1132 |
$option_value .= 'px';
|
1133 |
}
|
1134 |
-
|
1135 |
if ( 'checked' == MLAOptions::mla_get_option( MLAOptions::MLA_ENABLE_MLA_ICONS ) ) {
|
1136 |
$class = 'mla_media_thumbnail_64_64';
|
1137 |
} else {
|
@@ -1164,61 +1197,9 @@ class MLA {
|
|
1164 |
// Forms are NOT created automatically, so you need to wrap the table in one to use features like bulk actions
|
1165 |
echo '<form action="' . admin_url( 'upload.php?page=' . self::ADMIN_PAGE_SLUG ) . '" method="post" id="mla-filter">' . "\n";
|
1166 |
/*
|
1167 |
-
*
|
1168 |
*/
|
1169 |
-
|
1170 |
-
$search_value = esc_attr( stripslashes( trim( $_REQUEST['s'] ) ) );
|
1171 |
-
$search_fields = isset ( $_REQUEST['mla_search_fields'] ) ? $_REQUEST['mla_search_fields'] : array();
|
1172 |
-
$search_connector = $_REQUEST['mla_search_connector'];
|
1173 |
-
} else {
|
1174 |
-
$search_value = '';
|
1175 |
-
$search_fields = array ( 'title', 'content' );
|
1176 |
-
$search_connector = 'AND';
|
1177 |
-
}
|
1178 |
-
|
1179 |
-
echo '<p class="search-box">' . "\n";
|
1180 |
-
echo '<label class="screen-reader-text" for="media-search-input">' . __( 'Search Media', 'media-library-assistant' ) . ':</label>' . "\n";
|
1181 |
-
echo '<input type="text" size="45" id="media-search-input" name="s" value="' . $search_value . '" />' . "\n";
|
1182 |
-
echo '<input type="submit" name="mla-search-submit" id="search-submit" class="button" value="Search Media" /><br>' . "\n";
|
1183 |
-
if ( 'OR' == $search_connector ) {
|
1184 |
-
echo '<input type="radio" name="mla_search_connector" value="AND" /> ' . __( 'and', 'media-library-assistant' ) . " \n";
|
1185 |
-
echo '<input type="radio" name="mla_search_connector" checked="checked" value="OR" /> ' . __( 'or', 'media-library-assistant' ) . " \n";
|
1186 |
-
} else {
|
1187 |
-
echo '<input type="radio" name="mla_search_connector" checked="checked" value="AND" /> ' . __( 'and', 'media-library-assistant' ) . " \n";
|
1188 |
-
echo '<input type="radio" name="mla_search_connector" value="OR" /> ' . __( 'or', 'media-library-assistant' ) . " \n";
|
1189 |
-
}
|
1190 |
-
|
1191 |
-
if ( in_array( 'title', $search_fields ) ) {
|
1192 |
-
echo '<input type="checkbox" name="mla_search_fields[]" id="search-title" checked="checked" value="title" /> ' . __( 'Title', 'media-library-assistant' ) . " \n";
|
1193 |
-
} else {
|
1194 |
-
echo '<input type="checkbox" name="mla_search_fields[]" id="search-title" value="title" /> ' . __( 'Title', 'media-library-assistant' ) . " \n";
|
1195 |
-
}
|
1196 |
-
|
1197 |
-
if ( in_array( 'name', $search_fields ) ) {
|
1198 |
-
echo '<input type="checkbox" name="mla_search_fields[]" id="search-name" checked="checked" value="name" /> ' . __( 'Name', 'media-library-assistant' ) . " \n";
|
1199 |
-
} else {
|
1200 |
-
echo '<input type="checkbox" name="mla_search_fields[]" id="search-name" value="name" /> ' . __( 'Name', 'media-library-assistant' ) . " \n";
|
1201 |
-
}
|
1202 |
-
|
1203 |
-
if ( in_array( 'alt-text', $search_fields ) ) {
|
1204 |
-
echo '<input type="checkbox" name="mla_search_fields[]" id="search-alt-text" checked="checked" value="alt-text" /> ' . __( 'ALT Text', 'media-library-assistant' ) . " \n";
|
1205 |
-
} else {
|
1206 |
-
echo '<input type="checkbox" name="mla_search_fields[]" id="search-alt-text" value="alt-text" /> ' . __( 'ALT Text', 'media-library-assistant' ) . " \n";
|
1207 |
-
}
|
1208 |
-
|
1209 |
-
if ( in_array( 'excerpt', $search_fields ) ) {
|
1210 |
-
echo '<input type="checkbox" name="mla_search_fields[]" id="search-excerpt" checked="checked" value="excerpt" /> ' . __( 'Caption', 'media-library-assistant' ) . " \n";
|
1211 |
-
} else {
|
1212 |
-
echo '<input type="checkbox" name="mla_search_fields[]" id="search-excerpt" value="excerpt" /> ' . __( 'Caption', 'media-library-assistant' ) . " \n";
|
1213 |
-
}
|
1214 |
-
|
1215 |
-
if ( in_array( 'content', $search_fields ) ) {
|
1216 |
-
echo '<input type="checkbox" name="mla_search_fields[]" id="search-content" checked="checked" value="content" /> ' . __( 'Description', 'media-library-assistant' ) . " \n";
|
1217 |
-
} else {
|
1218 |
-
echo '<input type="checkbox" name="mla_search_fields[]" id="search-content" value="content" /> ' . __( 'Description', 'media-library-assistant' ) . " \n";
|
1219 |
-
}
|
1220 |
-
|
1221 |
-
echo '</p>' . "\n";
|
1222 |
|
1223 |
/*
|
1224 |
* We also need to ensure that the form posts back to our current page and remember all the view arguments
|
@@ -1261,6 +1242,94 @@ class MLA {
|
|
1261 |
} // display attachments list
|
1262 |
}
|
1263 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1264 |
/**
|
1265 |
* Ajax handler to set post_parent for a single attachment
|
1266 |
*
|
@@ -1394,6 +1463,108 @@ class MLA {
|
|
1394 |
die(); // this is required to return a proper result
|
1395 |
}
|
1396 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1397 |
/**
|
1398 |
* Build the hidden row templates for inline editing (quick and bulk edit)
|
1399 |
*
|
@@ -1545,39 +1716,7 @@ class MLA {
|
|
1545 |
$bulk_custom_fields .= MLAData::mla_parse_template( $page_template_array['custom_field'], $page_values );
|
1546 |
}
|
1547 |
|
1548 |
-
$
|
1549 |
-
if ( ! array( $set_parent_template ) ) {
|
1550 |
-
/* translators: 1: function name 2: non-array value */
|
1551 |
-
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 );
|
1552 |
-
return '';
|
1553 |
-
}
|
1554 |
-
|
1555 |
-
$page_values = array(
|
1556 |
-
'Select Parent' => __( 'Select Parent', 'media-library-assistant' ),
|
1557 |
-
'Search' => __( 'Search', 'media-library-assistant' ),
|
1558 |
-
'For' => __( 'For', 'media-library-assistant' ),
|
1559 |
-
'Unattached' => __( 'Unattached', 'media-library-assistant' ),
|
1560 |
-
'mla_find_posts_nonce' => wp_nonce_field( 'find-posts', 'mla-set-parent-ajax-nonce', false ),
|
1561 |
-
);
|
1562 |
-
|
1563 |
-
ob_start();
|
1564 |
-
submit_button( __( 'Cancel', 'media-library-assistant' ), 'button-secondary cancel alignleft', 'mla-set-parent-cancel', false );
|
1565 |
-
$page_values['mla_set_parent_cancel'] = ob_get_clean();
|
1566 |
-
|
1567 |
-
ob_start();
|
1568 |
-
submit_button( __( 'Update', 'media-library-assistant' ), 'button-primary alignright', 'mla-set-parent-submit', false );
|
1569 |
-
$page_values['mla_set_parent_update'] = ob_get_clean();
|
1570 |
-
|
1571 |
-
$set_parent_div = MLAData::mla_parse_template( $set_parent_template['mla-set-parent-div'], $page_values );
|
1572 |
-
|
1573 |
-
$page_values = array(
|
1574 |
-
'mla_set_parent_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' ) ) ),
|
1575 |
-
'mla_set_parent_action' => self::MLA_ADMIN_SET_PARENT,
|
1576 |
-
'wpnonce' => wp_nonce_field( self::MLA_ADMIN_NONCE, '_wpnonce', true, false ),
|
1577 |
-
'mla_set_parent_div' => $set_parent_div,
|
1578 |
-
);
|
1579 |
-
|
1580 |
-
$set_parent_form = MLAData::mla_parse_template( $set_parent_template['mla-set-parent-form'], $page_values );
|
1581 |
|
1582 |
$page_values = array(
|
1583 |
'colspan' => count( $MLAListTable->get_columns() ),
|
@@ -1610,7 +1749,7 @@ class MLA {
|
|
1610 |
'Map Custom Field metadata' => __( 'Map Custom Field Metadata', 'media-library-assistant' ),
|
1611 |
'set_parent_form' => $set_parent_form,
|
1612 |
);
|
1613 |
-
|
1614 |
$page_template = MLAData::mla_parse_template( $page_template_array['page'], $page_values );
|
1615 |
return $page_template;
|
1616 |
}
|
29 |
*
|
30 |
* @var string
|
31 |
*/
|
32 |
+
const CURRENT_MLA_VERSION = '1.90';
|
33 |
|
34 |
/**
|
35 |
* Slug for registering and enqueueing plugin style sheet
|
166 |
*/
|
167 |
const MLA_ADMIN_SET_PARENT = 'set_parent';
|
168 |
|
169 |
+
/**
|
170 |
+
* mla_admin_action value for searching taxonomy terms
|
171 |
+
*
|
172 |
+
* @since 1.90
|
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
|
180 |
*
|
251 |
*/
|
252 |
if ( !empty( $_REQUEST['mla_admin_action'] ) ) {
|
253 |
if ( isset( $_REQUEST['mla-set-parent-ajax-nonce'] ) ) {
|
254 |
+
check_admin_referer( 'mla_find_posts', 'mla-set-parent-ajax-nonce' );
|
255 |
} else {
|
256 |
check_admin_referer( self::MLA_ADMIN_NONCE );
|
257 |
}
|
258 |
+
|
259 |
|
260 |
switch ( $_REQUEST['mla_admin_action'] ) {
|
261 |
case self::MLA_ADMIN_SINGLE_CUSTOM_FIELD_MAP:
|
283 |
|
284 |
add_action( 'wp_ajax_' . self::JAVASCRIPT_INLINE_EDIT_SLUG, 'MLA::mla_inline_edit_ajax_action' );
|
285 |
add_action( 'wp_ajax_' . self::JAVASCRIPT_INLINE_EDIT_SLUG . '-set-parent', 'MLA::mla_set_parent_ajax_action' );
|
286 |
+
add_action( 'wp_ajax_' . 'mla_find_posts', 'MLA::mla_find_posts_ajax_action' );
|
287 |
}
|
288 |
|
289 |
/**
|
334 |
wp_enqueue_script( self::JAVASCRIPT_INLINE_EDIT_SLUG . '-set-parent', MLA_PLUGIN_URL . "js/mla-set-parent-scripts{$suffix}.js",
|
335 |
array( 'wp-lists', 'suggest', 'jquery', self::JAVASCRIPT_INLINE_EDIT_SLUG ), self::CURRENT_MLA_VERSION, false );
|
336 |
|
337 |
+
MLAModal::mla_add_terms_search_scripts();
|
338 |
+
|
339 |
$fields = array( 'post_title', 'post_name', 'post_excerpt', 'post_content', 'image_alt', 'post_parent', 'post_parent_title', 'menu_order', 'post_author' );
|
340 |
$custom_fields = MLAOptions::mla_custom_field_support( 'quick_edit' );
|
341 |
$custom_fields = array_merge( $custom_fields, MLAOptions::mla_custom_field_support( 'bulk_edit' ) );
|
348 |
'ajaxFailError' => __( 'An ajax.fail error has occurred. Please reload the page and try again.', 'media-library-assistant' ),
|
349 |
'ajaxDoneError' => __( 'An ajax.done error has occurred. Please reload the page and try again.', 'media-library-assistant' ),
|
350 |
'error' => __( 'Error while saving the changes.', 'media-library-assistant' ),
|
351 |
+
'ntdelTitle' => __( 'Remove From Bulk Edit', 'media-library-assistant' ),
|
352 |
+
'noTitle' => __( '(no title)', 'media-library-assistant' ),
|
353 |
+
'bulkTitle' => __( 'Bulk Edit items', 'media-library-assistant' ),
|
354 |
'comma' => _x( ',', 'tag_delimiter', 'media-library-assistant' ),
|
355 |
'ajax_action' => self::JAVASCRIPT_INLINE_EDIT_SLUG,
|
356 |
'ajax_nonce' => wp_create_nonce( self::MLA_ADMIN_NONCE )
|
359 |
if ( version_compare( get_bloginfo( 'version' ), '3.9', '>=' ) ) {
|
360 |
$script_variables['setParentDataType'] = 'json';
|
361 |
} else {
|
362 |
+
// $script_variables['setParentDataType'] = 'xml';
|
363 |
+
$script_variables['setParentDataType'] = 'json';
|
|
|
|
|
|
|
|
|
|
|
364 |
}
|
365 |
|
366 |
wp_localize_script( self::JAVASCRIPT_INLINE_EDIT_SLUG, self::JAVASCRIPT_INLINE_EDIT_OBJECT, $script_variables );
|
393 |
if ( empty( $page_title ) ) {
|
394 |
$page_title = MLAOptions::mla_get_option( MLAOptions::MLA_SCREEN_PAGE_TITLE, true );
|
395 |
}
|
396 |
+
|
397 |
$menu_title = MLAOptions::mla_get_option( MLAOptions::MLA_SCREEN_MENU_TITLE );
|
398 |
if ( empty( $menu_title ) ) {
|
399 |
$menu_title = MLAOptions::mla_get_option( MLAOptions::MLA_SCREEN_MENU_TITLE, true );
|
400 |
}
|
401 |
+
|
402 |
$hook = add_submenu_page( 'upload.php', $page_title, $menu_title, 'upload_files', self::ADMIN_PAGE_SLUG, 'MLA::mla_render_admin_page' );
|
403 |
add_action( 'load-' . $hook, 'MLA::mla_add_menu_options' );
|
404 |
add_action( 'load-' . $hook, 'MLA::mla_add_help_tab' );
|
436 |
} else {
|
437 |
$menu_position = (integer) MLAOptions::mla_get_option( MLAOptions::MLA_SCREEN_ORDER );
|
438 |
}
|
439 |
+
|
440 |
if ( $menu_position && is_array( $submenu['upload.php'] ) ) {
|
441 |
foreach ( $submenu['upload.php'] as $menu_order => $menu_item ) {
|
442 |
if ( self::ADMIN_PAGE_SLUG == $menu_item[2] ) {
|
563 |
*/
|
564 |
if ( ! ( 'edit-tags' == $screen->base && in_array( $screen->taxonomy, array( 'post_tag', 'category' ) ) ) ) {
|
565 |
if ( !empty( $template_array['sidebar'] ) ) {
|
566 |
+
$page_values = array( 'settingsURL' => admin_url('options-general.php') );
|
567 |
+
$content = MLAData::mla_parse_template( $template_array['sidebar'], $page_values );
|
568 |
+
$screen->set_help_sidebar( $content );
|
569 |
}
|
570 |
}
|
571 |
unset( $template_array['sidebar'] );
|
601 |
}
|
602 |
}
|
603 |
|
604 |
+
$page_values = array( 'settingsURL' => admin_url('options-general.php') );
|
605 |
+
$value = MLAData::mla_parse_template( $value, $page_values );
|
606 |
$screen->add_help_tab( $value );
|
607 |
}
|
608 |
}
|
805 |
if ( empty( $page_title ) ) {
|
806 |
$page_title = MLAOptions::mla_get_option( MLAOptions::MLA_SCREEN_PAGE_TITLE, true );
|
807 |
}
|
808 |
+
|
809 |
echo "<div class=\"wrap\">\n";
|
810 |
echo "<div id=\"icon-upload\" class=\"icon32\"><br/></div>\n";
|
811 |
echo "<h2>{$page_title}"; // trailing </h2> is action-specific
|
994 |
unset( $_REQUEST['mla-metavalue'] );
|
995 |
}
|
996 |
|
997 |
+
/*
|
998 |
+
* Empty the Trash?
|
999 |
+
*/
|
1000 |
if ( isset( $_REQUEST['delete_all'] ) ) {
|
1001 |
global $wpdb;
|
1002 |
|
1056 |
break;
|
1057 |
case self::MLA_ADMIN_SET_PARENT:
|
1058 |
$new_data = array( 'post_parent' => $_REQUEST['found_post_id'] );
|
1059 |
+
|
1060 |
foreach( $_REQUEST['children'] as $child ) {
|
1061 |
$item_content = MLAData::mla_update_single_item( $child, $new_data );
|
1062 |
$page_content['message'] .= $item_content['message'] . '<br>';
|
1063 |
}
|
1064 |
+
|
1065 |
unset( $_REQUEST['parent'] );
|
1066 |
unset( $_REQUEST['children'] );
|
1067 |
unset( $_REQUEST['mla-set-parent-ajax-nonce'] );
|
1068 |
+
unset( $_REQUEST['mla_set_parent_search_text'] );
|
1069 |
unset( $_REQUEST['found_post_id'] );
|
1070 |
unset( $_REQUEST['mla-set-parent-submit'] );
|
1071 |
break;
|
1072 |
+
case self::MLA_ADMIN_terms_search:
|
1073 |
+
/*
|
1074 |
+
* This will be handled as a database query argument,
|
1075 |
+
* but validate the arguments here
|
1076 |
+
*/
|
1077 |
+
$mla_terms_search = isset( $_REQUEST['mla_terms_search'] ) ? $_REQUEST['mla_terms_search'] : array( 'phrases' => '', 'taxonomies' => array() );
|
1078 |
+
if ( ! is_array( $mla_terms_search ) || empty( $mla_terms_search['phrases'] ) || empty( $mla_terms_search['taxonomies'] ) ) {
|
1079 |
+
unset( $_REQUEST['mla_terms_search'] );
|
1080 |
+
$page_content = array(
|
1081 |
+
'message' => __( 'Empty Terms Search; ignored', 'media-library-assistant' ),
|
1082 |
+
'body' => ''
|
1083 |
+
);
|
1084 |
+
} else {
|
1085 |
+
unset( $_REQUEST['mla_terms_search']['submit'] );
|
1086 |
+
}
|
1087 |
+
break;
|
1088 |
default:
|
1089 |
$page_content = array(
|
1090 |
+
/* translators: 1: row-level action, e.g., single_item_delete, single_item_edit */
|
1091 |
+
'message' => sprintf( __( 'Unknown mla_admin_action - "%1$s"', 'media-library-assistant' ), $_REQUEST['mla_admin_action'] ),
|
1092 |
'body' => ''
|
1093 |
);
|
1094 |
break;
|
1115 |
*/
|
1116 |
if ( !empty( $_REQUEST['heading_suffix'] ) ) {
|
1117 |
echo ' - ' . esc_html( $_REQUEST['heading_suffix'] ) . "</h2>\n";
|
1118 |
+
} elseif ( !empty( $_REQUEST['mla_terms_search'] ) ) {
|
1119 |
+
echo ' - ' . __( 'term search results for', 'media-library-assistant' ) . ' "' . esc_html( stripslashes( trim( $_REQUEST['mla_terms_search']['phrases'] ) ) ) . "\"</h2>\n";
|
1120 |
} elseif ( !empty( $_REQUEST['s'] ) ) {
|
1121 |
if ( empty( $_REQUEST['mla_search_fields'] ) ) {
|
1122 |
echo ' - ' . __( 'post/parent results for', 'media-library-assistant' ) . ' "' . esc_html( stripslashes( trim( $_REQUEST['s'] ) ) ) . "\"</h2>\n";
|
1164 |
if ( is_numeric( $option_value ) ) {
|
1165 |
$option_value .= 'px';
|
1166 |
}
|
1167 |
+
|
1168 |
if ( 'checked' == MLAOptions::mla_get_option( MLAOptions::MLA_ENABLE_MLA_ICONS ) ) {
|
1169 |
$class = 'mla_media_thumbnail_64_64';
|
1170 |
} else {
|
1197 |
// Forms are NOT created automatically, so you need to wrap the table in one to use features like bulk actions
|
1198 |
echo '<form action="' . admin_url( 'upload.php?page=' . self::ADMIN_PAGE_SLUG ) . '" method="post" id="mla-filter">' . "\n";
|
1199 |
/*
|
1200 |
+
* Include the Search Media box
|
1201 |
*/
|
1202 |
+
require_once MLA_PLUGIN_PATH . '/includes/mla-main-search-box-template.php';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1203 |
|
1204 |
/*
|
1205 |
* We also need to ensure that the form posts back to our current page and remember all the view arguments
|
1242 |
} // display attachments list
|
1243 |
}
|
1244 |
|
1245 |
+
/**
|
1246 |
+
* Ajax handler to fetch candidates for the "Set Parent" popup window
|
1247 |
+
*
|
1248 |
+
* Adapted from wp_ajax_find_posts in /wp-admin/includes/ajax-actions.php.
|
1249 |
+
* Adds filters for post type and pagination.
|
1250 |
+
*
|
1251 |
+
* @since 1.90
|
1252 |
+
*
|
1253 |
+
* @return void passes results to wp_send_json_success() for JSON encoding and transmission
|
1254 |
+
*/
|
1255 |
+
public static function mla_find_posts_ajax_action() {
|
1256 |
+
global $wpdb;
|
1257 |
+
|
1258 |
+
check_ajax_referer( 'mla_find_posts' );
|
1259 |
+
|
1260 |
+
$post_types = get_post_types( array( 'public' => true ), 'objects' );
|
1261 |
+
unset( $post_types['attachment'] );
|
1262 |
+
|
1263 |
+
$s = stripslashes( $_REQUEST['mla_set_parent_search_text'] );
|
1264 |
+
$count = isset( $_REQUEST['mla_set_parent_count'] ) ? $_REQUEST['mla_set_parent_count'] : 50;
|
1265 |
+
$paged = isset( $_REQUEST['mla_set_parent_paged'] ) ? $_REQUEST['mla_set_parent_paged'] : 1;
|
1266 |
+
|
1267 |
+
$args = array(
|
1268 |
+
'post_type' => ( 'all' == $_REQUEST['mla_set_parent_post_type'] ) ? array_keys( $post_types ) : $_REQUEST['mla_set_parent_post_type'],
|
1269 |
+
'post_status' => 'any',
|
1270 |
+
'posts_per_page' => $count,
|
1271 |
+
'paged' => $paged,
|
1272 |
+
);
|
1273 |
+
|
1274 |
+
if ( '' !== $s )
|
1275 |
+
$args['s'] = $s;
|
1276 |
+
|
1277 |
+
$posts = get_posts( $args );
|
1278 |
+
|
1279 |
+
if ( ( ! $posts ) && $paged > 1 ) {
|
1280 |
+
$args['paged'] = $paged = 1;
|
1281 |
+
$posts = get_posts( $args );
|
1282 |
+
}
|
1283 |
+
|
1284 |
+
$found = count( $posts );
|
1285 |
+
|
1286 |
+
$html = '<input name="mla_set_parent_count" id="mla-set-parent-count" type="hidden" value="' . $count . "\">\n";
|
1287 |
+
$html .= '<input name="mla_set_parent_paged" id="mla-set-parent-paged" type="hidden" value="' . $paged . "\">\n";
|
1288 |
+
$html .= '<input name="mla_set_parent_found" id="mla-set-parent-found" type="hidden" value="' . $found . "\">\n";
|
1289 |
+
|
1290 |
+
$html .= '<table class="widefat"><thead><tr><th class="found-radio"><br /></th><th>'.__('Title').'</th><th class="no-break">'.__('Type').'</th><th class="no-break">'.__('Date').'</th><th class="no-break">'.__('Status').'</th></tr></thead><tbody>' . "\n";
|
1291 |
+
if ( $found ) {
|
1292 |
+
$alt = '';
|
1293 |
+
foreach ( $posts as $post ) {
|
1294 |
+
$title = trim( $post->post_title ) ? $post->post_title : __( '(no title)' );
|
1295 |
+
$alt = ( 'alternate' == $alt ) ? '' : 'alternate';
|
1296 |
+
|
1297 |
+
switch ( $post->post_status ) {
|
1298 |
+
case 'publish' :
|
1299 |
+
case 'private' :
|
1300 |
+
$stat = __('Published');
|
1301 |
+
break;
|
1302 |
+
case 'future' :
|
1303 |
+
$stat = __('Scheduled');
|
1304 |
+
break;
|
1305 |
+
case 'pending' :
|
1306 |
+
$stat = __('Pending Review');
|
1307 |
+
break;
|
1308 |
+
case 'draft' :
|
1309 |
+
$stat = __('Draft');
|
1310 |
+
break;
|
1311 |
+
}
|
1312 |
+
|
1313 |
+
if ( '0000-00-00 00:00:00' == $post->post_date ) {
|
1314 |
+
$time = '';
|
1315 |
+
} else {
|
1316 |
+
/* translators: date format in table columns, see http://php.net/date */
|
1317 |
+
$time = mysql2date(__('Y/m/d'), $post->post_date);
|
1318 |
+
}
|
1319 |
+
|
1320 |
+
$html .= '<tr class="' . trim( 'found-posts ' . $alt ) . '"><td class="found-radio"><input type="radio" id="found-'.$post->ID.'" name="found_post_id" value="' . esc_attr($post->ID) . '"></td>';
|
1321 |
+
$html .= '<td><label for="found-'.$post->ID.'">' . esc_html( $title ) . '</label></td><td class="no-break">' . esc_html( $post_types[$post->post_type]->labels->singular_name ) . '</td><td class="no-break">'.esc_html( $time ) . '</td><td class="no-break">' . esc_html( $stat ). ' </td></tr>' . "\n";
|
1322 |
+
} // foreach post
|
1323 |
+
} else {
|
1324 |
+
$html .= '<tr class="' . trim( 'found-posts ' ) . '"><td class="found-radio"> </td>';
|
1325 |
+
$html .= '<td colspan="4">No results found.</td></tr>' . "\n";
|
1326 |
+
}
|
1327 |
+
|
1328 |
+
$html .= "</tbody></table>\n";
|
1329 |
+
|
1330 |
+
wp_send_json_success( $html );
|
1331 |
+
}
|
1332 |
+
|
1333 |
/**
|
1334 |
* Ajax handler to set post_parent for a single attachment
|
1335 |
*
|
1463 |
die(); // this is required to return a proper result
|
1464 |
}
|
1465 |
|
1466 |
+
/**
|
1467 |
+
* Compose a Post Type Options list with current selection
|
1468 |
+
*
|
1469 |
+
* @since 1.90
|
1470 |
+
* @uses $mla_option_templates contains row and table templates
|
1471 |
+
*
|
1472 |
+
* @param array template parts
|
1473 |
+
* @param string current selection or 'all' (default)
|
1474 |
+
*
|
1475 |
+
* @return string HTML markup with select field options
|
1476 |
+
*/
|
1477 |
+
private static function _compose_post_type_select( &$templates, $selection = 'all' ) {
|
1478 |
+
$option_template = $templates['post-type-select-option'];
|
1479 |
+
$option_values = array (
|
1480 |
+
'selected' => ( 'all' == $selection ) ? 'selected="selected"' : '',
|
1481 |
+
'value' => 'all',
|
1482 |
+
'text' => '— ' . __( 'All Post Types', 'media-library-assistant' ) . ' —'
|
1483 |
+
);
|
1484 |
+
$options = MLAData::mla_parse_template( $option_template, $option_values );
|
1485 |
+
|
1486 |
+
$post_types = get_post_types( array( 'public' => true ), 'objects' );
|
1487 |
+
unset( $post_types['attachment'] );
|
1488 |
+
|
1489 |
+
foreach ( $post_types as $key => $value ) {
|
1490 |
+
$option_values = array (
|
1491 |
+
'selected' => ( $key == $selection ) ? 'selected="selected"' : '',
|
1492 |
+
'value' => $key,
|
1493 |
+
'text' => $value->labels->name
|
1494 |
+
);
|
1495 |
+
|
1496 |
+
$options .= MLAData::mla_parse_template( $option_template, $option_values );
|
1497 |
+
} // foreach post_type
|
1498 |
+
|
1499 |
+
$select_template = $templates['post-type-select'];
|
1500 |
+
$select_values = array (
|
1501 |
+
'options' => $options,
|
1502 |
+
);
|
1503 |
+
$select = MLAData::mla_parse_template( $select_template, $select_values );
|
1504 |
+
return $select;
|
1505 |
+
} // _compose_post_type_select
|
1506 |
+
|
1507 |
+
/**
|
1508 |
+
* Build the hidden form for the "Set Parent" popup modal window
|
1509 |
+
*
|
1510 |
+
* @since 1.90
|
1511 |
+
*
|
1512 |
+
* @param boolean true to return complete form, false to return mla-set-parent-div
|
1513 |
+
*
|
1514 |
+
* @return string HTML <form> markup for hidden form
|
1515 |
+
*/
|
1516 |
+
public static function mla_set_parent_form( $return_form = true ) {
|
1517 |
+
$set_parent_template = MLAData::mla_load_template( 'admin-set-parent-form.tpl' );
|
1518 |
+
if ( ! array( $set_parent_template ) ) {
|
1519 |
+
/* translators: 1: function name 2: non-array value */
|
1520 |
+
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 );
|
1521 |
+
return '';
|
1522 |
+
}
|
1523 |
+
|
1524 |
+
$page_values = array(
|
1525 |
+
'Select Parent' => __( 'Select Parent', 'media-library-assistant' ),
|
1526 |
+
'Search' => __( 'Search', 'media-library-assistant' ),
|
1527 |
+
'post_type_dropdown' => self::_compose_post_type_select( $set_parent_template, 'all' ),
|
1528 |
+
'For' => __( 'For', 'media-library-assistant' ),
|
1529 |
+
'Previous' => '«',
|
1530 |
+
'Next' => '»',
|
1531 |
+
'count' => '50',
|
1532 |
+
'paged' => '1',
|
1533 |
+
'found' => '0',
|
1534 |
+
'Title' => __( 'Title', 'media-library-assistant' ),
|
1535 |
+
'Type' => __( 'Type', 'media-library-assistant' ),
|
1536 |
+
'Date' => __( 'Date', 'media-library-assistant' ),
|
1537 |
+
'Status' => __( 'Status', 'media-library-assistant' ),
|
1538 |
+
'Unattached' => __( 'Unattached', 'media-library-assistant' ),
|
1539 |
+
'mla_find_posts_nonce' => wp_nonce_field( 'mla_find_posts', 'mla-set-parent-ajax-nonce', false ),
|
1540 |
+
);
|
1541 |
+
|
1542 |
+
ob_start();
|
1543 |
+
submit_button( __( 'Cancel', 'media-library-assistant' ), 'button-secondary cancel alignleft', 'mla-set-parent-cancel', false );
|
1544 |
+
$page_values['mla_set_parent_cancel'] = ob_get_clean();
|
1545 |
+
|
1546 |
+
ob_start();
|
1547 |
+
submit_button( __( 'Update', 'media-library-assistant' ), 'button-primary alignright', 'mla-set-parent-submit', false );
|
1548 |
+
$page_values['mla_set_parent_update'] = ob_get_clean();
|
1549 |
+
|
1550 |
+
$set_parent_div = MLAData::mla_parse_template( $set_parent_template['mla-set-parent-div'], $page_values );
|
1551 |
+
|
1552 |
+
if ( ! $return_form ) {
|
1553 |
+
return $set_parent_div;
|
1554 |
+
}
|
1555 |
+
|
1556 |
+
$page_values = array(
|
1557 |
+
'mla_set_parent_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' ) ) ),
|
1558 |
+
'mla_set_parent_action' => self::MLA_ADMIN_SET_PARENT,
|
1559 |
+
'wpnonce' => wp_nonce_field( self::MLA_ADMIN_NONCE, '_wpnonce', true, false ),
|
1560 |
+
'mla_set_parent_div' => $set_parent_div,
|
1561 |
+
);
|
1562 |
+
|
1563 |
+
$set_parent_form = MLAData::mla_parse_template( $set_parent_template['mla-set-parent-form'], $page_values );
|
1564 |
+
|
1565 |
+
return $set_parent_form;
|
1566 |
+
}
|
1567 |
+
|
1568 |
/**
|
1569 |
* Build the hidden row templates for inline editing (quick and bulk edit)
|
1570 |
*
|
1716 |
$bulk_custom_fields .= MLAData::mla_parse_template( $page_template_array['custom_field'], $page_values );
|
1717 |
}
|
1718 |
|
1719 |
+
$set_parent_form = MLA::mla_set_parent_form();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1720 |
|
1721 |
$page_values = array(
|
1722 |
'colspan' => count( $MLAListTable->get_columns() ),
|
1749 |
'Map Custom Field metadata' => __( 'Map Custom Field Metadata', 'media-library-assistant' ),
|
1750 |
'set_parent_form' => $set_parent_form,
|
1751 |
);
|
1752 |
+
|
1753 |
$page_template = MLAData::mla_parse_template( $page_template_array['page'], $page_values );
|
1754 |
return $page_template;
|
1755 |
}
|
includes/class-mla-media-modal.php
CHANGED
@@ -40,6 +40,15 @@ class MLAModal {
|
|
40 |
*/
|
41 |
const JAVASCRIPT_MEDIA_MODAL_OBJECT = 'mla_media_modal_vars';
|
42 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
/**
|
44 |
* Slug for the "query attachments" action - Add Media and related dialogs
|
45 |
*
|
@@ -288,7 +297,7 @@ class MLAModal {
|
|
288 |
*
|
289 |
* @param string HTML markup for taxonomy terms dropdown <select> tag
|
290 |
*
|
291 |
-
* @return array ( value =>
|
292 |
*/
|
293 |
private static function _terms_options( $markup ) {
|
294 |
$match_count = preg_match_all( "#\<option(( class=\"([^\"]+)\" )|( ))value=((\'([^\']+)\')|(\"([^\"]+)\"))([^\>]*)\>([^\<]*)\<.*#", $markup, $matches );
|
@@ -325,25 +334,33 @@ class MLAModal {
|
|
325 |
* @var array
|
326 |
*/
|
327 |
private static $mla_media_modal_settings = array(
|
328 |
-
'ajaxQueryAttachmentsAction' => self::JAVASCRIPT_QUERY_ATTACHMENTS_ACTION,
|
329 |
'ajaxFillCompatAction' => self::JAVASCRIPT_FILL_COMPAT_ACTION,
|
|
|
|
|
330 |
'ajaxUpdateCompatAction' => self::JAVASCRIPT_UPDATE_COMPAT_ACTION,
|
331 |
-
'ajaxFillCompatNonce' => '',
|
332 |
-
'ajaxUpdateCompatNonce' => '',
|
|
|
|
|
333 |
'enableMimeTypes' => false,
|
334 |
'enableMonthsDropdown' => false,
|
335 |
-
'enableTermsDropdown' => false,
|
336 |
'enableSearchBox' => false,
|
337 |
-
'
|
338 |
-
'
|
|
|
|
|
|
|
339 |
'mimeTypes' => '',
|
340 |
'months' => '',
|
|
|
|
|
|
|
|
|
341 |
'termsClass' => array(),
|
342 |
-
'
|
|
|
343 |
'termsText' => array(),
|
344 |
-
'
|
345 |
-
'searchFields' => array( 'title', 'content' ),
|
346 |
-
'searchConnector' => 'AND'
|
347 |
);
|
348 |
|
349 |
/**
|
@@ -363,26 +380,36 @@ class MLAModal {
|
|
363 |
self::$mla_media_modal_settings['mimeTypes']['detached'] = MLAOptions::$mla_option_definitions[ MLAOptions::MLA_POST_MIME_TYPES ]['std']['unattached']['plural'];
|
364 |
self::$mla_media_modal_settings['months'] = self::_months_dropdown('attachment');
|
365 |
|
|
|
366 |
$terms_options = self::_terms_options( MLA_List_Table::mla_get_taxonomy_filter_dropdown() );
|
367 |
self::$mla_media_modal_settings['termsClass'] = $terms_options['class'];
|
368 |
self::$mla_media_modal_settings['termsValue'] = $terms_options['value'];
|
369 |
self::$mla_media_modal_settings['termsText'] = $terms_options['text'];
|
370 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
371 |
self::$mla_media_modal_settings['enableMimeTypes'] = ( 'checked' == MLAOptions::mla_get_option( MLAOptions::MLA_MEDIA_MODAL_MIMETYPES ) );
|
372 |
self::$mla_media_modal_settings['enableMonthsDropdown'] = ( 'checked' == MLAOptions::mla_get_option( MLAOptions::MLA_MEDIA_MODAL_MONTHS ) );
|
373 |
-
self::$mla_media_modal_settings['enableTermsDropdown'] = ( 'checked' == MLAOptions::mla_get_option( MLAOptions::MLA_MEDIA_MODAL_TERMS ) );
|
374 |
self::$mla_media_modal_settings['enableSearchBox'] = ( 'checked' == MLAOptions::mla_get_option( MLAOptions::MLA_MEDIA_MODAL_SEARCHBOX ) );
|
375 |
-
self::$mla_media_modal_settings['
|
376 |
-
self::$mla_media_modal_settings['
|
|
|
377 |
|
378 |
/*
|
379 |
* These will be passed back to the server in the query['s'] field.
|
380 |
*/
|
381 |
-
self::$mla_media_modal_settings['filterMonth'] = 0;
|
382 |
-
self::$mla_media_modal_settings['filterTerm'] = 0;
|
383 |
-
self::$mla_media_modal_settings['
|
384 |
-
self::$mla_media_modal_settings['
|
385 |
-
self::$mla_media_modal_settings['
|
|
|
|
|
386 |
|
387 |
$settings = array_merge( $settings, array( 'mla_settings' => self::$mla_media_modal_settings ) );
|
388 |
return $settings;
|
@@ -402,7 +429,8 @@ class MLAModal {
|
|
402 |
public static function mla_media_view_strings_filter( $strings, $post ) {
|
403 |
$mla_strings = array(
|
404 |
'searchBoxPlaceholder' => __( 'Search Box', 'media-library-assistant' ),
|
405 |
-
'loadingText' => __( 'Loading...', 'media-library-assistant' )
|
|
|
406 |
);
|
407 |
|
408 |
$strings = array_merge( $strings, array( 'mla_strings' => $mla_strings ) );
|
@@ -420,11 +448,14 @@ class MLAModal {
|
|
420 |
public static function mla_wp_enqueue_media_action( ) {
|
421 |
$suffix = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '' : '.min';
|
422 |
|
423 |
-
// replaced by inline styles for now
|
424 |
wp_register_style( self::JAVASCRIPT_MEDIA_MODAL_STYLES, MLA_PLUGIN_URL . 'css/mla-media-modal-style.css', false, MLA::CURRENT_MLA_VERSION );
|
425 |
wp_enqueue_style( self::JAVASCRIPT_MEDIA_MODAL_STYLES );
|
426 |
|
427 |
wp_enqueue_script( self::JAVASCRIPT_MEDIA_MODAL_SLUG, MLA_PLUGIN_URL . "js/mla-media-modal-scripts{$suffix}.js", array( 'media-views' ), MLA::CURRENT_MLA_VERSION, false );
|
|
|
|
|
|
|
|
|
428 |
} // mla_wp_enqueue_media_action
|
429 |
|
430 |
/**
|
@@ -436,22 +467,11 @@ class MLAModal {
|
|
436 |
* @return void echoes HTML script tags for the templates
|
437 |
*/
|
438 |
public static function mla_print_media_templates_action( ) {
|
439 |
-
/*
|
440 |
-
* Adjust the toolbar styles based on which controls are present
|
441 |
-
*/
|
442 |
-
if ( self::$mla_media_modal_settings['enableSearchBox'] ) {
|
443 |
-
if ( self::$mla_media_modal_settings['enableMonthsDropdown'] && self::$mla_media_modal_settings['enableTermsDropdown'] ) {
|
444 |
-
$height = '120px';
|
445 |
-
} else {
|
446 |
-
$height = '80px';
|
447 |
-
}
|
448 |
-
} else {
|
449 |
-
$height = '50px';
|
450 |
-
}
|
451 |
-
|
452 |
/*
|
453 |
* Compose the Search Media box
|
454 |
*/
|
|
|
|
|
455 |
if ( isset( $_REQUEST['query']['mla_search_value'] ) ) {
|
456 |
$search_value = esc_attr( stripslashes( trim( $_REQUEST['query']['mla_search_value'] ) ) );
|
457 |
} else {
|
@@ -461,13 +481,13 @@ class MLAModal {
|
|
461 |
if ( isset( $_REQUEST['query']['mla_search_fields'] ) ) {
|
462 |
$search_fields = $_REQUEST['query']['mla_search_fields'];
|
463 |
} else {
|
464 |
-
$search_fields =
|
465 |
}
|
466 |
|
467 |
if ( isset( $_REQUEST['query']['mla_search_connector'] ) ) {
|
468 |
$search_connector = $_REQUEST['query']['mla_search_connector'];
|
469 |
} else {
|
470 |
-
$search_connector = '
|
471 |
}
|
472 |
|
473 |
// Include mla javascript templates
|
@@ -795,7 +815,6 @@ class MLAModal {
|
|
795 |
*/
|
796 |
public static function mla_update_compat_fields_action() {
|
797 |
global $post;
|
798 |
-
|
799 |
if ( empty( $_REQUEST['id'] ) || ! $id = absint( $_REQUEST['id'] ) ) {
|
800 |
wp_send_json_error();
|
801 |
}
|
@@ -842,13 +861,16 @@ class MLAModal {
|
|
842 |
}
|
843 |
|
844 |
$list = array();
|
|
|
845 |
foreach ( $terms as $term ) {
|
846 |
$list[] = $term->name;
|
|
|
847 |
} // foreach $term
|
848 |
|
849 |
sort( $list );
|
850 |
$hidden_list = join( ',', $list );
|
851 |
|
|
|
852 |
$results[$key]["mla-attachments-{$id}-{$key}"] = "\t\t<input name='attachments[{$id}][{$key}]' class='the-tags' id='mla-attachments-{$id}-{$key}' type='hidden' value='{$hidden_list}'>\n";
|
853 |
$results[$key]["mla-tags-{$id}-{$key}"] = "\t\t<input name='mla_tags[{$id}][{$key}]' class='server-tags' id='mla-tags-{$id}-{$key}' type='hidden' value='{$hidden_list}'>\n";
|
854 |
}
|
@@ -878,7 +900,8 @@ class MLAModal {
|
|
878 |
$query = isset( $_REQUEST['query'] ) ? (array) $_REQUEST['query'] : array();
|
879 |
$query = array_intersect_key( $query, array_flip( array(
|
880 |
'order', 'orderby', 'posts_per_page', 'paged', 'post_mime_type',
|
881 |
-
'post_parent', 'post__in', 'post__not_in',
|
|
|
882 |
'mla_search_value', 's', 'mla_search_fields', 'mla_search_connector'
|
883 |
) ) );
|
884 |
|
@@ -965,5 +988,139 @@ class MLAModal {
|
|
965 |
|
966 |
wp_send_json_success( $posts );
|
967 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
968 |
} //Class MLAModal
|
969 |
?>
|
40 |
*/
|
41 |
const JAVASCRIPT_MEDIA_MODAL_OBJECT = 'mla_media_modal_vars';
|
42 |
|
43 |
+
/**
|
44 |
+
* Object name for localizing JavaScript - Terms Search popup
|
45 |
+
*
|
46 |
+
* @since 1.90
|
47 |
+
*
|
48 |
+
* @var string
|
49 |
+
*/
|
50 |
+
const JAVASCRIPT_TERMS_SEARCH_OBJECT = 'mla_terms_search_vars';
|
51 |
+
|
52 |
/**
|
53 |
* Slug for the "query attachments" action - Add Media and related dialogs
|
54 |
*
|
297 |
*
|
298 |
* @param string HTML markup for taxonomy terms dropdown <select> tag
|
299 |
*
|
300 |
+
* @return array ( 'class' => $class_array, 'value' => $value_array, 'text' => $text_array )
|
301 |
*/
|
302 |
private static function _terms_options( $markup ) {
|
303 |
$match_count = preg_match_all( "#\<option(( class=\"([^\"]+)\" )|( ))value=((\'([^\']+)\')|(\"([^\"]+)\"))([^\>]*)\>([^\<]*)\<.*#", $markup, $matches );
|
334 |
* @var array
|
335 |
*/
|
336 |
private static $mla_media_modal_settings = array(
|
|
|
337 |
'ajaxFillCompatAction' => self::JAVASCRIPT_FILL_COMPAT_ACTION,
|
338 |
+
'ajaxNonce' => '',
|
339 |
+
'ajaxQueryAttachmentsAction' => self::JAVASCRIPT_QUERY_ATTACHMENTS_ACTION,
|
340 |
'ajaxUpdateCompatAction' => self::JAVASCRIPT_UPDATE_COMPAT_ACTION,
|
341 |
+
// 'ajaxFillCompatNonce' => '',
|
342 |
+
// 'ajaxUpdateCompatNonce' => '',
|
343 |
+
'enableDetailsCategory' => false,
|
344 |
+
'enableDetailsTag' => false,
|
345 |
'enableMimeTypes' => false,
|
346 |
'enableMonthsDropdown' => false,
|
|
|
347 |
'enableSearchBox' => false,
|
348 |
+
'enableSearchBoxControls' => false,
|
349 |
+
'enableTermsDropdown' => false,
|
350 |
+
'enableTermsSearch' => false,
|
351 |
+
'filterMonth' => 0,
|
352 |
+
'filterTerm' => 0,
|
353 |
'mimeTypes' => '',
|
354 |
'months' => '',
|
355 |
+
'searchClicks' => 0,
|
356 |
+
'searchConnector' => 'AND',
|
357 |
+
'searchFields' => array( 'title', 'content' ),
|
358 |
+
'searchValue' => '',
|
359 |
'termsClass' => array(),
|
360 |
+
'termsIndent' => ' ',
|
361 |
+
'termsTaxonomy' => '',
|
362 |
'termsText' => array(),
|
363 |
+
'termsValue' => array(),
|
|
|
|
|
364 |
);
|
365 |
|
366 |
/**
|
380 |
self::$mla_media_modal_settings['mimeTypes']['detached'] = MLAOptions::$mla_option_definitions[ MLAOptions::MLA_POST_MIME_TYPES ]['std']['unattached']['plural'];
|
381 |
self::$mla_media_modal_settings['months'] = self::_months_dropdown('attachment');
|
382 |
|
383 |
+
self::$mla_media_modal_settings['termsTaxonomy'] = MLAOptions::mla_taxonomy_support('', 'filter');
|
384 |
$terms_options = self::_terms_options( MLA_List_Table::mla_get_taxonomy_filter_dropdown() );
|
385 |
self::$mla_media_modal_settings['termsClass'] = $terms_options['class'];
|
386 |
self::$mla_media_modal_settings['termsValue'] = $terms_options['value'];
|
387 |
self::$mla_media_modal_settings['termsText'] = $terms_options['text'];
|
388 |
|
389 |
+
$current_version = get_bloginfo( 'version' );
|
390 |
+
if ( version_compare( $current_version, '3.9', '<' ) && version_compare( $current_version, '3.6', '>=' ) ) {
|
391 |
+
self::$mla_media_modal_settings['termsIndent'] = '-';
|
392 |
+
}
|
393 |
+
|
394 |
+
self::$mla_media_modal_settings['enableDetailsCategory'] = ( 'checked' == MLAOptions::mla_get_option( MLAOptions::MLA_MEDIA_MODAL_DETAILS_CATEGORY_METABOX ) );
|
395 |
+
self::$mla_media_modal_settings['enableDetailsTag'] = ( 'checked' == MLAOptions::mla_get_option( MLAOptions::MLA_MEDIA_MODAL_DETAILS_TAG_METABOX ) );
|
396 |
self::$mla_media_modal_settings['enableMimeTypes'] = ( 'checked' == MLAOptions::mla_get_option( MLAOptions::MLA_MEDIA_MODAL_MIMETYPES ) );
|
397 |
self::$mla_media_modal_settings['enableMonthsDropdown'] = ( 'checked' == MLAOptions::mla_get_option( MLAOptions::MLA_MEDIA_MODAL_MONTHS ) );
|
|
|
398 |
self::$mla_media_modal_settings['enableSearchBox'] = ( 'checked' == MLAOptions::mla_get_option( MLAOptions::MLA_MEDIA_MODAL_SEARCHBOX ) );
|
399 |
+
self::$mla_media_modal_settings['enableSearchBoxControls'] = ( 'checked' == MLAOptions::mla_get_option( MLAOptions::MLA_MEDIA_MODAL_SEARCHBOX_CONTROLS ) );
|
400 |
+
self::$mla_media_modal_settings['enableTermsDropdown'] = ( 'checked' == MLAOptions::mla_get_option( MLAOptions::MLA_MEDIA_MODAL_TERMS ) );
|
401 |
+
self::$mla_media_modal_settings['enableTermsSearch'] = ( 'checked' == MLAOptions::mla_get_option( MLAOptions::MLA_MEDIA_MODAL_TERMS_SEARCH ) );
|
402 |
|
403 |
/*
|
404 |
* These will be passed back to the server in the query['s'] field.
|
405 |
*/
|
406 |
+
self::$mla_media_modal_settings['filterMonth'] = 0; // mla_filter_month
|
407 |
+
self::$mla_media_modal_settings['filterTerm'] = 0; // mla_filter_term
|
408 |
+
self::$mla_media_modal_settings['searchClicks'] = 0; // mla_search_clicks, to force transmission
|
409 |
+
self::$mla_media_modal_settings['searchConnector'] = 'AND'; // mla_search_connector
|
410 |
+
self::$mla_media_modal_settings['searchFields'] = array( 'title', 'content' ); // mla_search_fields
|
411 |
+
self::$mla_media_modal_settings['searchValue'] = ''; // mla_search_value
|
412 |
+
self::$mla_media_modal_settings['termsSearch'] = ''; // mla_terms_search
|
413 |
|
414 |
$settings = array_merge( $settings, array( 'mla_settings' => self::$mla_media_modal_settings ) );
|
415 |
return $settings;
|
429 |
public static function mla_media_view_strings_filter( $strings, $post ) {
|
430 |
$mla_strings = array(
|
431 |
'searchBoxPlaceholder' => __( 'Search Box', 'media-library-assistant' ),
|
432 |
+
'loadingText' => __( 'Loading...', 'media-library-assistant' ),
|
433 |
+
'searchBoxControlsStyle' => ( 'checked' == MLAOptions::mla_get_option( MLAOptions::MLA_MEDIA_MODAL_SEARCHBOX_CONTROLS ) ) ? 'display: inline;' : 'display: none;',
|
434 |
);
|
435 |
|
436 |
$strings = array_merge( $strings, array( 'mla_strings' => $mla_strings ) );
|
448 |
public static function mla_wp_enqueue_media_action( ) {
|
449 |
$suffix = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '' : '.min';
|
450 |
|
|
|
451 |
wp_register_style( self::JAVASCRIPT_MEDIA_MODAL_STYLES, MLA_PLUGIN_URL . 'css/mla-media-modal-style.css', false, MLA::CURRENT_MLA_VERSION );
|
452 |
wp_enqueue_style( self::JAVASCRIPT_MEDIA_MODAL_STYLES );
|
453 |
|
454 |
wp_enqueue_script( self::JAVASCRIPT_MEDIA_MODAL_SLUG, MLA_PLUGIN_URL . "js/mla-media-modal-scripts{$suffix}.js", array( 'media-views' ), MLA::CURRENT_MLA_VERSION, false );
|
455 |
+
|
456 |
+
if ( 'checked' == MLAOptions::mla_get_option( MLAOptions::MLA_MEDIA_MODAL_TERMS_SEARCH ) ) {
|
457 |
+
MLAModal::mla_add_terms_search_scripts();
|
458 |
+
}
|
459 |
} // mla_wp_enqueue_media_action
|
460 |
|
461 |
/**
|
467 |
* @return void echoes HTML script tags for the templates
|
468 |
*/
|
469 |
public static function mla_print_media_templates_action( ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
470 |
/*
|
471 |
* Compose the Search Media box
|
472 |
*/
|
473 |
+
$search_defaults = MLAOptions::mla_get_option( MLAOptions::MLA_SEARCH_MEDIA_FILTER_DEFAULTS );
|
474 |
+
|
475 |
if ( isset( $_REQUEST['query']['mla_search_value'] ) ) {
|
476 |
$search_value = esc_attr( stripslashes( trim( $_REQUEST['query']['mla_search_value'] ) ) );
|
477 |
} else {
|
481 |
if ( isset( $_REQUEST['query']['mla_search_fields'] ) ) {
|
482 |
$search_fields = $_REQUEST['query']['mla_search_fields'];
|
483 |
} else {
|
484 |
+
$search_fields = $search_defaults['search_fields'];
|
485 |
}
|
486 |
|
487 |
if ( isset( $_REQUEST['query']['mla_search_connector'] ) ) {
|
488 |
$search_connector = $_REQUEST['query']['mla_search_connector'];
|
489 |
} else {
|
490 |
+
$search_connector = $search_defaults['search_connector'];
|
491 |
}
|
492 |
|
493 |
// Include mla javascript templates
|
815 |
*/
|
816 |
public static function mla_update_compat_fields_action() {
|
817 |
global $post;
|
|
|
818 |
if ( empty( $_REQUEST['id'] ) || ! $id = absint( $_REQUEST['id'] ) ) {
|
819 |
wp_send_json_error();
|
820 |
}
|
861 |
}
|
862 |
|
863 |
$list = array();
|
864 |
+
$object_terms = array();
|
865 |
foreach ( $terms as $term ) {
|
866 |
$list[] = $term->name;
|
867 |
+
$object_terms[ $term->term_id ] = $term->name;
|
868 |
} // foreach $term
|
869 |
|
870 |
sort( $list );
|
871 |
$hidden_list = join( ',', $list );
|
872 |
|
873 |
+
$results[$key]["object-terms"] = $object_terms;
|
874 |
$results[$key]["mla-attachments-{$id}-{$key}"] = "\t\t<input name='attachments[{$id}][{$key}]' class='the-tags' id='mla-attachments-{$id}-{$key}' type='hidden' value='{$hidden_list}'>\n";
|
875 |
$results[$key]["mla-tags-{$id}-{$key}"] = "\t\t<input name='mla_tags[{$id}][{$key}]' class='server-tags' id='mla-tags-{$id}-{$key}' type='hidden' value='{$hidden_list}'>\n";
|
876 |
}
|
900 |
$query = isset( $_REQUEST['query'] ) ? (array) $_REQUEST['query'] : array();
|
901 |
$query = array_intersect_key( $query, array_flip( array(
|
902 |
'order', 'orderby', 'posts_per_page', 'paged', 'post_mime_type',
|
903 |
+
'post_parent', 'post__in', 'post__not_in',
|
904 |
+
'mla_filter_month', 'mla_filter_term', 'mla_terms_search',
|
905 |
'mla_search_value', 's', 'mla_search_fields', 'mla_search_connector'
|
906 |
) ) );
|
907 |
|
988 |
|
989 |
wp_send_json_success( $posts );
|
990 |
}
|
991 |
+
|
992 |
+
/**
|
993 |
+
* Add the styles and scripts for the "Search Terms" popup modal window,
|
994 |
+
* but only once per page load
|
995 |
+
*
|
996 |
+
* @since 1.90
|
997 |
+
*
|
998 |
+
* @return void
|
999 |
+
*/
|
1000 |
+
public static function mla_add_terms_search_scripts() {
|
1001 |
+
static $add_the_scripts = true;
|
1002 |
+
|
1003 |
+
$suffix = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '' : '.min';
|
1004 |
+
|
1005 |
+
if ( $add_the_scripts ) {
|
1006 |
+
wp_register_style( MLA::STYLESHEET_SLUG . '-terms-search', MLA_PLUGIN_URL . 'css/mla-style-terms-search.css', false, MLA::CURRENT_MLA_VERSION );
|
1007 |
+
wp_enqueue_style( MLA::STYLESHEET_SLUG . '-terms-search' );
|
1008 |
+
|
1009 |
+
wp_enqueue_script( MLA::JAVASCRIPT_INLINE_EDIT_SLUG . '-terms-search', MLA_PLUGIN_URL . "js/mla-terms-search-scripts{$suffix}.js",
|
1010 |
+
array( 'jquery' ), MLA::CURRENT_MLA_VERSION, false );
|
1011 |
+
|
1012 |
+
$script_variables = array(
|
1013 |
+
);
|
1014 |
+
|
1015 |
+
if ( version_compare( get_bloginfo( 'version' ), '3.8', '>=' ) ) {
|
1016 |
+
$script_variables['useDashicons'] = true;
|
1017 |
+
} else {
|
1018 |
+
$script_variables['useDashicons'] = false;
|
1019 |
+
}
|
1020 |
+
|
1021 |
+
wp_localize_script( MLA::JAVASCRIPT_INLINE_EDIT_SLUG . '-terms-search', self::JAVASCRIPT_TERMS_SEARCH_OBJECT, $script_variables );
|
1022 |
+
|
1023 |
+
/*
|
1024 |
+
* Insert the hidden form for the Search Terms popup window
|
1025 |
+
*/
|
1026 |
+
MLAModal::mla_add_terms_search_form();
|
1027 |
+
|
1028 |
+
$add_the_scripts = false;
|
1029 |
+
}
|
1030 |
+
}
|
1031 |
+
|
1032 |
+
/**
|
1033 |
+
* Add the hidden form for the "Search Terms" popup modal window,
|
1034 |
+
* but only once per page load
|
1035 |
+
*
|
1036 |
+
* @since 1.90
|
1037 |
+
*
|
1038 |
+
* @return void
|
1039 |
+
*/
|
1040 |
+
public static function mla_add_terms_search_form() {
|
1041 |
+
static $add_the_form = true;
|
1042 |
+
|
1043 |
+
if ( $add_the_form ) {
|
1044 |
+
add_action( 'admin_footer', 'MLAModal::mla_echo_terms_search_form' );
|
1045 |
+
$add_the_form = false;
|
1046 |
+
}
|
1047 |
+
}
|
1048 |
+
|
1049 |
+
/**
|
1050 |
+
* Echo the hidden form for the "Search Terms" popup modal window
|
1051 |
+
*
|
1052 |
+
* @since 1.90
|
1053 |
+
*
|
1054 |
+
* @return void Echos the HTML <form> markup for hidden form
|
1055 |
+
*/
|
1056 |
+
public static function mla_echo_terms_search_form() {
|
1057 |
+
echo MLAModal::mla_terms_search_form();
|
1058 |
+
}
|
1059 |
+
|
1060 |
+
/**
|
1061 |
+
* Build the hidden form for the "Search Terms" popup modal window
|
1062 |
+
*
|
1063 |
+
* @since 1.90
|
1064 |
+
*
|
1065 |
+
* @return string HTML <form> markup for hidden form
|
1066 |
+
*/
|
1067 |
+
public static function mla_terms_search_form() {
|
1068 |
+
$page_template_array = MLAData::mla_load_template( 'admin-terms-search-form.tpl' );
|
1069 |
+
if ( ! array( $page_template_array ) ) {
|
1070 |
+
/* translators: 1: function name 2: non-array value */
|
1071 |
+
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 );
|
1072 |
+
return '';
|
1073 |
+
}
|
1074 |
+
|
1075 |
+
$taxonomies = array();
|
1076 |
+
foreach( get_object_taxonomies( 'attachment', 'objects' ) as $taxonomy ) {
|
1077 |
+
if ( MLAOptions::mla_taxonomy_support( $taxonomy->name, 'support' ) ) {
|
1078 |
+
$taxonomies[] = $taxonomy;
|
1079 |
+
}
|
1080 |
+
}
|
1081 |
+
|
1082 |
+
if( empty( $taxonomies ) ) {
|
1083 |
+
$page_values = array(
|
1084 |
+
'Search Terms' => __( 'Search Terms', 'media-library-assistant' ),
|
1085 |
+
'message' => __( 'There are no taxonomies to search', 'media-library-assistant' ),
|
1086 |
+
);
|
1087 |
+
$terms_search_tpl = MLAData::mla_parse_template( $page_template_array['mla-terms-search-empty-div'], $page_values );
|
1088 |
+
} else {
|
1089 |
+
$taxonomy_list = '';
|
1090 |
+
foreach ( $taxonomies as $taxonomy ) {
|
1091 |
+
$page_values = array(
|
1092 |
+
'taxonomy_checked' => MLAOptions::mla_taxonomy_support( $taxonomy->name, 'term-search' ) ? 'checked="checked"' : '',
|
1093 |
+
'taxonomy_slug' => $taxonomy->name,
|
1094 |
+
'taxonomy_label' => esc_attr( $taxonomy->label ),
|
1095 |
+
);
|
1096 |
+
$taxonomy_list .= MLAData::mla_parse_template( $page_template_array['mla-terms-search-taxonomy'], $page_values );
|
1097 |
+
}
|
1098 |
+
|
1099 |
+
$page_values = array(
|
1100 |
+
'Search Terms' => __( 'Search Terms', 'media-library-assistant' ),
|
1101 |
+
'Search' => __( 'Search', 'media-library-assistant' ),
|
1102 |
+
'phrases_and_checked' => 'checked="checked"',
|
1103 |
+
'All phrases' => __( 'All phrases', 'media-library-assistant' ),
|
1104 |
+
'phrases_or_checked' => '',
|
1105 |
+
'Any phrase' => __( 'Any phrase', 'media-library-assistant' ),
|
1106 |
+
'terms_and_checked' => '',
|
1107 |
+
'All terms' => __( 'All terms', 'media-library-assistant' ),
|
1108 |
+
'terms_or_checked' => 'checked="checked"',
|
1109 |
+
'Any term' => __( 'Any term', 'media-library-assistant' ),
|
1110 |
+
'mla_terms_search_taxonomies' => $taxonomy_list,
|
1111 |
+
);
|
1112 |
+
$terms_search_tpl = MLAData::mla_parse_template( $page_template_array['mla-terms-search-div'], $page_values );
|
1113 |
+
}
|
1114 |
+
|
1115 |
+
$page_values = array(
|
1116 |
+
'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' ) ) ),
|
1117 |
+
'mla_terms_search_action' => MLA::MLA_ADMIN_terms_search,
|
1118 |
+
'wpnonce' => wp_nonce_field( MLA::MLA_ADMIN_NONCE, '_wpnonce', true, false ),
|
1119 |
+
'mla_terms_search_div' => $terms_search_tpl,
|
1120 |
+
);
|
1121 |
+
$terms_search_tpl = MLAData::mla_parse_template( $page_template_array['mla-terms-search-form'], $page_values );
|
1122 |
+
|
1123 |
+
return $terms_search_tpl;
|
1124 |
+
}
|
1125 |
} //Class MLAModal
|
1126 |
?>
|
includes/class-mla-objects.php
CHANGED
@@ -55,7 +55,8 @@ class MLAObjects {
|
|
55 |
'labels' => $labels,
|
56 |
'show_ui' => true,
|
57 |
'query_var' => true,
|
58 |
-
'rewrite' => true
|
|
|
59 |
)
|
60 |
);
|
61 |
}
|
@@ -84,7 +85,8 @@ class MLAObjects {
|
|
84 |
'show_ui' => true,
|
85 |
'update_count_callback' => '_update_post_term_count',
|
86 |
'query_var' => true,
|
87 |
-
'rewrite' => true
|
|
|
88 |
)
|
89 |
);
|
90 |
}
|
55 |
'labels' => $labels,
|
56 |
'show_ui' => true,
|
57 |
'query_var' => true,
|
58 |
+
'rewrite' => true,
|
59 |
+
'update_count_callback' => '_update_generic_term_count'
|
60 |
)
|
61 |
);
|
62 |
}
|
85 |
'show_ui' => true,
|
86 |
'update_count_callback' => '_update_post_term_count',
|
87 |
'query_var' => true,
|
88 |
+
'rewrite' => true,
|
89 |
+
'update_count_callback' => '_update_generic_term_count'
|
90 |
)
|
91 |
);
|
92 |
}
|
includes/class-mla-options.php
CHANGED
@@ -106,6 +106,16 @@ class MLAOptions {
|
|
106 |
*/
|
107 |
const MLA_TAXONOMY_FILTER_INCLUDE_CHILDREN = 'taxonomy_filter_include_children';
|
108 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
109 |
/**
|
110 |
* Provides a "size" attribute value for the EXIF/Template Value field
|
111 |
*/
|
@@ -152,11 +162,21 @@ class MLAOptions {
|
|
152 |
*/
|
153 |
const MLA_MEDIA_MODAL_TERMS = 'media_modal_terms';
|
154 |
|
|
|
|
|
|
|
|
|
|
|
155 |
/**
|
156 |
* Provides a unique name for the Media Manager toolbar Search Box option
|
157 |
*/
|
158 |
const MLA_MEDIA_MODAL_SEARCHBOX = 'media_modal_searchbox';
|
159 |
|
|
|
|
|
|
|
|
|
|
|
160 |
/**
|
161 |
* Provides a unique name for the Media Manager Attachment Details searchable taxonomy option
|
162 |
* This option is for hierarchical taxonomies, e.g., "Att. Categories".
|
@@ -476,8 +496,16 @@ class MLAOptions {
|
|
476 |
|
477 |
self::MLA_TAXONOMY_SUPPORT =>
|
478 |
array('tab' => 'general',
|
479 |
-
'help' => __( 'Check the "Support" box to add the taxonomy to the Assistant and the Edit Media screen
|
480 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
481 |
'tax_support' => array (
|
482 |
'attachment_category' => 'checked',
|
483 |
'attachment_tag' => 'checked',
|
@@ -487,6 +515,10 @@ class MLAOptions {
|
|
487 |
'attachment_tag' => 'checked',
|
488 |
),
|
489 |
'tax_flat_checklist' => array(),
|
|
|
|
|
|
|
|
|
490 |
'tax_filter' => 'attachment_category'
|
491 |
),
|
492 |
'type' => 'custom',
|
@@ -595,6 +627,31 @@ class MLAOptions {
|
|
595 |
'std' => 'checked',
|
596 |
'help' => __( 'Check/uncheck this option to include/exclude children for hierarchical taxonomies.', 'media-library-assistant' )),
|
597 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
598 |
'edit_media_header' =>
|
599 |
array('tab' => 'general',
|
600 |
'name' => __( 'Media/Edit Media Enhancements', 'media-library-assistant' ),
|
@@ -647,6 +704,13 @@ class MLAOptions {
|
|
647 |
'std' => 'checked',
|
648 |
'help' => __( 'Check this option to filter by taxonomy terms.', 'media-library-assistant' )),
|
649 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
650 |
self::MLA_MEDIA_MODAL_SEARCHBOX =>
|
651 |
array('tab' => 'general',
|
652 |
'name' => __( 'Media Manager Enhanced Search Media box', 'media-library-assistant' ),
|
@@ -654,6 +718,13 @@ class MLAOptions {
|
|
654 |
'std' => 'checked',
|
655 |
'help' => __( 'Check this option to enable search box enhancements.', 'media-library-assistant' )),
|
656 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
657 |
self::MLA_MEDIA_MODAL_DETAILS_CATEGORY_METABOX =>
|
658 |
array('tab' => 'general',
|
659 |
'name' => __( 'Media Manager Checklist meta boxes', 'media-library-assistant' ),
|
@@ -967,7 +1038,7 @@ class MLAOptions {
|
|
967 |
'name' => __( 'Enable View and Post MIME Type Support', 'media-library-assistant' ),
|
968 |
'type' => 'checkbox',
|
969 |
'std' => 'checked',
|
970 |
-
'help' => __( 'Check/uncheck this option to enable/disable Post MIME Type Support, then click <strong>Save Changes</strong> to record the new setting.', 'media-library-assistant' )),
|
971 |
|
972 |
self::MLA_POST_MIME_TYPES =>
|
973 |
array('tab' => '',
|
@@ -1303,84 +1374,125 @@ class MLAOptions {
|
|
1303 |
* @param string Optional. 'support' (default), 'quick-edit' or 'filter'
|
1304 |
*
|
1305 |
* @return boolean|string
|
1306 |
-
* true if the taxonomy is supported in this way else false
|
1307 |
-
* string if $tax_name is '' and $support_type is 'filter', returns the taxonomy to filter by
|
1308 |
*/
|
1309 |
public static function mla_taxonomy_support($tax_name, $support_type = 'support') {
|
1310 |
$tax_options = MLAOptions::mla_get_option( self::MLA_TAXONOMY_SUPPORT );
|
|
|
1311 |
switch ( $support_type ) {
|
1312 |
case 'support':
|
1313 |
-
$tax_support = isset( $tax_options['tax_support'] ) ? $tax_options['tax_support'] : array();
|
1314 |
-
$is_supported = array_key_exists( $tax_name, $tax_support );
|
1315 |
-
|
1316 |
if ( !empty( $_REQUEST['mla-general-options-save'] ) ) {
|
1317 |
-
|
1318 |
} elseif ( !empty( $_REQUEST['mla-general-options-reset'] ) ) {
|
1319 |
-
|
1320 |
-
case 'attachment_category':
|
1321 |
-
case 'attachment_tag':
|
1322 |
-
$is_supported = true;
|
1323 |
-
break;
|
1324 |
-
default:
|
1325 |
-
$is_supported = false;
|
1326 |
-
}
|
1327 |
}
|
1328 |
|
1329 |
-
|
|
|
1330 |
case 'quick-edit':
|
1331 |
-
$tax_quick_edit = isset( $tax_options['tax_quick_edit'] ) ? $tax_options['tax_quick_edit'] : array();
|
1332 |
-
$is_supported = array_key_exists( $tax_name, $tax_quick_edit );
|
1333 |
-
|
1334 |
if ( !empty( $_REQUEST['mla-general-options-save'] ) ) {
|
1335 |
-
|
1336 |
} elseif ( !empty( $_REQUEST['mla-general-options-reset'] ) ) {
|
1337 |
-
|
1338 |
-
case 'attachment_category':
|
1339 |
-
case 'attachment_tag':
|
1340 |
-
$is_supported = true;
|
1341 |
-
break;
|
1342 |
-
default:
|
1343 |
-
$is_supported = false;
|
1344 |
-
}
|
1345 |
}
|
1346 |
|
1347 |
-
|
|
|
1348 |
case 'flat-checklist':
|
1349 |
-
|
1350 |
-
|
|
|
|
|
|
|
1351 |
|
|
|
|
|
|
|
1352 |
if ( !empty( $_REQUEST['mla-general-options-save'] ) ) {
|
1353 |
-
|
1354 |
} elseif ( !empty( $_REQUEST['mla-general-options-reset'] ) ) {
|
1355 |
-
$
|
1356 |
}
|
1357 |
|
1358 |
-
|
|
|
1359 |
case 'filter':
|
1360 |
-
$tax_filter = isset( $tax_options['tax_filter'] ) ? $tax_options['tax_filter'] : '';
|
1361 |
if ( '' == $tax_name ) {
|
1362 |
return $tax_filter;
|
1363 |
}
|
1364 |
|
1365 |
-
$is_supported = ( $tax_name == $tax_filter );
|
1366 |
-
|
1367 |
if ( !empty( $_REQUEST['mla-general-options-save'] ) ) {
|
1368 |
$tax_filter = isset( $_REQUEST['tax_filter'] ) ? $_REQUEST['tax_filter'] : '';
|
1369 |
-
|
1370 |
} elseif ( !empty( $_REQUEST['mla-general-options-reset'] ) ) {
|
1371 |
-
|
1372 |
-
$is_supported = true;
|
1373 |
-
} else {
|
1374 |
-
$is_supported = false;
|
1375 |
-
}
|
1376 |
}
|
1377 |
|
1378 |
-
return $
|
1379 |
default:
|
1380 |
return false;
|
1381 |
} // $support_type
|
1382 |
} // mla_taxonomy_support
|
1383 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1384 |
/**
|
1385 |
* Render and manage Attachment Display Settings options; alignment, link type and size
|
1386 |
*
|
@@ -1452,7 +1564,7 @@ class MLAOptions {
|
|
1452 |
* @uses $mla_option_templates contains taxonomy-row and taxonomy-table templates
|
1453 |
*
|
1454 |
* @param string 'render', 'update', 'delete', or 'reset'
|
1455 |
-
* @param string option name, e.g., '
|
1456 |
* @param array option parameters
|
1457 |
* @param array Optional. null (default) for 'render' else option data, e.g., $_REQUEST
|
1458 |
*
|
@@ -1463,10 +1575,11 @@ class MLAOptions {
|
|
1463 |
case 'render':
|
1464 |
$taxonomies = get_taxonomies( array ( 'show_ui' => true ), 'objects' );
|
1465 |
$current_values = self::mla_get_option( $key );
|
1466 |
-
$tax_support = isset( $current_values['tax_support'] ) ? $current_values['tax_support'] :
|
1467 |
-
$tax_quick_edit = isset( $current_values['tax_quick_edit'] ) ? $current_values['tax_quick_edit'] :
|
1468 |
-
$tax_flat_checklist = isset( $current_values['tax_flat_checklist'] ) ? $current_values['tax_flat_checklist'] :
|
1469 |
-
$
|
|
|
1470 |
|
1471 |
/*
|
1472 |
* Always display our own taxonomies, even if not registered.
|
@@ -1513,6 +1626,7 @@ class MLAOptions {
|
|
1513 |
'support_checked' => array_key_exists( $tax_name, $tax_support ) ? 'checked=checked' : '',
|
1514 |
'quick_edit_checked' => array_key_exists( $tax_name, $tax_quick_edit ) ? 'checked=checked' : '',
|
1515 |
'flat_checklist_checked' => array_key_exists( $tax_name, $tax_flat_checklist ) ? 'checked=checked' : '',
|
|
|
1516 |
'flat_checklist_disabled' => '',
|
1517 |
'flat_checklist_value' => 'checked',
|
1518 |
'filter_checked' => ( $tax_name == $tax_filter ) ? 'checked=checked' : ''
|
@@ -1531,6 +1645,7 @@ class MLAOptions {
|
|
1531 |
'Support' => __( 'Support', 'media-library-assistant' ),
|
1532 |
'Inline Edit' => __( 'Inline Edit', 'media-library-assistant' ),
|
1533 |
'Checklist' => __( 'Checklist', 'media-library-assistant' ),
|
|
|
1534 |
'List Filter' => __( 'List Filter', 'media-library-assistant' ),
|
1535 |
'Taxonomy' => __( 'Taxonomy', 'media-library-assistant' ),
|
1536 |
'taxonomy_rows' => $row,
|
@@ -1540,10 +1655,11 @@ class MLAOptions {
|
|
1540 |
return MLAData::mla_parse_template( self::$mla_option_templates['taxonomy-table'], $option_values );
|
1541 |
case 'update':
|
1542 |
case 'delete':
|
1543 |
-
$tax_support = isset( $args['tax_support'] ) ? $args['tax_support'] :
|
1544 |
-
$tax_quick_edit = isset( $args['tax_quick_edit'] ) ? $args['tax_quick_edit'] :
|
1545 |
-
$tax_flat_checklist = isset( $args['tax_flat_checklist'] ) ? $args['tax_flat_checklist'] :
|
1546 |
-
$
|
|
|
1547 |
|
1548 |
$msg = '';
|
1549 |
|
@@ -1571,10 +1687,19 @@ class MLAOptions {
|
|
1571 |
}
|
1572 |
}
|
1573 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1574 |
$value = array (
|
1575 |
'tax_support' => $tax_support,
|
1576 |
'tax_quick_edit' => $tax_quick_edit,
|
1577 |
'tax_flat_checklist' => $tax_flat_checklist,
|
|
|
1578 |
'tax_filter' => $tax_filter
|
1579 |
);
|
1580 |
|
@@ -1596,6 +1721,81 @@ class MLAOptions {
|
|
1596 |
}
|
1597 |
} // mla_taxonomy_option_handler
|
1598 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1599 |
/**
|
1600 |
* Examine or alter the filename before the file is made permanent
|
1601 |
*
|
@@ -1937,22 +2137,31 @@ class MLAOptions {
|
|
1937 |
|
1938 |
if ( NULL == $post_info ) {
|
1939 |
if ( 'custom_field_mapping' == $category ) {
|
1940 |
-
$post_info = $wpdb->get_results( "SELECT
|
1941 |
} else {
|
1942 |
-
$post_info = $wpdb->get_results( "SELECT
|
1943 |
}
|
1944 |
}
|
1945 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1946 |
switch ( $data_source ) {
|
1947 |
-
case '
|
1948 |
-
|
1949 |
case 'post_parent':
|
1950 |
-
|
1951 |
-
case '
|
1952 |
-
return
|
1953 |
default:
|
1954 |
-
return
|
1955 |
}
|
|
|
|
|
1956 |
} // _evaluate_post_information
|
1957 |
|
1958 |
/**
|
@@ -2148,6 +2357,10 @@ class MLAOptions {
|
|
2148 |
$default_option = 'text';
|
2149 |
}
|
2150 |
|
|
|
|
|
|
|
|
|
2151 |
$item_values = array();
|
2152 |
$placeholders = MLAData::mla_get_template_placeholders( $data_value['meta_name'], $default_option );
|
2153 |
foreach ( $placeholders as $key => $placeholder ) {
|
@@ -2159,6 +2372,9 @@ class MLAOptions {
|
|
2159 |
} // Data Source
|
2160 |
} // foreach placeholder
|
2161 |
|
|
|
|
|
|
|
2162 |
$template = '[+template:' . $data_value['meta_name'] . '+]';
|
2163 |
$item_values = MLAData::mla_expand_field_level_parameters( $template, NULL, $item_values, $post_id, $data_value['keep_existing'], $default_option );
|
2164 |
|
@@ -2168,7 +2384,35 @@ class MLAOptions {
|
|
2168 |
} else {
|
2169 |
$result = MLAData::mla_parse_template( $template, $item_values );
|
2170 |
}
|
2171 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2172 |
break;
|
2173 |
case 'absolute_path':
|
2174 |
case 'absolute_file_name':
|
@@ -2204,9 +2448,6 @@ class MLAOptions {
|
|
2204 |
case 'upload_date':
|
2205 |
$result = self::_evaluate_post_information( $post_id, $category, 'post_date' );
|
2206 |
break;
|
2207 |
-
case 'mime_type':
|
2208 |
-
$result = self::_evaluate_post_information( $post_id, $category, 'post_mime_type' );
|
2209 |
-
break;
|
2210 |
case 'dimensions':
|
2211 |
$result = $file_info['width'] . 'x' . $file_info['height'];
|
2212 |
if ( 'x' == $result ) {
|
@@ -2302,9 +2543,6 @@ class MLAOptions {
|
|
2302 |
$result = '';
|
2303 |
}
|
2304 |
break;
|
2305 |
-
case 'parent':
|
2306 |
-
$result = absint( self::_evaluate_post_information( $post_id, $category, 'post_parent' ) );
|
2307 |
-
break;
|
2308 |
case 'parent_date':
|
2309 |
case 'parent_type':
|
2310 |
case 'parent_title':
|
@@ -2433,24 +2671,24 @@ class MLAOptions {
|
|
2433 |
} // switch $data_source
|
2434 |
|
2435 |
switch( $data_value['format'] ) {
|
|
|
|
|
2436 |
case 'commas':
|
2437 |
if ( is_numeric( $result ) ) {
|
2438 |
$result = str_pad( number_format( (float)$result ), 15, ' ', STR_PAD_LEFT );
|
2439 |
}
|
2440 |
break;
|
2441 |
default:
|
2442 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2443 |
} // format
|
2444 |
|
2445 |
-
/*
|
2446 |
-
* Make numeric values sortable as strings, make all value non-empty
|
2447 |
-
*/
|
2448 |
-
if ( 'raw' != $data_value['format'] && in_array( $data_source, array( 'file_size', 'pixels', 'width', 'height' ) ) ) {
|
2449 |
-
$result = str_pad( $result, 15, ' ', STR_PAD_LEFT );
|
2450 |
-
} elseif ( empty( $result ) ) {
|
2451 |
-
$result = ' ';
|
2452 |
-
}
|
2453 |
-
|
2454 |
return $result;
|
2455 |
} // _evaluate_data_source
|
2456 |
|
@@ -2600,6 +2838,28 @@ class MLAOptions {
|
|
2600 |
* @var array
|
2601 |
*/
|
2602 |
private static $custom_field_data_sources = array (
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2603 |
'absolute_path',
|
2604 |
'absolute_file_name',
|
2605 |
'base_file',
|
@@ -2609,7 +2869,7 @@ class MLAOptions {
|
|
2609 |
'extension',
|
2610 |
'file_size',
|
2611 |
'upload_date',
|
2612 |
-
|
2613 |
'dimensions',
|
2614 |
'pixels',
|
2615 |
'width',
|
@@ -2625,7 +2885,7 @@ class MLAOptions {
|
|
2625 |
'size_bytes[size]',
|
2626 |
'size_pixels[size]',
|
2627 |
'size_dimensions[size]',
|
2628 |
-
|
2629 |
'parent_date',
|
2630 |
'parent_type',
|
2631 |
'parent_title',
|
@@ -2639,6 +2899,7 @@ class MLAOptions {
|
|
2639 |
'gallery_in_title',
|
2640 |
'mla_gallery_in',
|
2641 |
'mla_gallery_in_title',
|
|
|
2642 |
'aperture',
|
2643 |
'credit',
|
2644 |
'camera',
|
106 |
*/
|
107 |
const MLA_TAXONOMY_FILTER_INCLUDE_CHILDREN = 'taxonomy_filter_include_children';
|
108 |
|
109 |
+
/**
|
110 |
+
* Provides a unique name for the display Search Media controls option
|
111 |
+
*/
|
112 |
+
const MLA_SEARCH_MEDIA_FILTER_SHOW_CONTROLS = 'search_media_filter_show_controls';
|
113 |
+
|
114 |
+
/**
|
115 |
+
* Provides a unique name for the display Search Media controls option
|
116 |
+
*/
|
117 |
+
const MLA_SEARCH_MEDIA_FILTER_DEFAULTS = 'search_media_filter_defaults';
|
118 |
+
|
119 |
/**
|
120 |
* Provides a "size" attribute value for the EXIF/Template Value field
|
121 |
*/
|
162 |
*/
|
163 |
const MLA_MEDIA_MODAL_TERMS = 'media_modal_terms';
|
164 |
|
165 |
+
/**
|
166 |
+
* Provides a unique name for the Media Manager toolbar Taxonomy "Terms Search" option
|
167 |
+
*/
|
168 |
+
const MLA_MEDIA_MODAL_TERMS_SEARCH = 'media_modal_terms_search';
|
169 |
+
|
170 |
/**
|
171 |
* Provides a unique name for the Media Manager toolbar Search Box option
|
172 |
*/
|
173 |
const MLA_MEDIA_MODAL_SEARCHBOX = 'media_modal_searchbox';
|
174 |
|
175 |
+
/**
|
176 |
+
* Provides a unique name for the Media Manager toolbar Search Box Controls option
|
177 |
+
*/
|
178 |
+
const MLA_MEDIA_MODAL_SEARCHBOX_CONTROLS = 'media_modal_searchbox_controls';
|
179 |
+
|
180 |
/**
|
181 |
* Provides a unique name for the Media Manager Attachment Details searchable taxonomy option
|
182 |
* This option is for hierarchical taxonomies, e.g., "Att. Categories".
|
496 |
|
497 |
self::MLA_TAXONOMY_SUPPORT =>
|
498 |
array('tab' => 'general',
|
499 |
+
'help' => __( 'Check the "Support" box to add the taxonomy to the Assistant and the Edit Media screen.', 'media-library-assistant' ) . '<br>' .
|
500 |
+
__( 'Check the "Inline Edit" box to display the taxonomy in the Quick Edit and Bulk Edit areas.', 'media-library-assistant' ) . '<br>' .
|
501 |
+
__( 'Check the "Checklist" box to enable the checklist-style meta box for a flat taxonomy.', 'media-library-assistant' ) . '<br>' .
|
502 |
+
__( 'You must also check the <strong>"Enable enhanced checklist taxonomies"</strong> box below to enable this feature.', 'media-library-assistant' ) . '<br>' .
|
503 |
+
__( 'Check the "Term Search" box to add the taxonomy to the "Search Media/Terms" list.', 'media-library-assistant' ) .
|
504 |
+
sprintf( ' %1$s <a href="%2$s">%3$s</a>.', __( 'For complete documentation', 'media-library-assistant' ), admin_url( 'options-general.php?page=' . MLASettings::MLA_SETTINGS_SLUG . '-documentation&mla_tab=documentation#terms_search' ), __( 'click here', 'media-library-assistant' ) )
|
505 |
+
. '<br>' .
|
506 |
+
__( 'Check the "Inline Edit" box to display the taxonomy in the Quick Edit and Bulk Edit areas.', 'media-library-assistant' ) . '<br>' .
|
507 |
+
__( 'Use the "List Filter" option to select the taxonomy on which to filter the Assistant table listing.', 'media-library-assistant' ),
|
508 |
+
'std' => array (
|
509 |
'tax_support' => array (
|
510 |
'attachment_category' => 'checked',
|
511 |
'attachment_tag' => 'checked',
|
515 |
'attachment_tag' => 'checked',
|
516 |
),
|
517 |
'tax_flat_checklist' => array(),
|
518 |
+
'tax_term_search' => array (
|
519 |
+
'attachment_category' => 'checked',
|
520 |
+
'attachment_tag' => 'checked',
|
521 |
+
),
|
522 |
'tax_filter' => 'attachment_category'
|
523 |
),
|
524 |
'type' => 'custom',
|
627 |
'std' => 'checked',
|
628 |
'help' => __( 'Check/uncheck this option to include/exclude children for hierarchical taxonomies.', 'media-library-assistant' )),
|
629 |
|
630 |
+
'search_media_subheader' =>
|
631 |
+
array('tab' => 'general',
|
632 |
+
'name' => __( 'Search Media Defaults', 'media-library-assistant' ),
|
633 |
+
'type' => 'subheader'),
|
634 |
+
|
635 |
+
self::MLA_SEARCH_MEDIA_FILTER_SHOW_CONTROLS =>
|
636 |
+
array('tab' => 'general',
|
637 |
+
'name' => __( 'Display Search Controls', 'media-library-assistant' ),
|
638 |
+
'type' => 'checkbox',
|
639 |
+
'std' => 'checked',
|
640 |
+
'help' => __( 'Check/uncheck this option to display/hide the and/or connector and search fields controls.', 'media-library-assistant' )),
|
641 |
+
|
642 |
+
self::MLA_SEARCH_MEDIA_FILTER_DEFAULTS =>
|
643 |
+
array('tab' => 'general',
|
644 |
+
'help' => __( 'Use these controls to set defaults for the and/or connector and search fields controls.<br>These defaults will be used for the Search Media boxes on both the Media/Assistant submenu<br>and the Media Manager Modal Window.', 'media-library-assistant' ),
|
645 |
+
'std' => array (
|
646 |
+
'search_connector' => 'AND',
|
647 |
+
'search_fields' => array ( 'title', 'content' ),
|
648 |
+
),
|
649 |
+
'type' => 'custom',
|
650 |
+
'render' => 'mla_search_option_handler',
|
651 |
+
'update' => 'mla_search_option_handler',
|
652 |
+
'delete' => 'mla_search_option_handler',
|
653 |
+
'reset' => 'mla_search_option_handler'),
|
654 |
+
|
655 |
'edit_media_header' =>
|
656 |
array('tab' => 'general',
|
657 |
'name' => __( 'Media/Edit Media Enhancements', 'media-library-assistant' ),
|
704 |
'std' => 'checked',
|
705 |
'help' => __( 'Check this option to filter by taxonomy terms.', 'media-library-assistant' )),
|
706 |
|
707 |
+
self::MLA_MEDIA_MODAL_TERMS_SEARCH =>
|
708 |
+
array('tab' => 'general',
|
709 |
+
'name' => __( 'Media Manager Terms Search popup', 'media-library-assistant' ),
|
710 |
+
'type' => 'checkbox',
|
711 |
+
'std' => 'checked',
|
712 |
+
'help' => __( 'Check this option to enable the "Terms Search" popup window.', 'media-library-assistant' )),
|
713 |
+
|
714 |
self::MLA_MEDIA_MODAL_SEARCHBOX =>
|
715 |
array('tab' => 'general',
|
716 |
'name' => __( 'Media Manager Enhanced Search Media box', 'media-library-assistant' ),
|
718 |
'std' => 'checked',
|
719 |
'help' => __( 'Check this option to enable search box enhancements.', 'media-library-assistant' )),
|
720 |
|
721 |
+
self::MLA_MEDIA_MODAL_SEARCHBOX_CONTROLS =>
|
722 |
+
array('tab' => 'general',
|
723 |
+
'name' => __( 'Media Manager Enhanced Search Media Controls', 'media-library-assistant' ),
|
724 |
+
'type' => 'checkbox',
|
725 |
+
'std' => 'checked',
|
726 |
+
'help' => __( 'Check/uncheck this option to display/hide the and/or connector and search fields controls.', 'media-library-assistant' )),
|
727 |
+
|
728 |
self::MLA_MEDIA_MODAL_DETAILS_CATEGORY_METABOX =>
|
729 |
array('tab' => 'general',
|
730 |
'name' => __( 'Media Manager Checklist meta boxes', 'media-library-assistant' ),
|
1038 |
'name' => __( 'Enable View and Post MIME Type Support', 'media-library-assistant' ),
|
1039 |
'type' => 'checkbox',
|
1040 |
'std' => 'checked',
|
1041 |
+
'help' => __( 'Check/uncheck this option to enable/disable Post MIME Type Support, then click <strong>Save Changes</strong> to record the new setting.', 'media-library-assistant' ) ),
|
1042 |
|
1043 |
self::MLA_POST_MIME_TYPES =>
|
1044 |
array('tab' => '',
|
1374 |
* @param string Optional. 'support' (default), 'quick-edit' or 'filter'
|
1375 |
*
|
1376 |
* @return boolean|string
|
1377 |
+
* true if the taxonomy is supported in this way else false.
|
1378 |
+
* string if $tax_name is '' and $support_type is 'filter', returns the taxonomy to filter by.
|
1379 |
*/
|
1380 |
public static function mla_taxonomy_support($tax_name, $support_type = 'support') {
|
1381 |
$tax_options = MLAOptions::mla_get_option( self::MLA_TAXONOMY_SUPPORT );
|
1382 |
+
|
1383 |
switch ( $support_type ) {
|
1384 |
case 'support':
|
|
|
|
|
|
|
1385 |
if ( !empty( $_REQUEST['mla-general-options-save'] ) ) {
|
1386 |
+
return isset( $_REQUEST['tax_support'][ $tax_name ] );
|
1387 |
} elseif ( !empty( $_REQUEST['mla-general-options-reset'] ) ) {
|
1388 |
+
return array_key_exists( $tax_name, self::$mla_option_definitions[ self::MLA_TAXONOMY_SUPPORT ]['std']['tax_support'] );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1389 |
}
|
1390 |
|
1391 |
+
$tax_support = isset( $tax_options['tax_support'] ) ? $tax_options['tax_support'] : self::$mla_option_definitions[ self::MLA_TAXONOMY_SUPPORT ]['std']['tax_support'];
|
1392 |
+
return array_key_exists( $tax_name, $tax_support );
|
1393 |
case 'quick-edit':
|
|
|
|
|
|
|
1394 |
if ( !empty( $_REQUEST['mla-general-options-save'] ) ) {
|
1395 |
+
return isset( $_REQUEST['tax_quick_edit'][ $tax_name ] );
|
1396 |
} elseif ( !empty( $_REQUEST['mla-general-options-reset'] ) ) {
|
1397 |
+
return array_key_exists( $tax_name, self::$mla_option_definitions[ self::MLA_TAXONOMY_SUPPORT ]['std']['tax_quick_edit'] );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1398 |
}
|
1399 |
|
1400 |
+
$tax_quick_edit = isset( $tax_options['tax_quick_edit'] ) ? $tax_options['tax_quick_edit'] : self::$mla_option_definitions[ self::MLA_TAXONOMY_SUPPORT ]['std']['tax_quick_edit'];
|
1401 |
+
return array_key_exists( $tax_name, $tax_quick_edit );
|
1402 |
case 'flat-checklist':
|
1403 |
+
if ( !empty( $_REQUEST['mla-general-options-save'] ) ) {
|
1404 |
+
return isset( $_REQUEST['tax_flat_checklist'][ $tax_name ] );
|
1405 |
+
} elseif ( !empty( $_REQUEST['mla-general-options-reset'] ) ) {
|
1406 |
+
return array_key_exists( $tax_name, self::$mla_option_definitions[ self::MLA_TAXONOMY_SUPPORT ]['std']['tax_flat_checklist'] );
|
1407 |
+
}
|
1408 |
|
1409 |
+
$tax_flat_checklist = isset( $tax_options['tax_flat_checklist'] ) ? $tax_options['tax_flat_checklist'] : self::$mla_option_definitions[ self::MLA_TAXONOMY_SUPPORT ]['std']['tax_flat_checklist'];
|
1410 |
+
return array_key_exists( $tax_name, $tax_flat_checklist );
|
1411 |
+
case 'term-search':
|
1412 |
if ( !empty( $_REQUEST['mla-general-options-save'] ) ) {
|
1413 |
+
return isset( $_REQUEST['tax_term_search'][ $tax_name ] );
|
1414 |
} elseif ( !empty( $_REQUEST['mla-general-options-reset'] ) ) {
|
1415 |
+
return array_key_exists( $tax_name, self::$mla_option_definitions[ self::MLA_TAXONOMY_SUPPORT ]['std']['tax_term_search'] );
|
1416 |
}
|
1417 |
|
1418 |
+
$tax_term_search = isset( $tax_options['tax_term_search'] ) ? $tax_options['tax_term_search'] : self::$mla_option_definitions[ self::MLA_TAXONOMY_SUPPORT ]['std']['tax_term_search'];
|
1419 |
+
return array_key_exists( $tax_name, $tax_term_search );
|
1420 |
case 'filter':
|
1421 |
+
$tax_filter = isset( $tax_options['tax_filter'] ) ? $tax_options['tax_filter'] : self::$mla_option_definitions[ self::MLA_TAXONOMY_SUPPORT ]['std']['tax_filter'];
|
1422 |
if ( '' == $tax_name ) {
|
1423 |
return $tax_filter;
|
1424 |
}
|
1425 |
|
|
|
|
|
1426 |
if ( !empty( $_REQUEST['mla-general-options-save'] ) ) {
|
1427 |
$tax_filter = isset( $_REQUEST['tax_filter'] ) ? $_REQUEST['tax_filter'] : '';
|
1428 |
+
return ( $tax_name == $tax_filter );
|
1429 |
} elseif ( !empty( $_REQUEST['mla-general-options-reset'] ) ) {
|
1430 |
+
return array_key_exists( $tax_name, self::$mla_option_definitions[ self::MLA_TAXONOMY_SUPPORT ]['std']['tax_filter'] );
|
|
|
|
|
|
|
|
|
1431 |
}
|
1432 |
|
1433 |
+
return ( $tax_name == $tax_filter );
|
1434 |
default:
|
1435 |
return false;
|
1436 |
} // $support_type
|
1437 |
} // mla_taxonomy_support
|
1438 |
|
1439 |
+
/**
|
1440 |
+
* Returns an array of taxonomy names assigned to $support_type
|
1441 |
+
*
|
1442 |
+
* @since 1.90
|
1443 |
+
*
|
1444 |
+
* @param string Optional. 'support' (default), 'quick-edit', 'flat-checklist', 'term-search' or 'filter'
|
1445 |
+
*
|
1446 |
+
* @return array taxonomies assigned to $support_type; can be empty.
|
1447 |
+
*/
|
1448 |
+
public static function mla_supported_taxonomies($support_type = 'support') {
|
1449 |
+
$tax_options = MLAOptions::mla_get_option( self::MLA_TAXONOMY_SUPPORT );
|
1450 |
+
switch ( $support_type ) {
|
1451 |
+
case 'support':
|
1452 |
+
if ( !empty( $_REQUEST['mla-general-options-save'] ) ) {
|
1453 |
+
return isset( $_REQUEST['tax_support'] ) ? array_keys( $_REQUEST['tax_support'] ) : array();
|
1454 |
+
} elseif ( !empty( $_REQUEST['mla-general-options-reset'] ) ) {
|
1455 |
+
return array_keys( self::$mla_option_definitions[ self::MLA_TAXONOMY_SUPPORT ]['std']['tax_support'] );
|
1456 |
+
}
|
1457 |
+
|
1458 |
+
return array_keys( isset( $tax_options['tax_support'] ) ? $tax_options['tax_support'] : self::$mla_option_definitions[ self::MLA_TAXONOMY_SUPPORT ]['std']['tax_support'] );
|
1459 |
+
case 'quick-edit':
|
1460 |
+
if ( !empty( $_REQUEST['mla-general-options-save'] ) ) {
|
1461 |
+
return isset( $_REQUEST['tax_quick_edit'] ) ? array_keys( $_REQUEST['tax_quick_edit'] ) : array();
|
1462 |
+
} elseif ( !empty( $_REQUEST['mla-general-options-reset'] ) ) {
|
1463 |
+
return array_keys( self::$mla_option_definitions[ self::MLA_TAXONOMY_SUPPORT ]['std']['tax_quick_edit'] );
|
1464 |
+
}
|
1465 |
+
|
1466 |
+
return array_keys( isset( $tax_options['tax_quick_edit'] ) ? $tax_options['tax_quick_edit'] : self::$mla_option_definitions[ self::MLA_TAXONOMY_SUPPORT ]['std']['tax_quick_edit'] );
|
1467 |
+
case 'flat-checklist':
|
1468 |
+
if ( !empty( $_REQUEST['mla-general-options-save'] ) ) {
|
1469 |
+
return isset( $_REQUEST['tax_flat_checklist'] ) ? array_keys( $_REQUEST['tax_flat_checklist'] ) : array();
|
1470 |
+
} elseif ( !empty( $_REQUEST['mla-general-options-reset'] ) ) {
|
1471 |
+
return array_keys( self::$mla_option_definitions[ self::MLA_TAXONOMY_SUPPORT ]['std']['tax_flat_checklist'] );
|
1472 |
+
}
|
1473 |
+
|
1474 |
+
return array_keys( isset( $tax_options['tax_flat_checklist'] ) ? $tax_options['tax_flat_checklist'] : self::$mla_option_definitions[ self::MLA_TAXONOMY_SUPPORT ]['std']['tax_quick_edit'] );
|
1475 |
+
case 'term-search':
|
1476 |
+
if ( !empty( $_REQUEST['mla-general-options-save'] ) ) {
|
1477 |
+
return isset( $_REQUEST['tax_term_search'] ) ? array_keys( $_REQUEST['tax_term_search'] ) : array();
|
1478 |
+
} elseif ( !empty( $_REQUEST['mla-general-options-reset'] ) ) {
|
1479 |
+
return array_keys( self::$mla_option_definitions[ self::MLA_TAXONOMY_SUPPORT ]['std']['tax_term_search'] );
|
1480 |
+
}
|
1481 |
+
|
1482 |
+
return array_keys( isset( $tax_options['tax_term_search'] ) ? $tax_options['tax_term_search'] : self::$mla_option_definitions[ self::MLA_TAXONOMY_SUPPORT ]['std']['tax_term_search'] );
|
1483 |
+
case 'filter':
|
1484 |
+
if ( !empty( $_REQUEST['mla-general-options-save'] ) ) {
|
1485 |
+
return isset( $_REQUEST['tax_filter'] ) ? (array) $_REQUEST['tax_filter'] : array();
|
1486 |
+
} elseif ( !empty( $_REQUEST['mla-general-options-reset'] ) ) {
|
1487 |
+
return (array) self::$mla_option_definitions[ self::MLA_TAXONOMY_SUPPORT ]['std']['tax_filter'];
|
1488 |
+
}
|
1489 |
+
|
1490 |
+
return (array) isset( $tax_options['tax_filter'] ) ? $tax_options['tax_filter'] : self::$mla_option_definitions[ self::MLA_TAXONOMY_SUPPORT ]['std']['tax_filter'];
|
1491 |
+
default:
|
1492 |
+
return array();
|
1493 |
+
} // $support_type
|
1494 |
+
} // mla_supported_taxonomies
|
1495 |
+
|
1496 |
/**
|
1497 |
* Render and manage Attachment Display Settings options; alignment, link type and size
|
1498 |
*
|
1564 |
* @uses $mla_option_templates contains taxonomy-row and taxonomy-table templates
|
1565 |
*
|
1566 |
* @param string 'render', 'update', 'delete', or 'reset'
|
1567 |
+
* @param string option name, e.g., 'tax_support', or 'tax_flat_checklist'
|
1568 |
* @param array option parameters
|
1569 |
* @param array Optional. null (default) for 'render' else option data, e.g., $_REQUEST
|
1570 |
*
|
1575 |
case 'render':
|
1576 |
$taxonomies = get_taxonomies( array ( 'show_ui' => true ), 'objects' );
|
1577 |
$current_values = self::mla_get_option( $key );
|
1578 |
+
$tax_support = isset( $current_values['tax_support'] ) ? $current_values['tax_support'] : self::$mla_option_definitions[ self::MLA_TAXONOMY_SUPPORT ]['std']['tax_support'];
|
1579 |
+
$tax_quick_edit = isset( $current_values['tax_quick_edit'] ) ? $current_values['tax_quick_edit'] : self::$mla_option_definitions[ self::MLA_TAXONOMY_SUPPORT ]['std']['tax_quick_edit'];
|
1580 |
+
$tax_flat_checklist = isset( $current_values['tax_flat_checklist'] ) ? $current_values['tax_flat_checklist'] : self::$mla_option_definitions[ self::MLA_TAXONOMY_SUPPORT ]['std']['tax_flat_checklist'];
|
1581 |
+
$tax_term_search = isset( $current_values['tax_term_search'] ) ? $current_values['tax_term_search'] : self::$mla_option_definitions[ self::MLA_TAXONOMY_SUPPORT ]['std']['tax_term_search'];
|
1582 |
+
$tax_filter = isset( $current_values['tax_filter'] ) ? $current_values['tax_filter'] : self::$mla_option_definitions[ self::MLA_TAXONOMY_SUPPORT ]['std']['tax_filter'];
|
1583 |
|
1584 |
/*
|
1585 |
* Always display our own taxonomies, even if not registered.
|
1626 |
'support_checked' => array_key_exists( $tax_name, $tax_support ) ? 'checked=checked' : '',
|
1627 |
'quick_edit_checked' => array_key_exists( $tax_name, $tax_quick_edit ) ? 'checked=checked' : '',
|
1628 |
'flat_checklist_checked' => array_key_exists( $tax_name, $tax_flat_checklist ) ? 'checked=checked' : '',
|
1629 |
+
'term_search_checked' => array_key_exists( $tax_name, $tax_term_search ) ? 'checked=checked' : '',
|
1630 |
'flat_checklist_disabled' => '',
|
1631 |
'flat_checklist_value' => 'checked',
|
1632 |
'filter_checked' => ( $tax_name == $tax_filter ) ? 'checked=checked' : ''
|
1645 |
'Support' => __( 'Support', 'media-library-assistant' ),
|
1646 |
'Inline Edit' => __( 'Inline Edit', 'media-library-assistant' ),
|
1647 |
'Checklist' => __( 'Checklist', 'media-library-assistant' ),
|
1648 |
+
'Term Search' => __( 'Term Search', 'media-library-assistant' ),
|
1649 |
'List Filter' => __( 'List Filter', 'media-library-assistant' ),
|
1650 |
'Taxonomy' => __( 'Taxonomy', 'media-library-assistant' ),
|
1651 |
'taxonomy_rows' => $row,
|
1655 |
return MLAData::mla_parse_template( self::$mla_option_templates['taxonomy-table'], $option_values );
|
1656 |
case 'update':
|
1657 |
case 'delete':
|
1658 |
+
$tax_support = isset( $args['tax_support'] ) ? $args['tax_support'] : self::$mla_option_definitions[ self::MLA_TAXONOMY_SUPPORT ]['std']['tax_support'];
|
1659 |
+
$tax_quick_edit = isset( $args['tax_quick_edit'] ) ? $args['tax_quick_edit'] : self::$mla_option_definitions[ self::MLA_TAXONOMY_SUPPORT ]['std']['tax_quick_edit'];
|
1660 |
+
$tax_flat_checklist = isset( $args['tax_flat_checklist'] ) ? $args['tax_flat_checklist'] : self::$mla_option_definitions[ self::MLA_TAXONOMY_SUPPORT ]['std']['tax_flat_checklist'];
|
1661 |
+
$tax_term_search = isset( $args['tax_term_search'] ) ? $args['tax_term_search'] : self::$mla_option_definitions[ self::MLA_TAXONOMY_SUPPORT ]['std']['tax_term_search'];
|
1662 |
+
$tax_filter = isset( $args['tax_filter'] ) ? $args['tax_filter'] : self::$mla_option_definitions[ self::MLA_TAXONOMY_SUPPORT ]['std']['tax_filter'];
|
1663 |
|
1664 |
$msg = '';
|
1665 |
|
1687 |
}
|
1688 |
}
|
1689 |
|
1690 |
+
foreach ( $tax_term_search as $tax_name => $tax_value ) {
|
1691 |
+
if ( !array_key_exists( $tax_name, $tax_support ) ) {
|
1692 |
+
/* translators: 1: taxonomy name */
|
1693 |
+
$msg .= '<br>' . sprintf( __( 'Term Search ignored; %1$s not supported.', 'media-library-assistant' ), $tax_name ) . "\r\n";
|
1694 |
+
unset( $tax_term_search[ $tax_name ] );
|
1695 |
+
}
|
1696 |
+
}
|
1697 |
+
|
1698 |
$value = array (
|
1699 |
'tax_support' => $tax_support,
|
1700 |
'tax_quick_edit' => $tax_quick_edit,
|
1701 |
'tax_flat_checklist' => $tax_flat_checklist,
|
1702 |
+
'tax_term_search' => $tax_term_search,
|
1703 |
'tax_filter' => $tax_filter
|
1704 |
);
|
1705 |
|
1721 |
}
|
1722 |
} // mla_taxonomy_option_handler
|
1723 |
|
1724 |
+
/**
|
1725 |
+
* Render and manage Search box options, e.g., connector and search fields
|
1726 |
+
*
|
1727 |
+
* @since 1.90
|
1728 |
+
* @uses $mla_option_templates contains search-table template
|
1729 |
+
*
|
1730 |
+
* @param string 'render', 'update', 'delete', or 'reset'
|
1731 |
+
* @param string option name; 'search_connector' or 'search_fields'
|
1732 |
+
* @param array option parameters
|
1733 |
+
* @param array Optional. null (default) for 'render' else option data, e.g., $_REQUEST
|
1734 |
+
*
|
1735 |
+
* @return string HTML table row markup for 'render' else message(s) reflecting the results of the operation.
|
1736 |
+
*/
|
1737 |
+
public static function mla_search_option_handler( $action, $key, $value, $args = null ) {
|
1738 |
+
switch ( $action ) {
|
1739 |
+
case 'render':
|
1740 |
+
$current_values = self::mla_get_option( $key );
|
1741 |
+
$search_connector = isset( $current_values['search_connector'] ) ? $current_values['search_connector'] : self::$mla_option_definitions[ self::MLA_SEARCH_MEDIA_FILTER_DEFAULTS ]['std']['search_connector'];
|
1742 |
+
$search_fields = isset( $current_values['search_fields'] ) ? $current_values['search_fields'] : self::$mla_option_definitions[ self::MLA_SEARCH_MEDIA_FILTER_DEFAULTS ]['std']['search_fields'];
|
1743 |
+
|
1744 |
+
$option_values = array (
|
1745 |
+
'and_checked' => ( 'AND' == $search_connector ) ? 'checked="checked"' : '',
|
1746 |
+
'AND' => __( 'and', 'media-library-assistant' ),
|
1747 |
+
'or_checked' => ( 'OR' == $search_connector ) ? 'checked="checked"' : '',
|
1748 |
+
'OR' => __( 'or', 'media-library-assistant' ),
|
1749 |
+
'title_checked' => ( in_array( 'title', $search_fields ) ) ? 'checked="checked"' : '',
|
1750 |
+
'Title' => __( 'Title', 'media-library-assistant' ),
|
1751 |
+
|
1752 |
+
'name_checked' => ( in_array( 'name', $search_fields ) ) ? 'checked="checked"' : '',
|
1753 |
+
'Name' => __( 'Name', 'media-library-assistant' ),
|
1754 |
+
|
1755 |
+
'alt_text_checked' => ( in_array( 'alt-text', $search_fields ) ) ? 'checked="checked"' : '',
|
1756 |
+
'ALT Text' => __( 'ALT Text', 'media-library-assistant' ),
|
1757 |
+
|
1758 |
+
'excerpt_checked' => ( in_array( 'excerpt', $search_fields ) ) ? 'checked="checked"' : '',
|
1759 |
+
'Caption' => __( 'Caption', 'media-library-assistant' ),
|
1760 |
+
|
1761 |
+
'content_checked' => ( in_array( 'content', $search_fields ) ) ? 'checked="checked"' : '',
|
1762 |
+
'Description' => __( 'Description', 'media-library-assistant' ),
|
1763 |
+
|
1764 |
+
'terms_checked' => ( in_array( 'terms', $search_fields ) ) ? 'checked="checked"' : '',
|
1765 |
+
'Terms' => __( 'Terms', 'media-library-assistant' ),
|
1766 |
+
'help' => self::$mla_option_definitions[ self::MLA_SEARCH_MEDIA_FILTER_DEFAULTS ]['help']
|
1767 |
+
);
|
1768 |
+
|
1769 |
+
return MLAData::mla_parse_template( self::$mla_option_templates['search-table'], $option_values );
|
1770 |
+
case 'update':
|
1771 |
+
case 'delete':
|
1772 |
+
$search_connector = isset( $args['search_connector'] ) ? $args['search_connector'] : self::$mla_option_definitions[ self::MLA_SEARCH_MEDIA_FILTER_DEFAULTS ]['std']['search_connector'];
|
1773 |
+
$search_fields = isset( $args['search_fields'] ) ? $args['search_fields'] : self::$mla_option_definitions[ self::MLA_SEARCH_MEDIA_FILTER_DEFAULTS ]['std']['search_fields'];
|
1774 |
+
|
1775 |
+
$msg = '';
|
1776 |
+
|
1777 |
+
$value = array (
|
1778 |
+
'search_connector' => $search_connector,
|
1779 |
+
'search_fields' => $search_fields,
|
1780 |
+
);
|
1781 |
+
|
1782 |
+
self::mla_update_option( $key, $value );
|
1783 |
+
|
1784 |
+
if ( empty( $msg ) ) {
|
1785 |
+
/* translators: 1: option name, e.g., taxonomy_support */
|
1786 |
+
$msg .= '<br>' . sprintf( __( 'Update custom %1$s', 'media-library-assistant' ), $key ) . "\r\n";
|
1787 |
+
}
|
1788 |
+
|
1789 |
+
return $msg;
|
1790 |
+
case 'reset':
|
1791 |
+
self::mla_delete_option( $key );
|
1792 |
+
/* translators: 1: option name, e.g., taxonomy_support */
|
1793 |
+
return '<br>' . sprintf( __( 'Reset custom %1$s', 'media-library-assistant' ), $key ) . "\r\n";
|
1794 |
+
default:
|
1795 |
+
/* translators: 1: option name 2: action, e.g., update, delete, reset */
|
1796 |
+
return '<br>' . sprintf( __( 'ERROR: Custom %1$s unknown action "%2$s"', 'media-library-assistant' ), $key, $action ) . "\r\n";
|
1797 |
+
}
|
1798 |
+
} // mla_search_option_handler
|
1799 |
/**
|
1800 |
* Examine or alter the filename before the file is made permanent
|
1801 |
*
|
2137 |
|
2138 |
if ( NULL == $post_info ) {
|
2139 |
if ( 'custom_field_mapping' == $category ) {
|
2140 |
+
$post_info = $wpdb->get_results( "SELECT * FROM {$wpdb->posts} WHERE post_type = 'attachment'", OBJECT_K );
|
2141 |
} else {
|
2142 |
+
$post_info = $wpdb->get_results( "SELECT * FROM {$wpdb->posts} WHERE ID = '{$post_id}'", OBJECT_K );
|
2143 |
}
|
2144 |
}
|
2145 |
|
2146 |
+
if ( property_exists( $post_info[$post_id], $data_source ) ) {
|
2147 |
+
$post_array = (array) $post_info[$post_id];
|
2148 |
+
$value = $post_array[ $data_source ];
|
2149 |
+
} else {
|
2150 |
+
return false;
|
2151 |
+
}
|
2152 |
+
|
2153 |
switch ( $data_source ) {
|
2154 |
+
case 'post_id':
|
2155 |
+
case 'post_author':
|
2156 |
case 'post_parent':
|
2157 |
+
case 'menu_order':
|
2158 |
+
case 'comment_count':
|
2159 |
+
return ( NULL !== $value ) ? $value : 0;
|
2160 |
default:
|
2161 |
+
return ( NULL !== $value ) ? $value : '';
|
2162 |
}
|
2163 |
+
|
2164 |
+
return false;
|
2165 |
} // _evaluate_post_information
|
2166 |
|
2167 |
/**
|
2357 |
$default_option = 'text';
|
2358 |
}
|
2359 |
|
2360 |
+
/*
|
2361 |
+
* Go through the template and expand the non-prefixed elements
|
2362 |
+
* as Data Sources
|
2363 |
+
*/
|
2364 |
$item_values = array();
|
2365 |
$placeholders = MLAData::mla_get_template_placeholders( $data_value['meta_name'], $default_option );
|
2366 |
foreach ( $placeholders as $key => $placeholder ) {
|
2372 |
} // Data Source
|
2373 |
} // foreach placeholder
|
2374 |
|
2375 |
+
/*
|
2376 |
+
* Now expand the template using the above Data Source values
|
2377 |
+
*/
|
2378 |
$template = '[+template:' . $data_value['meta_name'] . '+]';
|
2379 |
$item_values = MLAData::mla_expand_field_level_parameters( $template, NULL, $item_values, $post_id, $data_value['keep_existing'], $default_option );
|
2380 |
|
2384 |
} else {
|
2385 |
$result = MLAData::mla_parse_template( $template, $item_values );
|
2386 |
}
|
2387 |
+
break;
|
2388 |
+
case 'parent':
|
2389 |
+
$data_source = 'post_parent';
|
2390 |
+
/* fallthru */
|
2391 |
+
case 'post_id':
|
2392 |
+
case 'post_author':
|
2393 |
+
case 'post_parent':
|
2394 |
+
case 'menu_order':
|
2395 |
+
case 'comment_count':
|
2396 |
+
$result = absint( self::_evaluate_post_information( $post_id, $category, $data_source ) );
|
2397 |
+
break;
|
2398 |
+
case 'mime_type':
|
2399 |
+
$data_source = 'post_mime_type';
|
2400 |
+
/* fallthru */
|
2401 |
+
case 'post_date':
|
2402 |
+
case 'post_date_gmt':
|
2403 |
+
case 'post_content':
|
2404 |
+
case 'post_title':
|
2405 |
+
case 'post_excerpt':
|
2406 |
+
case 'post_status':
|
2407 |
+
case 'comment_status':
|
2408 |
+
case 'ping_status':
|
2409 |
+
case 'post_name':
|
2410 |
+
case 'post_modified':
|
2411 |
+
case 'post_modified_gmt':
|
2412 |
+
case 'post_content_filtered':
|
2413 |
+
case 'guid':
|
2414 |
+
case 'post_mime_type':
|
2415 |
+
$result = self::_evaluate_post_information( $post_id, $category, $data_source );
|
2416 |
break;
|
2417 |
case 'absolute_path':
|
2418 |
case 'absolute_file_name':
|
2448 |
case 'upload_date':
|
2449 |
$result = self::_evaluate_post_information( $post_id, $category, 'post_date' );
|
2450 |
break;
|
|
|
|
|
|
|
2451 |
case 'dimensions':
|
2452 |
$result = $file_info['width'] . 'x' . $file_info['height'];
|
2453 |
if ( 'x' == $result ) {
|
2543 |
$result = '';
|
2544 |
}
|
2545 |
break;
|
|
|
|
|
|
|
2546 |
case 'parent_date':
|
2547 |
case 'parent_type':
|
2548 |
case 'parent_title':
|
2671 |
} // switch $data_source
|
2672 |
|
2673 |
switch( $data_value['format'] ) {
|
2674 |
+
case 'raw':
|
2675 |
+
return $result;
|
2676 |
case 'commas':
|
2677 |
if ( is_numeric( $result ) ) {
|
2678 |
$result = str_pad( number_format( (float)$result ), 15, ' ', STR_PAD_LEFT );
|
2679 |
}
|
2680 |
break;
|
2681 |
default:
|
2682 |
+
/*
|
2683 |
+
* Make some numeric values sortable as strings, make all value non-empty
|
2684 |
+
*/
|
2685 |
+
if ( in_array( $data_source, array( 'file_size', 'pixels', 'width', 'height' ) ) ) {
|
2686 |
+
$result = str_pad( $result, 15, ' ', STR_PAD_LEFT );
|
2687 |
+
} elseif ( empty( $result ) ) {
|
2688 |
+
$result = ' ';
|
2689 |
+
}
|
2690 |
} // format
|
2691 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2692 |
return $result;
|
2693 |
} // _evaluate_data_source
|
2694 |
|
2838 |
* @var array
|
2839 |
*/
|
2840 |
private static $custom_field_data_sources = array (
|
2841 |
+
'post_id',
|
2842 |
+
'post_author',
|
2843 |
+
'post_date',
|
2844 |
+
'post_date_gmt',
|
2845 |
+
'post_content',
|
2846 |
+
'post_title',
|
2847 |
+
'post_excerpt',
|
2848 |
+
'post_status',
|
2849 |
+
'comment_status',
|
2850 |
+
'ping_status',
|
2851 |
+
'post_name',
|
2852 |
+
'post_modified',
|
2853 |
+
'post_modified_gmt',
|
2854 |
+
'post_content_filtered',
|
2855 |
+
'parent',
|
2856 |
+
'post_parent',
|
2857 |
+
'guid',
|
2858 |
+
'menu_order',
|
2859 |
+
'mime_type',
|
2860 |
+
'post_mime_type',
|
2861 |
+
'comment_count',
|
2862 |
+
|
2863 |
'absolute_path',
|
2864 |
'absolute_file_name',
|
2865 |
'base_file',
|
2869 |
'extension',
|
2870 |
'file_size',
|
2871 |
'upload_date',
|
2872 |
+
|
2873 |
'dimensions',
|
2874 |
'pixels',
|
2875 |
'width',
|
2885 |
'size_bytes[size]',
|
2886 |
'size_pixels[size]',
|
2887 |
'size_dimensions[size]',
|
2888 |
+
|
2889 |
'parent_date',
|
2890 |
'parent_type',
|
2891 |
'parent_title',
|
2899 |
'gallery_in_title',
|
2900 |
'mla_gallery_in',
|
2901 |
'mla_gallery_in_title',
|
2902 |
+
|
2903 |
'aperture',
|
2904 |
'credit',
|
2905 |
'camera',
|
includes/class-mla-settings.php
CHANGED
@@ -908,7 +908,7 @@ class MLASettings {
|
|
908 |
} else {
|
909 |
$results = self::$mla_tablist;
|
910 |
}
|
911 |
-
|
912 |
return apply_filters( 'mla_get_options_tablist', $results, self::$mla_tablist, $tab );
|
913 |
}
|
914 |
|
@@ -1011,8 +1011,8 @@ class MLASettings {
|
|
1011 |
$shortcodes = array(
|
1012 |
// array("name" => "shortcode", "description" => "This shortcode...")
|
1013 |
// array( 'name' => 'mla_attachment_list', 'description' => __( 'renders a complete list of all attachments and references to them.', 'media-library-assistant' ) ),
|
1014 |
-
array( 'name' => 'mla_gallery', 'description' => __( 'enhanced version of the WordPress [gallery] shortcode.', 'media-library-assistant' ) . sprintf( ' %1$s <a href="%2$s">%3$s</a>.', __( 'For complete documentation', 'media-library-assistant' ), admin_url( 'options-general.php?page=' . self::MLA_SETTINGS_SLUG . '-documentation&mla_tab=documentation' ), __( 'click here', 'media-library-assistant' ) ) ),
|
1015 |
-
array( 'name' => 'mla_tag_cloud', 'description' => __( 'enhanced version of the WordPress Tag Cloud.', 'media-library-assistant' ) . sprintf( ' %1$s <a href="%2$s">%3$s</a>.', __( 'For complete documentation', 'media-library-assistant' ), admin_url( 'options-general.php?page=' . self::MLA_SETTINGS_SLUG . '-documentation&mla_tab=documentation' ), __( 'click here', 'media-library-assistant' ) ) )
|
1016 |
);
|
1017 |
|
1018 |
$shortcode_list = '';
|
@@ -3328,6 +3328,33 @@ class MLASettings {
|
|
3328 |
$_REQUEST[ MLA_OPTION_PREFIX . $key ] = 'cached';
|
3329 |
}
|
3330 |
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3331 |
default:
|
3332 |
// ignore everything else
|
3333 |
} // switch
|
908 |
} else {
|
909 |
$results = self::$mla_tablist;
|
910 |
}
|
911 |
+
|
912 |
return apply_filters( 'mla_get_options_tablist', $results, self::$mla_tablist, $tab );
|
913 |
}
|
914 |
|
1011 |
$shortcodes = array(
|
1012 |
// array("name" => "shortcode", "description" => "This shortcode...")
|
1013 |
// array( 'name' => 'mla_attachment_list', 'description' => __( 'renders a complete list of all attachments and references to them.', 'media-library-assistant' ) ),
|
1014 |
+
array( 'name' => 'mla_gallery', 'description' => __( 'enhanced version of the WordPress [gallery] shortcode.', 'media-library-assistant' ) . sprintf( ' %1$s <a href="%2$s">%3$s</a>.', __( 'For complete documentation', 'media-library-assistant' ), admin_url( 'options-general.php?page=' . self::MLA_SETTINGS_SLUG . '-documentation&mla_tab=documentation#mla_gallery' ), __( 'click here', 'media-library-assistant' ) ) ),
|
1015 |
+
array( 'name' => 'mla_tag_cloud', 'description' => __( 'enhanced version of the WordPress Tag Cloud.', 'media-library-assistant' ) . sprintf( ' %1$s <a href="%2$s">%3$s</a>.', __( 'For complete documentation', 'media-library-assistant' ), admin_url( 'options-general.php?page=' . self::MLA_SETTINGS_SLUG . '-documentation&mla_tab=documentation#mla_tag_cloud' ), __( 'click here', 'media-library-assistant' ) ) )
|
1016 |
);
|
1017 |
|
1018 |
$shortcode_list = '';
|
3328 |
$_REQUEST[ MLA_OPTION_PREFIX . $key ] = 'cached';
|
3329 |
}
|
3330 |
break;
|
3331 |
+
case MLAOptions::MLA_TAXONOMY_SUPPORT:
|
3332 |
+
/*
|
3333 |
+
* Replace missing "checkbox" arguments with empty arrays,
|
3334 |
+
* denoting that all of the boxes are unchecked.
|
3335 |
+
*/
|
3336 |
+
if ( ! isset( $_REQUEST['tax_support'] ) ) {
|
3337 |
+
$_REQUEST['tax_support'] = array();
|
3338 |
+
}
|
3339 |
+
if ( ! isset( $_REQUEST['tax_quick_edit'] ) ) {
|
3340 |
+
$_REQUEST['tax_quick_edit'] = array();
|
3341 |
+
}
|
3342 |
+
if ( ! isset( $_REQUEST['tax_flat_checklist'] ) ) {
|
3343 |
+
$_REQUEST['tax_flat_checklist'] = array();
|
3344 |
+
}
|
3345 |
+
if ( ! isset( $_REQUEST['tax_term_search'] ) ) {
|
3346 |
+
$_REQUEST['tax_term_search'] = array();
|
3347 |
+
}
|
3348 |
+
break;
|
3349 |
+
case MLAOptions::MLA_SEARCH_MEDIA_FILTER_DEFAULTS:
|
3350 |
+
/*
|
3351 |
+
* Replace missing "checkbox" arguments with empty arrays,
|
3352 |
+
* denoting that all of the boxes are unchecked.
|
3353 |
+
*/
|
3354 |
+
if ( ! isset( $_REQUEST['search_fields'] ) ) {
|
3355 |
+
$_REQUEST['search_fields'] = array();
|
3356 |
+
}
|
3357 |
+
break;
|
3358 |
default:
|
3359 |
// ignore everything else
|
3360 |
} // switch
|
includes/class-mla-shortcodes.php
CHANGED
@@ -730,6 +730,11 @@ class MLAShortcodes {
|
|
730 |
$link_text = false;
|
731 |
}
|
732 |
|
|
|
|
|
|
|
|
|
|
|
733 |
$item_values['pagelink'] = wp_get_attachment_link($attachment->ID, $size, true, $show_icon, $link_text);
|
734 |
$item_values['filelink'] = wp_get_attachment_link($attachment->ID, $size, false, $show_icon, $link_text);
|
735 |
|
@@ -740,22 +745,43 @@ class MLAShortcodes {
|
|
740 |
} else {
|
741 |
$dimensions = $registered_dimensions['thumbnail'];
|
742 |
}
|
743 |
-
|
744 |
$thumb = preg_replace( '/width=\"[^\"]*\"/', sprintf( 'width="%1$d"', $dimensions[1] ), $item_values['pagelink'] );
|
745 |
$item_values['pagelink'] = preg_replace( '/height=\"[^\"]*\"/', sprintf( 'height="%1$d"', $dimensions[0] ), $thumb );
|
746 |
$thumb = preg_replace( '/width=\"[^\"]*\"/', sprintf( 'width="%1$d"', $dimensions[1] ), $item_values['filelink'] );
|
747 |
$item_values['filelink'] = preg_replace( '/height=\"[^\"]*\"/', sprintf( 'height="%1$d"', $dimensions[0] ), $thumb );
|
748 |
}
|
749 |
-
|
750 |
/*
|
751 |
* Apply the Gallery Display Content parameters.
|
752 |
* Note that $link_attributes and $rollover_text
|
753 |
* are used in the Google Viewer code below
|
754 |
*/
|
755 |
-
|
756 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
757 |
} else {
|
758 |
-
$
|
|
|
|
|
|
|
|
|
759 |
}
|
760 |
|
761 |
if ( ! empty( $arguments['mla_link_attributes'] ) ) {
|
@@ -771,20 +797,6 @@ class MLAShortcodes {
|
|
771 |
$item_values['filelink'] = str_replace( '<a href=', '<a ' . $link_attributes . 'href=', $item_values['filelink'] );
|
772 |
}
|
773 |
|
774 |
-
if ( ! empty( $arguments['mla_rollover_text'] ) ) {
|
775 |
-
$rollover_text = esc_attr( self::_process_shortcode_parameter( $arguments['mla_rollover_text'], $item_values ) );
|
776 |
-
|
777 |
-
/*
|
778 |
-
* Replace single- and double-quote delimited values
|
779 |
-
*/
|
780 |
-
$item_values['pagelink'] = preg_replace('# title=\'([^\']*)\'#', " title='{$rollover_text}'", $item_values['pagelink'] );
|
781 |
-
$item_values['pagelink'] = preg_replace('# title=\"([^\"]*)\"#', " title=\"{$rollover_text}\"", $item_values['pagelink'] );
|
782 |
-
$item_values['filelink'] = preg_replace('# title=\'([^\']*)\'#', " title='{$rollover_text}'", $item_values['filelink'] );
|
783 |
-
$item_values['filelink'] = preg_replace('# title=\"([^\"]*)\"#', " title=\"{$rollover_text}\"", $item_values['filelink'] );
|
784 |
-
} else {
|
785 |
-
$rollover_text = $item_values['title'];
|
786 |
-
}
|
787 |
-
|
788 |
/*
|
789 |
* Process the <img> tag, if present
|
790 |
* Note that $image_attributes, $image_class and $image_alt
|
@@ -1219,12 +1231,20 @@ class MLAShortcodes {
|
|
1219 |
$is_pagination = in_array( $output_parameters[0], array( 'previous_link', 'current_link', 'next_link', 'previous_page', 'next_page', 'paginate_links' ) );
|
1220 |
|
1221 |
/*
|
1222 |
-
* Convert
|
1223 |
*/
|
1224 |
if ( is_string( $arguments['taxonomy'] ) ) {
|
1225 |
$arguments['taxonomy'] = explode( ',', $arguments['taxonomy'] );
|
1226 |
}
|
1227 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1228 |
$tags = self::mla_get_terms( $arguments );
|
1229 |
|
1230 |
if ( self::$mla_debug ) {
|
@@ -1835,13 +1855,13 @@ class MLAShortcodes {
|
|
1835 |
*/
|
1836 |
private static function _registered_dimensions() {
|
1837 |
global $_wp_additional_image_sizes;
|
1838 |
-
|
1839 |
if ( 'checked' == MLAOptions::mla_get_option( MLAOptions::MLA_ENABLE_MLA_ICONS ) ) {
|
1840 |
$sizes = array( 'icon' => array( 64, 64 ) );
|
1841 |
} else {
|
1842 |
$sizes = array( 'icon' => array( 60, 60 ) );
|
1843 |
}
|
1844 |
-
|
1845 |
foreach( get_intermediate_image_sizes() as $s ) {
|
1846 |
$sizes[ $s ] = array( 0, 0 );
|
1847 |
|
@@ -2364,7 +2384,7 @@ class MLAShortcodes {
|
|
2364 |
'tag_slug__and' => array(),
|
2365 |
'tag_slug__in' => array(),
|
2366 |
// Taxonomy parameters are handled separately
|
2367 |
-
// {tax_slug} => 'term' | array ( 'term, 'term, ... )
|
2368 |
// 'tax_query' => ''
|
2369 |
'tax_operator' => '',
|
2370 |
'tax_include_children' => true,
|
@@ -2531,8 +2551,9 @@ class MLAShortcodes {
|
|
2531 |
return '<p>' . __( 'ERROR: Invalid mla_gallery', 'media-library-assistant' ) . ' tax_query = ' . var_export( $value, true ) . '</p>';
|
2532 |
}
|
2533 |
} // not array
|
2534 |
-
}
|
2535 |
-
|
|
|
2536 |
$query_arguments[ $key ] = implode(',', array_filter( array_map( 'trim', explode( ',', $value ) ) ) );
|
2537 |
|
2538 |
if ( 'false' == strtolower( trim( $arguments['tax_include_children'] ) ) ) {
|
@@ -2805,7 +2826,7 @@ class MLAShortcodes {
|
|
2805 |
* Decide whether to use a "get_children" style query
|
2806 |
*/
|
2807 |
self::$query_parameters['disable_tax_join'] = $is_tax_query && ! $use_children;
|
2808 |
-
|
2809 |
if ( $use_children && ! isset( $query_arguments['post_parent'] ) ) {
|
2810 |
if ( ! isset( $query_arguments['id'] ) ) {
|
2811 |
$query_arguments['post_parent'] = $post_parent;
|
@@ -2880,7 +2901,7 @@ class MLAShortcodes {
|
|
2880 |
|
2881 |
if ( self::$mla_debug ) {
|
2882 |
global $wp_filter;
|
2883 |
-
|
2884 |
foreach( $wp_filter['posts_where'] as $priority => $filters ) {
|
2885 |
self::$mla_debug_messages .= '<p><strong>mla_debug $wp_filter[posts_where]</strong> priority = ' . var_export( $priority, true ) . '<br />';
|
2886 |
foreach ( $filters as $name => $descriptor ) {
|
@@ -2950,7 +2971,7 @@ class MLAShortcodes {
|
|
2950 |
*
|
2951 |
* Defined as public because it's a filter.
|
2952 |
*
|
2953 |
-
* @since 1.
|
2954 |
*
|
2955 |
* @param string query clause before modification
|
2956 |
*
|
@@ -3088,6 +3109,8 @@ class MLAShortcodes {
|
|
3088 |
private static $mla_get_terms_parameters = array(
|
3089 |
'taxonomy' => 'post_tag',
|
3090 |
'post_mime_type' => 'all',
|
|
|
|
|
3091 |
'ids' => array(),
|
3092 |
'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`',
|
3093 |
'include' => '',
|
@@ -3095,11 +3118,12 @@ class MLAShortcodes {
|
|
3095 |
'parent' => '',
|
3096 |
'minimum' => 0,
|
3097 |
'no_count' => false,
|
3098 |
-
'number' =>
|
3099 |
'orderby' => 'name',
|
3100 |
'order' => 'ASC',
|
3101 |
'no_orderby' => false,
|
3102 |
'preserve_case' => false,
|
|
|
3103 |
'limit' => 0,
|
3104 |
'offset' => 0
|
3105 |
);
|
@@ -3112,7 +3136,15 @@ class MLAShortcodes {
|
|
3112 |
* an accurate count of attachments associated with each term.
|
3113 |
*
|
3114 |
* taxonomy - string containing one or more (comma-delimited) taxonomy names
|
3115 |
-
* or an array of taxonomy names.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3116 |
*
|
3117 |
* include - An array, comma- or space-delimited string of term ids to include
|
3118 |
* in the return array.
|
@@ -3122,24 +3154,26 @@ class MLAShortcodes {
|
|
3122 |
*
|
3123 |
* parent - term_id of the terms' immediate parent; 0 for top-level terms.
|
3124 |
*
|
3125 |
-
* minimum - minimum number of attachments a term must have to be included.
|
3126 |
*
|
3127 |
-
* no_count - true
|
3128 |
*
|
3129 |
* number - maximum number of term objects to return. Terms are ordered by count,
|
3130 |
-
* descending and then by term_id before this value is applied.
|
3131 |
*
|
3132 |
-
* orderby - 'count', 'id', 'name', 'none', 'random', 'slug'
|
3133 |
*
|
3134 |
-
* order - 'ASC', 'DESC'
|
3135 |
*
|
3136 |
-
* no_orderby - true to suppress ALL sorting clauses else false
|
3137 |
*
|
3138 |
-
* preserve_case - 'true', 'false' to make orderby case-sensitive.
|
3139 |
*
|
3140 |
-
*
|
3141 |
*
|
3142 |
-
*
|
|
|
|
|
3143 |
*
|
3144 |
* @since 1.60
|
3145 |
*
|
@@ -3196,7 +3230,39 @@ class MLAShortcodes {
|
|
3196 |
if ( ! $no_count ) {
|
3197 |
$query[] = 'LEFT JOIN `' . $wpdb->term_relationships . '` AS tr ON tt.term_taxonomy_id = tr.term_taxonomy_id';
|
3198 |
$query[] = 'LEFT JOIN `' . $wpdb->posts . '` AS p ON tr.object_id = p.ID';
|
3199 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3200 |
}
|
3201 |
|
3202 |
/*
|
@@ -3240,7 +3306,7 @@ class MLAShortcodes {
|
|
3240 |
}
|
3241 |
} // taxonomies
|
3242 |
} // ids
|
3243 |
-
|
3244 |
/*
|
3245 |
* If there are no terms we want an empty cloud
|
3246 |
*/
|
@@ -3251,7 +3317,7 @@ class MLAShortcodes {
|
|
3251 |
$arguments['include'] = implode( ',', $includes );
|
3252 |
}
|
3253 |
}
|
3254 |
-
|
3255 |
/*
|
3256 |
* Add include/exclude and parent constraints to WHERE cluse
|
3257 |
*/
|
@@ -3270,14 +3336,14 @@ class MLAShortcodes {
|
|
3270 |
|
3271 |
if ( 'all' !== strtolower( $arguments['post_mime_type'] ) ) {
|
3272 |
$where = str_replace( '%', '%%', wp_post_mime_type_where( $arguments['post_mime_type'], 'p' ) );
|
3273 |
-
|
3274 |
if ( 0 == absint( $arguments['minimum'] ) ) {
|
3275 |
$query[] = ' AND ( p.post_mime_type IS NULL OR ' . substr( $where, 6 );
|
3276 |
} else {
|
3277 |
$query[] = $where;
|
3278 |
}
|
3279 |
}
|
3280 |
-
|
3281 |
$query[] = ' ) GROUP BY tt.term_taxonomy_id';
|
3282 |
|
3283 |
if ( 0 < absint( $arguments['minimum'] ) ) {
|
@@ -3398,9 +3464,96 @@ class MLAShortcodes {
|
|
3398 |
self::$mla_debug_messages .= '<p><strong>' . __( 'mla_debug found_rows', 'media-library-assistant' ) . '</strong> = ' . var_export( $found_rows, true ) . '</p>';
|
3399 |
}
|
3400 |
|
|
|
|
|
|
|
|
|
3401 |
$tags['found_rows'] = $found_rows;
|
3402 |
$tags = apply_filters( 'mla_get_terms_query_results', $tags );
|
|
|
3403 |
return $tags;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3404 |
}
|
3405 |
} // Class MLAShortcodes
|
3406 |
?>
|
730 |
$link_text = false;
|
731 |
}
|
732 |
|
733 |
+
/*
|
734 |
+
* As of WP 3.7, this function returns "<a href='$url'>$link_text</a>", where $link_text
|
735 |
+
* can be an image thumbnail or a text link. The "title=" attribute was dropped.
|
736 |
+
* The function is defined in /wp-includes/post-template.php.
|
737 |
+
*/
|
738 |
$item_values['pagelink'] = wp_get_attachment_link($attachment->ID, $size, true, $show_icon, $link_text);
|
739 |
$item_values['filelink'] = wp_get_attachment_link($attachment->ID, $size, false, $show_icon, $link_text);
|
740 |
|
745 |
} else {
|
746 |
$dimensions = $registered_dimensions['thumbnail'];
|
747 |
}
|
748 |
+
|
749 |
$thumb = preg_replace( '/width=\"[^\"]*\"/', sprintf( 'width="%1$d"', $dimensions[1] ), $item_values['pagelink'] );
|
750 |
$item_values['pagelink'] = preg_replace( '/height=\"[^\"]*\"/', sprintf( 'height="%1$d"', $dimensions[0] ), $thumb );
|
751 |
$thumb = preg_replace( '/width=\"[^\"]*\"/', sprintf( 'width="%1$d"', $dimensions[1] ), $item_values['filelink'] );
|
752 |
$item_values['filelink'] = preg_replace( '/height=\"[^\"]*\"/', sprintf( 'height="%1$d"', $dimensions[0] ), $thumb );
|
753 |
}
|
754 |
+
|
755 |
/*
|
756 |
* Apply the Gallery Display Content parameters.
|
757 |
* Note that $link_attributes and $rollover_text
|
758 |
* are used in the Google Viewer code below
|
759 |
*/
|
760 |
+
$link_attributes = '';
|
761 |
+
if ( ! empty( $arguments['mla_rollover_text'] ) ) {
|
762 |
+
$rollover_text = esc_attr( self::_process_shortcode_parameter( $arguments['mla_rollover_text'], $item_values ) );
|
763 |
+
|
764 |
+
/*
|
765 |
+
* The "title=" attribute was removed in WP 3.7+, but look for it anyway.
|
766 |
+
* If it's not there, add the "title=" value to the link attributes.
|
767 |
+
*/
|
768 |
+
if ( false === strpos( $item_values['pagelink'], ' title=' ) ) {
|
769 |
+
$link_attributes .= 'title="' . $rollover_text . '" ';
|
770 |
+
}else {
|
771 |
+
/*
|
772 |
+
* Replace single- and double-quote delimited values
|
773 |
+
*/
|
774 |
+
$item_values['pagelink'] = preg_replace('# title=\'([^\']*)\'#', " title='{$rollover_text}'", $item_values['pagelink'] );
|
775 |
+
$item_values['pagelink'] = preg_replace('# title=\"([^\"]*)\"#', " title=\"{$rollover_text}\"", $item_values['pagelink'] );
|
776 |
+
$item_values['filelink'] = preg_replace('# title=\'([^\']*)\'#', " title='{$rollover_text}'", $item_values['filelink'] );
|
777 |
+
$item_values['filelink'] = preg_replace('# title=\"([^\"]*)\"#', " title=\"{$rollover_text}\"", $item_values['filelink'] );
|
778 |
+
}
|
779 |
} else {
|
780 |
+
$rollover_text = $item_values['title'];
|
781 |
+
}
|
782 |
+
|
783 |
+
if ( ! empty( $arguments['mla_target'] ) ) {
|
784 |
+
$link_attributes .= 'target="' . $arguments['mla_target'] . '" ';
|
785 |
}
|
786 |
|
787 |
if ( ! empty( $arguments['mla_link_attributes'] ) ) {
|
797 |
$item_values['filelink'] = str_replace( '<a href=', '<a ' . $link_attributes . 'href=', $item_values['filelink'] );
|
798 |
}
|
799 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
800 |
/*
|
801 |
* Process the <img> tag, if present
|
802 |
* Note that $image_attributes, $image_class and $image_alt
|
1231 |
$is_pagination = in_array( $output_parameters[0], array( 'previous_link', 'current_link', 'next_link', 'previous_page', 'next_page', 'paginate_links' ) );
|
1232 |
|
1233 |
/*
|
1234 |
+
* Convert lists to arrays
|
1235 |
*/
|
1236 |
if ( is_string( $arguments['taxonomy'] ) ) {
|
1237 |
$arguments['taxonomy'] = explode( ',', $arguments['taxonomy'] );
|
1238 |
}
|
1239 |
|
1240 |
+
if ( is_string( $arguments['post_type'] ) ) {
|
1241 |
+
$arguments['post_type'] = explode( ',', $arguments['post_type'] );
|
1242 |
+
}
|
1243 |
+
|
1244 |
+
if ( is_string( $arguments['post_status'] ) ) {
|
1245 |
+
$arguments['post_status'] = explode( ',', $arguments['post_status'] );
|
1246 |
+
}
|
1247 |
+
|
1248 |
$tags = self::mla_get_terms( $arguments );
|
1249 |
|
1250 |
if ( self::$mla_debug ) {
|
1855 |
*/
|
1856 |
private static function _registered_dimensions() {
|
1857 |
global $_wp_additional_image_sizes;
|
1858 |
+
|
1859 |
if ( 'checked' == MLAOptions::mla_get_option( MLAOptions::MLA_ENABLE_MLA_ICONS ) ) {
|
1860 |
$sizes = array( 'icon' => array( 64, 64 ) );
|
1861 |
} else {
|
1862 |
$sizes = array( 'icon' => array( 60, 60 ) );
|
1863 |
}
|
1864 |
+
|
1865 |
foreach( get_intermediate_image_sizes() as $s ) {
|
1866 |
$sizes[ $s ] = array( 0, 0 );
|
1867 |
|
2384 |
'tag_slug__and' => array(),
|
2385 |
'tag_slug__in' => array(),
|
2386 |
// Taxonomy parameters are handled separately
|
2387 |
+
// {tax_slug} => 'term' | array ( 'term', 'term', ... )
|
2388 |
// 'tax_query' => ''
|
2389 |
'tax_operator' => '',
|
2390 |
'tax_include_children' => true,
|
2551 |
return '<p>' . __( 'ERROR: Invalid mla_gallery', 'media-library-assistant' ) . ' tax_query = ' . var_export( $value, true ) . '</p>';
|
2552 |
}
|
2553 |
} // not array
|
2554 |
+
} /* tax_query */ elseif ( 'category' == $key ) {
|
2555 |
+
$arguments['category_name'] = $value;
|
2556 |
+
} /* category */ elseif ( array_key_exists( $key, $taxonomies ) ) {
|
2557 |
$query_arguments[ $key ] = implode(',', array_filter( array_map( 'trim', explode( ',', $value ) ) ) );
|
2558 |
|
2559 |
if ( 'false' == strtolower( trim( $arguments['tax_include_children'] ) ) ) {
|
2826 |
* Decide whether to use a "get_children" style query
|
2827 |
*/
|
2828 |
self::$query_parameters['disable_tax_join'] = $is_tax_query && ! $use_children;
|
2829 |
+
|
2830 |
if ( $use_children && ! isset( $query_arguments['post_parent'] ) ) {
|
2831 |
if ( ! isset( $query_arguments['id'] ) ) {
|
2832 |
$query_arguments['post_parent'] = $post_parent;
|
2901 |
|
2902 |
if ( self::$mla_debug ) {
|
2903 |
global $wp_filter;
|
2904 |
+
|
2905 |
foreach( $wp_filter['posts_where'] as $priority => $filters ) {
|
2906 |
self::$mla_debug_messages .= '<p><strong>mla_debug $wp_filter[posts_where]</strong> priority = ' . var_export( $priority, true ) . '<br />';
|
2907 |
foreach ( $filters as $name => $descriptor ) {
|
2971 |
*
|
2972 |
* Defined as public because it's a filter.
|
2973 |
*
|
2974 |
+
* @since 1.90
|
2975 |
*
|
2976 |
* @param string query clause before modification
|
2977 |
*
|
3109 |
private static $mla_get_terms_parameters = array(
|
3110 |
'taxonomy' => 'post_tag',
|
3111 |
'post_mime_type' => 'all',
|
3112 |
+
'post_type' => 'attachment',
|
3113 |
+
'post_status' => 'inherit',
|
3114 |
'ids' => array(),
|
3115 |
'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`',
|
3116 |
'include' => '',
|
3118 |
'parent' => '',
|
3119 |
'minimum' => 0,
|
3120 |
'no_count' => false,
|
3121 |
+
'number' => 0,
|
3122 |
'orderby' => 'name',
|
3123 |
'order' => 'ASC',
|
3124 |
'no_orderby' => false,
|
3125 |
'preserve_case' => false,
|
3126 |
+
'pad_counts' => false,
|
3127 |
'limit' => 0,
|
3128 |
'offset' => 0
|
3129 |
);
|
3136 |
* an accurate count of attachments associated with each term.
|
3137 |
*
|
3138 |
* taxonomy - string containing one or more (comma-delimited) taxonomy names
|
3139 |
+
* or an array of taxonomy names. Default 'post_tag'.
|
3140 |
+
*
|
3141 |
+
* post_mime_type - MIME type(s) of the items to include in the term-specific counts. Default 'all'.
|
3142 |
+
*
|
3143 |
+
* post_type - The post type(s) of the items to include in the term-specific counts. The default is "attachment".
|
3144 |
+
*
|
3145 |
+
* post_status - The post status value(s) of the items to include in the term-specific counts. The default is "inherit".
|
3146 |
+
*
|
3147 |
+
* ids - A comma-separated list of attachment ID values for an item-specific cloud.
|
3148 |
*
|
3149 |
* include - An array, comma- or space-delimited string of term ids to include
|
3150 |
* in the return array.
|
3154 |
*
|
3155 |
* parent - term_id of the terms' immediate parent; 0 for top-level terms.
|
3156 |
*
|
3157 |
+
* minimum - minimum number of attachments a term must have to be included. Default 0.
|
3158 |
*
|
3159 |
+
* no_count - 'true', 'false' (default) to suppress term-specific attachment-counting process.
|
3160 |
*
|
3161 |
* number - maximum number of term objects to return. Terms are ordered by count,
|
3162 |
+
* descending and then by term_id before this value is applied. Default 45.
|
3163 |
*
|
3164 |
+
* orderby - 'count', 'id', 'name' (default), 'none', 'random', 'slug'
|
3165 |
*
|
3166 |
+
* order - 'ASC' (default), 'DESC'
|
3167 |
*
|
3168 |
+
* no_orderby - 'true', 'false' (default) to suppress ALL sorting clauses else false.
|
3169 |
*
|
3170 |
+
* preserve_case - 'true', 'false' (default) to make orderby case-sensitive.
|
3171 |
*
|
3172 |
+
* pad_counts - 'true', 'false' (default) to make orderby case-sensitive.
|
3173 |
*
|
3174 |
+
* limit - final number of term objects to return, for pagination. Default 0.
|
3175 |
+
*
|
3176 |
+
* offset - number of term objects to skip, for pagination. Default 0.
|
3177 |
*
|
3178 |
* @since 1.60
|
3179 |
*
|
3230 |
if ( ! $no_count ) {
|
3231 |
$query[] = 'LEFT JOIN `' . $wpdb->term_relationships . '` AS tr ON tt.term_taxonomy_id = tr.term_taxonomy_id';
|
3232 |
$query[] = 'LEFT JOIN `' . $wpdb->posts . '` AS p ON tr.object_id = p.ID';
|
3233 |
+
|
3234 |
+
/*
|
3235 |
+
* Add type and status constraints
|
3236 |
+
*/
|
3237 |
+
if ( is_array( $arguments['post_type'] ) ) {
|
3238 |
+
$post_types = $arguments['post_type'];
|
3239 |
+
} else {
|
3240 |
+
$post_types = array( $arguments['post_type'] );
|
3241 |
+
}
|
3242 |
+
|
3243 |
+
$placeholders = array();
|
3244 |
+
foreach ( $post_types as $post_type ) {
|
3245 |
+
$placeholders[] = '%s';
|
3246 |
+
$query_parameters[] = $post_type;
|
3247 |
+
}
|
3248 |
+
|
3249 |
+
$query[] = 'AND p.post_type IN (' . join( ',', $placeholders ) . ')';
|
3250 |
+
|
3251 |
+
if ( is_array( $arguments['post_status'] ) ) {
|
3252 |
+
$post_stati = $arguments['post_status'];
|
3253 |
+
} else {
|
3254 |
+
$post_stati = array( $arguments['post_status'] );
|
3255 |
+
}
|
3256 |
+
|
3257 |
+
$placeholders = array();
|
3258 |
+
foreach ( $post_stati as $post_status ) {
|
3259 |
+
if ( ( 'private' != $post_status ) || is_user_logged_in() ) {
|
3260 |
+
$placeholders[] = '%s';
|
3261 |
+
$query_parameters[] = $post_status;
|
3262 |
+
}
|
3263 |
+
}
|
3264 |
+
|
3265 |
+
$query[] = 'AND p.post_status IN (' . join( ',', $placeholders ) . ')';
|
3266 |
}
|
3267 |
|
3268 |
/*
|
3306 |
}
|
3307 |
} // taxonomies
|
3308 |
} // ids
|
3309 |
+
|
3310 |
/*
|
3311 |
* If there are no terms we want an empty cloud
|
3312 |
*/
|
3317 |
$arguments['include'] = implode( ',', $includes );
|
3318 |
}
|
3319 |
}
|
3320 |
+
|
3321 |
/*
|
3322 |
* Add include/exclude and parent constraints to WHERE cluse
|
3323 |
*/
|
3336 |
|
3337 |
if ( 'all' !== strtolower( $arguments['post_mime_type'] ) ) {
|
3338 |
$where = str_replace( '%', '%%', wp_post_mime_type_where( $arguments['post_mime_type'], 'p' ) );
|
3339 |
+
|
3340 |
if ( 0 == absint( $arguments['minimum'] ) ) {
|
3341 |
$query[] = ' AND ( p.post_mime_type IS NULL OR ' . substr( $where, 6 );
|
3342 |
} else {
|
3343 |
$query[] = $where;
|
3344 |
}
|
3345 |
}
|
3346 |
+
|
3347 |
$query[] = ' ) GROUP BY tt.term_taxonomy_id';
|
3348 |
|
3349 |
if ( 0 < absint( $arguments['minimum'] ) ) {
|
3464 |
self::$mla_debug_messages .= '<p><strong>' . __( 'mla_debug found_rows', 'media-library-assistant' ) . '</strong> = ' . var_export( $found_rows, true ) . '</p>';
|
3465 |
}
|
3466 |
|
3467 |
+
if ( $arguments['pad_counts'] ) {
|
3468 |
+
self::_pad_term_counts( $tags, reset( $taxonomies ), $post_types, $post_stati );
|
3469 |
+
}
|
3470 |
+
|
3471 |
$tags['found_rows'] = $found_rows;
|
3472 |
$tags = apply_filters( 'mla_get_terms_query_results', $tags );
|
3473 |
+
|
3474 |
return $tags;
|
3475 |
+
} // mla_get_terms
|
3476 |
+
|
3477 |
+
/**
|
3478 |
+
* Add count of children to parent count.
|
3479 |
+
*
|
3480 |
+
* Recalculates term counts by including items from child terms. Assumes all
|
3481 |
+
* relevant children are already in the $terms argument.
|
3482 |
+
*
|
3483 |
+
* @since 1.90
|
3484 |
+
*
|
3485 |
+
* @param array Array of Term objects, by reference
|
3486 |
+
* @param string Term Context
|
3487 |
+
* @param array Qualifying post type value(s)
|
3488 |
+
* @param array Qualifying post status value(s)
|
3489 |
+
* @return null Will break from function if conditions are not met.
|
3490 |
+
*/
|
3491 |
+
private static function _pad_term_counts( &$terms, $taxonomy, $post_types = NULL, $post_stati = NULL ) {
|
3492 |
+
global $wpdb;
|
3493 |
+
|
3494 |
+
// This function only works for hierarchical taxonomies like post categories.
|
3495 |
+
if ( !is_taxonomy_hierarchical( $taxonomy ) ) {
|
3496 |
+
return;
|
3497 |
+
}
|
3498 |
+
|
3499 |
+
// WordPress "private" function, in /wp-includes/taxonomy.php
|
3500 |
+
$term_hier = _get_term_hierarchy( $taxonomy );
|
3501 |
+
|
3502 |
+
if ( empty( $term_hier ) ) {
|
3503 |
+
return;
|
3504 |
+
}
|
3505 |
+
|
3506 |
+
$terms_by_id = array(); // key term_id, value = reference to term object
|
3507 |
+
$term_ids = array(); // key term_taxonomy_id, value = term_id
|
3508 |
+
$term_items = array(); // key term_id
|
3509 |
+
|
3510 |
+
foreach ( (array) $terms as $key => $term ) {
|
3511 |
+
if ( is_integer( $key ) ) {
|
3512 |
+
$terms_by_id[$term->term_id] = & $terms[$key];
|
3513 |
+
$term_ids[$term->term_taxonomy_id] = $term->term_id;
|
3514 |
+
}
|
3515 |
+
}
|
3516 |
+
|
3517 |
+
if ( is_array( $post_stati ) ) {
|
3518 |
+
$post_stati = esc_sql( $post_stati );
|
3519 |
+
} else {
|
3520 |
+
$post_stati = array( 'inherit' );
|
3521 |
+
}
|
3522 |
+
|
3523 |
+
if ( is_array( $post_types ) ) {
|
3524 |
+
$post_types = esc_sql( $post_types );
|
3525 |
+
} else {
|
3526 |
+
$tax_obj = get_taxonomy( $taxonomy );
|
3527 |
+
$post_types = esc_sql( $tax_obj->object_type );
|
3528 |
+
}
|
3529 |
+
|
3530 |
+
// Get the object and term ids and stick them in a lookup table
|
3531 |
+
$results = $wpdb->get_results( "SELECT object_id, term_taxonomy_id FROM $wpdb->term_relationships INNER JOIN $wpdb->posts ON object_id = ID WHERE term_taxonomy_id IN (" . implode( ',', array_keys($term_ids) ) . ") AND post_type IN ('" . implode( "', '", $post_types ) . "') AND post_status in ( '" . implode( "', '", $post_stati ) . "' )" );
|
3532 |
+
foreach ( $results as $row ) {
|
3533 |
+
$id = $term_ids[ $row->term_taxonomy_id ];
|
3534 |
+
$term_items[ $id ][ $row->object_id ] = isset( $term_items[ $id ][ $row->object_id ] ) ? ++$term_items[ $id ][ $row->object_id ] : 1;
|
3535 |
+
}
|
3536 |
+
|
3537 |
+
// Touch every ancestor's lookup row for each post in each term
|
3538 |
+
foreach ( $term_ids as $term_id ) {
|
3539 |
+
$child = $term_id;
|
3540 |
+
while ( !empty( $terms_by_id[ $child] ) && $parent = $terms_by_id[ $child ]->parent ) {
|
3541 |
+
if ( !empty( $term_items[ $term_id ] ) ) {
|
3542 |
+
foreach ( $term_items[ $term_id ] as $item_id => $touches ) {
|
3543 |
+
$term_items[ $parent ][ $item_id ] = isset( $term_items[ $parent ][ $item_id ] ) ? ++$term_items[ $parent ][ $item_id ]: 1;
|
3544 |
+
}
|
3545 |
+
}
|
3546 |
+
|
3547 |
+
$child = $parent;
|
3548 |
+
}
|
3549 |
+
}
|
3550 |
+
|
3551 |
+
// Transfer the touched cells
|
3552 |
+
foreach ( (array) $term_items as $id => $items ) {
|
3553 |
+
if ( isset( $terms_by_id[ $id ] ) ) {
|
3554 |
+
$terms_by_id[ $id ]->count = count( $items );
|
3555 |
+
}
|
3556 |
+
}
|
3557 |
}
|
3558 |
} // Class MLAShortcodes
|
3559 |
?>
|
includes/mla-main-search-box-template.php
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* PHP "template" for Media/Assistant submenu table Search Media box
|
4 |
+
*
|
5 |
+
* @package Media Library Assistant
|
6 |
+
* @since 1.90
|
7 |
+
*/
|
8 |
+
|
9 |
+
/**
|
10 |
+
* Harmless declaration to suppress phpDocumentor "No page-level DocBlock" error
|
11 |
+
*
|
12 |
+
* @global $post
|
13 |
+
*/
|
14 |
+
global $post;
|
15 |
+
|
16 |
+
if ( !empty( $_REQUEST['s'] ) ) {
|
17 |
+
$search_value = esc_attr( stripslashes( trim( $_REQUEST['s'] ) ) );
|
18 |
+
$search_fields = isset ( $_REQUEST['mla_search_fields'] ) ? $_REQUEST['mla_search_fields'] : array();
|
19 |
+
$search_connector = $_REQUEST['mla_search_connector'];
|
20 |
+
} else {
|
21 |
+
$search_value = MLAOptions::mla_get_option( MLAOptions::MLA_SEARCH_MEDIA_FILTER_DEFAULTS );
|
22 |
+
$search_fields = $search_value['search_fields'];
|
23 |
+
$search_connector = $search_value['search_connector'];
|
24 |
+
$search_value = '';
|
25 |
+
}
|
26 |
+
|
27 |
+
if ( 'checked' == MLAOptions::mla_get_option( MLAOptions::MLA_SEARCH_MEDIA_FILTER_SHOW_CONTROLS ) ) {
|
28 |
+
$controls_style = 'style="display: inline;"';
|
29 |
+
} else {
|
30 |
+
$controls_style = 'style="display: none;"';
|
31 |
+
}
|
32 |
+
?>
|
33 |
+
<p class="search-box">
|
34 |
+
<label class="screen-reader-text" for="media-search-input">' <?php _e( 'Search Media', 'media-library-assistant' ); ?>:</label>
|
35 |
+
<input name="s" id="media-search-input" type="text" size="45" value="<?php echo $search_value ?>" />
|
36 |
+
<input name="mla-search-submit" class="button" id="search-submit" type="submit" value="Search Media" /><br />
|
37 |
+
<span <?php echo $controls_style ?>>
|
38 |
+
<input name="mla_search_connector" type="radio" <?php echo ( 'OR' === $search_connector ) ? '' : 'checked="checked"'; ?> value="AND" /><?php _e( 'and', 'media-library-assistant' ); ?>
|
39 |
+
|
40 |
+
<input name="mla_search_connector" type="radio" <?php echo ( 'OR' === $search_connector ) ? 'checked="checked"' : ''; ?> value="OR" /><?php _e( 'or', 'media-library-assistant' ); ?>
|
41 |
+
|
42 |
+
<input name="mla_search_fields[]" id="search-title" type="checkbox" <?php echo ( in_array( 'title', $search_fields ) ) ? 'checked="checked"' : ''; ?> value="title" /><?php _e( 'Title', 'media-library-assistant' )?>
|
43 |
+
<input name="mla_search_fields[]" id="search-name" type="checkbox" <?php echo ( in_array( 'name', $search_fields ) ) ? 'checked="checked"' : ''; ?> value="name" /><?php _e( 'Name', 'media-library-assistant' )?>
|
44 |
+
<input name="mla_search_fields[]" id="search-alt-text" type="checkbox" <?php echo ( in_array( 'alt-text', $search_fields ) ) ? 'checked="checked"' : ''; ?> value="alt-text" /><?php _e( 'ALT Text', 'media-library-assistant' )?>
|
45 |
+
<input name="mla_search_fields[]" id="search-excerpt" type="checkbox" <?php echo ( in_array( 'excerpt', $search_fields ) ) ? 'checked="checked"' : ''; ?> value="excerpt" /><?php _e( 'Caption', 'media-library-assistant' )?>
|
46 |
+
<input name="mla_search_fields[]" id="search-content" type="checkbox" <?php echo ( in_array( 'content', $search_fields ) ) ? 'checked="checked"' : ''; ?> value="content" /><?php _e( 'Description', 'media-library-assistant' )?>
|
47 |
+
<input name="mla_search_fields[]" id="terms-search" type="checkbox" <?php echo ( in_array( 'terms', $search_fields ) ) ? 'checked="checked"' : ''; ?> value="terms" /><?php _e( 'Terms', 'media-library-assistant' )?>
|
48 |
+
</span>
|
49 |
+
</p>
|
includes/mla-media-modal-js-template.php
CHANGED
@@ -18,7 +18,7 @@ global $post;
|
|
18 |
|
19 |
<input type="search" id="media-search-input" name="s[mla_search_value]" class="search" value="<?php echo $search_value ?>" placeholder="{{ data.searchBoxPlaceholder }}" size="22" />
|
20 |
<input type="submit" name="mla_search_submit" id="mla-search-submit" class="button search" value="<?php _e( 'Search', 'media-library-assistant' ); ?>" /><br>
|
21 |
-
<ul class="mla-search-options">
|
22 |
<li>
|
23 |
<input type="radio" name="s[mla_search_connector]" value="AND" <?php echo ( 'OR' === $search_connector ) ? '' : 'checked'; ?> />
|
24 |
<?php _e( 'and', 'media-library-assistant' ); ?>
|
@@ -35,11 +35,11 @@ global $post;
|
|
35 |
<input type="checkbox" name="s[mla_search_name]" id="search-name" value="name" <?php echo ( in_array( 'name', $search_fields ) ) ? 'checked' : ''; ?> />
|
36 |
<?php _e( 'Name', 'media-library-assistant' ); ?>
|
37 |
</li>
|
38 |
-
<br>
|
39 |
<li>
|
40 |
<input type="checkbox" name="s[mla_search_alt_text]" id="search-alt-text" value="alt-text" <?php echo ( in_array( 'alt-text', $search_fields ) ) ? 'checked' : ''; ?> />
|
41 |
<?php _e( 'ALT Text', 'media-library-assistant' ); ?>
|
42 |
</li>
|
|
|
43 |
<li>
|
44 |
<input type="checkbox" name="s[mla_search_excerpt]" id="search-excerpt" value="excerpt" <?php echo ( in_array( 'excerpt', $search_fields ) ) ? 'checked' : ''; ?> />
|
45 |
<?php _e( 'Caption', 'media-library-assistant' ); ?>
|
@@ -48,5 +48,12 @@ global $post;
|
|
48 |
<input type="checkbox" name="s[mla_search_content]" id="search-content" value="content" <?php echo ( in_array( 'content', $search_fields ) ) ? 'checked' : ''; ?> />
|
49 |
<?php _e( 'Description', 'media-library-assistant' ); ?>
|
50 |
</li>
|
|
|
|
|
|
|
|
|
51 |
</ul>
|
|
|
|
|
|
|
52 |
</script>
|
18 |
|
19 |
<input type="search" id="media-search-input" name="s[mla_search_value]" class="search" value="<?php echo $search_value ?>" placeholder="{{ data.searchBoxPlaceholder }}" size="22" />
|
20 |
<input type="submit" name="mla_search_submit" id="mla-search-submit" class="button search" value="<?php _e( 'Search', 'media-library-assistant' ); ?>" /><br>
|
21 |
+
<ul class="mla-search-options" style="{{ data.searchBoxControlsStyle }}">
|
22 |
<li>
|
23 |
<input type="radio" name="s[mla_search_connector]" value="AND" <?php echo ( 'OR' === $search_connector ) ? '' : 'checked'; ?> />
|
24 |
<?php _e( 'and', 'media-library-assistant' ); ?>
|
35 |
<input type="checkbox" name="s[mla_search_name]" id="search-name" value="name" <?php echo ( in_array( 'name', $search_fields ) ) ? 'checked' : ''; ?> />
|
36 |
<?php _e( 'Name', 'media-library-assistant' ); ?>
|
37 |
</li>
|
|
|
38 |
<li>
|
39 |
<input type="checkbox" name="s[mla_search_alt_text]" id="search-alt-text" value="alt-text" <?php echo ( in_array( 'alt-text', $search_fields ) ) ? 'checked' : ''; ?> />
|
40 |
<?php _e( 'ALT Text', 'media-library-assistant' ); ?>
|
41 |
</li>
|
42 |
+
<br>
|
43 |
<li>
|
44 |
<input type="checkbox" name="s[mla_search_excerpt]" id="search-excerpt" value="excerpt" <?php echo ( in_array( 'excerpt', $search_fields ) ) ? 'checked' : ''; ?> />
|
45 |
<?php _e( 'Caption', 'media-library-assistant' ); ?>
|
48 |
<input type="checkbox" name="s[mla_search_content]" id="search-content" value="content" <?php echo ( in_array( 'content', $search_fields ) ) ? 'checked' : ''; ?> />
|
49 |
<?php _e( 'Description', 'media-library-assistant' ); ?>
|
50 |
</li>
|
51 |
+
<li>
|
52 |
+
<input type="checkbox" name="s[mla_search_terms]" id="search-terms" value="terms" <?php echo ( in_array( 'terms', $search_fields ) ) ? 'checked' : ''; ?> />
|
53 |
+
<?php _e( 'Terms', 'media-library-assistant' ); ?>
|
54 |
+
</li>
|
55 |
</ul>
|
56 |
+
</script>
|
57 |
+
<script type="text/html" id="tmpl-mla-terms-search-button">
|
58 |
+
<input type="button" name="mla_terms_search" id="mla-terms-search" class="button" value="<?php _e( 'Terms Search', 'media-library-assistant' ); ?>" />
|
59 |
</script>
|
index.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* will the rest of the plugin be loaded and run.
|
7 |
*
|
8 |
* @package Media Library Assistant
|
9 |
-
* @version 1.
|
10 |
*/
|
11 |
|
12 |
/*
|
@@ -16,7 +16,7 @@ Description: Enhances the Media Library; powerful[mla_gallery], taxonomy support
|
|
16 |
Author: David Lingren
|
17 |
Text Domain: media-library-assistant
|
18 |
Domain Path: /languages
|
19 |
-
Version: 1.
|
20 |
Author URI: http://fairtradejudaica.org/our-story/staff/
|
21 |
|
22 |
Copyright 2011-2014 David Lingren
|
6 |
* will the rest of the plugin be loaded and run.
|
7 |
*
|
8 |
* @package Media Library Assistant
|
9 |
+
* @version 1.90
|
10 |
*/
|
11 |
|
12 |
/*
|
16 |
Author: David Lingren
|
17 |
Text Domain: media-library-assistant
|
18 |
Domain Path: /languages
|
19 |
+
Version: 1.90
|
20 |
Author URI: http://fairtradejudaica.org/our-story/staff/
|
21 |
|
22 |
Copyright 2011-2014 David Lingren
|
js/mla-edit-media-scripts.js
CHANGED
@@ -16,8 +16,8 @@ var mla = {
|
|
16 |
* Localized settings and strings
|
17 |
*/
|
18 |
mla.settings = typeof mla_edit_media_vars === 'undefined' ? {} : mla_edit_media_vars;
|
19 |
-
delete
|
20 |
-
|
21 |
// The mlaEditAttachment functions are adapted from wp-admin/js/post.js
|
22 |
mla.mlaEditAttachment = {
|
23 |
init : function(){
|
@@ -27,47 +27,47 @@ var mla = {
|
|
27 |
|
28 |
$('.categorydiv').each( function(){
|
29 |
var this_id = $(this).attr('id'), taxonomyParts, taxonomy, settingName;
|
30 |
-
|
31 |
taxonomyParts = this_id.split('-');
|
32 |
taxonomyParts.shift(); // taxonomy-
|
33 |
taxonomy = taxonomyParts.join('-');
|
34 |
settingName = taxonomy + '_tab';
|
35 |
if ( taxonomy == 'category' )
|
36 |
settingName = 'cats';
|
37 |
-
|
38 |
$.extend( $.expr[":"], {
|
39 |
"matchTerms": function( elem, i, match, array ) {
|
40 |
return ( elem.textContent || elem.innerText || "" ).toLowerCase().indexOf( ( match[3] || "" ).toLowerCase() ) >= 0;
|
41 |
}
|
42 |
});
|
43 |
-
|
44 |
$( '#search-' + taxonomy ).keypress( function( event ){
|
45 |
-
|
46 |
if( 13 === event.keyCode ) {
|
47 |
event.preventDefault();
|
48 |
$( '#search-' + taxonomy ).val( '' );
|
49 |
$( '#' + taxonomy + '-searcher' ).addClass( 'wp-hidden-children' );
|
50 |
-
|
51 |
$( '#' + taxonomy + 'checklist li' ).show();
|
52 |
$( '#' + taxonomy + 'checklist-pop li' ).show();
|
53 |
return;
|
54 |
}
|
55 |
-
|
56 |
} );
|
57 |
-
|
58 |
$( '#search-' + taxonomy ).keyup( function( event ){
|
59 |
var searchValue, matchingTerms, matchingTermsPopular;
|
60 |
-
|
61 |
if( 13 === event.keyCode ) {
|
62 |
event.preventDefault();
|
63 |
$( '#' + taxonomy + '-search-toggle' ).focus();
|
64 |
return;
|
65 |
}
|
66 |
-
|
67 |
searchValue = $( '#search-' + taxonomy ).val(),
|
68 |
termList = $( '#' + taxonomy + 'checklist li' );
|
69 |
termListPopular = $( '#' + taxonomy + 'checklist-pop li' );
|
70 |
-
|
71 |
if ( 0 < searchValue.length ) {
|
72 |
termList.hide();
|
73 |
termListPopular.hide();
|
@@ -75,31 +75,31 @@ var mla = {
|
|
75 |
termList.show();
|
76 |
termListPopular.show();
|
77 |
}
|
78 |
-
|
79 |
matchingTerms = $( '#' + taxonomy + "checklist label:matchTerms('" + searchValue + "')");
|
80 |
matchingTerms.closest( 'li' ).find( 'li' ).andSelf().show();
|
81 |
matchingTerms.parents( '#' + taxonomy + 'checklist li' ).show();
|
82 |
-
|
83 |
matchingTermsPopular = $( '#' + taxonomy + "checklist-pop label:matchTerms('" + searchValue + "')");
|
84 |
matchingTermsPopular.closest( 'li' ).find( 'li' ).andSelf().show();
|
85 |
matchingTermsPopular.parents( '#' + taxonomy + 'checklist li' ).show();
|
86 |
} );
|
87 |
-
|
88 |
$( '#' + taxonomy + '-search-toggle' ).click( function() {
|
89 |
$( '#' + taxonomy + '-adder ').addClass( 'wp-hidden-children' );
|
90 |
$( '#' + taxonomy + '-searcher' ).toggleClass( 'wp-hidden-children' );
|
91 |
$( 'a[href="#' + taxonomy + '-all"]', '#' + taxonomy + '-tabs' ).click();
|
92 |
$( '#' + taxonomy + 'checklist li' ).show();
|
93 |
$( '#' + taxonomy + 'checklist-pop li' ).show();
|
94 |
-
|
95 |
if ( false === $( '#' + taxonomy + '-searcher' ).hasClass( 'wp-hidden-children' ) ) {
|
96 |
$( '#search-' + taxonomy ).val( '' ).removeClass( 'form-input-tip' );
|
97 |
$( '#search-' + taxonomy ).focus();
|
98 |
}
|
99 |
-
|
100 |
return false;
|
101 |
});
|
102 |
-
|
103 |
/*
|
104 |
* Supplement the click logic in wp-admin/js/post.js
|
105 |
*/
|
@@ -109,10 +109,10 @@ var mla = {
|
|
109 |
});
|
110 |
}); // .categorydiv.each,
|
111 |
}, // function init
|
112 |
-
|
113 |
setParentOpen : function() {
|
114 |
var parentId, postId, postTitle;
|
115 |
-
|
116 |
parentId = $( '#mla_post_parent' ).val() || '';
|
117 |
postId = $( '#post_ID' ).val() || '';
|
118 |
postTitle = $( '#title' ).val() || '';
|
@@ -126,11 +126,11 @@ var mla = {
|
|
126 |
return false;
|
127 |
});
|
128 |
},
|
129 |
-
|
130 |
setParentSave : function( postId ) {
|
131 |
var foundRow = $( '#mla-set-parent-response-div input:checked' ).closest( 'tr' ),
|
132 |
parentId, parentTitle, newParent, newTitle;
|
133 |
-
|
134 |
if ( foundRow.length ) {
|
135 |
parentId = $( ':radio', foundRow ).val() || '';
|
136 |
parentTitle = $( 'label', foundRow ).html() || '';
|
@@ -144,6 +144,6 @@ var mla = {
|
|
144 |
$( '#mla-set-parent-submit' ).off( 'click' );
|
145 |
}
|
146 |
} // mla.mlaEditAttachment
|
147 |
-
|
148 |
$( document ).ready( function(){ mla.mlaEditAttachment.init(); } );
|
149 |
})( jQuery );
|
16 |
* Localized settings and strings
|
17 |
*/
|
18 |
mla.settings = typeof mla_edit_media_vars === 'undefined' ? {} : mla_edit_media_vars;
|
19 |
+
mla_edit_media_vars = void 0; // delete won't work on Globals
|
20 |
+
|
21 |
// The mlaEditAttachment functions are adapted from wp-admin/js/post.js
|
22 |
mla.mlaEditAttachment = {
|
23 |
init : function(){
|
27 |
|
28 |
$('.categorydiv').each( function(){
|
29 |
var this_id = $(this).attr('id'), taxonomyParts, taxonomy, settingName;
|
30 |
+
|
31 |
taxonomyParts = this_id.split('-');
|
32 |
taxonomyParts.shift(); // taxonomy-
|
33 |
taxonomy = taxonomyParts.join('-');
|
34 |
settingName = taxonomy + '_tab';
|
35 |
if ( taxonomy == 'category' )
|
36 |
settingName = 'cats';
|
37 |
+
|
38 |
$.extend( $.expr[":"], {
|
39 |
"matchTerms": function( elem, i, match, array ) {
|
40 |
return ( elem.textContent || elem.innerText || "" ).toLowerCase().indexOf( ( match[3] || "" ).toLowerCase() ) >= 0;
|
41 |
}
|
42 |
});
|
43 |
+
|
44 |
$( '#search-' + taxonomy ).keypress( function( event ){
|
45 |
+
|
46 |
if( 13 === event.keyCode ) {
|
47 |
event.preventDefault();
|
48 |
$( '#search-' + taxonomy ).val( '' );
|
49 |
$( '#' + taxonomy + '-searcher' ).addClass( 'wp-hidden-children' );
|
50 |
+
|
51 |
$( '#' + taxonomy + 'checklist li' ).show();
|
52 |
$( '#' + taxonomy + 'checklist-pop li' ).show();
|
53 |
return;
|
54 |
}
|
55 |
+
|
56 |
} );
|
57 |
+
|
58 |
$( '#search-' + taxonomy ).keyup( function( event ){
|
59 |
var searchValue, matchingTerms, matchingTermsPopular;
|
60 |
+
|
61 |
if( 13 === event.keyCode ) {
|
62 |
event.preventDefault();
|
63 |
$( '#' + taxonomy + '-search-toggle' ).focus();
|
64 |
return;
|
65 |
}
|
66 |
+
|
67 |
searchValue = $( '#search-' + taxonomy ).val(),
|
68 |
termList = $( '#' + taxonomy + 'checklist li' );
|
69 |
termListPopular = $( '#' + taxonomy + 'checklist-pop li' );
|
70 |
+
|
71 |
if ( 0 < searchValue.length ) {
|
72 |
termList.hide();
|
73 |
termListPopular.hide();
|
75 |
termList.show();
|
76 |
termListPopular.show();
|
77 |
}
|
78 |
+
|
79 |
matchingTerms = $( '#' + taxonomy + "checklist label:matchTerms('" + searchValue + "')");
|
80 |
matchingTerms.closest( 'li' ).find( 'li' ).andSelf().show();
|
81 |
matchingTerms.parents( '#' + taxonomy + 'checklist li' ).show();
|
82 |
+
|
83 |
matchingTermsPopular = $( '#' + taxonomy + "checklist-pop label:matchTerms('" + searchValue + "')");
|
84 |
matchingTermsPopular.closest( 'li' ).find( 'li' ).andSelf().show();
|
85 |
matchingTermsPopular.parents( '#' + taxonomy + 'checklist li' ).show();
|
86 |
} );
|
87 |
+
|
88 |
$( '#' + taxonomy + '-search-toggle' ).click( function() {
|
89 |
$( '#' + taxonomy + '-adder ').addClass( 'wp-hidden-children' );
|
90 |
$( '#' + taxonomy + '-searcher' ).toggleClass( 'wp-hidden-children' );
|
91 |
$( 'a[href="#' + taxonomy + '-all"]', '#' + taxonomy + '-tabs' ).click();
|
92 |
$( '#' + taxonomy + 'checklist li' ).show();
|
93 |
$( '#' + taxonomy + 'checklist-pop li' ).show();
|
94 |
+
|
95 |
if ( false === $( '#' + taxonomy + '-searcher' ).hasClass( 'wp-hidden-children' ) ) {
|
96 |
$( '#search-' + taxonomy ).val( '' ).removeClass( 'form-input-tip' );
|
97 |
$( '#search-' + taxonomy ).focus();
|
98 |
}
|
99 |
+
|
100 |
return false;
|
101 |
});
|
102 |
+
|
103 |
/*
|
104 |
* Supplement the click logic in wp-admin/js/post.js
|
105 |
*/
|
109 |
});
|
110 |
}); // .categorydiv.each,
|
111 |
}, // function init
|
112 |
+
|
113 |
setParentOpen : function() {
|
114 |
var parentId, postId, postTitle;
|
115 |
+
|
116 |
parentId = $( '#mla_post_parent' ).val() || '';
|
117 |
postId = $( '#post_ID' ).val() || '';
|
118 |
postTitle = $( '#title' ).val() || '';
|
126 |
return false;
|
127 |
});
|
128 |
},
|
129 |
+
|
130 |
setParentSave : function( postId ) {
|
131 |
var foundRow = $( '#mla-set-parent-response-div input:checked' ).closest( 'tr' ),
|
132 |
parentId, parentTitle, newParent, newTitle;
|
133 |
+
|
134 |
if ( foundRow.length ) {
|
135 |
parentId = $( ':radio', foundRow ).val() || '';
|
136 |
parentTitle = $( 'label', foundRow ).html() || '';
|
144 |
$( '#mla-set-parent-submit' ).off( 'click' );
|
145 |
}
|
146 |
} // mla.mlaEditAttachment
|
147 |
+
|
148 |
$( document ).ready( function(){ mla.mlaEditAttachment.init(); } );
|
149 |
})( jQuery );
|
js/mla-edit-media-scripts.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
var mla={settings:{},utility:{},setParent:null,mlaEditAttachment:null};(function(a){mla.settings=typeof mla_edit_media_vars==="undefined"?{}:mla_edit_media_vars;
|
1 |
+
var mla={settings:{},utility:{},setParent:null,mlaEditAttachment:null};(function(a){mla.settings=typeof mla_edit_media_vars==="undefined"?{}:mla_edit_media_vars;mla_edit_media_vars=void 0;mla.mlaEditAttachment={init:function(){a("#mla_set_parent").on("click",function(){return mla.mlaEditAttachment.setParentOpen()});a(".categorydiv").each(function(){var e=a(this).attr("id"),d,b,c;d=e.split("-");d.shift();b=d.join("-");c=b+"_tab";if(b=="category"){c="cats"}a.extend(a.expr[":"],{matchTerms:function(h,g,f,j){return(h.textContent||h.innerText||"").toLowerCase().indexOf((f[3]||"").toLowerCase())>=0}});a("#search-"+b).keypress(function(f){if(13===f.keyCode){f.preventDefault();a("#search-"+b).val("");a("#"+b+"-searcher").addClass("wp-hidden-children");a("#"+b+"checklist li").show();a("#"+b+"checklist-pop li").show();return}});a("#search-"+b).keyup(function(h){var i,g,f;if(13===h.keyCode){h.preventDefault();a("#"+b+"-search-toggle").focus();return}i=a("#search-"+b).val(),termList=a("#"+b+"checklist li");termListPopular=a("#"+b+"checklist-pop li");if(0<i.length){termList.hide();termListPopular.hide()}else{termList.show();termListPopular.show()}g=a("#"+b+"checklist label:matchTerms('"+i+"')");g.closest("li").find("li").andSelf().show();g.parents("#"+b+"checklist li").show();f=a("#"+b+"checklist-pop label:matchTerms('"+i+"')");f.closest("li").find("li").andSelf().show();f.parents("#"+b+"checklist li").show()});a("#"+b+"-search-toggle").click(function(){a("#"+b+"-adder ").addClass("wp-hidden-children");a("#"+b+"-searcher").toggleClass("wp-hidden-children");a('a[href="#'+b+'-all"]',"#"+b+"-tabs").click();a("#"+b+"checklist li").show();a("#"+b+"checklist-pop li").show();if(false===a("#"+b+"-searcher").hasClass("wp-hidden-children")){a("#search-"+b).val("").removeClass("form-input-tip");a("#search-"+b).focus()}return false});a("#"+b+"-add-toggle").click(function(){a("#"+b+"-searcher").addClass("wp-hidden-children");return false})})},setParentOpen:function(){var d,b,c;d=a("#mla_post_parent").val()||"";b=a("#post_ID").val()||"";c=a("#title").val()||"";mla.setParent.open(d,b,c);a("#mla-set-parent-submit").on("click",function(e){e.preventDefault();mla.mlaEditAttachment.setParentSave(b);return false})},setParentSave:function(b){var e=a("#mla-set-parent-response-div input:checked").closest("tr"),g,d,c,f;if(e.length){g=a(":radio",e).val()||"";d=a("label",e).html()||"";c=a("#mla_post_parent").clone(true).val(g);f=a("#mla_parent_info").clone(true).val(d);a("#mla_post_parent").replaceWith(c);a("#mla_parent_info").replaceWith(f);mla.setParent.close()}a("#mla-set-parent-submit").off("click")}};a(document).ready(function(){mla.mlaEditAttachment.init()})})(jQuery);
|
js/mla-inline-edit-scripts.js
CHANGED
@@ -18,16 +18,16 @@ var mla = {
|
|
18 |
* Localized settings and strings
|
19 |
*/
|
20 |
mla.settings = typeof mla_inline_edit_vars === 'undefined' ? {} : mla_inline_edit_vars;
|
21 |
-
delete
|
22 |
-
|
23 |
// The inlineEditAttachment functions are adapted from wp-admin/js/inline-edit-post.js
|
24 |
mla.inlineEditAttachment = {
|
25 |
init : function(){
|
26 |
var t = this, qeRow = $( '#inline-edit' ), bulkRow = $( '#bulk-edit' );
|
27 |
-
|
28 |
t.type = 'attachment';
|
29 |
t.what = '#attachment-';
|
30 |
-
|
31 |
// prepare the edit rows
|
32 |
qeRow.keyup(function(e){
|
33 |
if (e.which == 27)
|
@@ -37,7 +37,7 @@ var mla = {
|
|
37 |
if (e.which == 27)
|
38 |
return mla.inlineEditAttachment.revert();
|
39 |
});
|
40 |
-
|
41 |
$('#inline-edit-post-set-parent', qeRow).on( 'click', function(){
|
42 |
return mla.inlineEditAttachment.inlineParentOpen(this);
|
43 |
});
|
@@ -51,31 +51,34 @@ var mla = {
|
|
51 |
if ( e.which == 13 )
|
52 |
return mla.inlineEditAttachment.save(this);
|
53 |
});
|
54 |
-
|
|
|
|
|
|
|
55 |
$('a.cancel', bulkRow).click(function(){
|
56 |
return mla.inlineEditAttachment.revert();
|
57 |
});
|
58 |
-
|
59 |
// add event to the Quick Edit links
|
60 |
$( '#the-list' ).on( 'click', 'a.editinline', function(){
|
61 |
mla.inlineEditAttachment.edit(this);
|
62 |
return false;
|
63 |
});
|
64 |
-
|
65 |
// hiearchical taxonomies expandable?
|
66 |
$('span.catshow').click(function(){
|
67 |
$(this).hide().next().show().parent().next().addClass("cat-hover");
|
68 |
});
|
69 |
-
|
70 |
$('span.cathide').click(function(){
|
71 |
$(this).hide().prev().show().parent().next().removeClass("cat-hover");
|
72 |
});
|
73 |
-
|
74 |
$('select[name="_status"] option[value="future"]', bulkRow).remove();
|
75 |
-
|
76 |
$('#doaction, #doaction2').click(function(e){
|
77 |
var n = $(this).attr('id').substr(2);
|
78 |
-
|
79 |
if ( $('select[name="'+n+'"]').val() == 'edit' ) {
|
80 |
e.preventDefault();
|
81 |
t.setBulk();
|
@@ -83,133 +86,133 @@ var mla = {
|
|
83 |
t.revert();
|
84 |
}
|
85 |
});
|
86 |
-
|
87 |
// Filter button (dates, categories) in top nav bar
|
88 |
$('#post-query-submit').mousedown(function(e){
|
89 |
t.revert();
|
90 |
$('select[name^="action"]').val('-1');
|
91 |
});
|
92 |
},
|
93 |
-
|
94 |
toggle : function(el){
|
95 |
var t = this;
|
96 |
$(t.what+t.getId(el)).css('display') == 'none' ? t.revert() : t.edit(el);
|
97 |
},
|
98 |
-
|
99 |
setBulk : function(){
|
100 |
var te = '', c = true;
|
101 |
this.revert();
|
102 |
-
|
103 |
$('#bulk-edit td').attr('colspan', $('.widefat:first thead th:visible').length);
|
104 |
$('table.widefat tbody').prepend( $('#bulk-edit') );
|
105 |
$('#bulk-edit').addClass('inline-editor').show();
|
106 |
-
|
107 |
$('tbody th.check-column input[type="checkbox"]').each(function(i){
|
108 |
if ( $(this).prop('checked') ) {
|
109 |
c = false;
|
110 |
var id = $(this).val(), theTitle;
|
111 |
-
theTitle = $('#inline_'+id+' .post_title').text() || mla.settings.
|
112 |
-
te += '<div id="ttle'+id+'"><a id="_'+id+'" class="ntdelbutton" title="'+mla.settings.
|
113 |
}
|
114 |
});
|
115 |
-
|
116 |
if ( c )
|
117 |
return this.revert();
|
118 |
-
|
119 |
$('#bulk-titles').html(te);
|
120 |
$('#bulk-titles a').click(function(){
|
121 |
var id = $(this).attr('id').substr(1);
|
122 |
-
|
123 |
$('table.widefat input[value="' + id + '"]').prop('checked', false);
|
124 |
$('#ttle'+id).remove();
|
125 |
});
|
126 |
-
|
127 |
//flat taxonomies
|
128 |
$('textarea.mla_tags').each(function(){
|
129 |
var taxname = $(this).attr('name').replace(']', '').replace('tax_input[', '');
|
130 |
-
|
131 |
$(this).suggest( ajaxurl + '?action=ajax-tag-search&tax=' + taxname, { delay: 500, minchars: 2, multiple: true, multipleSep: mla.settings.comma + ' ' } );
|
132 |
});
|
133 |
-
|
134 |
$('html, body').animate( { scrollTop: 0 }, 'fast' );
|
135 |
},
|
136 |
-
|
137 |
edit : function(id) {
|
138 |
var t = this, fields, editRow, rowData, fIndex;
|
139 |
t.revert();
|
140 |
-
|
141 |
if ( typeof(id) == 'object' )
|
142 |
id = t.getId(id);
|
143 |
-
|
144 |
fields = mla.settings.fields;
|
145 |
-
|
146 |
// add the new blank row
|
147 |
editRow = $('#inline-edit').clone(true);
|
148 |
$('td', editRow).attr('colspan', $('.widefat:first thead th:visible').length);
|
149 |
-
|
150 |
if ( $(t.what+id).hasClass('alternate') )
|
151 |
$(editRow).addClass('alternate');
|
152 |
$(t.what+id).hide().after(editRow);
|
153 |
-
|
154 |
// populate the data
|
155 |
rowData = $('#inline_'+id);
|
156 |
if ( !$(':input[name="post_author"] option[value="' + $('.post_author', rowData).text() + '"]', editRow).val() ) {
|
157 |
// author no longer has edit caps, so we need to add them to the list of authors
|
158 |
$(':input[name="post_author"]', editRow).prepend('<option value="' + $('.post_author', rowData).text() + '">' + $('#' + t.type + '-' + id + ' .author').text() + '</option>');
|
159 |
}
|
160 |
-
|
161 |
if ( $(':input[name="post_author"] option', editRow).length == 1 ) {
|
162 |
$('label.inline-edit-author', editRow).hide();
|
163 |
}
|
164 |
-
|
165 |
for ( fIndex = 0; fIndex < fields.length; fIndex++ ) {
|
166 |
$(':input[name="' + fields[fIndex] + '"]', editRow).val( $('.'+fields[fIndex], rowData).text() );
|
167 |
}
|
168 |
-
|
169 |
if ( $('.image_alt', rowData).length == 0) {
|
170 |
$('label.inline-edit-image-alt', editRow).hide();
|
171 |
}
|
172 |
-
|
173 |
// hierarchical taxonomies
|
174 |
$('.mla_category', rowData).each(function(){
|
175 |
var term_ids = $(this).text();
|
176 |
-
|
177 |
if ( term_ids ) {
|
178 |
taxname = $(this).attr('id').replace('_'+id, '');
|
179 |
$('ul.'+taxname+'-checklist :checkbox', editRow).val(term_ids.split(','));
|
180 |
}
|
181 |
});
|
182 |
-
|
183 |
//flat taxonomies
|
184 |
$('.mla_tags', rowData).each(function(){
|
185 |
var terms = $(this).text(),
|
186 |
taxname = $(this).attr('id').replace('_' + id, ''),
|
187 |
textarea = $('textarea.tax_input_' + taxname, editRow),
|
188 |
comma = mla.settings.comma;
|
189 |
-
|
190 |
if ( terms ) {
|
191 |
if ( ',' !== comma )
|
192 |
terms = terms.replace(/,/g, comma);
|
193 |
textarea.val(terms);
|
194 |
}
|
195 |
-
|
196 |
textarea.suggest( ajaxurl + '?action=ajax-tag-search&tax=' + taxname, { delay: 500, minchars: 2, multiple: true, multipleSep: mla.settings.comma + ' ' } );
|
197 |
});
|
198 |
-
|
199 |
$(editRow).attr('id', 'edit-'+id).addClass('inline-editor').show();
|
200 |
$('.ptitle', editRow).focus();
|
201 |
-
|
202 |
return false;
|
203 |
},
|
204 |
-
|
205 |
save : function( id ) {
|
206 |
var params, fields, page = $('.post_status_page').val() || '';
|
207 |
-
|
208 |
if ( typeof(id) == 'object' )
|
209 |
id = this.getId(id);
|
210 |
-
|
211 |
$('table.widefat .inline-edit-save .waiting').show();
|
212 |
-
|
213 |
params = {
|
214 |
action: mla.settings.ajax_action,
|
215 |
nonce: mla.settings.ajax_nonce,
|
@@ -218,15 +221,15 @@ var mla = {
|
|
218 |
edit_date: 'true',
|
219 |
post_status: page
|
220 |
};
|
221 |
-
|
222 |
-
fields = $('#edit-'+id+' :input').serialize();
|
223 |
params = fields + '&' + $.param(params);
|
224 |
-
|
225 |
// make ajax request
|
226 |
$.post( ajaxurl, params,
|
227 |
function( response ) {
|
228 |
$( 'table.widefat .inline-edit-save .waiting' ).hide();
|
229 |
-
|
230 |
if ( response ) {
|
231 |
if ( -1 != response.indexOf( '<tr' ) ) {
|
232 |
$( mla.inlineEditAttachment.what + id ).remove();
|
@@ -243,10 +246,10 @@ var mla = {
|
|
243 |
, 'html');
|
244 |
return false;
|
245 |
},
|
246 |
-
|
247 |
inlineParentOpen : function( id ) {
|
248 |
var parentId, postId, postTitle;
|
249 |
-
|
250 |
if ( typeof( id ) == 'object' ) {
|
251 |
postId = this.getId( id );
|
252 |
parentId = $( '#edit-' + postId + ' :input[name="post_parent"]' ).val() || '';
|
@@ -262,11 +265,11 @@ var mla = {
|
|
262 |
});
|
263 |
}
|
264 |
},
|
265 |
-
|
266 |
inlineParentSave : function( postId ) {
|
267 |
var foundRow = $( '#mla-set-parent-response-div input:checked' ).closest( 'tr' ), parentId, parentTitle,
|
268 |
editRow = $( '#edit-' + postId ), newParent, newTitle;
|
269 |
-
|
270 |
if ( foundRow.length ) {
|
271 |
parentId = $( ':radio', foundRow ).val() || '';
|
272 |
parentTitle = $( 'label', foundRow ).html() || '';
|
@@ -274,12 +277,42 @@ var mla = {
|
|
274 |
newTitle = $(':input[name="post_parent_title"]', editRow).clone( true ).val( parentTitle );
|
275 |
$(':input[name="post_parent"]', editRow).replaceWith( newParent );
|
276 |
$(':input[name="post_parent_title"]', editRow).replaceWith( newTitle );
|
277 |
-
mla.setParent.close();
|
278 |
}
|
279 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
280 |
$('#mla-set-parent-submit' ).off( 'click' );
|
281 |
},
|
282 |
-
|
283 |
tableParentOpen : function( parentId, postId, postTitle ) {
|
284 |
mla.setParent.open( parentId, postId, postTitle );
|
285 |
/*
|
@@ -291,7 +324,7 @@ var mla = {
|
|
291 |
return false;
|
292 |
});
|
293 |
},
|
294 |
-
|
295 |
tableParentSave : function( postId ) {
|
296 |
var foundRow = $( '#mla-set-parent-response-div input:checked' ).closest( 'tr' ),
|
297 |
parentId = $( ':radio', foundRow ).val() || '-1',
|
@@ -302,7 +335,7 @@ var mla = {
|
|
302 |
tableCell.html( '<span class="spinner"></span>' );
|
303 |
$( '#attachment-' + postId + " td.attached_to" ).replaceWith( tableCell );
|
304 |
$( '#attachment-' + postId + " td.attached_to .spinner" ).show();
|
305 |
-
|
306 |
params = $.param( {
|
307 |
action: mla.settings.ajax_action + '-set-parent',
|
308 |
nonce: mla.settings.ajax_nonce,
|
@@ -335,13 +368,13 @@ var mla = {
|
|
335 |
$('#mla-set-parent-submit' ).off( 'click' );
|
336 |
mla.setParent.close();
|
337 |
},
|
338 |
-
|
339 |
revert : function(){
|
340 |
var id = $('table.widefat tr.inline-editor').attr('id');
|
341 |
-
|
342 |
if ( id ) {
|
343 |
$('table.widefat .inline-edit-save .waiting').hide();
|
344 |
-
|
345 |
if ( 'bulk-edit' == id ) {
|
346 |
$('table.widefat #bulk-edit').removeClass('inline-editor').hide();
|
347 |
$('#bulk-titles').html('');
|
@@ -352,10 +385,10 @@ var mla = {
|
|
352 |
$(this.what+id).show();
|
353 |
}
|
354 |
}
|
355 |
-
|
356 |
return false;
|
357 |
},
|
358 |
-
|
359 |
getId : function(o) {
|
360 |
var id = $(o).closest('tr').attr('id'),
|
361 |
parts = id.split('-');
|
18 |
* Localized settings and strings
|
19 |
*/
|
20 |
mla.settings = typeof mla_inline_edit_vars === 'undefined' ? {} : mla_inline_edit_vars;
|
21 |
+
mla_inline_edit_vars = void 0; // delete won't work on Globals
|
22 |
+
|
23 |
// The inlineEditAttachment functions are adapted from wp-admin/js/inline-edit-post.js
|
24 |
mla.inlineEditAttachment = {
|
25 |
init : function(){
|
26 |
var t = this, qeRow = $( '#inline-edit' ), bulkRow = $( '#bulk-edit' );
|
27 |
+
|
28 |
t.type = 'attachment';
|
29 |
t.what = '#attachment-';
|
30 |
+
|
31 |
// prepare the edit rows
|
32 |
qeRow.keyup(function(e){
|
33 |
if (e.which == 27)
|
37 |
if (e.which == 27)
|
38 |
return mla.inlineEditAttachment.revert();
|
39 |
});
|
40 |
+
|
41 |
$('#inline-edit-post-set-parent', qeRow).on( 'click', function(){
|
42 |
return mla.inlineEditAttachment.inlineParentOpen(this);
|
43 |
});
|
51 |
if ( e.which == 13 )
|
52 |
return mla.inlineEditAttachment.save(this);
|
53 |
});
|
54 |
+
|
55 |
+
$('#bulk-edit-set-parent', bulkRow).on( 'click', function(){
|
56 |
+
return mla.inlineEditAttachment.bulkParentOpen();
|
57 |
+
});
|
58 |
$('a.cancel', bulkRow).click(function(){
|
59 |
return mla.inlineEditAttachment.revert();
|
60 |
});
|
61 |
+
|
62 |
// add event to the Quick Edit links
|
63 |
$( '#the-list' ).on( 'click', 'a.editinline', function(){
|
64 |
mla.inlineEditAttachment.edit(this);
|
65 |
return false;
|
66 |
});
|
67 |
+
|
68 |
// hiearchical taxonomies expandable?
|
69 |
$('span.catshow').click(function(){
|
70 |
$(this).hide().next().show().parent().next().addClass("cat-hover");
|
71 |
});
|
72 |
+
|
73 |
$('span.cathide').click(function(){
|
74 |
$(this).hide().prev().show().parent().next().removeClass("cat-hover");
|
75 |
});
|
76 |
+
|
77 |
$('select[name="_status"] option[value="future"]', bulkRow).remove();
|
78 |
+
|
79 |
$('#doaction, #doaction2').click(function(e){
|
80 |
var n = $(this).attr('id').substr(2);
|
81 |
+
|
82 |
if ( $('select[name="'+n+'"]').val() == 'edit' ) {
|
83 |
e.preventDefault();
|
84 |
t.setBulk();
|
86 |
t.revert();
|
87 |
}
|
88 |
});
|
89 |
+
|
90 |
// Filter button (dates, categories) in top nav bar
|
91 |
$('#post-query-submit').mousedown(function(e){
|
92 |
t.revert();
|
93 |
$('select[name^="action"]').val('-1');
|
94 |
});
|
95 |
},
|
96 |
+
|
97 |
toggle : function(el){
|
98 |
var t = this;
|
99 |
$(t.what+t.getId(el)).css('display') == 'none' ? t.revert() : t.edit(el);
|
100 |
},
|
101 |
+
|
102 |
setBulk : function(){
|
103 |
var te = '', c = true;
|
104 |
this.revert();
|
105 |
+
|
106 |
$('#bulk-edit td').attr('colspan', $('.widefat:first thead th:visible').length);
|
107 |
$('table.widefat tbody').prepend( $('#bulk-edit') );
|
108 |
$('#bulk-edit').addClass('inline-editor').show();
|
109 |
+
|
110 |
$('tbody th.check-column input[type="checkbox"]').each(function(i){
|
111 |
if ( $(this).prop('checked') ) {
|
112 |
c = false;
|
113 |
var id = $(this).val(), theTitle;
|
114 |
+
theTitle = $('#inline_'+id+' .post_title').text() || mla.settings.noTitle;
|
115 |
+
te += '<div id="ttle'+id+'"><a id="_'+id+'" class="ntdelbutton" title="'+mla.settings.ntdelTitle+'">X</a>'+theTitle+'</div>';
|
116 |
}
|
117 |
});
|
118 |
+
|
119 |
if ( c )
|
120 |
return this.revert();
|
121 |
+
|
122 |
$('#bulk-titles').html(te);
|
123 |
$('#bulk-titles a').click(function(){
|
124 |
var id = $(this).attr('id').substr(1);
|
125 |
+
|
126 |
$('table.widefat input[value="' + id + '"]').prop('checked', false);
|
127 |
$('#ttle'+id).remove();
|
128 |
});
|
129 |
+
|
130 |
//flat taxonomies
|
131 |
$('textarea.mla_tags').each(function(){
|
132 |
var taxname = $(this).attr('name').replace(']', '').replace('tax_input[', '');
|
133 |
+
|
134 |
$(this).suggest( ajaxurl + '?action=ajax-tag-search&tax=' + taxname, { delay: 500, minchars: 2, multiple: true, multipleSep: mla.settings.comma + ' ' } );
|
135 |
});
|
136 |
+
|
137 |
$('html, body').animate( { scrollTop: 0 }, 'fast' );
|
138 |
},
|
139 |
+
|
140 |
edit : function(id) {
|
141 |
var t = this, fields, editRow, rowData, fIndex;
|
142 |
t.revert();
|
143 |
+
|
144 |
if ( typeof(id) == 'object' )
|
145 |
id = t.getId(id);
|
146 |
+
|
147 |
fields = mla.settings.fields;
|
148 |
+
|
149 |
// add the new blank row
|
150 |
editRow = $('#inline-edit').clone(true);
|
151 |
$('td', editRow).attr('colspan', $('.widefat:first thead th:visible').length);
|
152 |
+
|
153 |
if ( $(t.what+id).hasClass('alternate') )
|
154 |
$(editRow).addClass('alternate');
|
155 |
$(t.what+id).hide().after(editRow);
|
156 |
+
|
157 |
// populate the data
|
158 |
rowData = $('#inline_'+id);
|
159 |
if ( !$(':input[name="post_author"] option[value="' + $('.post_author', rowData).text() + '"]', editRow).val() ) {
|
160 |
// author no longer has edit caps, so we need to add them to the list of authors
|
161 |
$(':input[name="post_author"]', editRow).prepend('<option value="' + $('.post_author', rowData).text() + '">' + $('#' + t.type + '-' + id + ' .author').text() + '</option>');
|
162 |
}
|
163 |
+
|
164 |
if ( $(':input[name="post_author"] option', editRow).length == 1 ) {
|
165 |
$('label.inline-edit-author', editRow).hide();
|
166 |
}
|
167 |
+
|
168 |
for ( fIndex = 0; fIndex < fields.length; fIndex++ ) {
|
169 |
$(':input[name="' + fields[fIndex] + '"]', editRow).val( $('.'+fields[fIndex], rowData).text() );
|
170 |
}
|
171 |
+
|
172 |
if ( $('.image_alt', rowData).length == 0) {
|
173 |
$('label.inline-edit-image-alt', editRow).hide();
|
174 |
}
|
175 |
+
|
176 |
// hierarchical taxonomies
|
177 |
$('.mla_category', rowData).each(function(){
|
178 |
var term_ids = $(this).text();
|
179 |
+
|
180 |
if ( term_ids ) {
|
181 |
taxname = $(this).attr('id').replace('_'+id, '');
|
182 |
$('ul.'+taxname+'-checklist :checkbox', editRow).val(term_ids.split(','));
|
183 |
}
|
184 |
});
|
185 |
+
|
186 |
//flat taxonomies
|
187 |
$('.mla_tags', rowData).each(function(){
|
188 |
var terms = $(this).text(),
|
189 |
taxname = $(this).attr('id').replace('_' + id, ''),
|
190 |
textarea = $('textarea.tax_input_' + taxname, editRow),
|
191 |
comma = mla.settings.comma;
|
192 |
+
|
193 |
if ( terms ) {
|
194 |
if ( ',' !== comma )
|
195 |
terms = terms.replace(/,/g, comma);
|
196 |
textarea.val(terms);
|
197 |
}
|
198 |
+
|
199 |
textarea.suggest( ajaxurl + '?action=ajax-tag-search&tax=' + taxname, { delay: 500, minchars: 2, multiple: true, multipleSep: mla.settings.comma + ' ' } );
|
200 |
});
|
201 |
+
|
202 |
$(editRow).attr('id', 'edit-'+id).addClass('inline-editor').show();
|
203 |
$('.ptitle', editRow).focus();
|
204 |
+
|
205 |
return false;
|
206 |
},
|
207 |
+
|
208 |
save : function( id ) {
|
209 |
var params, fields, page = $('.post_status_page').val() || '';
|
210 |
+
|
211 |
if ( typeof(id) == 'object' )
|
212 |
id = this.getId(id);
|
213 |
+
|
214 |
$('table.widefat .inline-edit-save .waiting').show();
|
215 |
+
|
216 |
params = {
|
217 |
action: mla.settings.ajax_action,
|
218 |
nonce: mla.settings.ajax_nonce,
|
221 |
edit_date: 'true',
|
222 |
post_status: page
|
223 |
};
|
224 |
+
|
225 |
+
fields = $('#edit-' + id + ' :input').serialize();
|
226 |
params = fields + '&' + $.param(params);
|
227 |
+
|
228 |
// make ajax request
|
229 |
$.post( ajaxurl, params,
|
230 |
function( response ) {
|
231 |
$( 'table.widefat .inline-edit-save .waiting' ).hide();
|
232 |
+
|
233 |
if ( response ) {
|
234 |
if ( -1 != response.indexOf( '<tr' ) ) {
|
235 |
$( mla.inlineEditAttachment.what + id ).remove();
|
246 |
, 'html');
|
247 |
return false;
|
248 |
},
|
249 |
+
|
250 |
inlineParentOpen : function( id ) {
|
251 |
var parentId, postId, postTitle;
|
252 |
+
|
253 |
if ( typeof( id ) == 'object' ) {
|
254 |
postId = this.getId( id );
|
255 |
parentId = $( '#edit-' + postId + ' :input[name="post_parent"]' ).val() || '';
|
265 |
});
|
266 |
}
|
267 |
},
|
268 |
+
|
269 |
inlineParentSave : function( postId ) {
|
270 |
var foundRow = $( '#mla-set-parent-response-div input:checked' ).closest( 'tr' ), parentId, parentTitle,
|
271 |
editRow = $( '#edit-' + postId ), newParent, newTitle;
|
272 |
+
|
273 |
if ( foundRow.length ) {
|
274 |
parentId = $( ':radio', foundRow ).val() || '';
|
275 |
parentTitle = $( 'label', foundRow ).html() || '';
|
277 |
newTitle = $(':input[name="post_parent_title"]', editRow).clone( true ).val( parentTitle );
|
278 |
$(':input[name="post_parent"]', editRow).replaceWith( newParent );
|
279 |
$(':input[name="post_parent_title"]', editRow).replaceWith( newTitle );
|
|
|
280 |
}
|
281 |
|
282 |
+
mla.setParent.close();
|
283 |
+
$('#mla-set-parent-submit' ).off( 'click' );
|
284 |
+
},
|
285 |
+
|
286 |
+
bulkParentOpen : function() {
|
287 |
+
var parentId, postId, postTitle;
|
288 |
+
|
289 |
+
postId = -1;
|
290 |
+
postTitle = mla.settings.bulkTitle;
|
291 |
+
parentId = $( '#bulk-edit :input[name="post_parent"]' ).val() || -1;
|
292 |
+
mla.setParent.open( parentId, postId, postTitle );
|
293 |
+
/*
|
294 |
+
* Grab the "Update" button
|
295 |
+
*/
|
296 |
+
$( '#mla-set-parent-submit' ).on( 'click', function( event ){
|
297 |
+
event.preventDefault();
|
298 |
+
mla.inlineEditAttachment.bulkParentSave();
|
299 |
+
return false;
|
300 |
+
});
|
301 |
+
},
|
302 |
+
|
303 |
+
bulkParentSave : function() {
|
304 |
+
var foundRow = $( '#mla-set-parent-response-div input:checked' ).closest( 'tr' ), parentId, newParent;
|
305 |
+
|
306 |
+
if ( foundRow.length ) {
|
307 |
+
parentId = $( ':radio', foundRow ).val() || '';
|
308 |
+
newParent = $('#bulk-edit :input[name="post_parent"]').clone( true ).val( parentId );
|
309 |
+
$('#bulk-edit :input[name="post_parent"]').replaceWith( newParent );
|
310 |
+
}
|
311 |
+
|
312 |
+
mla.setParent.close();
|
313 |
$('#mla-set-parent-submit' ).off( 'click' );
|
314 |
},
|
315 |
+
|
316 |
tableParentOpen : function( parentId, postId, postTitle ) {
|
317 |
mla.setParent.open( parentId, postId, postTitle );
|
318 |
/*
|
324 |
return false;
|
325 |
});
|
326 |
},
|
327 |
+
|
328 |
tableParentSave : function( postId ) {
|
329 |
var foundRow = $( '#mla-set-parent-response-div input:checked' ).closest( 'tr' ),
|
330 |
parentId = $( ':radio', foundRow ).val() || '-1',
|
335 |
tableCell.html( '<span class="spinner"></span>' );
|
336 |
$( '#attachment-' + postId + " td.attached_to" ).replaceWith( tableCell );
|
337 |
$( '#attachment-' + postId + " td.attached_to .spinner" ).show();
|
338 |
+
|
339 |
params = $.param( {
|
340 |
action: mla.settings.ajax_action + '-set-parent',
|
341 |
nonce: mla.settings.ajax_nonce,
|
368 |
$('#mla-set-parent-submit' ).off( 'click' );
|
369 |
mla.setParent.close();
|
370 |
},
|
371 |
+
|
372 |
revert : function(){
|
373 |
var id = $('table.widefat tr.inline-editor').attr('id');
|
374 |
+
|
375 |
if ( id ) {
|
376 |
$('table.widefat .inline-edit-save .waiting').hide();
|
377 |
+
|
378 |
if ( 'bulk-edit' == id ) {
|
379 |
$('table.widefat #bulk-edit').removeClass('inline-editor').hide();
|
380 |
$('#bulk-titles').html('');
|
385 |
$(this.what+id).show();
|
386 |
}
|
387 |
}
|
388 |
+
|
389 |
return false;
|
390 |
},
|
391 |
+
|
392 |
getId : function(o) {
|
393 |
var id = $(o).closest('tr').attr('id'),
|
394 |
parts = id.split('-');
|
js/mla-inline-edit-scripts.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
var mla={settings:{},utility:{},setParent:null,inlineEditAttachment:null};(function(a){mla.settings=typeof mla_inline_edit_vars==="undefined"?{}:mla_inline_edit_vars;
|
1 |
+
var mla={settings:{},utility:{},setParent:null,inlineEditAttachment:null};(function(a){mla.settings=typeof mla_inline_edit_vars==="undefined"?{}:mla_inline_edit_vars;mla_inline_edit_vars=void 0;mla.inlineEditAttachment={init:function(){var c=this,d=a("#inline-edit"),b=a("#bulk-edit");c.type="attachment";c.what="#attachment-";d.keyup(function(f){if(f.which==27){return mla.inlineEditAttachment.revert()}});b.keyup(function(f){if(f.which==27){return mla.inlineEditAttachment.revert()}});a("#inline-edit-post-set-parent",d).on("click",function(){return mla.inlineEditAttachment.inlineParentOpen(this)});a("a.cancel",d).click(function(){return mla.inlineEditAttachment.revert()});a("a.save",d).click(function(){return mla.inlineEditAttachment.save(this)});a("td",d).keydown(function(f){if(f.which==13){return mla.inlineEditAttachment.save(this)}});a("#bulk-edit-set-parent",b).on("click",function(){return mla.inlineEditAttachment.bulkParentOpen()});a("a.cancel",b).click(function(){return mla.inlineEditAttachment.revert()});a("#the-list").on("click","a.editinline",function(){mla.inlineEditAttachment.edit(this);return false});a("span.catshow").click(function(){a(this).hide().next().show().parent().next().addClass("cat-hover")});a("span.cathide").click(function(){a(this).hide().prev().show().parent().next().removeClass("cat-hover")});a('select[name="_status"] option[value="future"]',b).remove();a("#doaction, #doaction2").click(function(f){var g=a(this).attr("id").substr(2);if(a('select[name="'+g+'"]').val()=="edit"){f.preventDefault();c.setBulk()}else{if(a("form#posts-filter tr.inline-editor").length>0){c.revert()}}});a("#post-query-submit").mousedown(function(f){c.revert();a('select[name^="action"]').val("-1")})},toggle:function(c){var b=this;a(b.what+b.getId(c)).css("display")=="none"?b.revert():b.edit(c)},setBulk:function(){var b="",d=true;this.revert();a("#bulk-edit td").attr("colspan",a(".widefat:first thead th:visible").length);a("table.widefat tbody").prepend(a("#bulk-edit"));a("#bulk-edit").addClass("inline-editor").show();a('tbody th.check-column input[type="checkbox"]').each(function(e){if(a(this).prop("checked")){d=false;var f=a(this).val(),c;c=a("#inline_"+f+" .post_title").text()||mla.settings.noTitle;b+='<div id="ttle'+f+'"><a id="_'+f+'" class="ntdelbutton" title="'+mla.settings.ntdelTitle+'">X</a>'+c+"</div>"}});if(d){return this.revert()}a("#bulk-titles").html(b);a("#bulk-titles a").click(function(){var c=a(this).attr("id").substr(1);a('table.widefat input[value="'+c+'"]').prop("checked",false);a("#ttle"+c).remove()});a("textarea.mla_tags").each(function(){var c=a(this).attr("name").replace("]","").replace("tax_input[","");a(this).suggest(ajaxurl+"?action=ajax-tag-search&tax="+c,{delay:500,minchars:2,multiple:true,multipleSep:mla.settings.comma+" "})});a("html, body").animate({scrollTop:0},"fast")},edit:function(g){var d=this,b,c,e,f;d.revert();if(typeof(g)=="object"){g=d.getId(g)}b=mla.settings.fields;c=a("#inline-edit").clone(true);a("td",c).attr("colspan",a(".widefat:first thead th:visible").length);if(a(d.what+g).hasClass("alternate")){a(c).addClass("alternate")}a(d.what+g).hide().after(c);e=a("#inline_"+g);if(!a(':input[name="post_author"] option[value="'+a(".post_author",e).text()+'"]',c).val()){a(':input[name="post_author"]',c).prepend('<option value="'+a(".post_author",e).text()+'">'+a("#"+d.type+"-"+g+" .author").text()+"</option>")}if(a(':input[name="post_author"] option',c).length==1){a("label.inline-edit-author",c).hide()}for(f=0;f<b.length;f++){a(':input[name="'+b[f]+'"]',c).val(a("."+b[f],e).text())}if(a(".image_alt",e).length==0){a("label.inline-edit-image-alt",c).hide()}a(".mla_category",e).each(function(){var h=a(this).text();if(h){taxname=a(this).attr("id").replace("_"+g,"");a("ul."+taxname+"-checklist :checkbox",c).val(h.split(","))}});a(".mla_tags",e).each(function(){var j=a(this).text(),k=a(this).attr("id").replace("_"+g,""),i=a("textarea.tax_input_"+k,c),h=mla.settings.comma;if(j){if(","!==h){j=j.replace(/,/g,h)}i.val(j)}i.suggest(ajaxurl+"?action=ajax-tag-search&tax="+k,{delay:500,minchars:2,multiple:true,multipleSep:mla.settings.comma+" "})});a(c).attr("id","edit-"+g).addClass("inline-editor").show();a(".ptitle",c).focus();return false},save:function(e){var d,b,c=a(".post_status_page").val()||"";if(typeof(e)=="object"){e=this.getId(e)}a("table.widefat .inline-edit-save .waiting").show();d={action:mla.settings.ajax_action,nonce:mla.settings.ajax_nonce,post_type:typenow,post_ID:e,edit_date:"true",post_status:c};b=a("#edit-"+e+" :input").serialize();d=b+"&"+a.param(d);a.post(ajaxurl,d,function(f){a("table.widefat .inline-edit-save .waiting").hide();if(f){if(-1!=f.indexOf("<tr")){a(mla.inlineEditAttachment.what+e).remove();a("#edit-"+e).before(f).remove();a(mla.inlineEditAttachment.what+e).hide().fadeIn()}else{f=f.replace(/<.[^<>]*?>/g,"");a("#edit-"+e+" .inline-edit-save .error").html(f).show()}}else{a("#edit-"+e+" .inline-edit-save .error").html(mla.settings.error).show()}},"html");return false},inlineParentOpen:function(e){var d,b,c;if(typeof(e)=="object"){b=this.getId(e);d=a("#edit-"+b+' :input[name="post_parent"]').val()||"";c=a("#edit-"+b+' :input[name="post_title"]').val()||"";mla.setParent.open(d,b,c);a("#mla-set-parent-submit").on("click",function(f){f.preventDefault();mla.inlineEditAttachment.inlineParentSave(b);return false})}},inlineParentSave:function(b){var f=a("#mla-set-parent-response-div input:checked").closest("tr"),h,e,c=a("#edit-"+b),d,g;if(f.length){h=a(":radio",f).val()||"";e=a("label",f).html()||"";d=a(':input[name="post_parent"]',c).clone(true).val(h);g=a(':input[name="post_parent_title"]',c).clone(true).val(e);a(':input[name="post_parent"]',c).replaceWith(d);a(':input[name="post_parent_title"]',c).replaceWith(g)}mla.setParent.close();a("#mla-set-parent-submit").off("click")},bulkParentOpen:function(){var d,b,c;b=-1;c=mla.settings.bulkTitle;d=a('#bulk-edit :input[name="post_parent"]').val()||-1;mla.setParent.open(d,b,c);a("#mla-set-parent-submit").on("click",function(e){e.preventDefault();mla.inlineEditAttachment.bulkParentSave();return false})},bulkParentSave:function(){var c=a("#mla-set-parent-response-div input:checked").closest("tr"),d,b;if(c.length){d=a(":radio",c).val()||"";b=a('#bulk-edit :input[name="post_parent"]').clone(true).val(d);a('#bulk-edit :input[name="post_parent"]').replaceWith(b)}mla.setParent.close();a("#mla-set-parent-submit").off("click")},tableParentOpen:function(d,b,c){mla.setParent.open(d,b,c);a("#mla-set-parent-submit").on("click",function(e){e.preventDefault();mla.inlineEditAttachment.tableParentSave(b);return false})},tableParentSave:function(b){var d=a("#mla-set-parent-response-div input:checked").closest("tr"),f=a(":radio",d).val()||"-1",c,e=a("#attachment-"+b+" td.attached_to").clone(true);if(d.length&&(f>=0)){e=a("#attachment-"+b+" td.attached_to").clone(true);e.html('<span class="spinner"></span>');a("#attachment-"+b+" td.attached_to").replaceWith(e);a("#attachment-"+b+" td.attached_to .spinner").show();c=a.param({action:mla.settings.ajax_action+"-set-parent",nonce:mla.settings.ajax_nonce,post_ID:b,post_parent:f,});a.post(ajaxurl,c,function(g){var h=a("#attachment-"+b+" td.attached_to").clone(true);if(g){if(-1==g.indexOf("tableParentOpen(")){g=g.replace(/<.[^<>]*?>/g,"")}h.html(g)}else{h.html(mla.settings.ajaxFailError)}a("#attachment-"+b+" td.attached_to").replaceWith(h)},"html")}else{e.html(mla.settings.error);a("#attachment-"+b+" td.attached_to").replaceWith(e)}a("#mla-set-parent-submit").off("click");mla.setParent.close()},revert:function(){var b=a("table.widefat tr.inline-editor").attr("id");if(b){a("table.widefat .inline-edit-save .waiting").hide();if("bulk-edit"==b){a("table.widefat #bulk-edit").removeClass("inline-editor").hide();a("#bulk-titles").html("");a("#inlineedit").append(a("#bulk-edit"))}else{a("#"+b).remove();b=b.substr(b.lastIndexOf("-")+1);a(this.what+b).show()}}return false},getId:function(c){var d=a(c).closest("tr").attr("id"),b=d.split("-");return b[b.length-1]}};a(document).ready(function(){mla.inlineEditAttachment.init()})})(jQuery);
|
js/mla-inline-edit-upload-scripts.js
CHANGED
@@ -96,7 +96,7 @@ inlineEditUpload = {
|
|
96 |
|
97 |
fields = mla_inline_edit_upload_vars.fields;
|
98 |
checkboxes = mla_inline_edit_upload_vars.checkboxes;
|
99 |
-
|
100 |
// add the new blank row
|
101 |
editRow = $('#inline-edit').clone(true);
|
102 |
$('td', editRow).attr('colspan', $('.widefat:first thead th:visible').length);
|
96 |
|
97 |
fields = mla_inline_edit_upload_vars.fields;
|
98 |
checkboxes = mla_inline_edit_upload_vars.checkboxes;
|
99 |
+
|
100 |
// add the new blank row
|
101 |
editRow = $('#inline-edit').clone(true);
|
102 |
$('td', editRow).attr('colspan', $('.widefat:first thead th:visible').length);
|
js/mla-inline-edit-view-scripts.js
CHANGED
@@ -96,7 +96,7 @@ inlineEditView = {
|
|
96 |
|
97 |
fields = mla_inline_edit_view_vars.fields;
|
98 |
checkboxes = mla_inline_edit_view_vars.checkboxes;
|
99 |
-
|
100 |
// add the new blank row
|
101 |
editRow = $('#inline-edit').clone(true);
|
102 |
$('td', editRow).attr('colspan', $('.widefat:first thead th:visible').length);
|
96 |
|
97 |
fields = mla_inline_edit_view_vars.fields;
|
98 |
checkboxes = mla_inline_edit_view_vars.checkboxes;
|
99 |
+
|
100 |
// add the new blank row
|
101 |
editRow = $('#inline-edit').clone(true);
|
102 |
$('td', editRow).attr('colspan', $('.widefat:first thead th:visible').length);
|
js/mla-media-modal-scripts.js
CHANGED
@@ -1,27 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
(function($){
|
2 |
-
var media = wp.media, mlaStrings = {}, mlaSettings = {}, originalMediaAjax = null;
|
3 |
-
|
4 |
/* for debug : trace every event triggered in the MediaFrame controller * /
|
5 |
var originalMediaFrameTrigger = wp.media.view.MediaFrame.prototype.trigger;
|
6 |
wp.media.view.MediaFrame.prototype.trigger = function(){
|
7 |
console.log('MediaFrame Event: ', arguments[0]);
|
8 |
originalMediaFrameTrigger.apply(this, Array.prototype.slice.call(arguments));
|
9 |
} // */
|
10 |
-
|
11 |
/* for debug : trace every event triggered in the view.Attachment controller * /
|
12 |
var originalAttachmentTrigger = wp.media.view.Attachment.prototype.trigger;
|
13 |
wp.media.view.Attachment.prototype.trigger = function(){
|
14 |
console.log('view.Attachment Event: ', arguments[0]);
|
15 |
originalAttachmentTrigger.apply(this, Array.prototype.slice.call(arguments));
|
16 |
} // */
|
17 |
-
|
18 |
/* for debug : trace every event triggered in the model.Attachment controller * /
|
19 |
var originalModelAttachmentTrigger = wp.media.model.Attachment.prototype.trigger;
|
20 |
wp.media.model.Attachment.prototype.trigger = function(){
|
21 |
console.log('model.Attachment Event: ', arguments[0]);
|
22 |
originalModelAttachmentTrigger.apply(this, Array.prototype.slice.call(arguments));
|
23 |
} // */
|
24 |
-
|
25 |
/* for debug : trace every event triggered in the view.AttachmentCompat controller * /
|
26 |
var originalAttachmentCompatTrigger = wp.media.view.AttachmentCompat.prototype.trigger;
|
27 |
wp.media.view.AttachmentCompat.prototype.trigger = function(){
|
@@ -29,7 +53,7 @@
|
|
29 |
|
30 |
originalAttachmentCompatTrigger.apply(this, Array.prototype.slice.call(arguments));
|
31 |
} // */
|
32 |
-
|
33 |
/* for debug : trace every event triggered in the model.Selection controller * /
|
34 |
var originalModelSelectionTrigger = wp.media.model.Selection.prototype.trigger;
|
35 |
wp.media.model.Selection.prototype.trigger = function(){
|
@@ -37,22 +61,22 @@
|
|
37 |
|
38 |
originalModelSelectionTrigger.apply(this, Array.prototype.slice.call(arguments));
|
39 |
} // */
|
40 |
-
|
41 |
/* for debug : trace every invocation of the media.post method * /
|
42 |
var originalMediaPost = media.post;
|
43 |
media.post = function( action, data ) {
|
44 |
console.log('media.post action: ', action );
|
45 |
console.log('media.post data: ', JSON.stringify( data ) );
|
46 |
-
|
47 |
return originalMediaPost.apply(this, Array.prototype.slice.call(arguments));
|
48 |
}; // */
|
49 |
-
|
50 |
/* for debug : trace every invocation of the wp.ajax.send function * /
|
51 |
var originalWpAjaxSend = wp.ajax.send;
|
52 |
wp.ajax.send = function( action, data ) {
|
53 |
console.log('wp.ajax.send action: ', JSON.stringify( action ) );
|
54 |
console.log('wp.ajax.send data: ', JSON.stringify( data ) );
|
55 |
-
|
56 |
return originalWpAjaxSend.apply(this, Array.prototype.slice.call(arguments));
|
57 |
}; // */
|
58 |
|
@@ -60,20 +84,20 @@
|
|
60 |
* Parse outgoing Ajax requests, look for the 'query-attachments' action and stuff
|
61 |
* our arguments into the "s" field because MMMW only monitors that one field.
|
62 |
*/
|
63 |
-
originalMediaAjax = media.ajax;
|
64 |
-
media.ajax = function( action, options ) {
|
65 |
if ( _.isObject( action ) ) {
|
66 |
options = action;
|
67 |
} else {
|
68 |
-
//
|
69 |
options = options || {};
|
70 |
options.data = _.extend( options.data || {}, { action: action });
|
71 |
}
|
72 |
|
73 |
-
//
|
74 |
-
|
75 |
if ( 'query-attachments' == options.data.action ) {
|
76 |
-
|
77 |
stype = typeof options.data.query.s;
|
78 |
if ( 'object' == stype )
|
79 |
s = options.data.query.s;
|
@@ -81,48 +105,54 @@
|
|
81 |
s = { 'mla_search_value': options.data.query.s };
|
82 |
else
|
83 |
s = {};
|
84 |
-
|
85 |
if ( 'undefined' != typeof s.mla_filter_month )
|
86 |
-
|
87 |
-
|
88 |
if ( 'undefined' != typeof s.mla_filter_term )
|
89 |
-
|
90 |
-
|
91 |
if ( 'undefined' != typeof s.mla_search_value )
|
92 |
-
|
93 |
-
|
94 |
searchValues = {
|
95 |
-
'mla_filter_month':
|
96 |
-
'mla_filter_term':
|
97 |
-
'
|
98 |
-
'
|
99 |
-
'
|
100 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
101 |
options.data.query.s = searchValues;
|
102 |
}
|
103 |
-
|
104 |
-
//
|
105 |
-
return originalMediaAjax.call(this, options );
|
106 |
-
};
|
107 |
-
|
108 |
/**
|
109 |
* Localized settings and strings
|
110 |
*/
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
/**
|
118 |
* Extended Filters dropdown with more mimeTypes
|
119 |
*/
|
120 |
-
if (
|
121 |
-
media.view.AttachmentFilters.Mla = media.view.AttachmentFilters.extend({
|
122 |
createFilters: function() {
|
123 |
var filters = {};
|
124 |
-
|
125 |
-
_.each(
|
126 |
filters[ key ] = {
|
127 |
text: text,
|
128 |
props: {
|
@@ -133,9 +163,9 @@
|
|
133 |
}
|
134 |
};
|
135 |
});
|
136 |
-
|
137 |
filters.all = {
|
138 |
-
text: media.view.l10n.allMediaItems,
|
139 |
props: {
|
140 |
type: null,
|
141 |
uploadedTo: null,
|
@@ -144,19 +174,28 @@
|
|
144 |
},
|
145 |
priority: 10
|
146 |
};
|
147 |
-
|
148 |
filters.uploaded = {
|
149 |
-
text: media.view.l10n.uploadedToThisPost,
|
150 |
props: {
|
151 |
type: null,
|
152 |
-
uploadedTo: media.view.settings.post.id,
|
153 |
orderby: 'menuOrder',
|
154 |
order: 'ASC'
|
155 |
},
|
156 |
priority: 20
|
157 |
};
|
158 |
-
|
159 |
this.filters = filters;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
160 |
}
|
161 |
});
|
162 |
};
|
@@ -164,218 +203,326 @@
|
|
164 |
/**
|
165 |
* Extended Filters dropdown with month and year selection values
|
166 |
*/
|
167 |
-
if (
|
168 |
-
media.view.AttachmentFilters.MlaMonths = media.view.AttachmentFilters.extend({
|
169 |
className: 'attachment-months',
|
170 |
-
|
171 |
createFilters: function() {
|
172 |
var filters = {};
|
173 |
-
|
174 |
-
_.each(
|
175 |
filters[ key ] = {
|
176 |
text: text,
|
177 |
props: { s: { 'mla_filter_month': key } }
|
178 |
};
|
179 |
});
|
180 |
-
|
181 |
this.filters = filters;
|
182 |
},
|
183 |
-
|
184 |
select: function() {
|
185 |
var model = this.model,
|
186 |
-
value =
|
187 |
props = model.toJSON();
|
188 |
-
|
189 |
if ( _.isUndefined( props.s ) )
|
190 |
props.s = {};
|
191 |
-
|
192 |
if ( 'string' == typeof props.search )
|
193 |
-
|
194 |
-
|
195 |
if (_.isUndefined( props.s.mla_filter_month ) )
|
196 |
-
props.s.mla_filter_month =
|
197 |
else
|
198 |
-
|
199 |
-
|
200 |
_.find( this.filters, function( filter, id ) {
|
201 |
var equal = _.all( filter.props, function( prop, key ) {
|
202 |
-
return prop.mla_filter_month ==
|
203 |
});
|
204 |
-
|
205 |
if ( equal )
|
206 |
return value = id;
|
207 |
});
|
208 |
-
|
209 |
this.$el.val( value );
|
210 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
211 |
};
|
212 |
-
|
213 |
/**
|
214 |
* Extended Filters dropdown with taxonomy term selection values
|
215 |
*/
|
216 |
-
if (
|
217 |
-
media.view.AttachmentFilters.MlaTerms = media.view.AttachmentFilters.extend({
|
218 |
className: 'attachment-terms',
|
219 |
-
|
220 |
createFilters: function() {
|
221 |
var filters = {};
|
222 |
-
|
223 |
-
_.each(
|
224 |
filters[ key ] = {
|
225 |
text: text,
|
226 |
-
props: { s: { 'mla_filter_term': parseInt(
|
227 |
};
|
228 |
});
|
229 |
-
|
230 |
this.filters = filters;
|
231 |
},
|
232 |
-
|
233 |
select: function() {
|
234 |
var model = this.model,
|
235 |
-
value =
|
236 |
props = model.toJSON();
|
237 |
-
|
238 |
if ( _.isUndefined( props.s ) )
|
239 |
props.s = {};
|
240 |
-
|
241 |
if ( 'string' == typeof props.search )
|
242 |
-
|
243 |
-
|
244 |
if (_.isUndefined( props.s.mla_filter_term ) )
|
245 |
-
props.s.mla_filter_term =
|
246 |
else
|
247 |
-
|
248 |
-
|
249 |
_.find( this.filters, function( filter, id ) {
|
250 |
var equal = _.all( filter.props, function( prop, key ) {
|
251 |
-
return prop.mla_filter_term ==
|
252 |
});
|
253 |
-
|
254 |
if ( equal )
|
255 |
return value = id;
|
256 |
});
|
257 |
-
|
258 |
this.$el.val( value );
|
259 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
260 |
};
|
261 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
262 |
/**
|
263 |
* Extended wp.media.view.Search
|
264 |
*/
|
265 |
-
if (
|
266 |
-
media.view.MlaSearch = media.View.extend({
|
267 |
tagName: 'div',
|
268 |
className: 'mla-search-box',
|
269 |
-
template: media.template('mla-search-box'),
|
270 |
-
|
271 |
attributes: {
|
272 |
type: 'mla-search-box'
|
273 |
},
|
274 |
-
|
275 |
events: {
|
276 |
'change': 'search',
|
277 |
'click': 'search',
|
278 |
'search': 'search',
|
279 |
'MlaSearch': 'search'
|
280 |
},
|
281 |
-
|
282 |
render: function() {
|
283 |
-
this.$el.html( this.template(
|
284 |
return this;
|
285 |
},
|
286 |
-
|
287 |
search: function( event ) {
|
288 |
if ( ( 'click' == event.type ) && ( 'mla_search_submit' != event.target.name ) ) {
|
289 |
return;
|
290 |
}
|
291 |
-
|
292 |
switch ( event.target.name ) {
|
293 |
case 's[mla_search_value]':
|
294 |
-
|
|
|
295 |
case 'mla_search_submit':
|
296 |
searchValues = {
|
297 |
-
'mla_filter_month':
|
298 |
-
'mla_filter_term':
|
299 |
-
'
|
300 |
-
'
|
301 |
-
'
|
|
|
|
|
302 |
this.model.set({ 's': searchValues });
|
303 |
-
|
304 |
case 's[mla_search_connector]':
|
305 |
-
|
306 |
-
|
307 |
case 's[mla_search_title]':
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
case 's[mla_search_name]':
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
case 's[mla_search_alt_text]':
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
case 's[mla_search_excerpt]':
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
case 's[mla_search_content]':
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
342 |
}
|
343 |
}
|
344 |
-
});
|
345 |
-
};
|
346 |
-
|
347 |
/**
|
348 |
* Add/replace media-toolbar controls with our own
|
349 |
*/
|
350 |
-
if (
|
351 |
wp.media.view.AttachmentsBrowser = wp.media.view.AttachmentsBrowser.extend({
|
352 |
createToolbar: function() {
|
353 |
var filters;
|
354 |
|
355 |
// Apply the original method to create the toolbar
|
356 |
-
wp.media.view.AttachmentsBrowser.__super__.createToolbar.apply(this,arguments);
|
357 |
-
|
358 |
filters = this.options.filters;
|
359 |
-
|
360 |
-
if ( ( 'all' === filters ) &&
|
361 |
this.toolbar.unset( 'filters', { silent: true } );
|
362 |
-
this.toolbar.set( 'filters', new media.view.AttachmentFilters.Mla({
|
363 |
controller: this.controller,
|
364 |
model: this.collection.props,
|
365 |
priority: -80
|
366 |
}).render() );
|
367 |
}
|
368 |
-
|
369 |
-
if (
|
370 |
-
this.toolbar.set( 'months', new media.view.AttachmentFilters.MlaMonths({
|
371 |
controller: this.controller,
|
372 |
model: this.collection.props,
|
373 |
priority: -80
|
374 |
}).render() );
|
375 |
}
|
376 |
-
|
377 |
-
if (
|
378 |
-
this.toolbar.set( 'terms', new media.view.AttachmentFilters.MlaTerms({
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
379 |
controller: this.controller,
|
380 |
model: this.collection.props,
|
381 |
priority: -80
|
@@ -383,69 +530,135 @@
|
|
383 |
}
|
384 |
|
385 |
if ( this.options.search ) {
|
386 |
-
if (
|
387 |
this.toolbar.unset( 'search', { silent: true } );
|
388 |
-
this.toolbar.set( 'MlaSearch', new media.view.MlaSearch({
|
389 |
controller: this.controller,
|
390 |
model: this.collection.props,
|
391 |
priority: 60
|
392 |
}).render() );
|
393 |
}
|
394 |
}
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
401 |
}
|
402 |
}
|
403 |
});
|
404 |
}; // one or more MLA options enabled
|
405 |
-
}(jQuery));
|
406 |
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
|
|
|
|
|
|
|
|
414 |
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
parseTaxonomyId: null,
|
419 |
-
hookCompatTaxonomies: null,
|
420 |
-
fillCompatTaxonomies: null,
|
421 |
-
supportCompatTaxonomies: null
|
422 |
-
},
|
423 |
|
424 |
-
|
425 |
-
|
426 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
427 |
|
428 |
-
(function($){
|
429 |
-
/**
|
430 |
-
* Localized settings and strings
|
431 |
-
*/
|
432 |
-
mlaModal.strings = typeof wp.media.view.l10n.mla_strings === 'undefined' ? {} : wp.media.view.l10n.mla_strings;
|
433 |
-
//delete media.view.l10n.mla_strings;
|
434 |
-
|
435 |
-
mlaModal.settings = typeof wp.media.view.settings.mla_settings === 'undefined' ? {} : wp.media.view.settings.mla_settings;
|
436 |
-
//delete wp.media.view.settings.mla_settings;
|
437 |
-
|
438 |
/**
|
439 |
* return a sorted array with any duplicate, whitespace or values removed
|
440 |
* Adapted from /wp-admin/js/post.js
|
441 |
*/
|
442 |
mlaModal.utility.arrayCleanup = function ( arrayIn ) {
|
443 |
var arrayOut = [], isString = ( 'string' === typeof arrayIn );
|
444 |
-
|
445 |
if( isString ) {
|
446 |
arrayIn = arrayIn.split( postL10n.comma );
|
447 |
}
|
448 |
-
|
449 |
jQuery.each( arrayIn, function( key, val ) {
|
450 |
val = jQuery.trim( val );
|
451 |
|
@@ -460,7 +673,7 @@ var mlaModal = {
|
|
460 |
if( isString ) {
|
461 |
arrayOut = arrayOut.join( postL10n.comma );
|
462 |
}
|
463 |
-
|
464 |
return arrayOut;
|
465 |
};
|
466 |
|
@@ -470,7 +683,7 @@ var mlaModal = {
|
|
470 |
*/
|
471 |
mlaModal.utility.parseTaxonomyId = function ( id ) {
|
472 |
var taxonomyParts = id.split( '-' );
|
473 |
-
|
474 |
taxonomyParts.shift(); // 'mla-'
|
475 |
taxonomyParts.shift(); // 'taxonomy-'
|
476 |
return taxonomyParts.join('-');
|
@@ -488,13 +701,13 @@ var mlaModal = {
|
|
488 |
if ( ',' !== comma ) {
|
489 |
tags = tags.replace( new RegExp( comma, 'g' ), ',' );
|
490 |
}
|
491 |
-
|
492 |
tags = tags.replace( /\s*,\s*/g, ',' ).replace( /,+/g, ',' ).replace( /[,\s]+$/, '' ).replace( /^[,\s]+/, '' );
|
493 |
-
|
494 |
if ( ',' !== comma ) {
|
495 |
tags = tags.replace( /,/g, comma );
|
496 |
}
|
497 |
-
|
498 |
return tags;
|
499 |
},
|
500 |
|
@@ -506,18 +719,18 @@ var mlaModal = {
|
|
506 |
tagsDiv = $( el ).closest( '.tagsdiv' ),
|
507 |
thetags = tagsDiv.find( '.the-tags' ), comma = postL10n.comma,
|
508 |
current_tags = thetags.val().split( comma ), new_tags = [];
|
509 |
-
|
510 |
delete current_tags[ num ];
|
511 |
-
|
512 |
$.each( current_tags, function( key, val ) {
|
513 |
val = $.trim( val );
|
514 |
if ( val ) {
|
515 |
new_tags.push( val );
|
516 |
}
|
517 |
});
|
518 |
-
|
519 |
thetags.val( this.cleanTags( new_tags.join( comma ) ) );
|
520 |
-
|
521 |
this.quickClicks( tagsDiv );
|
522 |
return false;
|
523 |
},
|
@@ -531,35 +744,35 @@ var mlaModal = {
|
|
531 |
tagchecklist = $( '.tagchecklist', el ),
|
532 |
id = $( el ).attr( 'id' ),
|
533 |
current_tags, disabled;
|
534 |
-
|
535 |
if ( !thetags.length ) {
|
536 |
return;
|
537 |
}
|
538 |
-
|
539 |
disabled = thetags.prop( 'disabled' );
|
540 |
-
|
541 |
current_tags = thetags.val().split( postL10n.comma );
|
542 |
tagchecklist.empty();
|
543 |
-
|
544 |
$.each( current_tags, function( key, val ) {
|
545 |
var span, xbutton;
|
546 |
-
|
547 |
val = $.trim( val );
|
548 |
-
|
549 |
if ( ! val ) {
|
550 |
return;
|
551 |
}
|
552 |
-
|
553 |
// Create a new span, and ensure the text is properly escaped.
|
554 |
span = $( '<span />' ).text( val );
|
555 |
-
|
556 |
// If tags editing isn't disabled, create the X button.
|
557 |
if ( ! disabled ) {
|
558 |
xbutton = $( '<a id="' + id + '-check-num-' + key + '" class="ntdelbutton">X</a>' );
|
559 |
xbutton.click( function(){ mlaModal.tagBox.parseTags( this ); });
|
560 |
span.prepend( ' ' ).prepend( xbutton );
|
561 |
}
|
562 |
-
|
563 |
// Append the span to the tag list.
|
564 |
tagchecklist.append( span );
|
565 |
});
|
@@ -573,25 +786,25 @@ var mlaModal = {
|
|
573 |
tags = $( '.the-tags', tagsDiv ),
|
574 |
newtag = $( 'input.newtag', tagsDiv ),
|
575 |
comma = postL10n.comma;
|
576 |
-
|
577 |
a = a || false;
|
578 |
-
|
579 |
text = a ? $( a ).text() : newtag.val();
|
580 |
tagsval = tags.val();
|
581 |
newtags = tagsval ? tagsval + comma + text : text;
|
582 |
-
|
583 |
newtags = mlaModal.utility.arrayCleanup( this.cleanTags( newtags ) );
|
584 |
tags.val( newtags );
|
585 |
this.quickClicks( tagsDiv );
|
586 |
-
|
587 |
if ( !a ) {
|
588 |
newtag.val( '' );
|
589 |
}
|
590 |
-
|
591 |
if ( 'undefined' == typeof( f ) ) {
|
592 |
newtag.focus();
|
593 |
}
|
594 |
-
|
595 |
return false;
|
596 |
},
|
597 |
|
@@ -603,28 +816,28 @@ var mlaModal = {
|
|
603 |
if ( 0 === r || 'success' != stat ) {
|
604 |
r = wpAjax.broken;
|
605 |
}
|
606 |
-
|
607 |
r = $( '<p id="tagcloud-'+taxonomy+'" class="the-tagcloud">'+r+'</p>' );
|
608 |
$( 'a', r ).click( function(){
|
609 |
mlaModal.tagBox.flushTags( $( this ).closest( '.mla-taxonomy-field' ).children( '.tagsdiv' ), this );
|
610 |
return false;
|
611 |
});
|
612 |
-
|
613 |
$( '#'+id ).after( r );
|
614 |
});
|
615 |
},
|
616 |
-
|
617 |
init : function( attachmentId, taxonomy, context ) {
|
618 |
var tagsDiv, ajaxTag;
|
619 |
tagsDiv = $( '#mla-taxonomy-' + taxonomy, context );
|
620 |
ajaxTag = $( 'div.ajaxtag', tagsDiv );
|
621 |
-
|
622 |
mlaModal.tagBox.quickClicks( tagsDiv );
|
623 |
-
|
624 |
$( 'input.tagadd', ajaxTag ).click(function(){
|
625 |
mlaModal.tagBox.flushTags( $(this).closest( '.tagsdiv' ) );
|
626 |
});
|
627 |
-
|
628 |
$( 'input.newtag', ajaxTag ).keyup( function( e ){
|
629 |
if ( 13 == e.which ) {
|
630 |
mlaModal.tagBox.flushTags( tagsDiv );
|
@@ -638,7 +851,7 @@ var mlaModal = {
|
|
638 |
}).each( function(){
|
639 |
$( this ).suggest( ajaxurl + '?action=ajax-tag-search&tax=' + taxonomy, { delay: 500, resultsClass: 'mla_ac_results', selectClass: 'mla_ac_over', matchClass: 'mla_ac_match', minchars: 2, multiple: true, multipleSep: postL10n.comma + ' ' } );
|
640 |
});
|
641 |
-
|
642 |
// get the tag cloud on first click, then toggle visibility
|
643 |
tagsDiv.siblings( ':first' ).click( function(){
|
644 |
mlaModal.tagBox.getCloud( $( 'a', this ).attr( 'id' ), taxonomy );
|
@@ -648,17 +861,17 @@ var mlaModal = {
|
|
648 |
});
|
649 |
return false;
|
650 |
});
|
651 |
-
|
652 |
// Update the taxonomy terms, if changed, on the server when the mouse leaves the tagsdiv area
|
653 |
$( '.compat-field-' + taxonomy + ' td', context ).on( "mouseleave", function( event ) {
|
654 |
var query, tableData = this,
|
655 |
oldTerms = mlaModal.utility.arrayCleanup( $( '.server-tags', tableData ).val() ),
|
656 |
termList = mlaModal.utility.arrayCleanup( $( '.the-tags', tableData ).val() );
|
657 |
-
|
658 |
if ( oldTerms === termList ) {
|
659 |
return;
|
660 |
}
|
661 |
-
|
662 |
$( tableData ).css( 'opacity', '0.5' );
|
663 |
|
664 |
/**
|
@@ -669,16 +882,21 @@ var mlaModal = {
|
|
669 |
//_wpnonce: settings.post.nonce
|
670 |
};
|
671 |
query[ taxonomy ] = termList;
|
672 |
-
|
673 |
wp.media.post( mlaModal.settings.ajaxUpdateCompatAction, query ).done( function( results ) {
|
674 |
var taxonomy, list;
|
675 |
-
|
676 |
for ( taxonomy in results ) {
|
|
|
|
|
|
|
|
|
|
|
677 |
for ( list in results[ taxonomy ] ) {
|
678 |
$( "#" + list, tableData ).replaceWith( results[ taxonomy ][ list ] );
|
679 |
}
|
680 |
}
|
681 |
-
|
682 |
$( tableData ).css( 'opacity', '1.0' );
|
683 |
});
|
684 |
});
|
@@ -705,7 +923,7 @@ var mlaModal = {
|
|
705 |
initialize: function() {
|
706 |
// Call the base method in the super class
|
707 |
wp.media.view.AttachmentCompat.__super__.initialize.apply( this, arguments );
|
708 |
-
|
709 |
// Hook the 'ready' event when the sidebar has been rendered so we can add our enhancements
|
710 |
this.on( 'ready', function( event ) {
|
711 |
//console.log( 'view.AttachmentCompat ready Event: ', this.model.get('id') );
|
@@ -724,35 +942,35 @@ var mlaModal = {
|
|
724 |
initialize: function() {
|
725 |
// Call the base method in the super class
|
726 |
wp.media.model.Selection.__super__.initialize.apply( this, arguments );
|
727 |
-
|
728 |
// Hook the 'selection:reset' event so we can add our enhancements when it's done
|
729 |
this.on( 'selection:reset', function( model ) {
|
730 |
//console.log( 'model.Selection selection:reset Event: cid ', model.cid, ', id ', model.get('id') );
|
731 |
mlaModal.cid = null;
|
732 |
});
|
733 |
-
|
734 |
// Hook the 'selection:unsingle' event so we can add our enhancements when it's done
|
735 |
this.on( 'selection:unsingle', function( model ) {
|
736 |
//console.log( 'model.Selection selection:unsingle Event: cid ', model.cid, ', id ', model.get('id') );
|
737 |
mlaModal.cid = null;
|
738 |
});
|
739 |
-
|
740 |
// Hook the 'selection:single' event so we can add our enhancements when it's done
|
741 |
this.on( 'selection:single', function( model ) {
|
742 |
//console.log( 'model.Selection selection:single Event: cid ', model.cid, ', id ', model.get('id') );
|
743 |
mlaModal.cid = model.cid;
|
744 |
});
|
745 |
-
|
746 |
// Hook the 'change:uploading' event so we can add our enhancements when it's done
|
747 |
this.on( 'change:uploading', function( model ) {
|
748 |
//console.log( 'model.Selection change:uploading Event: cid ', model.cid, ', id ', model.get('id') );
|
749 |
mlaModal.uploading = true;
|
750 |
});
|
751 |
-
|
752 |
// Hook the 'change' event when the sidebar has been rendered so we can add our enhancements
|
753 |
this.on( 'change', function( model ) {
|
754 |
//console.log( 'model.Selection change Event: cid ', model.cid, ', id ', model.get('id') );
|
755 |
-
|
756 |
if ( mlaModal.uploading && mlaModal.cid === model.cid ) {
|
757 |
var mediaFrame = wp.media.editor.get('content'),
|
758 |
compat = mediaFrame.content.get('compat');
|
@@ -763,7 +981,7 @@ var mlaModal = {
|
|
763 |
}
|
764 |
});
|
765 |
}
|
766 |
-
|
767 |
/**
|
768 |
* Install the "click to expand" handler for MLA Searchable Taxonomy Meta Boxes
|
769 |
*/
|
@@ -772,11 +990,11 @@ var mlaModal = {
|
|
772 |
|
773 |
// console.log( 'hookCompatTaxonomies attachmentId: ', attachmentId );
|
774 |
// console.log( 'hookCompatTaxonomies context: ', JSON.stringify( context ) );
|
775 |
-
|
776 |
if ( mlaModal.settings.enableDetailsCategory ) {
|
777 |
$('.mla-taxonomy-field .categorydiv', context ).each( function(){
|
778 |
taxonomy = mlaModal.utility.parseTaxonomyId( $(this).attr('id') );
|
779 |
-
|
780 |
// Load the taxonomy checklists on first expansion
|
781 |
$( '.compat-field-' + taxonomy + ' th', context ).click( { id: attachmentId, currentTaxonomy: taxonomy, el: context }, function( event ) {
|
782 |
mlaModal.utility.fillCompatTaxonomies( event.data );
|
@@ -787,7 +1005,7 @@ var mlaModal = {
|
|
787 |
if ( mlaModal.settings.enableDetailsTag ) {
|
788 |
$('.mla-taxonomy-field .tagsdiv', context ).each( function(){
|
789 |
taxonomy = mlaModal.utility.parseTaxonomyId( $(this).attr('id') );
|
790 |
-
|
791 |
// Load the taxonomy checklists on first expansion
|
792 |
$( '.compat-field-' + taxonomy + ' th', context ).click( { id: attachmentId, currentTaxonomy: taxonomy, el: context }, function( event ) {
|
793 |
mlaModal.utility.fillCompatTaxonomies( event.data );
|
@@ -795,13 +1013,13 @@ var mlaModal = {
|
|
795 |
});
|
796 |
} // enableDetailsTag
|
797 |
};
|
798 |
-
|
799 |
/**
|
800 |
* Replace the "Loading..." placeholders with the MLA Searchable Taxonomy Meta Boxes
|
801 |
*/
|
802 |
mlaModal.utility.fillCompatTaxonomies = function( data ) {
|
803 |
var context = data.el, query = [], taxonomy, fieldClass;
|
804 |
-
|
805 |
if ( mlaModal.settings.enableDetailsCategory ) {
|
806 |
$('.mla-taxonomy-field .categorydiv', context ).each( function(){
|
807 |
taxonomy = mlaModal.utility.parseTaxonomyId( $(this).attr('id') );
|
@@ -814,7 +1032,7 @@ var mlaModal = {
|
|
814 |
} else {
|
815 |
$( fieldClass, context ).html( mlaModal.initialHTML[ taxonomy ] );
|
816 |
}
|
817 |
-
|
818 |
$( fieldClass + ' .categorydiv', context ).html( mlaModal.strings.loadingText );
|
819 |
});
|
820 |
} // mlaModal.settings.enableDetailsCategory
|
@@ -824,13 +1042,13 @@ var mlaModal = {
|
|
824 |
taxonomy = mlaModal.utility.parseTaxonomyId( $(this).attr('id') );
|
825 |
query[ query.length ] = taxonomy;
|
826 |
fieldClass = '.compat-field-' + taxonomy;
|
827 |
-
|
828 |
if ( "undefined" === typeof( mlaModal.initialHTML[ taxonomy ] ) ) {
|
829 |
mlaModal.initialHTML[ taxonomy ] = $( fieldClass, context ).html();
|
830 |
} else {
|
831 |
$( fieldClass, context ).html( mlaModal.initialHTML[ taxonomy ] );
|
832 |
}
|
833 |
-
|
834 |
$( fieldClass + ' .tagsdiv', context ).html( mlaModal.strings.loadingText );
|
835 |
});
|
836 |
} // mlaModal.settings.enableDetailsTag
|
@@ -853,68 +1071,68 @@ var mlaModal = {
|
|
853 |
//_wpnonce: settings.post.nonce
|
854 |
}).done( function( results ) {
|
855 |
var taxonomy, fieldClass;
|
856 |
-
|
857 |
for ( taxonomy in results ) {
|
858 |
fieldClass = '.compat-field-' + taxonomy;
|
859 |
-
|
860 |
$( fieldClass, context ).html( results[ taxonomy ] );
|
861 |
}
|
862 |
-
|
863 |
mlaModal.utility.supportCompatTaxonomies( data );
|
864 |
$( '.compat-field-' + data.currentTaxonomy + ' td', context ).show();
|
865 |
});
|
866 |
} // query.length
|
867 |
};
|
868 |
-
|
869 |
/**
|
870 |
* Support the MLA Searchable Taxonomy Meta Boxes
|
871 |
*/
|
872 |
mlaModal.utility.supportCompatTaxonomies = function( data ) {
|
873 |
var attachmentId = data.id, context = data.el;
|
874 |
-
|
875 |
if ( mlaModal.settings.enableDetailsCategory ) {
|
876 |
$( '.mla-taxonomy-field .categorydiv', context ).each( function(){
|
877 |
var thisJQuery = $(this), catAddBefore, catAddAfter, taxonomy, settingName,
|
878 |
taxonomyIdPrefix, taxonomyNewIdSelector, taxonomySearchIdSelector, taxonomyTermsId;
|
879 |
-
|
880 |
taxonomy = mlaModal.utility.parseTaxonomyId( $(this).attr('id') );
|
881 |
settingName = taxonomy + '_tab';
|
882 |
taxonomyIdPrefix = '#mla-' + taxonomy;
|
883 |
taxonomyNewIdSelector = '#mla-new-' + taxonomy;
|
884 |
taxonomySearchIdSelector = '#mla-search-' + taxonomy;
|
885 |
taxonomyTermsId = '#mla-attachments-' + attachmentId + '-' + taxonomy;
|
886 |
-
|
887 |
if ( taxonomy == 'category' ) {
|
888 |
settingName = 'cats';
|
889 |
}
|
890 |
-
|
891 |
// override "Media Categories" style sheet
|
892 |
thisJQuery.find( '.category-tabs' ).show();
|
893 |
-
|
894 |
// Expand/collapse the meta box contents
|
895 |
$( '.compat-field-' + taxonomy + ' th', context ).click( function() {
|
896 |
$(this).siblings( 'td' ).slideToggle();
|
897 |
});
|
898 |
-
|
899 |
// Update the taxonomy terms, if changed, on the server when the mouse leaves the checklist area
|
900 |
thisJQuery.on( "mouseleave", function( event ) {
|
901 |
var query, oldTerms, termList = [], checked = thisJQuery.find( taxonomyIdPrefix + '-checklist input:checked' );
|
902 |
-
|
903 |
checked.each( function( index ) {
|
904 |
termList[ termList.length ] = $(this).val();
|
905 |
});
|
906 |
-
|
907 |
termList.sort( function( a, b ) { return a - b; } );
|
908 |
termList = termList.join( ',' );
|
909 |
-
|
910 |
oldTerms = thisJQuery.siblings( taxonomyTermsId ).val();
|
911 |
if ( oldTerms === termList ) {
|
912 |
return;
|
913 |
}
|
914 |
-
|
915 |
thisJQuery.siblings( taxonomyTermsId ).val( termList );
|
916 |
thisJQuery.prop( 'disabled', true );
|
917 |
-
|
918 |
/**
|
919 |
* wp.ajax.send( [action], [options] )
|
920 |
*/
|
@@ -923,7 +1141,7 @@ var mlaModal = {
|
|
923 |
//_wpnonce: settings.post.nonce
|
924 |
};
|
925 |
query[ taxonomy ] = termList;
|
926 |
-
|
927 |
wp.media.post( mlaModal.settings.ajaxUpdateCompatAction,
|
928 |
query ).done( function( results ) {
|
929 |
var taxonomy, list;
|
@@ -933,23 +1151,23 @@ var mlaModal = {
|
|
933 |
thisJQuery.find( "#" + list ).html( results[ taxonomy ][ list ] );
|
934 |
}
|
935 |
}
|
936 |
-
|
937 |
thisJQuery.find( taxonomySearchIdSelector ).val( '' );
|
938 |
thisJQuery.find( taxonomyIdPrefix + '-searcher' ).addClass( 'mla-hidden-children' );
|
939 |
thisJQuery.prop( 'disabled', false );
|
940 |
});
|
941 |
});
|
942 |
-
|
943 |
// Don't let checkbox changes propogate to the Backbone model
|
944 |
thisJQuery.on( 'change input[type="checkbox"]', function( event ) {
|
945 |
event.stopPropagation();
|
946 |
return false;
|
947 |
});
|
948 |
-
|
949 |
/*
|
950 |
* Taxonomy meta box code from /wp-admin/js/post.js
|
951 |
*/
|
952 |
-
|
953 |
// Switch between "All ..." and "Most Used"
|
954 |
thisJQuery.find( taxonomyIdPrefix + '-tabs a' ).click( function(){
|
955 |
var t = $(this).attr('href');
|
@@ -957,38 +1175,38 @@ var mlaModal = {
|
|
957 |
thisJQuery.find( taxonomyIdPrefix + '-tabs' ).siblings('.tabs-panel').hide();
|
958 |
thisJQuery.find( t ).show();
|
959 |
$(this).focus();
|
960 |
-
|
961 |
// Store the "all/most used" setting in a cookie
|
962 |
if ( "#mla-" + taxonomy + '-all' == t ) {
|
963 |
deleteUserSetting( settingName );
|
964 |
} else {
|
965 |
setUserSetting( settingName, 'pop' );
|
966 |
}
|
967 |
-
|
968 |
return false;
|
969 |
});
|
970 |
-
|
971 |
// Reflect tab selection remembered in cookie
|
972 |
if ( getUserSetting( settingName ) ) {
|
973 |
thisJQuery.find( taxonomyIdPrefix + '-tabs a[href="#mla-' + taxonomy + '-pop"]' ).click();
|
974 |
}
|
975 |
-
|
976 |
// Toggle the "Add New ..." sub panel
|
977 |
thisJQuery.find( taxonomyIdPrefix + '-add-toggle' ).click( function() {
|
978 |
thisJQuery.find( taxonomyIdPrefix + '-searcher' ).addClass( 'mla-hidden-children' );
|
979 |
thisJQuery.find( taxonomyIdPrefix + '-adder' ).toggleClass( 'mla-hidden-children' );
|
980 |
thisJQuery.find( taxonomyIdPrefix + '-tabs a[href="#mla-' + taxonomy + '-all"]' ).click();
|
981 |
-
|
982 |
thisJQuery.find( taxonomyIdPrefix + '-checklist li' ).show();
|
983 |
thisJQuery.find( taxonomyIdPrefix + '-checklist-pop li' ).show();
|
984 |
-
|
985 |
if ( false === thisJQuery.find( taxonomyIdPrefix + '-adder' ).hasClass( 'mla-hidden-children' ) ) {
|
986 |
thisJQuery.find( taxonomyNewIdSelector ).val( '' ).removeClass( 'form-input-tip' );
|
987 |
thisJQuery.find( taxonomyNewIdSelector ).focus();
|
988 |
}
|
989 |
return false;
|
990 |
});
|
991 |
-
|
992 |
// Convert "Enter" key to a click
|
993 |
thisJQuery.find( taxonomyNewIdSelector ).keypress( function(event){
|
994 |
if( 13 === event.keyCode ) {
|
@@ -996,47 +1214,49 @@ var mlaModal = {
|
|
996 |
thisJQuery.find( taxonomyIdPrefix + '-add-submit' ).click();
|
997 |
}
|
998 |
});
|
999 |
-
|
1000 |
thisJQuery.find( taxonomyIdPrefix + '-add-submit' ).click( function(){
|
1001 |
thisJQuery.find( taxonomyNewIdSelector ).focus();
|
1002 |
});
|
1003 |
-
|
1004 |
catAddBefore = function( s ) {
|
1005 |
if ( ! thisJQuery.find( taxonomyNewIdSelector ).val() )
|
1006 |
return false;
|
1007 |
-
|
1008 |
s.data += '&' + thisJQuery.find( taxonomyIdPrefix + '-checklist :checked' ).serialize();
|
1009 |
thisJQuery.prop( 'disabled', true );
|
1010 |
return s;
|
1011 |
};
|
1012 |
-
|
1013 |
catAddAfter = function( r, s ) {
|
1014 |
-
var sup, drop = thisJQuery.find(
|
1015 |
-
|
1016 |
thisJQuery.prop( 'disabled', false );
|
1017 |
-
if ( 'undefined' != s.parsed.responses[0] && (sup = s.parsed.responses[0].supplemental.newcat_parent) ) {
|
1018 |
-
drop.before(sup);
|
1019 |
drop.remove();
|
|
|
1020 |
}
|
1021 |
};
|
1022 |
-
|
1023 |
// wpList is in /wp-includes/js/wp-lists.js
|
|
|
1024 |
thisJQuery.find( taxonomyIdPrefix + '-checklist' ).wpList({
|
1025 |
alt: '',
|
1026 |
response: 'mla-' + taxonomy + '-ajax-response',
|
1027 |
addBefore: catAddBefore,
|
1028 |
addAfter: catAddAfter
|
1029 |
});
|
1030 |
-
|
1031 |
// Synchronize checkbox changes between "All ..." and "Most Used" panels
|
1032 |
thisJQuery.find( taxonomyIdPrefix + '-checklist, ' + taxonomyIdPrefix + '-checklist-pop' ).on( 'click', 'li.popular-category > label input[type="checkbox"]', function() {
|
1033 |
var t = $(this), c = t.is(':checked'), id = t.val();
|
1034 |
-
|
1035 |
if ( id && t.parents( '#mla-taxonomy-'+ taxonomy ).length ) {
|
1036 |
$('#in-' + taxonomy + '-' + id + ', #in-popular-' + taxonomy + '-' + id).prop( 'checked', c );
|
1037 |
}
|
1038 |
});
|
1039 |
-
|
1040 |
/*
|
1041 |
* Searchable meta box code from mla-edit-media-scripts.js
|
1042 |
*/
|
@@ -1045,35 +1265,35 @@ var mlaModal = {
|
|
1045 |
return ( elem.textContent || elem.innerText || "" ).toLowerCase().indexOf( ( match[3] || "" ).toLowerCase() ) >= 0;
|
1046 |
}
|
1047 |
});
|
1048 |
-
|
1049 |
thisJQuery.find( taxonomySearchIdSelector ).keypress( function( event ){
|
1050 |
// Enter key cancels the filter and closes the search field
|
1051 |
if( 13 === event.keyCode ) {
|
1052 |
event.preventDefault();
|
1053 |
thisJQuery.find( taxonomySearchIdSelector ).val( '' );
|
1054 |
thisJQuery.find( taxonomyIdPrefix + '-searcher' ).addClass( 'mla-hidden-children' );
|
1055 |
-
|
1056 |
thisJQuery.find( taxonomyIdPrefix + '-checklist li' ).show();
|
1057 |
thisJQuery.find( taxonomyIdPrefix + '-checklist-pop li' ).show();
|
1058 |
return;
|
1059 |
}
|
1060 |
-
|
1061 |
} );
|
1062 |
-
|
1063 |
thisJQuery.find( taxonomySearchIdSelector ).keyup( function( event ){
|
1064 |
var searchValue, matchingTerms, matchingTermsPopular;
|
1065 |
-
|
1066 |
// keyup happens after keypress; change the focus if the text box has been closed
|
1067 |
if( 13 === event.keyCode ) {
|
1068 |
event.preventDefault();
|
1069 |
thisJQuery.find( taxonomyIdPrefix + '-search-toggle' ).focus();
|
1070 |
return;
|
1071 |
}
|
1072 |
-
|
1073 |
searchValue = thisJQuery.find( taxonomySearchIdSelector ).val(),
|
1074 |
termList = thisJQuery.find( taxonomyIdPrefix + '-checklist li' );
|
1075 |
termListPopular = thisJQuery.find( taxonomyIdPrefix + '-checklist-pop li' );
|
1076 |
-
|
1077 |
if ( 0 < searchValue.length ) {
|
1078 |
termList.hide();
|
1079 |
termListPopular.hide();
|
@@ -1081,108 +1301,47 @@ var mlaModal = {
|
|
1081 |
termList.show();
|
1082 |
termListPopular.show();
|
1083 |
}
|
1084 |
-
|
1085 |
matchingTerms = thisJQuery.find( taxonomyIdPrefix + "-checklist label:matchTerms('" + searchValue + "')");
|
1086 |
matchingTerms.closest( 'li' ).find( 'li' ).andSelf().show();
|
1087 |
matchingTerms.parents( taxonomyIdPrefix + '-checklist li' ).show();
|
1088 |
-
|
1089 |
matchingTermsPopular = thisJQuery.find( taxonomyIdPrefix + "-checklist-pop label:matchTerms('" + searchValue + "')");
|
1090 |
matchingTermsPopular.closest( 'li' ).find( 'li' ).andSelf().show();
|
1091 |
matchingTermsPopular.parents( taxonomyIdPrefix + '-checklist li' ).show();
|
1092 |
} );
|
1093 |
-
|
1094 |
// Toggle the "Search" sub panel
|
1095 |
thisJQuery.find( taxonomyIdPrefix + '-search-toggle' ).click( function() {
|
1096 |
thisJQuery.find( taxonomyIdPrefix + '-adder ').addClass( 'mla-hidden-children' );
|
1097 |
thisJQuery.find( taxonomyIdPrefix + '-searcher' ).toggleClass( 'mla-hidden-children' );
|
1098 |
thisJQuery.find( taxonomyIdPrefix + '-tabs a[href="#mla-' + taxonomy + '-all"]' ).click();
|
1099 |
-
|
1100 |
thisJQuery.find( taxonomyIdPrefix + '-checklist li' ).show();
|
1101 |
thisJQuery.find( taxonomyIdPrefix + '-checklist-pop li' ).show();
|
1102 |
-
|
1103 |
if ( false === thisJQuery.find( taxonomyIdPrefix + '-searcher' ).hasClass( 'mla-hidden-children' ) ) {
|
1104 |
thisJQuery.find( taxonomySearchIdSelector ).val( '' ).removeClass( 'form-input-tip' );
|
1105 |
thisJQuery.find( taxonomySearchIdSelector ).focus();
|
1106 |
}
|
1107 |
-
|
1108 |
return false;
|
1109 |
});
|
1110 |
}); // .categorydiv.each
|
1111 |
} // mlaModal.settings.enableDetailsCategory
|
1112 |
-
|
1113 |
if ( mlaModal.settings.enableDetailsTag ) {
|
1114 |
$('.mla-taxonomy-field .tagsdiv', context ).each( function(){
|
1115 |
var taxonomy = mlaModal.utility.parseTaxonomyId( $(this).attr('id') );
|
1116 |
-
|
1117 |
// Expand/collapse the meta box contents
|
1118 |
$( '.compat-field-' + taxonomy + ' th', context ).click( function() {
|
1119 |
$(this).siblings( 'td' ).slideToggle();
|
1120 |
});
|
1121 |
-
|
1122 |
// Install support for flat taxonomies
|
1123 |
mlaModal.tagBox.init( attachmentId, taxonomy, context );
|
1124 |
}); // .tagsdiv.each
|
1125 |
} // mlaModal.settings.enableDetailsTag
|
1126 |
-
};
|
1127 |
-
|
1128 |
-
/*
|
1129 |
-
* Add a utility method to jQuery
|
1130 |
-
* See if elements exists
|
1131 |
-
* /
|
1132 |
-
$.fn.extend({
|
1133 |
-
mlaExists: function() {
|
1134 |
-
return $(this).length>0;
|
1135 |
-
}
|
1136 |
-
}); // */
|
1137 |
-
|
1138 |
-
/**
|
1139 |
-
* Extend the WP AttachmentCompat object
|
1140 |
-
* /
|
1141 |
-
mlaModal.compat = {
|
1142 |
-
init: function() {
|
1143 |
-
console.log( 'mlaModal.compat.init' );
|
1144 |
-
|
1145 |
-
// Intercept the view.AttachmentCompat methods
|
1146 |
-
var original = wp.media.view.AttachmentCompat.prototype;
|
1147 |
-
console.log( 'mlaModal.compat.init tagName: ', original.tagName );
|
1148 |
-
console.log( 'mlaModal.compat.init className: ', original.className );
|
1149 |
-
|
1150 |
-
// Save the original methods
|
1151 |
-
original.mla_old_initialize = original.initialize;
|
1152 |
-
original.mla_old_dispose = original.dispose;
|
1153 |
-
original.mla_old_render = original.render;
|
1154 |
-
original.mla_old_preventDefault = original.preventDefault;
|
1155 |
-
original.mla_old_save = original.save;
|
1156 |
-
|
1157 |
-
original.initialize = function() {
|
1158 |
-
console.log( 'mlaModal.compat.initialize' );
|
1159 |
-
this.mla_old_initialize();
|
1160 |
-
};
|
1161 |
-
|
1162 |
-
original.dispose = function() {
|
1163 |
-
console.log( 'mlaModal.compat.dispose' );
|
1164 |
-
this.mla_old_dispose();
|
1165 |
-
return this; // allow chaining
|
1166 |
-
};
|
1167 |
-
|
1168 |
-
original.render = function() {
|
1169 |
-
console.log( 'mlaModal.compat.render' );
|
1170 |
-
this.mla_old_render();
|
1171 |
-
return this; // allow chaining
|
1172 |
-
};
|
1173 |
-
|
1174 |
-
original.preventDefault = function() {
|
1175 |
-
console.log( 'mlaModal.compat.preventDefault' );
|
1176 |
-
this.mla_old_preventDefault();
|
1177 |
-
};
|
1178 |
-
|
1179 |
-
// Note: Advanced Custom Fields (ACF) overrides this method and never calls the original!
|
1180 |
-
original.save = function() {
|
1181 |
-
console.log( 'mlaModal.compat.save' );
|
1182 |
-
this.mla_old_save();
|
1183 |
-
};
|
1184 |
-
}
|
1185 |
-
}; // mlaModal.compat */
|
1186 |
-
|
1187 |
-
//$( document ).ready( function(){ mlaModal.compat.init(); } )
|
1188 |
}( jQuery ) );
|
1 |
+
// uses Global ajaxurl
|
2 |
+
|
3 |
+
var mlaModal = {
|
4 |
+
// Properties
|
5 |
+
strings: {},
|
6 |
+
settings: {},
|
7 |
+
initialHTML: {},
|
8 |
+
uploading: false,
|
9 |
+
cid: null,
|
10 |
+
|
11 |
+
// Utility functions
|
12 |
+
utility: {
|
13 |
+
originalMediaAjax: null,
|
14 |
+
mlaAttachmentsBrowser: null,
|
15 |
+
parseTermsOptions: null,
|
16 |
+
arrayCleanup: null,
|
17 |
+
parseTaxonomyId: null,
|
18 |
+
hookCompatTaxonomies: null,
|
19 |
+
fillCompatTaxonomies: null,
|
20 |
+
supportCompatTaxonomies: null
|
21 |
+
},
|
22 |
+
|
23 |
+
// Components
|
24 |
+
tagBox: null
|
25 |
+
};
|
26 |
+
|
27 |
(function($){
|
|
|
|
|
28 |
/* for debug : trace every event triggered in the MediaFrame controller * /
|
29 |
var originalMediaFrameTrigger = wp.media.view.MediaFrame.prototype.trigger;
|
30 |
wp.media.view.MediaFrame.prototype.trigger = function(){
|
31 |
console.log('MediaFrame Event: ', arguments[0]);
|
32 |
originalMediaFrameTrigger.apply(this, Array.prototype.slice.call(arguments));
|
33 |
} // */
|
34 |
+
|
35 |
/* for debug : trace every event triggered in the view.Attachment controller * /
|
36 |
var originalAttachmentTrigger = wp.media.view.Attachment.prototype.trigger;
|
37 |
wp.media.view.Attachment.prototype.trigger = function(){
|
38 |
console.log('view.Attachment Event: ', arguments[0]);
|
39 |
originalAttachmentTrigger.apply(this, Array.prototype.slice.call(arguments));
|
40 |
} // */
|
41 |
+
|
42 |
/* for debug : trace every event triggered in the model.Attachment controller * /
|
43 |
var originalModelAttachmentTrigger = wp.media.model.Attachment.prototype.trigger;
|
44 |
wp.media.model.Attachment.prototype.trigger = function(){
|
45 |
console.log('model.Attachment Event: ', arguments[0]);
|
46 |
originalModelAttachmentTrigger.apply(this, Array.prototype.slice.call(arguments));
|
47 |
} // */
|
48 |
+
|
49 |
/* for debug : trace every event triggered in the view.AttachmentCompat controller * /
|
50 |
var originalAttachmentCompatTrigger = wp.media.view.AttachmentCompat.prototype.trigger;
|
51 |
wp.media.view.AttachmentCompat.prototype.trigger = function(){
|
53 |
|
54 |
originalAttachmentCompatTrigger.apply(this, Array.prototype.slice.call(arguments));
|
55 |
} // */
|
56 |
+
|
57 |
/* for debug : trace every event triggered in the model.Selection controller * /
|
58 |
var originalModelSelectionTrigger = wp.media.model.Selection.prototype.trigger;
|
59 |
wp.media.model.Selection.prototype.trigger = function(){
|
61 |
|
62 |
originalModelSelectionTrigger.apply(this, Array.prototype.slice.call(arguments));
|
63 |
} // */
|
64 |
+
|
65 |
/* for debug : trace every invocation of the media.post method * /
|
66 |
var originalMediaPost = media.post;
|
67 |
media.post = function( action, data ) {
|
68 |
console.log('media.post action: ', action );
|
69 |
console.log('media.post data: ', JSON.stringify( data ) );
|
70 |
+
|
71 |
return originalMediaPost.apply(this, Array.prototype.slice.call(arguments));
|
72 |
}; // */
|
73 |
+
|
74 |
/* for debug : trace every invocation of the wp.ajax.send function * /
|
75 |
var originalWpAjaxSend = wp.ajax.send;
|
76 |
wp.ajax.send = function( action, data ) {
|
77 |
console.log('wp.ajax.send action: ', JSON.stringify( action ) );
|
78 |
console.log('wp.ajax.send data: ', JSON.stringify( data ) );
|
79 |
+
|
80 |
return originalWpAjaxSend.apply(this, Array.prototype.slice.call(arguments));
|
81 |
}; // */
|
82 |
|
84 |
* Parse outgoing Ajax requests, look for the 'query-attachments' action and stuff
|
85 |
* our arguments into the "s" field because MMMW only monitors that one field.
|
86 |
*/
|
87 |
+
mlaModal.utility.originalMediaAjax = wp.media.ajax;
|
88 |
+
wp.media.ajax = function( action, options ) {
|
89 |
if ( _.isObject( action ) ) {
|
90 |
options = action;
|
91 |
} else {
|
92 |
+
//console.log('wp.media.ajax action: ', JSON.stringify( action ) );
|
93 |
options = options || {};
|
94 |
options.data = _.extend( options.data || {}, { action: action });
|
95 |
}
|
96 |
|
97 |
+
//console.log('wp.media.ajax original options: ', JSON.stringify( options ) );
|
98 |
+
|
99 |
if ( 'query-attachments' == options.data.action ) {
|
100 |
+
|
101 |
stype = typeof options.data.query.s;
|
102 |
if ( 'object' == stype )
|
103 |
s = options.data.query.s;
|
105 |
s = { 'mla_search_value': options.data.query.s };
|
106 |
else
|
107 |
s = {};
|
108 |
+
|
109 |
if ( 'undefined' != typeof s.mla_filter_month )
|
110 |
+
mlaModal.settings.filterMonth = s.mla_filter_month;
|
111 |
+
|
112 |
if ( 'undefined' != typeof s.mla_filter_term )
|
113 |
+
mlaModal.settings.filterTerm = s.mla_filter_term;
|
114 |
+
|
115 |
if ( 'undefined' != typeof s.mla_search_value )
|
116 |
+
mlaModal.settings.searchValue = s.mla_search_value;
|
117 |
+
|
118 |
searchValues = {
|
119 |
+
'mla_filter_month': mlaModal.settings.filterMonth,
|
120 |
+
'mla_filter_term': mlaModal.settings.filterTerm,
|
121 |
+
'mla_terms_search': mlaModal.settings.termsSearch,
|
122 |
+
'mla_search_clicks': mlaModal.settings.searchClicks,
|
123 |
+
'mla_search_value': mlaModal.settings.searchValue,
|
124 |
+
'mla_search_fields': mlaModal.settings.searchFields,
|
125 |
+
'mla_search_connector': mlaModal.settings.searchConnector };
|
126 |
+
|
127 |
+
//Terms Search is not sticky
|
128 |
+
mlaModal.settings.termsSearch = '';
|
129 |
+
$( '#mla-terms-search-input' ).html( '' ).val( '' );
|
130 |
+
|
131 |
options.data.query.s = searchValues;
|
132 |
}
|
133 |
+
|
134 |
+
//console.log('media.ajax final options: ', JSON.stringify( options ) );
|
135 |
+
return mlaModal.utility.originalMediaAjax.call(this, options );
|
136 |
+
}; // wp.media.ajax
|
137 |
+
|
138 |
/**
|
139 |
* Localized settings and strings
|
140 |
*/
|
141 |
+
mlaModal.strings = typeof wp.media.view.l10n.mla_strings === 'undefined' ? {} : wp.media.view.l10n.mla_strings;
|
142 |
+
delete wp.media.view.l10n.mla_strings;
|
143 |
+
|
144 |
+
mlaModal.settings = typeof wp.media.view.settings.mla_settings === 'undefined' ? {} : wp.media.view.settings.mla_settings;
|
145 |
+
delete wp.media.view.settings.mla_settings;
|
146 |
+
|
147 |
/**
|
148 |
* Extended Filters dropdown with more mimeTypes
|
149 |
*/
|
150 |
+
if ( mlaModal.settings.enableMimeTypes ) {
|
151 |
+
wp.media.view.AttachmentFilters.Mla = wp.media.view.AttachmentFilters.extend({
|
152 |
createFilters: function() {
|
153 |
var filters = {};
|
154 |
+
|
155 |
+
_.each( mlaModal.settings.mimeTypes || {}, function( text, key ) {
|
156 |
filters[ key ] = {
|
157 |
text: text,
|
158 |
props: {
|
163 |
}
|
164 |
};
|
165 |
});
|
166 |
+
|
167 |
filters.all = {
|
168 |
+
text: wp.media.view.l10n.allMediaItems,
|
169 |
props: {
|
170 |
type: null,
|
171 |
uploadedTo: null,
|
174 |
},
|
175 |
priority: 10
|
176 |
};
|
177 |
+
|
178 |
filters.uploaded = {
|
179 |
+
text: wp.media.view.l10n.uploadedToThisPost,
|
180 |
props: {
|
181 |
type: null,
|
182 |
+
uploadedTo: wp.media.view.settings.post.id,
|
183 |
orderby: 'menuOrder',
|
184 |
order: 'ASC'
|
185 |
},
|
186 |
priority: 20
|
187 |
};
|
188 |
+
|
189 |
this.filters = filters;
|
190 |
+
},
|
191 |
+
|
192 |
+
change: function() {
|
193 |
+
var filter = this.filters[ this.el.value ];
|
194 |
+
|
195 |
+
if ( filter ) {
|
196 |
+
this.model.set( filter.props, { silent: true } );
|
197 |
+
$( '#mla-search-submit' ).click();
|
198 |
+
}
|
199 |
}
|
200 |
});
|
201 |
};
|
203 |
/**
|
204 |
* Extended Filters dropdown with month and year selection values
|
205 |
*/
|
206 |
+
if ( mlaModal.settings.enableMonthsDropdown ) {
|
207 |
+
wp.media.view.AttachmentFilters.MlaMonths = wp.media.view.AttachmentFilters.extend({
|
208 |
className: 'attachment-months',
|
209 |
+
|
210 |
createFilters: function() {
|
211 |
var filters = {};
|
212 |
+
|
213 |
+
_.each( mlaModal.settings.months || {}, function( text, key ) {
|
214 |
filters[ key ] = {
|
215 |
text: text,
|
216 |
props: { s: { 'mla_filter_month': key } }
|
217 |
};
|
218 |
});
|
219 |
+
|
220 |
this.filters = filters;
|
221 |
},
|
222 |
+
|
223 |
select: function() {
|
224 |
var model = this.model,
|
225 |
+
value = mlaModal.settings.filterMonth,
|
226 |
props = model.toJSON();
|
227 |
+
|
228 |
if ( _.isUndefined( props.s ) )
|
229 |
props.s = {};
|
230 |
+
|
231 |
if ( 'string' == typeof props.search )
|
232 |
+
mlaModal.settings.searchValue = props.search;
|
233 |
+
|
234 |
if (_.isUndefined( props.s.mla_filter_month ) )
|
235 |
+
props.s.mla_filter_month = mlaModal.settings.filterMonth;
|
236 |
else
|
237 |
+
mlaModal.settings.filterMonth = props.s.mla_filter_month;
|
238 |
+
|
239 |
_.find( this.filters, function( filter, id ) {
|
240 |
var equal = _.all( filter.props, function( prop, key ) {
|
241 |
+
return prop.mla_filter_month == mlaModal.settings.filterMonth;
|
242 |
});
|
243 |
+
|
244 |
if ( equal )
|
245 |
return value = id;
|
246 |
});
|
247 |
+
|
248 |
this.$el.val( value );
|
249 |
+
},
|
250 |
+
|
251 |
+
change: function() {
|
252 |
+
var filter = this.filters[ this.el.value ];
|
253 |
+
|
254 |
+
if ( filter ) {
|
255 |
+
this.model.set( filter.props /*, { silent: true } */ );
|
256 |
+
$( '#mla-search-submit' ).click();
|
257 |
+
}
|
258 |
+
}
|
259 |
+
});
|
260 |
};
|
261 |
+
|
262 |
/**
|
263 |
* Extended Filters dropdown with taxonomy term selection values
|
264 |
*/
|
265 |
+
if ( mlaModal.settings.enableTermsDropdown ) {
|
266 |
+
wp.media.view.AttachmentFilters.MlaTerms = wp.media.view.AttachmentFilters.extend({
|
267 |
className: 'attachment-terms',
|
268 |
+
|
269 |
createFilters: function() {
|
270 |
var filters = {};
|
271 |
+
|
272 |
+
_.each( mlaModal.settings.termsText || {}, function( text, key ) {
|
273 |
filters[ key ] = {
|
274 |
text: text,
|
275 |
+
props: { s: { 'mla_filter_term': parseInt( mlaModal.settings.termsValue[ key ] ) } }
|
276 |
};
|
277 |
});
|
278 |
+
|
279 |
this.filters = filters;
|
280 |
},
|
281 |
+
|
282 |
select: function() {
|
283 |
var model = this.model,
|
284 |
+
value = mlaModal.settings.filterTerm,
|
285 |
props = model.toJSON();
|
286 |
+
|
287 |
if ( _.isUndefined( props.s ) )
|
288 |
props.s = {};
|
289 |
+
|
290 |
if ( 'string' == typeof props.search )
|
291 |
+
mlaModal.settings.searchValue = props.search;
|
292 |
+
|
293 |
if (_.isUndefined( props.s.mla_filter_term ) )
|
294 |
+
props.s.mla_filter_term = mlaModal.settings.filterTerm;
|
295 |
else
|
296 |
+
mlaModal.settings.filterTerm = props.s.mla_filter_term;
|
297 |
+
|
298 |
_.find( this.filters, function( filter, id ) {
|
299 |
var equal = _.all( filter.props, function( prop, key ) {
|
300 |
+
return prop.mla_filter_term == mlaModal.settings.filterTerm;
|
301 |
});
|
302 |
+
|
303 |
if ( equal )
|
304 |
return value = id;
|
305 |
});
|
306 |
+
|
307 |
this.$el.val( value );
|
308 |
+
},
|
309 |
+
|
310 |
+
change: function() {
|
311 |
+
var filter = this.filters[ this.el.value ];
|
312 |
+
|
313 |
+
if ( filter ) {
|
314 |
+
this.model.set( filter.props /*, { silent: true } */ );
|
315 |
+
$( '#mla-search-submit' ).click();
|
316 |
+
}
|
317 |
+
}
|
318 |
+
});
|
319 |
};
|
320 |
+
|
321 |
+
/**
|
322 |
+
* Extended Terms Search activation button
|
323 |
+
*/
|
324 |
+
if ( mlaModal.settings.enableTermsSearch ) {
|
325 |
+
wp.media.view.MlaTermsSearch = wp.media.View.extend({
|
326 |
+
tagName: 'span',
|
327 |
+
className: 'mla-terms-search',
|
328 |
+
template: wp.media.template('mla-terms-search-button'),
|
329 |
+
|
330 |
+
attributes: {
|
331 |
+
type: 'mla-terms-search-button'
|
332 |
+
},
|
333 |
+
|
334 |
+
events: {
|
335 |
+
'change': 'termsSearchOpen',
|
336 |
+
'click': 'termsSearchOpen',
|
337 |
+
},
|
338 |
+
|
339 |
+
render: function() {
|
340 |
+
this.$el.html( this.template( mlaModal.strings ) );
|
341 |
+
return this;
|
342 |
+
},
|
343 |
+
|
344 |
+
termsSearchOpen: function( event ) {
|
345 |
+
if ( ( 'click' == event.type ) && ( 'mla_terms_search' === event.target.name ) ) {
|
346 |
+
mlaTaxonomy.termsSearch.open();
|
347 |
+
|
348 |
+
$( '#mla-terms-search-form' ).off( 'submit' ); // only fire once per open
|
349 |
+
$( '#mla-terms-search-form' ).submit( function( e ){
|
350 |
+
var inputs, inputIndex, termsSearch = { phrases: '', taxonomies: [] };
|
351 |
+
|
352 |
+
//console.log( 'mla-terms-search-form.submit' );
|
353 |
+
e.preventDefault();
|
354 |
+
|
355 |
+
inputs = $( '#mla-terms-search-form' ).serializeArray();
|
356 |
+
for( inputIndex = 0; inputIndex < inputs.length; inputIndex++ ) {
|
357 |
+
switch ( inputs[ inputIndex ].name ) {
|
358 |
+
case 'mla_terms_search[phrases]':
|
359 |
+
termsSearch.phrases = inputs[ inputIndex ].value;
|
360 |
+
break;
|
361 |
+
case 'mla_terms_search[radio_phrases]':
|
362 |
+
termsSearch.radio_phrases = inputs[ inputIndex ].value;
|
363 |
+
break;
|
364 |
+
case 'mla_terms_search[radio_terms]':
|
365 |
+
termsSearch.radio_terms = inputs[ inputIndex ].value;
|
366 |
+
break;
|
367 |
+
case 'mla_terms_search[taxonomies][]':
|
368 |
+
termsSearch.taxonomies[ termsSearch.taxonomies.length ] = inputs[ inputIndex ].value;
|
369 |
+
break;
|
370 |
+
};
|
371 |
+
}
|
372 |
+
|
373 |
+
//console.log( 'mla-terms-search-submit.click termsSearch = ' + JSON.stringify( termsSearch ) );
|
374 |
+
mlaModal.settings.termsSearch = termsSearch
|
375 |
+
$( '#mla-search-submit' ).click();
|
376 |
+
//console.log( 'mla-terms-search-submit.click return false ' );
|
377 |
+
return false;
|
378 |
+
});
|
379 |
+
|
380 |
+
$( '#mla-terms-search-input' ).keypress( function( e ){
|
381 |
+
if ( 13 == e.which ) {
|
382 |
+
e.preventDefault();
|
383 |
+
$( '#mla-terms-search-submit' ).click();
|
384 |
+
}
|
385 |
+
});
|
386 |
+
}
|
387 |
+
}
|
388 |
+
}); // wp.media.view.MlaSearch
|
389 |
+
}; // mlaModal.settings.enableTermsSearch
|
390 |
+
|
391 |
/**
|
392 |
* Extended wp.media.view.Search
|
393 |
*/
|
394 |
+
if ( mlaModal.settings.enableSearchBox ) {
|
395 |
+
wp.media.view.MlaSearch = wp.media.View.extend({
|
396 |
tagName: 'div',
|
397 |
className: 'mla-search-box',
|
398 |
+
template: wp.media.template('mla-search-box'),
|
399 |
+
|
400 |
attributes: {
|
401 |
type: 'mla-search-box'
|
402 |
},
|
403 |
+
|
404 |
events: {
|
405 |
'change': 'search',
|
406 |
'click': 'search',
|
407 |
'search': 'search',
|
408 |
'MlaSearch': 'search'
|
409 |
},
|
410 |
+
|
411 |
render: function() {
|
412 |
+
this.$el.html( this.template( mlaModal.strings ) );
|
413 |
return this;
|
414 |
},
|
415 |
+
|
416 |
search: function( event ) {
|
417 |
if ( ( 'click' == event.type ) && ( 'mla_search_submit' != event.target.name ) ) {
|
418 |
return;
|
419 |
}
|
420 |
+
|
421 |
switch ( event.target.name ) {
|
422 |
case 's[mla_search_value]':
|
423 |
+
mlaModal.settings.searchValue = event.target.value;
|
424 |
+
break;
|
425 |
case 'mla_search_submit':
|
426 |
searchValues = {
|
427 |
+
'mla_filter_month': mlaModal.settings.filterMonth,
|
428 |
+
'mla_filter_term': mlaModal.settings.filterTerm,
|
429 |
+
'mla_terms_search': mlaModal.settings.termsSearch,
|
430 |
+
'mla_search_clicks': mlaModal.settings.searchClicks++,
|
431 |
+
'mla_search_value': mlaModal.settings.searchValue,
|
432 |
+
'mla_search_fields': mlaModal.settings.searchFields,
|
433 |
+
'mla_search_connector': mlaModal.settings.searchConnector };
|
434 |
this.model.set({ 's': searchValues });
|
435 |
+
break;
|
436 |
case 's[mla_search_connector]':
|
437 |
+
mlaModal.settings.searchConnector = event.target.value;
|
438 |
+
break;
|
439 |
case 's[mla_search_title]':
|
440 |
+
index = mlaModal.settings.searchFields.indexOf( 'title' );
|
441 |
+
if ( -1 == index )
|
442 |
+
mlaModal.settings.searchFields.push( 'title' )
|
443 |
+
else
|
444 |
+
mlaModal.settings.searchFields.splice( index, 1 );
|
445 |
+
break;
|
446 |
case 's[mla_search_name]':
|
447 |
+
index = mlaModal.settings.searchFields.indexOf( 'name' );
|
448 |
+
if ( -1 == index )
|
449 |
+
mlaModal.settings.searchFields.push( 'name' )
|
450 |
+
else
|
451 |
+
mlaModal.settings.searchFields.splice( index, 1 );
|
452 |
+
break;
|
453 |
case 's[mla_search_alt_text]':
|
454 |
+
index = mlaModal.settings.searchFields.indexOf( 'alt-text' );
|
455 |
+
if ( -1 == index )
|
456 |
+
mlaModal.settings.searchFields.push( 'alt-text' )
|
457 |
+
else
|
458 |
+
mlaModal.settings.searchFields.splice( index, 1 );
|
459 |
+
break;
|
460 |
case 's[mla_search_excerpt]':
|
461 |
+
index = mlaModal.settings.searchFields.indexOf( 'excerpt' );
|
462 |
+
if ( -1 == index )
|
463 |
+
mlaModal.settings.searchFields.push( 'excerpt' )
|
464 |
+
else
|
465 |
+
mlaModal.settings.searchFields.splice( index, 1 );
|
466 |
+
break;
|
467 |
case 's[mla_search_content]':
|
468 |
+
index = mlaModal.settings.searchFields.indexOf( 'content' );
|
469 |
+
if ( -1 == index )
|
470 |
+
mlaModal.settings.searchFields.push( 'content' )
|
471 |
+
else
|
472 |
+
mlaModal.settings.searchFields.splice( index, 1 );
|
473 |
+
break;
|
474 |
+
case 's[mla_search_terms]':
|
475 |
+
index = mlaModal.settings.searchFields.indexOf( 'terms' );
|
476 |
+
if ( -1 == index )
|
477 |
+
mlaModal.settings.searchFields.push( 'terms' )
|
478 |
+
else
|
479 |
+
mlaModal.settings.searchFields.splice( index, 1 );
|
480 |
+
break;
|
481 |
}
|
482 |
}
|
483 |
+
}); // wp.media.view.MlaSearch
|
484 |
+
}; // mlaModal.settings.enableSearchBox
|
485 |
+
|
486 |
/**
|
487 |
* Add/replace media-toolbar controls with our own
|
488 |
*/
|
489 |
+
if ( mlaModal.settings.enableMimeTypes || mlaModal.settings.enableMonthsDropdown || mlaModal.settings.enableTermsDropdown || mlaModal.settings.enableTermsSearch || mlaModal.settings.enableSearchBox ) {
|
490 |
wp.media.view.AttachmentsBrowser = wp.media.view.AttachmentsBrowser.extend({
|
491 |
createToolbar: function() {
|
492 |
var filters;
|
493 |
|
494 |
// Apply the original method to create the toolbar
|
495 |
+
wp.media.view.AttachmentsBrowser.__super__.createToolbar.apply( this, arguments );
|
496 |
+
mlaModal.utility.mlaAttachmentsBrowser = this;
|
497 |
filters = this.options.filters;
|
498 |
+
|
499 |
+
if ( ( 'all' === filters ) && mlaModal.settings.enableMimeTypes ) {
|
500 |
this.toolbar.unset( 'filters', { silent: true } );
|
501 |
+
this.toolbar.set( 'filters', new wp.media.view.AttachmentFilters.Mla({
|
502 |
controller: this.controller,
|
503 |
model: this.collection.props,
|
504 |
priority: -80
|
505 |
}).render() );
|
506 |
}
|
507 |
+
|
508 |
+
if ( this.options.search && mlaModal.settings.enableMonthsDropdown ) {
|
509 |
+
this.toolbar.set( 'months', new wp.media.view.AttachmentFilters.MlaMonths({
|
510 |
controller: this.controller,
|
511 |
model: this.collection.props,
|
512 |
priority: -80
|
513 |
}).render() );
|
514 |
}
|
515 |
+
|
516 |
+
if ( this.options.search && mlaModal.settings.enableTermsDropdown ) {
|
517 |
+
this.toolbar.set( 'terms', new wp.media.view.AttachmentFilters.MlaTerms({
|
518 |
+
controller: this.controller,
|
519 |
+
model: this.collection.props,
|
520 |
+
priority: -80
|
521 |
+
}).render() );
|
522 |
+
}
|
523 |
+
|
524 |
+
if ( this.options.search && mlaModal.settings.enableTermsSearch ) {
|
525 |
+
this.toolbar.set( 'termsSearch', new wp.media.view.MlaTermsSearch({
|
526 |
controller: this.controller,
|
527 |
model: this.collection.props,
|
528 |
priority: -80
|
530 |
}
|
531 |
|
532 |
if ( this.options.search ) {
|
533 |
+
if ( mlaModal.settings.enableSearchBox ) {
|
534 |
this.toolbar.unset( 'search', { silent: true } );
|
535 |
+
this.toolbar.set( 'MlaSearch', new wp.media.view.MlaSearch({
|
536 |
controller: this.controller,
|
537 |
model: this.collection.props,
|
538 |
priority: 60
|
539 |
}).render() );
|
540 |
}
|
541 |
}
|
542 |
+
},
|
543 |
+
|
544 |
+
updateFilters: function( taxonomy, selectMarkup ) {
|
545 |
+
var newOptions = {};
|
546 |
+
//console.log( 'updateFilters ( ' + taxonomy + ' ) = ' + JSON.stringify( selectMarkup ) );
|
547 |
+
|
548 |
+
if ( this.options.search && mlaModal.settings.enableTermsDropdown && mlaModal.settings.termsTaxonomy == taxonomy ) {
|
549 |
+
newOptions = mlaModal.utility.parseTermsOptions( selectMarkup );
|
550 |
+
mlaModal.settings.termsClass = newOptions.termsClass;
|
551 |
+
mlaModal.settings.termsText = newOptions.termsText;
|
552 |
+
mlaModal.settings.termsValue = newOptions.termsValue;
|
553 |
+
|
554 |
+
this.toolbar.unset( 'terms', { silent: true } );
|
555 |
+
this.toolbar.set( 'terms', new wp.media.view.AttachmentFilters.MlaTerms({
|
556 |
+
controller: this.controller,
|
557 |
+
model: this.collection.props,
|
558 |
+
priority: -80
|
559 |
+
}).render() );
|
560 |
}
|
561 |
}
|
562 |
});
|
563 |
}; // one or more MLA options enabled
|
|
|
564 |
|
565 |
+
/**
|
566 |
+
* extract value and text elements from Dropdown HTML option tags
|
567 |
+
*/
|
568 |
+
mlaModal.utility.parseTermsOptions = function ( selectMarkup ) {
|
569 |
+
var termsOptions = {
|
570 |
+
'termsClass': [ mlaModal.settings.termsClass[0], mlaModal.settings.termsClass[1] ],
|
571 |
+
'termsText': [ mlaModal.settings.termsText[0], mlaModal.settings.termsText[1] ],
|
572 |
+
'termsValue': [ mlaModal.settings.termsValue[0], mlaModal.settings.termsValue[1] ]
|
573 |
+
}, termsCount = 2, termsIndex, termId,
|
574 |
+
regEx = /\<option(( class=\"([^\"]+)\" )|( ))value=((\'([^\']+)\')|(\"([^\"]+)\"))([^\>]*)\>([^\<]*)\<.*/g,
|
575 |
+
results = [];
|
576 |
|
577 |
+
// Check for flat taxonomy updates
|
578 |
+
if ( 'object' === typeof selectMarkup ) {
|
579 |
+
termsCount = mlaModal.settings.termsValue.length;
|
|
|
|
|
|
|
|
|
|
|
580 |
|
581 |
+
/*
|
582 |
+
* Create a sortable array of the existing terms, and
|
583 |
+
* remove existing terms from the selectMarkup array
|
584 |
+
*/
|
585 |
+
for ( termsIndex = 2; termsIndex < termsCount; termsIndex++ ) {
|
586 |
+
results[ termsIndex ] = {
|
587 |
+
'termsClass': mlaModal.settings.termsClass[ termsIndex ],
|
588 |
+
'termsText': mlaModal.settings.termsText[ termsIndex ],
|
589 |
+
'termsValue': mlaModal.settings.termsValue[ termsIndex ]
|
590 |
+
};
|
591 |
+
|
592 |
+
if ( 'undefined' !== typeof selectMarkup[ mlaModal.settings.termsValue[ termsIndex ] ] ) {
|
593 |
+
delete selectMarkup[ mlaModal.settings.termsValue[ termsIndex ] ];
|
594 |
+
}
|
595 |
+
}
|
596 |
+
|
597 |
+
// Add surviving terms, if any, to the sortable array
|
598 |
+
for ( termId in selectMarkup ) {
|
599 |
+
results[ termsIndex++ ] = {
|
600 |
+
'termsClass': 'level-0',
|
601 |
+
'termsText': selectMarkup[ termId ],
|
602 |
+
'termsValue': termId.toString()
|
603 |
+
}
|
604 |
+
}
|
605 |
+
|
606 |
+
if ( termsCount === termsIndex ) {
|
607 |
+
// no changes
|
608 |
+
return {
|
609 |
+
'termsClass': mlaModal.settings.termsClass,
|
610 |
+
'termsText': mlaModal.settings.termsText,
|
611 |
+
'termsValue': mlaModal.settings.termsValue
|
612 |
+
};
|
613 |
+
}
|
614 |
+
|
615 |
+
// Something was added; sort the array and re-build the filter arrays
|
616 |
+
results.sort( function ( a, b ) {
|
617 |
+
if ( a.termsText > b.termsText ) {
|
618 |
+
return 1;
|
619 |
+
} else {
|
620 |
+
if ( a.termsText < b.termsText ) {
|
621 |
+
return -1;
|
622 |
+
} else {
|
623 |
+
return 0;
|
624 |
+
}
|
625 |
+
}
|
626 |
+
} );
|
627 |
+
|
628 |
+
termsIndex = 2;
|
629 |
+
for ( termId in results ) {
|
630 |
+
termsOptions.termsClass[ termsIndex ] = results[ termId ].termsClass;
|
631 |
+
termsOptions.termsText[ termsIndex ] = results[ termId ].termsText;
|
632 |
+
termsOptions.termsValue[ termsIndex++ ] = results[ termId ].termsValue;
|
633 |
+
};
|
634 |
+
|
635 |
+
return termsOptions;
|
636 |
+
}
|
637 |
+
|
638 |
+
// Test the contents and skip the first match, the "no parent" placeholder
|
639 |
+
results = regEx.exec( selectMarkup );
|
640 |
+
//console.log( 'parseTermsOptions placeholder = ' + JSON.stringify( results ) );
|
641 |
+
while ( null !== ( results = regEx.exec( selectMarkup ) ) ) {
|
642 |
+
//console.log( 'parseTermsOptions results = ' + JSON.stringify( results ) );
|
643 |
+
termsOptions['termsClass'][termsCount] = results[3];
|
644 |
+
termsOptions['termsValue'][termsCount] = ( 'undefined' === typeof results[6] ) ? results[9] : results[7];
|
645 |
+
termsOptions['termsText'][termsCount++] = results[11].replace( '\ ', mlaModal.settings.termsIndent );
|
646 |
+
};
|
647 |
+
|
648 |
+
return termsOptions;
|
649 |
+
};
|
650 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
651 |
/**
|
652 |
* return a sorted array with any duplicate, whitespace or values removed
|
653 |
* Adapted from /wp-admin/js/post.js
|
654 |
*/
|
655 |
mlaModal.utility.arrayCleanup = function ( arrayIn ) {
|
656 |
var arrayOut = [], isString = ( 'string' === typeof arrayIn );
|
657 |
+
|
658 |
if( isString ) {
|
659 |
arrayIn = arrayIn.split( postL10n.comma );
|
660 |
}
|
661 |
+
|
662 |
jQuery.each( arrayIn, function( key, val ) {
|
663 |
val = jQuery.trim( val );
|
664 |
|
673 |
if( isString ) {
|
674 |
arrayOut = arrayOut.join( postL10n.comma );
|
675 |
}
|
676 |
+
|
677 |
return arrayOut;
|
678 |
};
|
679 |
|
683 |
*/
|
684 |
mlaModal.utility.parseTaxonomyId = function ( id ) {
|
685 |
var taxonomyParts = id.split( '-' );
|
686 |
+
|
687 |
taxonomyParts.shift(); // 'mla-'
|
688 |
taxonomyParts.shift(); // 'taxonomy-'
|
689 |
return taxonomyParts.join('-');
|
701 |
if ( ',' !== comma ) {
|
702 |
tags = tags.replace( new RegExp( comma, 'g' ), ',' );
|
703 |
}
|
704 |
+
|
705 |
tags = tags.replace( /\s*,\s*/g, ',' ).replace( /,+/g, ',' ).replace( /[,\s]+$/, '' ).replace( /^[,\s]+/, '' );
|
706 |
+
|
707 |
if ( ',' !== comma ) {
|
708 |
tags = tags.replace( /,/g, comma );
|
709 |
}
|
710 |
+
|
711 |
return tags;
|
712 |
},
|
713 |
|
719 |
tagsDiv = $( el ).closest( '.tagsdiv' ),
|
720 |
thetags = tagsDiv.find( '.the-tags' ), comma = postL10n.comma,
|
721 |
current_tags = thetags.val().split( comma ), new_tags = [];
|
722 |
+
|
723 |
delete current_tags[ num ];
|
724 |
+
|
725 |
$.each( current_tags, function( key, val ) {
|
726 |
val = $.trim( val );
|
727 |
if ( val ) {
|
728 |
new_tags.push( val );
|
729 |
}
|
730 |
});
|
731 |
+
|
732 |
thetags.val( this.cleanTags( new_tags.join( comma ) ) );
|
733 |
+
|
734 |
this.quickClicks( tagsDiv );
|
735 |
return false;
|
736 |
},
|
744 |
tagchecklist = $( '.tagchecklist', el ),
|
745 |
id = $( el ).attr( 'id' ),
|
746 |
current_tags, disabled;
|
747 |
+
|
748 |
if ( !thetags.length ) {
|
749 |
return;
|
750 |
}
|
751 |
+
|
752 |
disabled = thetags.prop( 'disabled' );
|
753 |
+
|
754 |
current_tags = thetags.val().split( postL10n.comma );
|
755 |
tagchecklist.empty();
|
756 |
+
|
757 |
$.each( current_tags, function( key, val ) {
|
758 |
var span, xbutton;
|
759 |
+
|
760 |
val = $.trim( val );
|
761 |
+
|
762 |
if ( ! val ) {
|
763 |
return;
|
764 |
}
|
765 |
+
|
766 |
// Create a new span, and ensure the text is properly escaped.
|
767 |
span = $( '<span />' ).text( val );
|
768 |
+
|
769 |
// If tags editing isn't disabled, create the X button.
|
770 |
if ( ! disabled ) {
|
771 |
xbutton = $( '<a id="' + id + '-check-num-' + key + '" class="ntdelbutton">X</a>' );
|
772 |
xbutton.click( function(){ mlaModal.tagBox.parseTags( this ); });
|
773 |
span.prepend( ' ' ).prepend( xbutton );
|
774 |
}
|
775 |
+
|
776 |
// Append the span to the tag list.
|
777 |
tagchecklist.append( span );
|
778 |
});
|
786 |
tags = $( '.the-tags', tagsDiv ),
|
787 |
newtag = $( 'input.newtag', tagsDiv ),
|
788 |
comma = postL10n.comma;
|
789 |
+
|
790 |
a = a || false;
|
791 |
+
|
792 |
text = a ? $( a ).text() : newtag.val();
|
793 |
tagsval = tags.val();
|
794 |
newtags = tagsval ? tagsval + comma + text : text;
|
795 |
+
|
796 |
newtags = mlaModal.utility.arrayCleanup( this.cleanTags( newtags ) );
|
797 |
tags.val( newtags );
|
798 |
this.quickClicks( tagsDiv );
|
799 |
+
|
800 |
if ( !a ) {
|
801 |
newtag.val( '' );
|
802 |
}
|
803 |
+
|
804 |
if ( 'undefined' == typeof( f ) ) {
|
805 |
newtag.focus();
|
806 |
}
|
807 |
+
|
808 |
return false;
|
809 |
},
|
810 |
|
816 |
if ( 0 === r || 'success' != stat ) {
|
817 |
r = wpAjax.broken;
|
818 |
}
|
819 |
+
|
820 |
r = $( '<p id="tagcloud-'+taxonomy+'" class="the-tagcloud">'+r+'</p>' );
|
821 |
$( 'a', r ).click( function(){
|
822 |
mlaModal.tagBox.flushTags( $( this ).closest( '.mla-taxonomy-field' ).children( '.tagsdiv' ), this );
|
823 |
return false;
|
824 |
});
|
825 |
+
|
826 |
$( '#'+id ).after( r );
|
827 |
});
|
828 |
},
|
829 |
+
|
830 |
init : function( attachmentId, taxonomy, context ) {
|
831 |
var tagsDiv, ajaxTag;
|
832 |
tagsDiv = $( '#mla-taxonomy-' + taxonomy, context );
|
833 |
ajaxTag = $( 'div.ajaxtag', tagsDiv );
|
834 |
+
|
835 |
mlaModal.tagBox.quickClicks( tagsDiv );
|
836 |
+
|
837 |
$( 'input.tagadd', ajaxTag ).click(function(){
|
838 |
mlaModal.tagBox.flushTags( $(this).closest( '.tagsdiv' ) );
|
839 |
});
|
840 |
+
|
841 |
$( 'input.newtag', ajaxTag ).keyup( function( e ){
|
842 |
if ( 13 == e.which ) {
|
843 |
mlaModal.tagBox.flushTags( tagsDiv );
|
851 |
}).each( function(){
|
852 |
$( this ).suggest( ajaxurl + '?action=ajax-tag-search&tax=' + taxonomy, { delay: 500, resultsClass: 'mla_ac_results', selectClass: 'mla_ac_over', matchClass: 'mla_ac_match', minchars: 2, multiple: true, multipleSep: postL10n.comma + ' ' } );
|
853 |
});
|
854 |
+
|
855 |
// get the tag cloud on first click, then toggle visibility
|
856 |
tagsDiv.siblings( ':first' ).click( function(){
|
857 |
mlaModal.tagBox.getCloud( $( 'a', this ).attr( 'id' ), taxonomy );
|
861 |
});
|
862 |
return false;
|
863 |
});
|
864 |
+
|
865 |
// Update the taxonomy terms, if changed, on the server when the mouse leaves the tagsdiv area
|
866 |
$( '.compat-field-' + taxonomy + ' td', context ).on( "mouseleave", function( event ) {
|
867 |
var query, tableData = this,
|
868 |
oldTerms = mlaModal.utility.arrayCleanup( $( '.server-tags', tableData ).val() ),
|
869 |
termList = mlaModal.utility.arrayCleanup( $( '.the-tags', tableData ).val() );
|
870 |
+
|
871 |
if ( oldTerms === termList ) {
|
872 |
return;
|
873 |
}
|
874 |
+
|
875 |
$( tableData ).css( 'opacity', '0.5' );
|
876 |
|
877 |
/**
|
882 |
//_wpnonce: settings.post.nonce
|
883 |
};
|
884 |
query[ taxonomy ] = termList;
|
885 |
+
|
886 |
wp.media.post( mlaModal.settings.ajaxUpdateCompatAction, query ).done( function( results ) {
|
887 |
var taxonomy, list;
|
888 |
+
|
889 |
for ( taxonomy in results ) {
|
890 |
+
if ( 'object' === typeof( results[ taxonomy][ 'object-terms' ] ) ) {
|
891 |
+
mlaModal.utility.mlaAttachmentsBrowser.updateFilters( taxonomy, results[ taxonomy][ 'object-terms' ] );
|
892 |
+
delete results[ taxonomy][ 'object-terms' ];
|
893 |
+
}
|
894 |
+
|
895 |
for ( list in results[ taxonomy ] ) {
|
896 |
$( "#" + list, tableData ).replaceWith( results[ taxonomy ][ list ] );
|
897 |
}
|
898 |
}
|
899 |
+
|
900 |
$( tableData ).css( 'opacity', '1.0' );
|
901 |
});
|
902 |
});
|
923 |
initialize: function() {
|
924 |
// Call the base method in the super class
|
925 |
wp.media.view.AttachmentCompat.__super__.initialize.apply( this, arguments );
|
926 |
+
|
927 |
// Hook the 'ready' event when the sidebar has been rendered so we can add our enhancements
|
928 |
this.on( 'ready', function( event ) {
|
929 |
//console.log( 'view.AttachmentCompat ready Event: ', this.model.get('id') );
|
942 |
initialize: function() {
|
943 |
// Call the base method in the super class
|
944 |
wp.media.model.Selection.__super__.initialize.apply( this, arguments );
|
945 |
+
|
946 |
// Hook the 'selection:reset' event so we can add our enhancements when it's done
|
947 |
this.on( 'selection:reset', function( model ) {
|
948 |
//console.log( 'model.Selection selection:reset Event: cid ', model.cid, ', id ', model.get('id') );
|
949 |
mlaModal.cid = null;
|
950 |
});
|
951 |
+
|
952 |
// Hook the 'selection:unsingle' event so we can add our enhancements when it's done
|
953 |
this.on( 'selection:unsingle', function( model ) {
|
954 |
//console.log( 'model.Selection selection:unsingle Event: cid ', model.cid, ', id ', model.get('id') );
|
955 |
mlaModal.cid = null;
|
956 |
});
|
957 |
+
|
958 |
// Hook the 'selection:single' event so we can add our enhancements when it's done
|
959 |
this.on( 'selection:single', function( model ) {
|
960 |
//console.log( 'model.Selection selection:single Event: cid ', model.cid, ', id ', model.get('id') );
|
961 |
mlaModal.cid = model.cid;
|
962 |
});
|
963 |
+
|
964 |
// Hook the 'change:uploading' event so we can add our enhancements when it's done
|
965 |
this.on( 'change:uploading', function( model ) {
|
966 |
//console.log( 'model.Selection change:uploading Event: cid ', model.cid, ', id ', model.get('id') );
|
967 |
mlaModal.uploading = true;
|
968 |
});
|
969 |
+
|
970 |
// Hook the 'change' event when the sidebar has been rendered so we can add our enhancements
|
971 |
this.on( 'change', function( model ) {
|
972 |
//console.log( 'model.Selection change Event: cid ', model.cid, ', id ', model.get('id') );
|
973 |
+
|
974 |
if ( mlaModal.uploading && mlaModal.cid === model.cid ) {
|
975 |
var mediaFrame = wp.media.editor.get('content'),
|
976 |
compat = mediaFrame.content.get('compat');
|
981 |
}
|
982 |
});
|
983 |
}
|
984 |
+
|
985 |
/**
|
986 |
* Install the "click to expand" handler for MLA Searchable Taxonomy Meta Boxes
|
987 |
*/
|
990 |
|
991 |
// console.log( 'hookCompatTaxonomies attachmentId: ', attachmentId );
|
992 |
// console.log( 'hookCompatTaxonomies context: ', JSON.stringify( context ) );
|
993 |
+
|
994 |
if ( mlaModal.settings.enableDetailsCategory ) {
|
995 |
$('.mla-taxonomy-field .categorydiv', context ).each( function(){
|
996 |
taxonomy = mlaModal.utility.parseTaxonomyId( $(this).attr('id') );
|
997 |
+
|
998 |
// Load the taxonomy checklists on first expansion
|
999 |
$( '.compat-field-' + taxonomy + ' th', context ).click( { id: attachmentId, currentTaxonomy: taxonomy, el: context }, function( event ) {
|
1000 |
mlaModal.utility.fillCompatTaxonomies( event.data );
|
1005 |
if ( mlaModal.settings.enableDetailsTag ) {
|
1006 |
$('.mla-taxonomy-field .tagsdiv', context ).each( function(){
|
1007 |
taxonomy = mlaModal.utility.parseTaxonomyId( $(this).attr('id') );
|
1008 |
+
|
1009 |
// Load the taxonomy checklists on first expansion
|
1010 |
$( '.compat-field-' + taxonomy + ' th', context ).click( { id: attachmentId, currentTaxonomy: taxonomy, el: context }, function( event ) {
|
1011 |
mlaModal.utility.fillCompatTaxonomies( event.data );
|
1013 |
});
|
1014 |
} // enableDetailsTag
|
1015 |
};
|
1016 |
+
|
1017 |
/**
|
1018 |
* Replace the "Loading..." placeholders with the MLA Searchable Taxonomy Meta Boxes
|
1019 |
*/
|
1020 |
mlaModal.utility.fillCompatTaxonomies = function( data ) {
|
1021 |
var context = data.el, query = [], taxonomy, fieldClass;
|
1022 |
+
|
1023 |
if ( mlaModal.settings.enableDetailsCategory ) {
|
1024 |
$('.mla-taxonomy-field .categorydiv', context ).each( function(){
|
1025 |
taxonomy = mlaModal.utility.parseTaxonomyId( $(this).attr('id') );
|
1032 |
} else {
|
1033 |
$( fieldClass, context ).html( mlaModal.initialHTML[ taxonomy ] );
|
1034 |
}
|
1035 |
+
|
1036 |
$( fieldClass + ' .categorydiv', context ).html( mlaModal.strings.loadingText );
|
1037 |
});
|
1038 |
} // mlaModal.settings.enableDetailsCategory
|
1042 |
taxonomy = mlaModal.utility.parseTaxonomyId( $(this).attr('id') );
|
1043 |
query[ query.length ] = taxonomy;
|
1044 |
fieldClass = '.compat-field-' + taxonomy;
|
1045 |
+
|
1046 |
if ( "undefined" === typeof( mlaModal.initialHTML[ taxonomy ] ) ) {
|
1047 |
mlaModal.initialHTML[ taxonomy ] = $( fieldClass, context ).html();
|
1048 |
} else {
|
1049 |
$( fieldClass, context ).html( mlaModal.initialHTML[ taxonomy ] );
|
1050 |
}
|
1051 |
+
|
1052 |
$( fieldClass + ' .tagsdiv', context ).html( mlaModal.strings.loadingText );
|
1053 |
});
|
1054 |
} // mlaModal.settings.enableDetailsTag
|
1071 |
//_wpnonce: settings.post.nonce
|
1072 |
}).done( function( results ) {
|
1073 |
var taxonomy, fieldClass;
|
1074 |
+
|
1075 |
for ( taxonomy in results ) {
|
1076 |
fieldClass = '.compat-field-' + taxonomy;
|
1077 |
+
|
1078 |
$( fieldClass, context ).html( results[ taxonomy ] );
|
1079 |
}
|
1080 |
+
|
1081 |
mlaModal.utility.supportCompatTaxonomies( data );
|
1082 |
$( '.compat-field-' + data.currentTaxonomy + ' td', context ).show();
|
1083 |
});
|
1084 |
} // query.length
|
1085 |
};
|
1086 |
+
|
1087 |
/**
|
1088 |
* Support the MLA Searchable Taxonomy Meta Boxes
|
1089 |
*/
|
1090 |
mlaModal.utility.supportCompatTaxonomies = function( data ) {
|
1091 |
var attachmentId = data.id, context = data.el;
|
1092 |
+
|
1093 |
if ( mlaModal.settings.enableDetailsCategory ) {
|
1094 |
$( '.mla-taxonomy-field .categorydiv', context ).each( function(){
|
1095 |
var thisJQuery = $(this), catAddBefore, catAddAfter, taxonomy, settingName,
|
1096 |
taxonomyIdPrefix, taxonomyNewIdSelector, taxonomySearchIdSelector, taxonomyTermsId;
|
1097 |
+
|
1098 |
taxonomy = mlaModal.utility.parseTaxonomyId( $(this).attr('id') );
|
1099 |
settingName = taxonomy + '_tab';
|
1100 |
taxonomyIdPrefix = '#mla-' + taxonomy;
|
1101 |
taxonomyNewIdSelector = '#mla-new-' + taxonomy;
|
1102 |
taxonomySearchIdSelector = '#mla-search-' + taxonomy;
|
1103 |
taxonomyTermsId = '#mla-attachments-' + attachmentId + '-' + taxonomy;
|
1104 |
+
|
1105 |
if ( taxonomy == 'category' ) {
|
1106 |
settingName = 'cats';
|
1107 |
}
|
1108 |
+
|
1109 |
// override "Media Categories" style sheet
|
1110 |
thisJQuery.find( '.category-tabs' ).show();
|
1111 |
+
|
1112 |
// Expand/collapse the meta box contents
|
1113 |
$( '.compat-field-' + taxonomy + ' th', context ).click( function() {
|
1114 |
$(this).siblings( 'td' ).slideToggle();
|
1115 |
});
|
1116 |
+
|
1117 |
// Update the taxonomy terms, if changed, on the server when the mouse leaves the checklist area
|
1118 |
thisJQuery.on( "mouseleave", function( event ) {
|
1119 |
var query, oldTerms, termList = [], checked = thisJQuery.find( taxonomyIdPrefix + '-checklist input:checked' );
|
1120 |
+
|
1121 |
checked.each( function( index ) {
|
1122 |
termList[ termList.length ] = $(this).val();
|
1123 |
});
|
1124 |
+
|
1125 |
termList.sort( function( a, b ) { return a - b; } );
|
1126 |
termList = termList.join( ',' );
|
1127 |
+
|
1128 |
oldTerms = thisJQuery.siblings( taxonomyTermsId ).val();
|
1129 |
if ( oldTerms === termList ) {
|
1130 |
return;
|
1131 |
}
|
1132 |
+
|
1133 |
thisJQuery.siblings( taxonomyTermsId ).val( termList );
|
1134 |
thisJQuery.prop( 'disabled', true );
|
1135 |
+
|
1136 |
/**
|
1137 |
* wp.ajax.send( [action], [options] )
|
1138 |
*/
|
1141 |
//_wpnonce: settings.post.nonce
|
1142 |
};
|
1143 |
query[ taxonomy ] = termList;
|
1144 |
+
|
1145 |
wp.media.post( mlaModal.settings.ajaxUpdateCompatAction,
|
1146 |
query ).done( function( results ) {
|
1147 |
var taxonomy, list;
|
1151 |
thisJQuery.find( "#" + list ).html( results[ taxonomy ][ list ] );
|
1152 |
}
|
1153 |
}
|
1154 |
+
|
1155 |
thisJQuery.find( taxonomySearchIdSelector ).val( '' );
|
1156 |
thisJQuery.find( taxonomyIdPrefix + '-searcher' ).addClass( 'mla-hidden-children' );
|
1157 |
thisJQuery.prop( 'disabled', false );
|
1158 |
});
|
1159 |
});
|
1160 |
+
|
1161 |
// Don't let checkbox changes propogate to the Backbone model
|
1162 |
thisJQuery.on( 'change input[type="checkbox"]', function( event ) {
|
1163 |
event.stopPropagation();
|
1164 |
return false;
|
1165 |
});
|
1166 |
+
|
1167 |
/*
|
1168 |
* Taxonomy meta box code from /wp-admin/js/post.js
|
1169 |
*/
|
1170 |
+
|
1171 |
// Switch between "All ..." and "Most Used"
|
1172 |
thisJQuery.find( taxonomyIdPrefix + '-tabs a' ).click( function(){
|
1173 |
var t = $(this).attr('href');
|
1175 |
thisJQuery.find( taxonomyIdPrefix + '-tabs' ).siblings('.tabs-panel').hide();
|
1176 |
thisJQuery.find( t ).show();
|
1177 |
$(this).focus();
|
1178 |
+
|
1179 |
// Store the "all/most used" setting in a cookie
|
1180 |
if ( "#mla-" + taxonomy + '-all' == t ) {
|
1181 |
deleteUserSetting( settingName );
|
1182 |
} else {
|
1183 |
setUserSetting( settingName, 'pop' );
|
1184 |
}
|
1185 |
+
|
1186 |
return false;
|
1187 |
});
|
1188 |
+
|
1189 |
// Reflect tab selection remembered in cookie
|
1190 |
if ( getUserSetting( settingName ) ) {
|
1191 |
thisJQuery.find( taxonomyIdPrefix + '-tabs a[href="#mla-' + taxonomy + '-pop"]' ).click();
|
1192 |
}
|
1193 |
+
|
1194 |
// Toggle the "Add New ..." sub panel
|
1195 |
thisJQuery.find( taxonomyIdPrefix + '-add-toggle' ).click( function() {
|
1196 |
thisJQuery.find( taxonomyIdPrefix + '-searcher' ).addClass( 'mla-hidden-children' );
|
1197 |
thisJQuery.find( taxonomyIdPrefix + '-adder' ).toggleClass( 'mla-hidden-children' );
|
1198 |
thisJQuery.find( taxonomyIdPrefix + '-tabs a[href="#mla-' + taxonomy + '-all"]' ).click();
|
1199 |
+
|
1200 |
thisJQuery.find( taxonomyIdPrefix + '-checklist li' ).show();
|
1201 |
thisJQuery.find( taxonomyIdPrefix + '-checklist-pop li' ).show();
|
1202 |
+
|
1203 |
if ( false === thisJQuery.find( taxonomyIdPrefix + '-adder' ).hasClass( 'mla-hidden-children' ) ) {
|
1204 |
thisJQuery.find( taxonomyNewIdSelector ).val( '' ).removeClass( 'form-input-tip' );
|
1205 |
thisJQuery.find( taxonomyNewIdSelector ).focus();
|
1206 |
}
|
1207 |
return false;
|
1208 |
});
|
1209 |
+
|
1210 |
// Convert "Enter" key to a click
|
1211 |
thisJQuery.find( taxonomyNewIdSelector ).keypress( function(event){
|
1212 |
if( 13 === event.keyCode ) {
|
1214 |
thisJQuery.find( taxonomyIdPrefix + '-add-submit' ).click();
|
1215 |
}
|
1216 |
});
|
1217 |
+
|
1218 |
thisJQuery.find( taxonomyIdPrefix + '-add-submit' ).click( function(){
|
1219 |
thisJQuery.find( taxonomyNewIdSelector ).focus();
|
1220 |
});
|
1221 |
+
|
1222 |
catAddBefore = function( s ) {
|
1223 |
if ( ! thisJQuery.find( taxonomyNewIdSelector ).val() )
|
1224 |
return false;
|
1225 |
+
|
1226 |
s.data += '&' + thisJQuery.find( taxonomyIdPrefix + '-checklist :checked' ).serialize();
|
1227 |
thisJQuery.prop( 'disabled', true );
|
1228 |
return s;
|
1229 |
};
|
1230 |
+
|
1231 |
catAddAfter = function( r, s ) {
|
1232 |
+
var sup, drop = thisJQuery.find( '#new' + taxonomy + '_parent' );
|
1233 |
+
|
1234 |
thisJQuery.prop( 'disabled', false );
|
1235 |
+
if ( 'undefined' != s.parsed.responses[0] && ( sup = s.parsed.responses[0].supplemental.newcat_parent ) ) {
|
1236 |
+
drop.before( sup );
|
1237 |
drop.remove();
|
1238 |
+
mlaModal.utility.mlaAttachmentsBrowser.updateFilters( taxonomy, sup );
|
1239 |
}
|
1240 |
};
|
1241 |
+
|
1242 |
// wpList is in /wp-includes/js/wp-lists.js
|
1243 |
+
// handled in /wp-admin/includes/ajax-actions.php function _wp_ajax_add_hierarchical_term()
|
1244 |
thisJQuery.find( taxonomyIdPrefix + '-checklist' ).wpList({
|
1245 |
alt: '',
|
1246 |
response: 'mla-' + taxonomy + '-ajax-response',
|
1247 |
addBefore: catAddBefore,
|
1248 |
addAfter: catAddAfter
|
1249 |
});
|
1250 |
+
|
1251 |
// Synchronize checkbox changes between "All ..." and "Most Used" panels
|
1252 |
thisJQuery.find( taxonomyIdPrefix + '-checklist, ' + taxonomyIdPrefix + '-checklist-pop' ).on( 'click', 'li.popular-category > label input[type="checkbox"]', function() {
|
1253 |
var t = $(this), c = t.is(':checked'), id = t.val();
|
1254 |
+
|
1255 |
if ( id && t.parents( '#mla-taxonomy-'+ taxonomy ).length ) {
|
1256 |
$('#in-' + taxonomy + '-' + id + ', #in-popular-' + taxonomy + '-' + id).prop( 'checked', c );
|
1257 |
}
|
1258 |
});
|
1259 |
+
|
1260 |
/*
|
1261 |
* Searchable meta box code from mla-edit-media-scripts.js
|
1262 |
*/
|
1265 |
return ( elem.textContent || elem.innerText || "" ).toLowerCase().indexOf( ( match[3] || "" ).toLowerCase() ) >= 0;
|
1266 |
}
|
1267 |
});
|
1268 |
+
|
1269 |
thisJQuery.find( taxonomySearchIdSelector ).keypress( function( event ){
|
1270 |
// Enter key cancels the filter and closes the search field
|
1271 |
if( 13 === event.keyCode ) {
|
1272 |
event.preventDefault();
|
1273 |
thisJQuery.find( taxonomySearchIdSelector ).val( '' );
|
1274 |
thisJQuery.find( taxonomyIdPrefix + '-searcher' ).addClass( 'mla-hidden-children' );
|
1275 |
+
|
1276 |
thisJQuery.find( taxonomyIdPrefix + '-checklist li' ).show();
|
1277 |
thisJQuery.find( taxonomyIdPrefix + '-checklist-pop li' ).show();
|
1278 |
return;
|
1279 |
}
|
1280 |
+
|
1281 |
} );
|
1282 |
+
|
1283 |
thisJQuery.find( taxonomySearchIdSelector ).keyup( function( event ){
|
1284 |
var searchValue, matchingTerms, matchingTermsPopular;
|
1285 |
+
|
1286 |
// keyup happens after keypress; change the focus if the text box has been closed
|
1287 |
if( 13 === event.keyCode ) {
|
1288 |
event.preventDefault();
|
1289 |
thisJQuery.find( taxonomyIdPrefix + '-search-toggle' ).focus();
|
1290 |
return;
|
1291 |
}
|
1292 |
+
|
1293 |
searchValue = thisJQuery.find( taxonomySearchIdSelector ).val(),
|
1294 |
termList = thisJQuery.find( taxonomyIdPrefix + '-checklist li' );
|
1295 |
termListPopular = thisJQuery.find( taxonomyIdPrefix + '-checklist-pop li' );
|
1296 |
+
|
1297 |
if ( 0 < searchValue.length ) {
|
1298 |
termList.hide();
|
1299 |
termListPopular.hide();
|
1301 |
termList.show();
|
1302 |
termListPopular.show();
|
1303 |
}
|
1304 |
+
|
1305 |
matchingTerms = thisJQuery.find( taxonomyIdPrefix + "-checklist label:matchTerms('" + searchValue + "')");
|
1306 |
matchingTerms.closest( 'li' ).find( 'li' ).andSelf().show();
|
1307 |
matchingTerms.parents( taxonomyIdPrefix + '-checklist li' ).show();
|
1308 |
+
|
1309 |
matchingTermsPopular = thisJQuery.find( taxonomyIdPrefix + "-checklist-pop label:matchTerms('" + searchValue + "')");
|
1310 |
matchingTermsPopular.closest( 'li' ).find( 'li' ).andSelf().show();
|
1311 |
matchingTermsPopular.parents( taxonomyIdPrefix + '-checklist li' ).show();
|
1312 |
} );
|
1313 |
+
|
1314 |
// Toggle the "Search" sub panel
|
1315 |
thisJQuery.find( taxonomyIdPrefix + '-search-toggle' ).click( function() {
|
1316 |
thisJQuery.find( taxonomyIdPrefix + '-adder ').addClass( 'mla-hidden-children' );
|
1317 |
thisJQuery.find( taxonomyIdPrefix + '-searcher' ).toggleClass( 'mla-hidden-children' );
|
1318 |
thisJQuery.find( taxonomyIdPrefix + '-tabs a[href="#mla-' + taxonomy + '-all"]' ).click();
|
1319 |
+
|
1320 |
thisJQuery.find( taxonomyIdPrefix + '-checklist li' ).show();
|
1321 |
thisJQuery.find( taxonomyIdPrefix + '-checklist-pop li' ).show();
|
1322 |
+
|
1323 |
if ( false === thisJQuery.find( taxonomyIdPrefix + '-searcher' ).hasClass( 'mla-hidden-children' ) ) {
|
1324 |
thisJQuery.find( taxonomySearchIdSelector ).val( '' ).removeClass( 'form-input-tip' );
|
1325 |
thisJQuery.find( taxonomySearchIdSelector ).focus();
|
1326 |
}
|
1327 |
+
|
1328 |
return false;
|
1329 |
});
|
1330 |
}); // .categorydiv.each
|
1331 |
} // mlaModal.settings.enableDetailsCategory
|
1332 |
+
|
1333 |
if ( mlaModal.settings.enableDetailsTag ) {
|
1334 |
$('.mla-taxonomy-field .tagsdiv', context ).each( function(){
|
1335 |
var taxonomy = mlaModal.utility.parseTaxonomyId( $(this).attr('id') );
|
1336 |
+
|
1337 |
// Expand/collapse the meta box contents
|
1338 |
$( '.compat-field-' + taxonomy + ' th', context ).click( function() {
|
1339 |
$(this).siblings( 'td' ).slideToggle();
|
1340 |
});
|
1341 |
+
|
1342 |
// Install support for flat taxonomies
|
1343 |
mlaModal.tagBox.init( attachmentId, taxonomy, context );
|
1344 |
}); // .tagsdiv.each
|
1345 |
} // mlaModal.settings.enableDetailsTag
|
1346 |
+
}; // mlaModal.utility.supportCompatTaxonomies
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1347 |
}( jQuery ) );
|
js/mla-media-modal-scripts.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
(function(c){var e=wp.media,d={},a={},b=null;b=e.ajax;e.ajax=function(g,f){if(_.isObject(g)){f=g}else{f=f||{};f.data=_.extend(f.data||{},{action:g})}if("query-attachments"==f.data.action){stype=typeof f.data.query.s;if("object"==stype){s=f.data.query.s}else{if("string"==stype){s={mla_search_value:f.data.query.s}}else{s={}}}if("undefined"!=typeof s.mla_filter_month){a.filterMonth=s.mla_filter_month}if("undefined"!=typeof s.mla_filter_term){a.filterTerm=s.mla_filter_term}if("undefined"!=typeof s.mla_search_value){a.searchValue=s.mla_search_value}searchValues={mla_filter_month:a.filterMonth,mla_filter_term:a.filterTerm,mla_search_value:a.searchValue,mla_search_fields:a.searchFields,mla_search_connector:a.searchConnector};f.data.query.s=searchValues}return b.call(this,f)};d=typeof e.view.l10n.mla_strings==="undefined"?{}:e.view.l10n.mla_strings;a=typeof wp.media.view.settings.mla_settings==="undefined"?{}:wp.media.view.settings.mla_settings;if(a.enableMimeTypes){e.view.AttachmentFilters.Mla=e.view.AttachmentFilters.extend({createFilters:function(){var f={};_.each(a.mimeTypes||{},function(h,g){f[g]={text:h,props:{type:g,uploadedTo:null,orderby:"date",order:"DESC"}}});f.all={text:e.view.l10n.allMediaItems,props:{type:null,uploadedTo:null,orderby:"date",order:"DESC"},priority:10};f.uploaded={text:e.view.l10n.uploadedToThisPost,props:{type:null,uploadedTo:e.view.settings.post.id,orderby:"menuOrder",order:"ASC"},priority:20};this.filters=f}})}if(a.enableMonthsDropdown){e.view.AttachmentFilters.MlaMonths=e.view.AttachmentFilters.extend({className:"attachment-months",createFilters:function(){var f={};_.each(a.months||{},function(h,g){f[g]={text:h,props:{s:{mla_filter_month:g}}}});this.filters=f},select:function(){var f=this.model,h=a.filterMonth,g=f.toJSON();if(_.isUndefined(g.s)){g.s={}}if("string"==typeof g.search){a.searchValue=g.search}if(_.isUndefined(g.s.mla_filter_month)){g.s.mla_filter_month=a.filterMonth}else{a.filterMonth=g.s.mla_filter_month}_.find(this.filters,function(j,k){var i=_.all(j.props,function(m,l){return m.mla_filter_month==a.filterMonth});if(i){return h=k}});this.$el.val(h)}})}if(a.enableTermsDropdown){e.view.AttachmentFilters.MlaTerms=e.view.AttachmentFilters.extend({className:"attachment-terms",createFilters:function(){var f={};_.each(a.termsText||{},function(h,g){f[g]={text:h,props:{s:{mla_filter_term:parseInt(a.termsValue[g])}}}});this.filters=f},select:function(){var f=this.model,h=a.filterTerm,g=f.toJSON();if(_.isUndefined(g.s)){g.s={}}if("string"==typeof g.search){a.searchValue=g.search}if(_.isUndefined(g.s.mla_filter_term)){g.s.mla_filter_term=a.filterTerm}else{a.filterTerm=g.s.mla_filter_term}_.find(this.filters,function(j,k){var i=_.all(j.props,function(m,l){return m.mla_filter_term==a.filterTerm});if(i){return h=k}});this.$el.val(h)}})}if(a.enableSearchBox){e.view.MlaSearch=e.View.extend({tagName:"div",className:"mla-search-box",template:e.template("mla-search-box"),attributes:{type:"mla-search-box"},events:{change:"search",click:"search",search:"search",MlaSearch:"search"},render:function(){this.$el.html(this.template(d));return this},search:function(f){if(("click"==f.type)&&("mla_search_submit"!=f.target.name)){return}switch(f.target.name){case"s[mla_search_value]":a.searchValue=f.target.value;case"mla_search_submit":searchValues={mla_filter_month:a.filterMonth,mla_filter_term:a.filterTerm,mla_search_value:a.searchValue,mla_search_fields:a.searchFields,mla_search_connector:a.searchConnector};this.model.set({s:searchValues});break;case"s[mla_search_connector]":a.searchConnector=f.target.value;break;case"s[mla_search_title]":index=a.searchFields.indexOf("title");if(-1==index){a.searchFields.push("title")}else{a.searchFields.splice(index,1)}break;case"s[mla_search_name]":index=a.searchFields.indexOf("name");if(-1==index){a.searchFields.push("name")}else{a.searchFields.splice(index,1)}break;case"s[mla_search_alt_text]":index=a.searchFields.indexOf("alt-text");if(-1==index){a.searchFields.push("alt-text")}else{a.searchFields.splice(index,1)}break;case"s[mla_search_excerpt]":index=a.searchFields.indexOf("excerpt");if(-1==index){a.searchFields.push("excerpt")}else{a.searchFields.splice(index,1)}break;case"s[mla_search_content]":index=a.searchFields.indexOf("content");if(-1==index){a.searchFields.push("content")}else{a.searchFields.splice(index,1)}break}}})}if(a.enableMimeTypes||a.enableMonthsDropdown||a.enableTermsDropdown||a.enableSearchBox){wp.media.view.AttachmentsBrowser=wp.media.view.AttachmentsBrowser.extend({createToolbar:function(){var f;wp.media.view.AttachmentsBrowser.__super__.createToolbar.apply(this,arguments);f=this.options.filters;if(("all"===f)&&a.enableMimeTypes){this.toolbar.unset("filters",{silent:true});this.toolbar.set("filters",new e.view.AttachmentFilters.Mla({controller:this.controller,model:this.collection.props,priority:-80}).render())}if(f&&a.enableMonthsDropdown){this.toolbar.set("months",new e.view.AttachmentFilters.MlaMonths({controller:this.controller,model:this.collection.props,priority:-80}).render())}if(f&&a.enableTermsDropdown){this.toolbar.set("terms",new e.view.AttachmentFilters.MlaTerms({controller:this.controller,model:this.collection.props,priority:-80}).render())}if(this.options.search){if(a.enableSearchBox){this.toolbar.unset("search",{silent:true});this.toolbar.set("MlaSearch",new e.view.MlaSearch({controller:this.controller,model:this.collection.props,priority:60}).render())}}if(this.options.dragInfo){this.toolbar.set("dragInfo",new e.View({el:c('<div class="instructions">'+e.view.l10n.dragInfo+"</div>")[0],priority:-40}))}}})}}(jQuery));var mlaModal={strings:{},settings:{},initialHTML:{},uploading:false,cid:null,utility:{arrayCleanup:null,parseTaxonomyId:null,hookCompatTaxonomies:null,fillCompatTaxonomies:null,supportCompatTaxonomies:null},tagBox:null};(function(a){mlaModal.strings=typeof wp.media.view.l10n.mla_strings==="undefined"?{}:wp.media.view.l10n.mla_strings;mlaModal.settings=typeof wp.media.view.settings.mla_settings==="undefined"?{}:wp.media.view.settings.mla_settings;mlaModal.utility.arrayCleanup=function(d){var c=[],b=("string"===typeof d);if(b){d=d.split(postL10n.comma)}jQuery.each(d,function(e,f){f=jQuery.trim(f);if(f&&jQuery.inArray(f,c)==-1){c.push(f)}});c.sort();if(b){c=c.join(postL10n.comma)}return c};mlaModal.utility.parseTaxonomyId=function(c){var b=c.split("-");b.shift();b.shift();return b.join("-")};mlaModal.tagBox={cleanTags:function(c){var b=postL10n.comma;if(","!==b){c=c.replace(new RegExp(b,"g"),",")}c=c.replace(/\s*,\s*/g,",").replace(/,+/g,",").replace(/[,\s]+$/,"").replace(/^[,\s]+/,"");if(","!==b){c=c.replace(/,/g,b)}return c},parseTags:function(e){var i=e.id,c=i.split("-check-num-")[1],f=a(e).closest(".tagsdiv"),h=f.find(".the-tags"),b=postL10n.comma,d=h.val().split(b),g=[];delete d[c];a.each(d,function(j,k){k=a.trim(k);if(k){g.push(k)}});h.val(this.cleanTags(g.join(b)));this.quickClicks(f);return false},quickClicks:function(d){var g=a(".the-tags",d),e=a(".tagchecklist",d),f=a(d).attr("id"),b,c;if(!g.length){return}c=g.prop("disabled");b=g.val().split(postL10n.comma);e.empty();a.each(b,function(i,k){var j,h;k=a.trim(k);if(!k){return}j=a("<span />").text(k);if(!c){h=a('<a id="'+f+"-check-num-"+i+'" class="ntdelbutton">X</a>');h.click(function(){mlaModal.tagBox.parseTags(this)});j.prepend(" ").prepend(h)}e.append(j)})},flushTags:function(h,d,c){var j,b,e,k=a(".the-tags",h),g=a("input.newtag",h),i=postL10n.comma;d=d||false;e=d?a(d).text():g.val();j=k.val();b=j?j+i+e:e;b=mlaModal.utility.arrayCleanup(this.cleanTags(b));k.val(b);this.quickClicks(h);if(!d){g.val("")}if("undefined"==typeof(c)){g.focus()}return false},getCloud:function(c,b){a.post(ajaxurl,{action:"get-tagcloud",tax:b},function(e,d){if(0===e||"success"!=d){e=wpAjax.broken}e=a('<p id="tagcloud-'+b+'" class="the-tagcloud">'+e+"</p>");a("a",e).click(function(){mlaModal.tagBox.flushTags(a(this).closest(".mla-taxonomy-field").children(".tagsdiv"),this);return false});a("#"+c).after(e)})},init:function(f,b,d){var e,c;e=a("#mla-taxonomy-"+b,d);c=a("div.ajaxtag",e);mlaModal.tagBox.quickClicks(e);a("input.tagadd",c).click(function(){mlaModal.tagBox.flushTags(a(this).closest(".tagsdiv"))});a("input.newtag",c).keyup(function(g){if(13==g.which){mlaModal.tagBox.flushTags(e);return false}}).keypress(function(g){if(13==g.which){g.preventDefault();return false}}).each(function(){a(this).suggest(ajaxurl+"?action=ajax-tag-search&tax="+b,{delay:500,resultsClass:"mla_ac_results",selectClass:"mla_ac_over",matchClass:"mla_ac_match",minchars:2,multiple:true,multipleSep:postL10n.comma+" "})});e.siblings(":first").click(function(){mlaModal.tagBox.getCloud(a("a",this).attr("id"),b);a("a",this).unbind().click(function(){a(this).siblings(".the-tagcloud").toggle();return false});return false});a(".compat-field-"+b+" td",d).on("mouseleave",function(i){var k,h=this,g=mlaModal.utility.arrayCleanup(a(".server-tags",h).val()),j=mlaModal.utility.arrayCleanup(a(".the-tags",h).val());if(g===j){return}a(h).css("opacity","0.5");k={id:f,};k[b]=j;wp.media.post(mlaModal.settings.ajaxUpdateCompatAction,k).done(function(m){var l,n;for(l in m){for(n in m[l]){a("#"+n,h).replaceWith(m[l][n])}}a(h).css("opacity","1.0")})});e.on("change",function(g){g.stopPropagation();return false});a(".the-tags, .server-tags .newtag",e).on("change",function(g){g.stopPropagation();return false})}};if(mlaModal.settings.enableDetailsCategory||mlaModal.settings.enableDetailsTag){wp.media.view.AttachmentCompat=wp.media.view.AttachmentCompat.extend({initialize:function(){wp.media.view.AttachmentCompat.__super__.initialize.apply(this,arguments);this.on("ready",function(b){mlaModal.utility.hookCompatTaxonomies(this.model.get("id"),this.el)})}})}if(mlaModal.settings.enableDetailsCategory||mlaModal.settings.enableDetailsTag){wp.media.model.Selection=wp.media.model.Selection.extend({initialize:function(){wp.media.model.Selection.__super__.initialize.apply(this,arguments);this.on("selection:reset",function(b){mlaModal.cid=null});this.on("selection:unsingle",function(b){mlaModal.cid=null});this.on("selection:single",function(b){mlaModal.cid=b.cid});this.on("change:uploading",function(b){mlaModal.uploading=true});this.on("change",function(d){if(mlaModal.uploading&&mlaModal.cid===d.cid){var b=wp.media.editor.get("content"),c=b.content.get("compat");mlaModal.utility.hookCompatTaxonomies(d.get("id"),c.sidebar.$el);mlaModal.uploading=false}})}})}mlaModal.utility.hookCompatTaxonomies=function(d,c){var b;if(mlaModal.settings.enableDetailsCategory){a(".mla-taxonomy-field .categorydiv",c).each(function(){b=mlaModal.utility.parseTaxonomyId(a(this).attr("id"));a(".compat-field-"+b+" th",c).click({id:d,currentTaxonomy:b,el:c},function(e){mlaModal.utility.fillCompatTaxonomies(e.data)})})}if(mlaModal.settings.enableDetailsTag){a(".mla-taxonomy-field .tagsdiv",c).each(function(){b=mlaModal.utility.parseTaxonomyId(a(this).attr("id"));a(".compat-field-"+b+" th",c).click({id:d,currentTaxonomy:b,el:c},function(e){mlaModal.utility.fillCompatTaxonomies(e.data)})})}};mlaModal.utility.fillCompatTaxonomies=function(f){var c=f.el,e=[],b,d;if(mlaModal.settings.enableDetailsCategory){a(".mla-taxonomy-field .categorydiv",c).each(function(){b=mlaModal.utility.parseTaxonomyId(a(this).attr("id"));e[e.length]=b;d=".compat-field-"+b;if("undefined"===typeof(mlaModal.initialHTML[b])){mlaModal.initialHTML[b]=a(d,c).html()}else{a(d,c).html(mlaModal.initialHTML[b])}a(d+" .categorydiv",c).html(mlaModal.strings.loadingText)})}if(mlaModal.settings.enableDetailsTag){a(".mla-taxonomy-field .tagsdiv",c).each(function(){b=mlaModal.utility.parseTaxonomyId(a(this).attr("id"));e[e.length]=b;d=".compat-field-"+b;if("undefined"===typeof(mlaModal.initialHTML[b])){mlaModal.initialHTML[b]=a(d,c).html()}else{a(d,c).html(mlaModal.initialHTML[b])}a(d+" .tagsdiv",c).html(mlaModal.strings.loadingText)})}if(e.length){wp.media.post(mlaModal.settings.ajaxFillCompatAction,{id:f.id,query:e,}).done(function(h){var g,i;for(g in h){i=".compat-field-"+g;a(i,c).html(h[g])}mlaModal.utility.supportCompatTaxonomies(f);a(".compat-field-"+f.currentTaxonomy+" td",c).show()})}};mlaModal.utility.supportCompatTaxonomies=function(d){var c=d.id,b=d.el;if(mlaModal.settings.enableDetailsCategory){a(".mla-taxonomy-field .categorydiv",b).each(function(){var g=a(this),e,h,f,k,i,m,l,j;f=mlaModal.utility.parseTaxonomyId(a(this).attr("id"));k=f+"_tab";i="#mla-"+f;m="#mla-new-"+f;l="#mla-search-"+f;j="#mla-attachments-"+c+"-"+f;if(f=="category"){k="cats"}g.find(".category-tabs").show();a(".compat-field-"+f+" th",b).click(function(){a(this).siblings("td").slideToggle()});g.on("mouseleave",function(p){var r,n,q=[],o=g.find(i+"-checklist input:checked");o.each(function(t){q[q.length]=a(this).val()});q.sort(function(u,t){return u-t});q=q.join(",");n=g.siblings(j).val();if(n===q){return}g.siblings(j).val(q);g.prop("disabled",true);r={id:c,};r[f]=q;wp.media.post(mlaModal.settings.ajaxUpdateCompatAction,r).done(function(u){var t,v;for(t in u){for(v in u[t]){g.find("#"+v).html(u[t][v])}}g.find(l).val("");g.find(i+"-searcher").addClass("mla-hidden-children");g.prop("disabled",false)})});g.on('change input[type="checkbox"]',function(n){n.stopPropagation();return false});g.find(i+"-tabs a").click(function(){var n=a(this).attr("href");a(this).parent().addClass("tabs").siblings("li").removeClass("tabs");g.find(i+"-tabs").siblings(".tabs-panel").hide();g.find(n).show();a(this).focus();if("#mla-"+f+"-all"==n){deleteUserSetting(k)}else{setUserSetting(k,"pop")}return false});if(getUserSetting(k)){g.find(i+'-tabs a[href="#mla-'+f+'-pop"]').click()}g.find(i+"-add-toggle").click(function(){g.find(i+"-searcher").addClass("mla-hidden-children");g.find(i+"-adder").toggleClass("mla-hidden-children");g.find(i+'-tabs a[href="#mla-'+f+'-all"]').click();g.find(i+"-checklist li").show();g.find(i+"-checklist-pop li").show();if(false===g.find(i+"-adder").hasClass("mla-hidden-children")){g.find(m).val("").removeClass("form-input-tip");g.find(m).focus()}return false});g.find(m).keypress(function(n){if(13===n.keyCode){n.preventDefault();g.find(i+"-add-submit").click()}});g.find(i+"-add-submit").click(function(){g.find(m).focus()});e=function(n){if(!g.find(m).val()){return false}n.data+="&"+g.find(i+"-checklist :checked").serialize();g.prop("disabled",true);return n};h=function(q,p){var o,n=g.find(m+"_parent");g.prop("disabled",false);if("undefined"!=p.parsed.responses[0]&&(o=p.parsed.responses[0].supplemental.newcat_parent)){n.before(o);n.remove()}};g.find(i+"-checklist").wpList({alt:"",response:"mla-"+f+"-ajax-response",addBefore:e,addAfter:h});g.find(i+"-checklist, "+i+"-checklist-pop").on("click",'li.popular-category > label input[type="checkbox"]',function(){var n=a(this),p=n.is(":checked"),o=n.val();if(o&&n.parents("#mla-taxonomy-"+f).length){a("#in-"+f+"-"+o+", #in-popular-"+f+"-"+o).prop("checked",p)}});a.extend(a.expr[":"],{matchTerms:function(p,o,n,q){return(p.textContent||p.innerText||"").toLowerCase().indexOf((n[3]||"").toLowerCase())>=0}});g.find(l).keypress(function(n){if(13===n.keyCode){n.preventDefault();g.find(l).val("");g.find(i+"-searcher").addClass("mla-hidden-children");g.find(i+"-checklist li").show();g.find(i+"-checklist-pop li").show();return}});g.find(l).keyup(function(p){var q,o,n;if(13===p.keyCode){p.preventDefault();g.find(i+"-search-toggle").focus();return}q=g.find(l).val(),termList=g.find(i+"-checklist li");termListPopular=g.find(i+"-checklist-pop li");if(0<q.length){termList.hide();termListPopular.hide()}else{termList.show();termListPopular.show()}o=g.find(i+"-checklist label:matchTerms('"+q+"')");o.closest("li").find("li").andSelf().show();o.parents(i+"-checklist li").show();n=g.find(i+"-checklist-pop label:matchTerms('"+q+"')");n.closest("li").find("li").andSelf().show();n.parents(i+"-checklist li").show()});g.find(i+"-search-toggle").click(function(){g.find(i+"-adder ").addClass("mla-hidden-children");g.find(i+"-searcher").toggleClass("mla-hidden-children");g.find(i+'-tabs a[href="#mla-'+f+'-all"]').click();g.find(i+"-checklist li").show();g.find(i+"-checklist-pop li").show();if(false===g.find(i+"-searcher").hasClass("mla-hidden-children")){g.find(l).val("").removeClass("form-input-tip");g.find(l).focus()}return false})})}if(mlaModal.settings.enableDetailsTag){a(".mla-taxonomy-field .tagsdiv",b).each(function(){var e=mlaModal.utility.parseTaxonomyId(a(this).attr("id"));a(".compat-field-"+e+" th",b).click(function(){a(this).siblings("td").slideToggle()});mlaModal.tagBox.init(c,e,b)})}}}(jQuery));
|
1 |
+
var mlaModal={strings:{},settings:{},initialHTML:{},uploading:false,cid:null,utility:{originalMediaAjax:null,mlaAttachmentsBrowser:null,parseTermsOptions:null,arrayCleanup:null,parseTaxonomyId:null,hookCompatTaxonomies:null,fillCompatTaxonomies:null,supportCompatTaxonomies:null},tagBox:null};(function(a){mlaModal.utility.originalMediaAjax=wp.media.ajax;wp.media.ajax=function(c,b){if(_.isObject(c)){b=c}else{b=b||{};b.data=_.extend(b.data||{},{action:c})}if("query-attachments"==b.data.action){stype=typeof b.data.query.s;if("object"==stype){s=b.data.query.s}else{if("string"==stype){s={mla_search_value:b.data.query.s}}else{s={}}}if("undefined"!=typeof s.mla_filter_month){mlaModal.settings.filterMonth=s.mla_filter_month}if("undefined"!=typeof s.mla_filter_term){mlaModal.settings.filterTerm=s.mla_filter_term}if("undefined"!=typeof s.mla_search_value){mlaModal.settings.searchValue=s.mla_search_value}searchValues={mla_filter_month:mlaModal.settings.filterMonth,mla_filter_term:mlaModal.settings.filterTerm,mla_terms_search:mlaModal.settings.termsSearch,mla_search_clicks:mlaModal.settings.searchClicks,mla_search_value:mlaModal.settings.searchValue,mla_search_fields:mlaModal.settings.searchFields,mla_search_connector:mlaModal.settings.searchConnector};mlaModal.settings.termsSearch="";a("#mla-terms-search-input").html("").val("");b.data.query.s=searchValues}return mlaModal.utility.originalMediaAjax.call(this,b)};mlaModal.strings=typeof wp.media.view.l10n.mla_strings==="undefined"?{}:wp.media.view.l10n.mla_strings;delete wp.media.view.l10n.mla_strings;mlaModal.settings=typeof wp.media.view.settings.mla_settings==="undefined"?{}:wp.media.view.settings.mla_settings;delete wp.media.view.settings.mla_settings;if(mlaModal.settings.enableMimeTypes){wp.media.view.AttachmentFilters.Mla=wp.media.view.AttachmentFilters.extend({createFilters:function(){var b={};_.each(mlaModal.settings.mimeTypes||{},function(d,c){b[c]={text:d,props:{type:c,uploadedTo:null,orderby:"date",order:"DESC"}}});b.all={text:wp.media.view.l10n.allMediaItems,props:{type:null,uploadedTo:null,orderby:"date",order:"DESC"},priority:10};b.uploaded={text:wp.media.view.l10n.uploadedToThisPost,props:{type:null,uploadedTo:wp.media.view.settings.post.id,orderby:"menuOrder",order:"ASC"},priority:20};this.filters=b},change:function(){var b=this.filters[this.el.value];if(b){this.model.set(b.props,{silent:true});a("#mla-search-submit").click()}}})}if(mlaModal.settings.enableMonthsDropdown){wp.media.view.AttachmentFilters.MlaMonths=wp.media.view.AttachmentFilters.extend({className:"attachment-months",createFilters:function(){var b={};_.each(mlaModal.settings.months||{},function(d,c){b[c]={text:d,props:{s:{mla_filter_month:c}}}});this.filters=b},select:function(){var b=this.model,d=mlaModal.settings.filterMonth,c=b.toJSON();if(_.isUndefined(c.s)){c.s={}}if("string"==typeof c.search){mlaModal.settings.searchValue=c.search}if(_.isUndefined(c.s.mla_filter_month)){c.s.mla_filter_month=mlaModal.settings.filterMonth}else{mlaModal.settings.filterMonth=c.s.mla_filter_month}_.find(this.filters,function(f,g){var e=_.all(f.props,function(i,h){return i.mla_filter_month==mlaModal.settings.filterMonth});if(e){return d=g}});this.$el.val(d)},change:function(){var b=this.filters[this.el.value];if(b){this.model.set(b.props);a("#mla-search-submit").click()}}})}if(mlaModal.settings.enableTermsDropdown){wp.media.view.AttachmentFilters.MlaTerms=wp.media.view.AttachmentFilters.extend({className:"attachment-terms",createFilters:function(){var b={};_.each(mlaModal.settings.termsText||{},function(d,c){b[c]={text:d,props:{s:{mla_filter_term:parseInt(mlaModal.settings.termsValue[c])}}}});this.filters=b},select:function(){var b=this.model,d=mlaModal.settings.filterTerm,c=b.toJSON();if(_.isUndefined(c.s)){c.s={}}if("string"==typeof c.search){mlaModal.settings.searchValue=c.search}if(_.isUndefined(c.s.mla_filter_term)){c.s.mla_filter_term=mlaModal.settings.filterTerm}else{mlaModal.settings.filterTerm=c.s.mla_filter_term}_.find(this.filters,function(f,g){var e=_.all(f.props,function(i,h){return i.mla_filter_term==mlaModal.settings.filterTerm});if(e){return d=g}});this.$el.val(d)},change:function(){var b=this.filters[this.el.value];if(b){this.model.set(b.props);a("#mla-search-submit").click()}}})}if(mlaModal.settings.enableTermsSearch){wp.media.view.MlaTermsSearch=wp.media.View.extend({tagName:"span",className:"mla-terms-search",template:wp.media.template("mla-terms-search-button"),attributes:{type:"mla-terms-search-button"},events:{change:"termsSearchOpen",click:"termsSearchOpen",},render:function(){this.$el.html(this.template(mlaModal.strings));return this},termsSearchOpen:function(b){if(("click"==b.type)&&("mla_terms_search"===b.target.name)){mlaTaxonomy.termsSearch.open();a("#mla-terms-search-form").off("submit");a("#mla-terms-search-form").submit(function(g){var c,f,d={phrases:"",taxonomies:[]};g.preventDefault();c=a("#mla-terms-search-form").serializeArray();for(f=0;f<c.length;f++){switch(c[f].name){case"mla_terms_search[phrases]":d.phrases=c[f].value;break;case"mla_terms_search[radio_phrases]":d.radio_phrases=c[f].value;break;case"mla_terms_search[radio_terms]":d.radio_terms=c[f].value;break;case"mla_terms_search[taxonomies][]":d.taxonomies[d.taxonomies.length]=c[f].value;break}}mlaModal.settings.termsSearch=d;a("#mla-search-submit").click();return false});a("#mla-terms-search-input").keypress(function(c){if(13==c.which){c.preventDefault();a("#mla-terms-search-submit").click()}})}}})}if(mlaModal.settings.enableSearchBox){wp.media.view.MlaSearch=wp.media.View.extend({tagName:"div",className:"mla-search-box",template:wp.media.template("mla-search-box"),attributes:{type:"mla-search-box"},events:{change:"search",click:"search",search:"search",MlaSearch:"search"},render:function(){this.$el.html(this.template(mlaModal.strings));return this},search:function(b){if(("click"==b.type)&&("mla_search_submit"!=b.target.name)){return}switch(b.target.name){case"s[mla_search_value]":mlaModal.settings.searchValue=b.target.value;break;case"mla_search_submit":searchValues={mla_filter_month:mlaModal.settings.filterMonth,mla_filter_term:mlaModal.settings.filterTerm,mla_terms_search:mlaModal.settings.termsSearch,mla_search_clicks:mlaModal.settings.searchClicks++,mla_search_value:mlaModal.settings.searchValue,mla_search_fields:mlaModal.settings.searchFields,mla_search_connector:mlaModal.settings.searchConnector};this.model.set({s:searchValues});break;case"s[mla_search_connector]":mlaModal.settings.searchConnector=b.target.value;break;case"s[mla_search_title]":index=mlaModal.settings.searchFields.indexOf("title");if(-1==index){mlaModal.settings.searchFields.push("title")}else{mlaModal.settings.searchFields.splice(index,1)}break;case"s[mla_search_name]":index=mlaModal.settings.searchFields.indexOf("name");if(-1==index){mlaModal.settings.searchFields.push("name")}else{mlaModal.settings.searchFields.splice(index,1)}break;case"s[mla_search_alt_text]":index=mlaModal.settings.searchFields.indexOf("alt-text");if(-1==index){mlaModal.settings.searchFields.push("alt-text")}else{mlaModal.settings.searchFields.splice(index,1)}break;case"s[mla_search_excerpt]":index=mlaModal.settings.searchFields.indexOf("excerpt");if(-1==index){mlaModal.settings.searchFields.push("excerpt")}else{mlaModal.settings.searchFields.splice(index,1)}break;case"s[mla_search_content]":index=mlaModal.settings.searchFields.indexOf("content");if(-1==index){mlaModal.settings.searchFields.push("content")}else{mlaModal.settings.searchFields.splice(index,1)}break;case"s[mla_search_terms]":index=mlaModal.settings.searchFields.indexOf("terms");if(-1==index){mlaModal.settings.searchFields.push("terms")}else{mlaModal.settings.searchFields.splice(index,1)}break}}})}if(mlaModal.settings.enableMimeTypes||mlaModal.settings.enableMonthsDropdown||mlaModal.settings.enableTermsDropdown||mlaModal.settings.enableTermsSearch||mlaModal.settings.enableSearchBox){wp.media.view.AttachmentsBrowser=wp.media.view.AttachmentsBrowser.extend({createToolbar:function(){var b;wp.media.view.AttachmentsBrowser.__super__.createToolbar.apply(this,arguments);mlaModal.utility.mlaAttachmentsBrowser=this;b=this.options.filters;if(("all"===b)&&mlaModal.settings.enableMimeTypes){this.toolbar.unset("filters",{silent:true});this.toolbar.set("filters",new wp.media.view.AttachmentFilters.Mla({controller:this.controller,model:this.collection.props,priority:-80}).render())}if(this.options.search&&mlaModal.settings.enableMonthsDropdown){this.toolbar.set("months",new wp.media.view.AttachmentFilters.MlaMonths({controller:this.controller,model:this.collection.props,priority:-80}).render())}if(this.options.search&&mlaModal.settings.enableTermsDropdown){this.toolbar.set("terms",new wp.media.view.AttachmentFilters.MlaTerms({controller:this.controller,model:this.collection.props,priority:-80}).render())}if(this.options.search&&mlaModal.settings.enableTermsSearch){this.toolbar.set("termsSearch",new wp.media.view.MlaTermsSearch({controller:this.controller,model:this.collection.props,priority:-80}).render())}if(this.options.search){if(mlaModal.settings.enableSearchBox){this.toolbar.unset("search",{silent:true});this.toolbar.set("MlaSearch",new wp.media.view.MlaSearch({controller:this.controller,model:this.collection.props,priority:60}).render())}}},updateFilters:function(b,c){var d={};if(this.options.search&&mlaModal.settings.enableTermsDropdown&&mlaModal.settings.termsTaxonomy==b){d=mlaModal.utility.parseTermsOptions(c);mlaModal.settings.termsClass=d.termsClass;mlaModal.settings.termsText=d.termsText;mlaModal.settings.termsValue=d.termsValue;this.toolbar.unset("terms",{silent:true});this.toolbar.set("terms",new wp.media.view.AttachmentFilters.MlaTerms({controller:this.controller,model:this.collection.props,priority:-80}).render())}}})}mlaModal.utility.parseTermsOptions=function(h){var g={termsClass:[mlaModal.settings.termsClass[0],mlaModal.settings.termsClass[1]],termsText:[mlaModal.settings.termsText[0],mlaModal.settings.termsText[1]],termsValue:[mlaModal.settings.termsValue[0],mlaModal.settings.termsValue[1]]},d=2,b,c,f=/\<option(( class=\"([^\"]+)\" )|( ))value=((\'([^\']+)\')|(\"([^\"]+)\"))([^\>]*)\>([^\<]*)\<.*/g,e=[];if("object"===typeof h){d=mlaModal.settings.termsValue.length;for(b=2;b<d;b++){e[b]={termsClass:mlaModal.settings.termsClass[b],termsText:mlaModal.settings.termsText[b],termsValue:mlaModal.settings.termsValue[b]};if("undefined"!==typeof h[mlaModal.settings.termsValue[b]]){delete h[mlaModal.settings.termsValue[b]]}}for(c in h){e[b++]={termsClass:"level-0",termsText:h[c],termsValue:c.toString()}}if(d===b){return{termsClass:mlaModal.settings.termsClass,termsText:mlaModal.settings.termsText,termsValue:mlaModal.settings.termsValue}}e.sort(function(j,i){if(j.termsText>i.termsText){return 1}else{if(j.termsText<i.termsText){return -1}else{return 0}}});b=2;for(c in e){g.termsClass[b]=e[c].termsClass;g.termsText[b]=e[c].termsText;g.termsValue[b++]=e[c].termsValue}return g}e=f.exec(h);while(null!==(e=f.exec(h))){g.termsClass[d]=e[3];g.termsValue[d]=("undefined"===typeof e[6])?e[9]:e[7];g.termsText[d++]=e[11].replace(" ",mlaModal.settings.termsIndent)}return g};mlaModal.utility.arrayCleanup=function(d){var c=[],b=("string"===typeof d);if(b){d=d.split(postL10n.comma)}jQuery.each(d,function(e,f){f=jQuery.trim(f);if(f&&jQuery.inArray(f,c)==-1){c.push(f)}});c.sort();if(b){c=c.join(postL10n.comma)}return c};mlaModal.utility.parseTaxonomyId=function(c){var b=c.split("-");b.shift();b.shift();return b.join("-")};mlaModal.tagBox={cleanTags:function(c){var b=postL10n.comma;if(","!==b){c=c.replace(new RegExp(b,"g"),",")}c=c.replace(/\s*,\s*/g,",").replace(/,+/g,",").replace(/[,\s]+$/,"").replace(/^[,\s]+/,"");if(","!==b){c=c.replace(/,/g,b)}return c},parseTags:function(e){var i=e.id,c=i.split("-check-num-")[1],f=a(e).closest(".tagsdiv"),h=f.find(".the-tags"),b=postL10n.comma,d=h.val().split(b),g=[];delete d[c];a.each(d,function(j,k){k=a.trim(k);if(k){g.push(k)}});h.val(this.cleanTags(g.join(b)));this.quickClicks(f);return false},quickClicks:function(d){var g=a(".the-tags",d),e=a(".tagchecklist",d),f=a(d).attr("id"),b,c;if(!g.length){return}c=g.prop("disabled");b=g.val().split(postL10n.comma);e.empty();a.each(b,function(i,k){var j,h;k=a.trim(k);if(!k){return}j=a("<span />").text(k);if(!c){h=a('<a id="'+f+"-check-num-"+i+'" class="ntdelbutton">X</a>');h.click(function(){mlaModal.tagBox.parseTags(this)});j.prepend(" ").prepend(h)}e.append(j)})},flushTags:function(h,d,c){var j,b,e,k=a(".the-tags",h),g=a("input.newtag",h),i=postL10n.comma;d=d||false;e=d?a(d).text():g.val();j=k.val();b=j?j+i+e:e;b=mlaModal.utility.arrayCleanup(this.cleanTags(b));k.val(b);this.quickClicks(h);if(!d){g.val("")}if("undefined"==typeof(c)){g.focus()}return false},getCloud:function(c,b){a.post(ajaxurl,{action:"get-tagcloud",tax:b},function(e,d){if(0===e||"success"!=d){e=wpAjax.broken}e=a('<p id="tagcloud-'+b+'" class="the-tagcloud">'+e+"</p>");a("a",e).click(function(){mlaModal.tagBox.flushTags(a(this).closest(".mla-taxonomy-field").children(".tagsdiv"),this);return false});a("#"+c).after(e)})},init:function(f,b,d){var e,c;e=a("#mla-taxonomy-"+b,d);c=a("div.ajaxtag",e);mlaModal.tagBox.quickClicks(e);a("input.tagadd",c).click(function(){mlaModal.tagBox.flushTags(a(this).closest(".tagsdiv"))});a("input.newtag",c).keyup(function(g){if(13==g.which){mlaModal.tagBox.flushTags(e);return false}}).keypress(function(g){if(13==g.which){g.preventDefault();return false}}).each(function(){a(this).suggest(ajaxurl+"?action=ajax-tag-search&tax="+b,{delay:500,resultsClass:"mla_ac_results",selectClass:"mla_ac_over",matchClass:"mla_ac_match",minchars:2,multiple:true,multipleSep:postL10n.comma+" "})});e.siblings(":first").click(function(){mlaModal.tagBox.getCloud(a("a",this).attr("id"),b);a("a",this).unbind().click(function(){a(this).siblings(".the-tagcloud").toggle();return false});return false});a(".compat-field-"+b+" td",d).on("mouseleave",function(i){var k,h=this,g=mlaModal.utility.arrayCleanup(a(".server-tags",h).val()),j=mlaModal.utility.arrayCleanup(a(".the-tags",h).val());if(g===j){return}a(h).css("opacity","0.5");k={id:f,};k[b]=j;wp.media.post(mlaModal.settings.ajaxUpdateCompatAction,k).done(function(m){var l,n;for(l in m){if("object"===typeof(m[l]["object-terms"])){mlaModal.utility.mlaAttachmentsBrowser.updateFilters(l,m[l]["object-terms"]);delete m[l]["object-terms"]}for(n in m[l]){a("#"+n,h).replaceWith(m[l][n])}}a(h).css("opacity","1.0")})});e.on("change",function(g){g.stopPropagation();return false});a(".the-tags, .server-tags .newtag",e).on("change",function(g){g.stopPropagation();return false})}};if(mlaModal.settings.enableDetailsCategory||mlaModal.settings.enableDetailsTag){wp.media.view.AttachmentCompat=wp.media.view.AttachmentCompat.extend({initialize:function(){wp.media.view.AttachmentCompat.__super__.initialize.apply(this,arguments);this.on("ready",function(b){mlaModal.utility.hookCompatTaxonomies(this.model.get("id"),this.el)})}})}if(mlaModal.settings.enableDetailsCategory||mlaModal.settings.enableDetailsTag){wp.media.model.Selection=wp.media.model.Selection.extend({initialize:function(){wp.media.model.Selection.__super__.initialize.apply(this,arguments);this.on("selection:reset",function(b){mlaModal.cid=null});this.on("selection:unsingle",function(b){mlaModal.cid=null});this.on("selection:single",function(b){mlaModal.cid=b.cid});this.on("change:uploading",function(b){mlaModal.uploading=true});this.on("change",function(d){if(mlaModal.uploading&&mlaModal.cid===d.cid){var b=wp.media.editor.get("content"),c=b.content.get("compat");mlaModal.utility.hookCompatTaxonomies(d.get("id"),c.sidebar.$el);mlaModal.uploading=false}})}})}mlaModal.utility.hookCompatTaxonomies=function(d,c){var b;if(mlaModal.settings.enableDetailsCategory){a(".mla-taxonomy-field .categorydiv",c).each(function(){b=mlaModal.utility.parseTaxonomyId(a(this).attr("id"));a(".compat-field-"+b+" th",c).click({id:d,currentTaxonomy:b,el:c},function(e){mlaModal.utility.fillCompatTaxonomies(e.data)})})}if(mlaModal.settings.enableDetailsTag){a(".mla-taxonomy-field .tagsdiv",c).each(function(){b=mlaModal.utility.parseTaxonomyId(a(this).attr("id"));a(".compat-field-"+b+" th",c).click({id:d,currentTaxonomy:b,el:c},function(e){mlaModal.utility.fillCompatTaxonomies(e.data)})})}};mlaModal.utility.fillCompatTaxonomies=function(f){var c=f.el,e=[],b,d;if(mlaModal.settings.enableDetailsCategory){a(".mla-taxonomy-field .categorydiv",c).each(function(){b=mlaModal.utility.parseTaxonomyId(a(this).attr("id"));e[e.length]=b;d=".compat-field-"+b;if("undefined"===typeof(mlaModal.initialHTML[b])){mlaModal.initialHTML[b]=a(d,c).html()}else{a(d,c).html(mlaModal.initialHTML[b])}a(d+" .categorydiv",c).html(mlaModal.strings.loadingText)})}if(mlaModal.settings.enableDetailsTag){a(".mla-taxonomy-field .tagsdiv",c).each(function(){b=mlaModal.utility.parseTaxonomyId(a(this).attr("id"));e[e.length]=b;d=".compat-field-"+b;if("undefined"===typeof(mlaModal.initialHTML[b])){mlaModal.initialHTML[b]=a(d,c).html()}else{a(d,c).html(mlaModal.initialHTML[b])}a(d+" .tagsdiv",c).html(mlaModal.strings.loadingText)})}if(e.length){wp.media.post(mlaModal.settings.ajaxFillCompatAction,{id:f.id,query:e,}).done(function(h){var g,i;for(g in h){i=".compat-field-"+g;a(i,c).html(h[g])}mlaModal.utility.supportCompatTaxonomies(f);a(".compat-field-"+f.currentTaxonomy+" td",c).show()})}};mlaModal.utility.supportCompatTaxonomies=function(d){var c=d.id,b=d.el;if(mlaModal.settings.enableDetailsCategory){a(".mla-taxonomy-field .categorydiv",b).each(function(){var g=a(this),e,h,f,k,i,m,l,j;f=mlaModal.utility.parseTaxonomyId(a(this).attr("id"));k=f+"_tab";i="#mla-"+f;m="#mla-new-"+f;l="#mla-search-"+f;j="#mla-attachments-"+c+"-"+f;if(f=="category"){k="cats"}g.find(".category-tabs").show();a(".compat-field-"+f+" th",b).click(function(){a(this).siblings("td").slideToggle()});g.on("mouseleave",function(p){var r,n,q=[],o=g.find(i+"-checklist input:checked");o.each(function(t){q[q.length]=a(this).val()});q.sort(function(u,t){return u-t});q=q.join(",");n=g.siblings(j).val();if(n===q){return}g.siblings(j).val(q);g.prop("disabled",true);r={id:c,};r[f]=q;wp.media.post(mlaModal.settings.ajaxUpdateCompatAction,r).done(function(u){var t,v;for(t in u){for(v in u[t]){g.find("#"+v).html(u[t][v])}}g.find(l).val("");g.find(i+"-searcher").addClass("mla-hidden-children");g.prop("disabled",false)})});g.on('change input[type="checkbox"]',function(n){n.stopPropagation();return false});g.find(i+"-tabs a").click(function(){var n=a(this).attr("href");a(this).parent().addClass("tabs").siblings("li").removeClass("tabs");g.find(i+"-tabs").siblings(".tabs-panel").hide();g.find(n).show();a(this).focus();if("#mla-"+f+"-all"==n){deleteUserSetting(k)}else{setUserSetting(k,"pop")}return false});if(getUserSetting(k)){g.find(i+'-tabs a[href="#mla-'+f+'-pop"]').click()}g.find(i+"-add-toggle").click(function(){g.find(i+"-searcher").addClass("mla-hidden-children");g.find(i+"-adder").toggleClass("mla-hidden-children");g.find(i+'-tabs a[href="#mla-'+f+'-all"]').click();g.find(i+"-checklist li").show();g.find(i+"-checklist-pop li").show();if(false===g.find(i+"-adder").hasClass("mla-hidden-children")){g.find(m).val("").removeClass("form-input-tip");g.find(m).focus()}return false});g.find(m).keypress(function(n){if(13===n.keyCode){n.preventDefault();g.find(i+"-add-submit").click()}});g.find(i+"-add-submit").click(function(){g.find(m).focus()});e=function(n){if(!g.find(m).val()){return false}n.data+="&"+g.find(i+"-checklist :checked").serialize();g.prop("disabled",true);return n};h=function(q,p){var o,n=g.find("#new"+f+"_parent");g.prop("disabled",false);if("undefined"!=p.parsed.responses[0]&&(o=p.parsed.responses[0].supplemental.newcat_parent)){n.before(o);n.remove();mlaModal.utility.mlaAttachmentsBrowser.updateFilters(f,o)}};g.find(i+"-checklist").wpList({alt:"",response:"mla-"+f+"-ajax-response",addBefore:e,addAfter:h});g.find(i+"-checklist, "+i+"-checklist-pop").on("click",'li.popular-category > label input[type="checkbox"]',function(){var n=a(this),p=n.is(":checked"),o=n.val();if(o&&n.parents("#mla-taxonomy-"+f).length){a("#in-"+f+"-"+o+", #in-popular-"+f+"-"+o).prop("checked",p)}});a.extend(a.expr[":"],{matchTerms:function(p,o,n,q){return(p.textContent||p.innerText||"").toLowerCase().indexOf((n[3]||"").toLowerCase())>=0}});g.find(l).keypress(function(n){if(13===n.keyCode){n.preventDefault();g.find(l).val("");g.find(i+"-searcher").addClass("mla-hidden-children");g.find(i+"-checklist li").show();g.find(i+"-checklist-pop li").show();return}});g.find(l).keyup(function(p){var q,o,n;if(13===p.keyCode){p.preventDefault();g.find(i+"-search-toggle").focus();return}q=g.find(l).val(),termList=g.find(i+"-checklist li");termListPopular=g.find(i+"-checklist-pop li");if(0<q.length){termList.hide();termListPopular.hide()}else{termList.show();termListPopular.show()}o=g.find(i+"-checklist label:matchTerms('"+q+"')");o.closest("li").find("li").andSelf().show();o.parents(i+"-checklist li").show();n=g.find(i+"-checklist-pop label:matchTerms('"+q+"')");n.closest("li").find("li").andSelf().show();n.parents(i+"-checklist li").show()});g.find(i+"-search-toggle").click(function(){g.find(i+"-adder ").addClass("mla-hidden-children");g.find(i+"-searcher").toggleClass("mla-hidden-children");g.find(i+'-tabs a[href="#mla-'+f+'-all"]').click();g.find(i+"-checklist li").show();g.find(i+"-checklist-pop li").show();if(false===g.find(i+"-searcher").hasClass("mla-hidden-children")){g.find(l).val("").removeClass("form-input-tip");g.find(l).focus()}return false})})}if(mlaModal.settings.enableDetailsTag){a(".mla-taxonomy-field .tagsdiv",b).each(function(){var e=mlaModal.utility.parseTaxonomyId(a(this).attr("id"));a(".compat-field-"+e+" th",b).click(function(){a(this).siblings("td").slideToggle()});mlaModal.tagBox.init(c,e,b)})}}}(jQuery));
|
js/mla-set-parent-scripts.js
CHANGED
@@ -13,19 +13,56 @@
|
|
13 |
if ( ! $( '#mla-set-parent-response-div input[type="radio"]:checked' ).length )
|
14 |
event.preventDefault();
|
15 |
});
|
16 |
-
|
17 |
// Send setParent parent keywords for filtering
|
18 |
-
$( '#mla-set-parent-search' ).click(
|
|
|
|
|
|
|
|
|
19 |
$( '#mla-set-parent-search-div :input' ).keypress( function( event ) {
|
20 |
if ( 13 == event.which ) {
|
21 |
mla.setParent.send();
|
22 |
return false;
|
23 |
}
|
24 |
});
|
25 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
// Close the setParent pop-up
|
27 |
$( '#mla-set-parent-close-div' ).click( mla.setParent.close );
|
28 |
-
|
29 |
$( '#mla-set-parent-cancel' ).click( function ( event ) {
|
30 |
event.preventDefault();
|
31 |
return mla.setParent.close();
|
@@ -61,7 +98,7 @@
|
|
61 |
} else {
|
62 |
$( '#mla-set-parent-close-div' ).html( 'x' );
|
63 |
}
|
64 |
-
|
65 |
$( '#mla-set-parent-div' ).show();
|
66 |
|
67 |
$( '#mla-set-parent-input ' ).focus().keyup( function( event ){
|
@@ -77,6 +114,8 @@
|
|
77 |
},
|
78 |
|
79 |
close: function() {
|
|
|
|
|
80 |
$( '#mla-set-parent-response-div' ).html('');
|
81 |
$( '#mla-set-parent-div' ).hide();
|
82 |
$( '#mla-set-parent-overlay' ).hide();
|
@@ -90,8 +129,11 @@
|
|
90 |
|
91 |
send: function() {
|
92 |
var post = {
|
93 |
-
|
94 |
-
|
|
|
|
|
|
|
95 |
_ajax_nonce: $('#mla-set-parent-ajax-nonce').val()
|
96 |
},
|
97 |
spinner = $( '#mla-set-parent-search-div .spinner' ),
|
@@ -107,13 +149,13 @@
|
|
107 |
spinner.hide();
|
108 |
}).done( function( response ) {
|
109 |
var responseData = 'no response.data', id = 0;
|
110 |
-
|
111 |
if ( 'xml' === mla.settings.setParentDataType ) {
|
112 |
if ( 'string' === typeof( response ) ) {
|
113 |
response = { 'success': false, data: response };
|
114 |
} else {
|
115 |
ajaxResponse = wpAjax.parseAjaxResponse( response );
|
116 |
-
|
117 |
if ( ajaxResponse.errors ) {
|
118 |
response = { 'success': false, data: wpAjax.broken };
|
119 |
} else {
|
@@ -121,12 +163,12 @@
|
|
121 |
}
|
122 |
}
|
123 |
}
|
124 |
-
|
125 |
if ( ! response.success ) {
|
126 |
if ( response.responseData ) {
|
127 |
responseData = response.data;
|
128 |
}
|
129 |
-
|
130 |
$( '#mla-set-parent-response-div' ).text( mla.settings.ajaxDoneError + ' (' + responseData + ')' );
|
131 |
} else {
|
132 |
/*
|
@@ -134,7 +176,7 @@
|
|
134 |
*/
|
135 |
$( '#mla-set-parent-response-div' ).html( response.data );
|
136 |
$( '#mla-set-parent-response-div table tbody tr:eq(0)' ).before( $( '#found-0-row' ).clone() );
|
137 |
-
|
138 |
/*
|
139 |
* See if we can "check" the current parent
|
140 |
*/
|
13 |
if ( ! $( '#mla-set-parent-response-div input[type="radio"]:checked' ).length )
|
14 |
event.preventDefault();
|
15 |
});
|
16 |
+
|
17 |
// Send setParent parent keywords for filtering
|
18 |
+
$( '#mla-set-parent-search' ).click( function ( event ) {
|
19 |
+
$( '#mla-set-parent-paged' ).val( 1 );
|
20 |
+
mla.setParent.send();
|
21 |
+
});
|
22 |
+
|
23 |
$( '#mla-set-parent-search-div :input' ).keypress( function( event ) {
|
24 |
if ( 13 == event.which ) {
|
25 |
mla.setParent.send();
|
26 |
return false;
|
27 |
}
|
28 |
});
|
29 |
+
|
30 |
+
// Send post type(s) for filtering
|
31 |
+
$( '#mla-set-parent-post-type' ).change( function ( event ) {
|
32 |
+
$( '#mla-set-parent-paged' ).val( 1 );
|
33 |
+
mla.setParent.send();
|
34 |
+
});
|
35 |
+
|
36 |
+
// Pagination controls
|
37 |
+
$( '#mla-set-parent-previous' ).click( function ( event ) {
|
38 |
+
var paged = + $( '#mla-set-parent-paged' ).val();
|
39 |
+
|
40 |
+
if ( paged > 1 ) {
|
41 |
+
$( '#mla-set-parent-paged' ).val( paged - 1 );
|
42 |
+
} else {
|
43 |
+
$( '#mla-set-parent-paged' ).val( 1 );
|
44 |
+
}
|
45 |
+
|
46 |
+
mla.setParent.send();
|
47 |
+
});
|
48 |
+
|
49 |
+
$( '#mla-set-parent-next' ).click( function ( event ) {
|
50 |
+
var count = + $( '#mla-set-parent-count' ).val(),
|
51 |
+
paged = + $( '#mla-set-parent-paged' ).val(),
|
52 |
+
found = + $( '#mla-set-parent-found' ).val();
|
53 |
+
|
54 |
+
if ( found < count ) {
|
55 |
+
$( '#mla-set-parent-paged' ).val( 1 );
|
56 |
+
} else {
|
57 |
+
$( '#mla-set-parent-paged' ).val( paged + 1 );
|
58 |
+
}
|
59 |
+
|
60 |
+
mla.setParent.send();
|
61 |
+
});
|
62 |
+
|
63 |
// Close the setParent pop-up
|
64 |
$( '#mla-set-parent-close-div' ).click( mla.setParent.close );
|
65 |
+
|
66 |
$( '#mla-set-parent-cancel' ).click( function ( event ) {
|
67 |
event.preventDefault();
|
68 |
return mla.setParent.close();
|
98 |
} else {
|
99 |
$( '#mla-set-parent-close-div' ).html( 'x' );
|
100 |
}
|
101 |
+
|
102 |
$( '#mla-set-parent-div' ).show();
|
103 |
|
104 |
$( '#mla-set-parent-input ' ).focus().keyup( function( event ){
|
114 |
},
|
115 |
|
116 |
close: function() {
|
117 |
+
$( '#mla-set-parent-input' ).val('');
|
118 |
+
$( '#mla-set-parent-post-type' ).val('all');
|
119 |
$( '#mla-set-parent-response-div' ).html('');
|
120 |
$( '#mla-set-parent-div' ).hide();
|
121 |
$( '#mla-set-parent-overlay' ).hide();
|
129 |
|
130 |
send: function() {
|
131 |
var post = {
|
132 |
+
mla_set_parent_search_text: $( '#mla-set-parent-input' ).val(),
|
133 |
+
mla_set_parent_post_type: $( '#mla-set-parent-post-type' ).val(),
|
134 |
+
mla_set_parent_count: $( '#mla-set-parent-count' ).val(),
|
135 |
+
mla_set_parent_paged: $( '#mla-set-parent-paged' ).val(),
|
136 |
+
action: 'mla_find_posts',
|
137 |
_ajax_nonce: $('#mla-set-parent-ajax-nonce').val()
|
138 |
},
|
139 |
spinner = $( '#mla-set-parent-search-div .spinner' ),
|
149 |
spinner.hide();
|
150 |
}).done( function( response ) {
|
151 |
var responseData = 'no response.data', id = 0;
|
152 |
+
|
153 |
if ( 'xml' === mla.settings.setParentDataType ) {
|
154 |
if ( 'string' === typeof( response ) ) {
|
155 |
response = { 'success': false, data: response };
|
156 |
} else {
|
157 |
ajaxResponse = wpAjax.parseAjaxResponse( response );
|
158 |
+
|
159 |
if ( ajaxResponse.errors ) {
|
160 |
response = { 'success': false, data: wpAjax.broken };
|
161 |
} else {
|
163 |
}
|
164 |
}
|
165 |
}
|
166 |
+
|
167 |
if ( ! response.success ) {
|
168 |
if ( response.responseData ) {
|
169 |
responseData = response.data;
|
170 |
}
|
171 |
+
|
172 |
$( '#mla-set-parent-response-div' ).text( mla.settings.ajaxDoneError + ' (' + responseData + ')' );
|
173 |
} else {
|
174 |
/*
|
176 |
*/
|
177 |
$( '#mla-set-parent-response-div' ).html( response.data );
|
178 |
$( '#mla-set-parent-response-div table tbody tr:eq(0)' ).before( $( '#found-0-row' ).clone() );
|
179 |
+
|
180 |
/*
|
181 |
* See if we can "check" the current parent
|
182 |
*/
|
js/mla-set-parent-scripts.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
(function(a){mla.setParent={init:function(){a("#mla-set-parent-submit").click(function(b){if(!a('#mla-set-parent-response-div input[type="radio"]:checked').length){b.preventDefault()}});a("#mla-set-parent-search").click(mla.setParent.send);a("#mla-set-parent-search-div :input").keypress(function(b){if(13==b.which){mla.setParent.send();return false}});a("#mla-set-parent-close-div").click(mla.setParent.close);a("#mla-set-parent-cancel").click(function(b){b.preventDefault();return mla.setParent.close()});a("#mla-set-parent-inside-div").on("click","tr",function(){a(this).find(".found-radio input").prop("checked",true)})},open:function(e,d,b){var c=a("#mla-set-parent-overlay");if(c.length===0){a("body").append('<div id="mla-set-parent-overlay"></div>');mla.setParent.overlay()}c.show();if(e&&d){a("#mla-set-parent-parent").val(e);a("#mla-set-parent-children").val(d)}if(b){a("#mla-set-parent-titles").html(b)}if(mla.settings.useDashicons){a("#mla-set-parent-close-div").addClass("mla-set-parent-close-div-dashicons")}else{a("#mla-set-parent-close-div").html("x")}a("#mla-set-parent-div").show();a("#mla-set-parent-input ").focus().keyup(function(f){if(f.which==27){mla.setParent.close()}});mla.setParent.send();return false},close:function(){a("#mla-set-parent-response-div").html("");a("#mla-set-parent-div").hide();a("#mla-set-parent-overlay").hide()},overlay:function(){a("#mla-set-parent-overlay").on("click",function(){mla.setParent.close()})},send:function(){var b={
|
1 |
+
(function(a){mla.setParent={init:function(){a("#mla-set-parent-submit").click(function(b){if(!a('#mla-set-parent-response-div input[type="radio"]:checked').length){b.preventDefault()}});a("#mla-set-parent-search").click(function(b){a("#mla-set-parent-paged").val(1);mla.setParent.send()});a("#mla-set-parent-search-div :input").keypress(function(b){if(13==b.which){mla.setParent.send();return false}});a("#mla-set-parent-post-type").change(function(b){a("#mla-set-parent-paged").val(1);mla.setParent.send()});a("#mla-set-parent-previous").click(function(c){var b=+a("#mla-set-parent-paged").val();if(b>1){a("#mla-set-parent-paged").val(b-1)}else{a("#mla-set-parent-paged").val(1)}mla.setParent.send()});a("#mla-set-parent-next").click(function(d){var c=+a("#mla-set-parent-count").val(),b=+a("#mla-set-parent-paged").val(),e=+a("#mla-set-parent-found").val();if(e<c){a("#mla-set-parent-paged").val(1)}else{a("#mla-set-parent-paged").val(b+1)}mla.setParent.send()});a("#mla-set-parent-close-div").click(mla.setParent.close);a("#mla-set-parent-cancel").click(function(b){b.preventDefault();return mla.setParent.close()});a("#mla-set-parent-inside-div").on("click","tr",function(){a(this).find(".found-radio input").prop("checked",true)})},open:function(e,d,b){var c=a("#mla-set-parent-overlay");if(c.length===0){a("body").append('<div id="mla-set-parent-overlay"></div>');mla.setParent.overlay()}c.show();if(e&&d){a("#mla-set-parent-parent").val(e);a("#mla-set-parent-children").val(d)}if(b){a("#mla-set-parent-titles").html(b)}if(mla.settings.useDashicons){a("#mla-set-parent-close-div").addClass("mla-set-parent-close-div-dashicons")}else{a("#mla-set-parent-close-div").html("x")}a("#mla-set-parent-div").show();a("#mla-set-parent-input ").focus().keyup(function(f){if(f.which==27){mla.setParent.close()}});mla.setParent.send();return false},close:function(){a("#mla-set-parent-input").val("");a("#mla-set-parent-post-type").val("all");a("#mla-set-parent-response-div").html("");a("#mla-set-parent-div").hide();a("#mla-set-parent-overlay").hide()},overlay:function(){a("#mla-set-parent-overlay").on("click",function(){mla.setParent.close()})},send:function(){var b={mla_set_parent_search_text:a("#mla-set-parent-input").val(),mla_set_parent_post_type:a("#mla-set-parent-post-type").val(),mla_set_parent_count:a("#mla-set-parent-count").val(),mla_set_parent_paged:a("#mla-set-parent-paged").val(),action:"mla_find_posts",_ajax_nonce:a("#mla-set-parent-ajax-nonce").val()},d=a("#mla-set-parent-search-div .spinner"),c=null;d.show();a.ajax(ajaxurl,{type:"POST",data:b,dataType:mla.settings.setParentDataType}).always(function(){d.hide()}).done(function(e){var f="no response.data",g=0;if("xml"===mla.settings.setParentDataType){if("string"===typeof(e)){e={success:false,data:e}}else{c=wpAjax.parseAjaxResponse(e);if(c.errors){e={success:false,data:wpAjax.broken}}else{e={success:true,data:c.responses[0].data}}}}if(!e.success){if(e.responseData){f=e.data}a("#mla-set-parent-response-div").text(mla.settings.ajaxDoneError+" ("+f+")")}else{a("#mla-set-parent-response-div").html(e.data);a("#mla-set-parent-response-div table tbody tr:eq(0)").before(a("#found-0-row").clone());g=a("#mla-set-parent-parent").val();a("#mla-set-parent-response-div #found-"+g).each(function(h,i){a(this).prop("checked",true)})}}).fail(function(f,e){if(200==f.status){a("#mla-set-parent-response-div").text("("+e+") "+f.responseText)}else{a("#mla-set-parent-response-div").text(mla.settings.ajaxFailError+" ("+e+"), jqXHR( "+f.status+", "+f.statusText+", "+f.responseText+")")}})}};a(document).ready(function(){mla.setParent.init()})})(jQuery);
|
js/mla-single-edit-scripts.js
CHANGED
@@ -182,7 +182,7 @@ function array_unique_noempty(a) {
|
|
182 |
jQuery(document).ready( function($) {
|
183 |
// alert('jQuery(document).ready(function($)');
|
184 |
// console.log('jQuery(document).ready(function($)');
|
185 |
-
|
186 |
// multi-taxonomies
|
187 |
$('#side-info-column').children('div.postbox').each(function(){
|
188 |
if ( this.id.indexOf('tagsdiv-') === 0 ) {
|
@@ -190,7 +190,7 @@ jQuery(document).ready( function($) {
|
|
190 |
return false;
|
191 |
}
|
192 |
});
|
193 |
-
|
194 |
// categories
|
195 |
$('.categorydiv').each( function(){
|
196 |
var this_id = $(this).attr('id'), noSyncChecks = false, syncChecks, catAddAfter, taxonomyParts, taxonomy, settingName;
|
182 |
jQuery(document).ready( function($) {
|
183 |
// alert('jQuery(document).ready(function($)');
|
184 |
// console.log('jQuery(document).ready(function($)');
|
185 |
+
|
186 |
// multi-taxonomies
|
187 |
$('#side-info-column').children('div.postbox').each(function(){
|
188 |
if ( this.id.indexOf('tagsdiv-') === 0 ) {
|
190 |
return false;
|
191 |
}
|
192 |
});
|
193 |
+
|
194 |
// categories
|
195 |
$('.categorydiv').each( function(){
|
196 |
var this_id = $(this).attr('id'), noSyncChecks = false, syncChecks, catAddAfter, taxonomyParts, taxonomy, settingName;
|
js/mla-terms-search-scripts.js
ADDED
@@ -0,0 +1,153 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* global ajaxurl */
|
2 |
+
|
3 |
+
var mlaTaxonomy = {
|
4 |
+
// Properties
|
5 |
+
settings: {},
|
6 |
+
|
7 |
+
// Utility functions
|
8 |
+
utility: {
|
9 |
+
},
|
10 |
+
|
11 |
+
// Components
|
12 |
+
termsSearch: null
|
13 |
+
};
|
14 |
+
|
15 |
+
( function( $ ) {
|
16 |
+
/**
|
17 |
+
* Localized settings and strings
|
18 |
+
*/
|
19 |
+
mlaTaxonomy.settings = typeof mla_terms_search_vars === 'undefined' ? {} : mla_terms_search_vars;
|
20 |
+
mla_terms_search_vars = void 0; // delete won't work on Globals
|
21 |
+
|
22 |
+
/**
|
23 |
+
* termsSearch displays a popup modal window with text box, options and taxonomy list.
|
24 |
+
* termsSearch.open is called from an "onclick" attribute in the Media/Assistant submenu table.
|
25 |
+
*/
|
26 |
+
mlaTaxonomy.termsSearch = {
|
27 |
+
init: function() {
|
28 |
+
// Suppress form "submit" action for the "Terms Search" button
|
29 |
+
$( '#mla-terms-search-open' ).click( function( event ) {
|
30 |
+
event.preventDefault();
|
31 |
+
});
|
32 |
+
|
33 |
+
$( '#mla-terms-search-submit' ).click( function( event ) {
|
34 |
+
// $( '#mla-terms-search-search-div .spinner' ).show();
|
35 |
+
mlaTaxonomy.termsSearch.close();
|
36 |
+
});
|
37 |
+
|
38 |
+
// Close the termsSearch pop-up
|
39 |
+
$( '#mla-terms-search-close-div' ).click( mlaTaxonomy.termsSearch.close );
|
40 |
+
|
41 |
+
},
|
42 |
+
|
43 |
+
open: function() {
|
44 |
+
var overlay = $( '#mla-terms-search-overlay' );
|
45 |
+
|
46 |
+
if ( overlay.length === 0 ) {
|
47 |
+
$( 'body' ).append( '<div id="mla-terms-search-overlay"></div>' );
|
48 |
+
mlaTaxonomy.termsSearch.overlay();
|
49 |
+
}
|
50 |
+
|
51 |
+
overlay.show();
|
52 |
+
|
53 |
+
if ( mlaTaxonomy.settings.useDashicons ) {
|
54 |
+
$( '#mla-terms-search-close-div' ).addClass("mla-terms-search-close-div-dashicons");
|
55 |
+
} else {
|
56 |
+
$( '#mla-terms-search-close-div' ).html( 'x' );
|
57 |
+
}
|
58 |
+
/* if ( ! mlaTaxonomy.settings.useDashicons ) {
|
59 |
+
$( '#mla-terms-search-close-div' ).html( 'x' );
|
60 |
+
} */
|
61 |
+
|
62 |
+
$( '#mla-terms-search-div' ).show();
|
63 |
+
|
64 |
+
$( '#mla-terms-search-input ' ).focus().keyup( function( event ){
|
65 |
+
if ( event.which == 27 ) {
|
66 |
+
mlaTaxonomy.termsSearch.close();
|
67 |
+
} // close on Escape
|
68 |
+
});
|
69 |
+
|
70 |
+
return false;
|
71 |
+
},
|
72 |
+
|
73 |
+
close: function() {
|
74 |
+
$( '#mla-terms-search-response-div' ).html('');
|
75 |
+
$( '#mla-terms-search-div' ).hide();
|
76 |
+
$( '#mla-terms-search-overlay' ).hide();
|
77 |
+
},
|
78 |
+
|
79 |
+
overlay: function() {
|
80 |
+
$( '#mla-terms-search-overlay' ).on( 'click', function () {
|
81 |
+
mlaTaxonomy.termsSearch.close();
|
82 |
+
});
|
83 |
+
},
|
84 |
+
|
85 |
+
send: function() {
|
86 |
+
var post = {
|
87 |
+
ps: $( '#mla-terms-search-input' ).val(),
|
88 |
+
action: 'find_posts',
|
89 |
+
_ajax_nonce: $('#mla-terms-search-ajax-nonce').val()
|
90 |
+
},
|
91 |
+
spinner = $( '#mla-terms-search-search-div .spinner' ),
|
92 |
+
ajaxResponse = null;
|
93 |
+
|
94 |
+
spinner.show();
|
95 |
+
|
96 |
+
$.ajax( ajaxurl, {
|
97 |
+
type: 'POST',
|
98 |
+
data: post,
|
99 |
+
dataType: mlaTaxonomy.settings.termsSearchDataType
|
100 |
+
}).always( function() {
|
101 |
+
spinner.hide();
|
102 |
+
}).done( function( response ) {
|
103 |
+
var responseData = 'no response.data', id = 0;
|
104 |
+
|
105 |
+
if ( 'xml' === mlaTaxonomy.settings.termsSearchDataType ) {
|
106 |
+
if ( 'string' === typeof( response ) ) {
|
107 |
+
response = { 'success': false, data: response };
|
108 |
+
} else {
|
109 |
+
ajaxResponse = wpAjax.parseAjaxResponse( response );
|
110 |
+
|
111 |
+
if ( ajaxResponse.errors ) {
|
112 |
+
response = { 'success': false, data: wpAjax.broken };
|
113 |
+
} else {
|
114 |
+
response = { 'success': true, data: ajaxResponse.responses[0].data };
|
115 |
+
}
|
116 |
+
}
|
117 |
+
}
|
118 |
+
|
119 |
+
if ( ! response.success ) {
|
120 |
+
if ( response.responseData ) {
|
121 |
+
responseData = response.data;
|
122 |
+
}
|
123 |
+
|
124 |
+
$( '#mla-terms-search-response-div' ).text( mlaTaxonomy.settings.ajaxDoneError + ' (' + responseData + ')' );
|
125 |
+
} else {
|
126 |
+
/*
|
127 |
+
* Add the (Unattached) row, then the post/page list
|
128 |
+
*/
|
129 |
+
$( '#mla-terms-search-response-div' ).html( response.data );
|
130 |
+
$( '#mla-terms-search-response-div table tbody tr:eq(0)' ).before( $( '#found-0-row' ).clone() );
|
131 |
+
|
132 |
+
/*
|
133 |
+
* See if we can "check" the current parent
|
134 |
+
*/
|
135 |
+
id = $( '#mla-terms-search-parent' ).val();
|
136 |
+
$( '#mla-terms-search-response-div #found-' + id ).each(function( index, element ){
|
137 |
+
$( this ).prop( 'checked', true );
|
138 |
+
});
|
139 |
+
}
|
140 |
+
}).fail( function( jqXHR, status ) {
|
141 |
+
if ( 200 == jqXHR.status ) {
|
142 |
+
$( '#mla-terms-search-response-div' ).text( '(' + status + ') ' + jqXHR.responseText );
|
143 |
+
} else {
|
144 |
+
$( '#mla-terms-search-response-div' ).text( mlaTaxonomy.settings.ajaxFailError + ' (' + status + '), jqXHR( ' + jqXHR.status + ', ' + jqXHR.statusText + ', ' + jqXHR.responseText + ')' );
|
145 |
+
}
|
146 |
+
});
|
147 |
+
}
|
148 |
+
}; // mlaTaxonomy.termsSearch
|
149 |
+
|
150 |
+
$( document ).ready( function() {
|
151 |
+
mlaTaxonomy.termsSearch.init();
|
152 |
+
});
|
153 |
+
})( jQuery );
|
js/mla-terms-search-scripts.min.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
var mlaTaxonomy={settings:{},utility:{},termsSearch:null};(function(a){mlaTaxonomy.settings=typeof mla_terms_search_vars==="undefined"?{}:mla_terms_search_vars;mla_terms_search_vars=void 0;mlaTaxonomy.termsSearch={init:function(){a("#mla-terms-search-open").click(function(b){b.preventDefault()});a("#mla-terms-search-submit").click(function(b){mlaTaxonomy.termsSearch.close()});a("#mla-terms-search-close-div").click(mlaTaxonomy.termsSearch.close)},open:function(){var b=a("#mla-terms-search-overlay");if(b.length===0){a("body").append('<div id="mla-terms-search-overlay"></div>');mlaTaxonomy.termsSearch.overlay()}b.show();if(mlaTaxonomy.settings.useDashicons){a("#mla-terms-search-close-div").addClass("mla-terms-search-close-div-dashicons")}else{a("#mla-terms-search-close-div").html("x")}a("#mla-terms-search-div").show();a("#mla-terms-search-input ").focus().keyup(function(c){if(c.which==27){mlaTaxonomy.termsSearch.close()}});return false},close:function(){a("#mla-terms-search-response-div").html("");a("#mla-terms-search-div").hide();a("#mla-terms-search-overlay").hide()},overlay:function(){a("#mla-terms-search-overlay").on("click",function(){mlaTaxonomy.termsSearch.close()})},send:function(){var b={ps:a("#mla-terms-search-input").val(),action:"find_posts",_ajax_nonce:a("#mla-terms-search-ajax-nonce").val()},d=a("#mla-terms-search-search-div .spinner"),c=null;d.show();a.ajax(ajaxurl,{type:"POST",data:b,dataType:mlaTaxonomy.settings.termsSearchDataType}).always(function(){d.hide()}).done(function(e){var f="no response.data",g=0;if("xml"===mlaTaxonomy.settings.termsSearchDataType){if("string"===typeof(e)){e={success:false,data:e}}else{c=wpAjax.parseAjaxResponse(e);if(c.errors){e={success:false,data:wpAjax.broken}}else{e={success:true,data:c.responses[0].data}}}}if(!e.success){if(e.responseData){f=e.data}a("#mla-terms-search-response-div").text(mlaTaxonomy.settings.ajaxDoneError+" ("+f+")")}else{a("#mla-terms-search-response-div").html(e.data);a("#mla-terms-search-response-div table tbody tr:eq(0)").before(a("#found-0-row").clone());g=a("#mla-terms-search-parent").val();a("#mla-terms-search-response-div #found-"+g).each(function(h,i){a(this).prop("checked",true)})}}).fail(function(f,e){if(200==f.status){a("#mla-terms-search-response-div").text("("+e+") "+f.responseText)}else{a("#mla-terms-search-response-div").text(mlaTaxonomy.settings.ajaxFailError+" ("+e+"), jqXHR( "+f.status+", "+f.statusText+", "+f.responseText+")")}})}};a(document).ready(function(){mlaTaxonomy.termsSearch.init()})})(jQuery);
|
languages/media-library-assistant-en_US.pot
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Media Library Assistant\n"
|
4 |
-
"POT-Creation-Date: 2014-
|
5 |
-
"PO-Revision-Date: 2014-
|
6 |
"Last-Translator: David Lingren <david@fairtradejudaica.org>\n"
|
7 |
"Language-Team: David Lingren <david@fairtradejudaica.org>\n"
|
8 |
"Language: en_US\n"
|
@@ -89,8 +89,8 @@ msgid ""
|
|
89 |
msgstr ""
|
90 |
|
91 |
#. translators: 1: function name 2: non-array value
|
92 |
-
#: includes/class-mla-data.php:1256 includes/class-mla-
|
93 |
-
#: includes/class-mla-main.php:
|
94 |
#: includes/class-mla-mime-types.php:483
|
95 |
#: includes/class-mla-mime-types.php:1218
|
96 |
#: includes/class-mla-mime-types.php:2355 includes/class-mla-settings.php:1188
|
@@ -101,245 +101,245 @@ 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
|
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
|
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:
|
156 |
-
#: includes/class-mla-data.php:
|
157 |
#, php-format
|
158 |
-
msgid "
|
159 |
msgstr ""
|
160 |
|
161 |
-
#. translators: 1:
|
162 |
-
#: includes/class-mla-data.php:
|
163 |
#, php-format
|
164 |
msgctxt "error_log"
|
165 |
-
msgid "DEBUG:
|
166 |
msgstr ""
|
167 |
|
168 |
-
#. translators: 1:
|
169 |
-
#: includes/class-mla-data.php:
|
170 |
#, php-format
|
171 |
-
msgid "
|
172 |
msgstr ""
|
173 |
|
174 |
-
#. translators: 1:
|
175 |
-
#: includes/class-mla-data.php:
|
176 |
#, php-format
|
177 |
msgctxt "error_log"
|
178 |
-
msgid "DEBUG:
|
179 |
msgstr ""
|
180 |
|
181 |
-
#. translators: 1:
|
182 |
-
#: includes/class-mla-data.php:
|
183 |
#, php-format
|
184 |
msgid "mla_query_posts_orderby_filter = \"%1$s\"."
|
185 |
msgstr ""
|
186 |
|
187 |
-
#. translators: 1:
|
188 |
-
#: includes/class-mla-data.php:
|
189 |
#, php-format
|
190 |
msgctxt "error_log"
|
191 |
msgid "DEBUG: mla_query_posts_orderby_filter = \"%1$s\"."
|
192 |
msgstr ""
|
193 |
|
194 |
#. translators: 1: SQL clauses
|
195 |
-
#: includes/class-mla-data.php:
|
196 |
#, php-format
|
197 |
msgid "mla_query_posts_clauses_filter = \"%1$s\"."
|
198 |
msgstr ""
|
199 |
|
200 |
#. translators: 1: SQL clauses
|
201 |
-
#: includes/class-mla-data.php:
|
202 |
#, php-format
|
203 |
msgctxt "error_log"
|
204 |
msgid "DEBUG: mla_query_posts_clauses_filter = \"%1$s\"."
|
205 |
msgstr ""
|
206 |
|
207 |
#. translators: 1: SQL clauses
|
208 |
-
#: includes/class-mla-data.php:
|
209 |
#, php-format
|
210 |
msgid "mla_query_posts_clauses_request_filter = \"%1$s\"."
|
211 |
msgstr ""
|
212 |
|
213 |
#. translators: 1: SQL clauses
|
214 |
-
#: includes/class-mla-data.php:
|
215 |
#, php-format
|
216 |
msgctxt "error_log"
|
217 |
msgid "DEBUG: mla_query_posts_clauses_request_filter = \"%1$s\"."
|
218 |
msgstr ""
|
219 |
|
220 |
#. translators: 1: post ID
|
221 |
-
#: includes/class-mla-data.php:
|
222 |
#, php-format
|
223 |
msgctxt "error_log"
|
224 |
msgid "ERROR: mla_get_attachment_by_id(%1$d) not found."
|
225 |
msgstr ""
|
226 |
|
227 |
#. translators: 1: post ID 2: post_type
|
228 |
-
#: includes/class-mla-data.php:
|
229 |
#, php-format
|
230 |
msgctxt "error_log"
|
231 |
msgid "ERROR: mla_get_attachment_by_id(%1$d) wrong post_type \"%2$s\"."
|
232 |
msgstr ""
|
233 |
|
234 |
-
#: includes/class-mla-data.php:
|
235 |
msgid "NO REFERENCE TESTS"
|
236 |
msgstr ""
|
237 |
|
238 |
-
#: includes/class-mla-data.php:
|
239 |
-
#: includes/class-mla-options.php:
|
240 |
msgid "ORPHAN"
|
241 |
msgstr ""
|
242 |
|
243 |
-
#: includes/class-mla-data.php:
|
244 |
msgid "UNUSED"
|
245 |
msgstr ""
|
246 |
|
247 |
-
#: includes/class-mla-data.php:
|
248 |
msgid "UNATTACHED"
|
249 |
msgstr ""
|
250 |
|
251 |
-
#: includes/class-mla-data.php:
|
252 |
msgid "INVALID PARENT"
|
253 |
msgstr ""
|
254 |
|
255 |
#. translators: 1: post_type, 2: post_title, 3: post ID, 4: query string, 5: error message
|
256 |
-
#: includes/class-mla-data.php:
|
257 |
#, php-format
|
258 |
msgid "(%1$s) %2$s (ID %3$d) query \"%4$s\" failed, returning \"%5$s\""
|
259 |
msgstr ""
|
260 |
|
261 |
#. translators: 1: index
|
262 |
-
#: includes/class-mla-data.php:
|
263 |
#, php-format
|
264 |
msgctxt "error_log"
|
265 |
msgid "ERROR: _build_pdf_indirect_objects bad value at $index = \"%1$d\"."
|
266 |
msgstr ""
|
267 |
|
268 |
#. translators: 1: source offset 2: nest level
|
269 |
-
#: includes/class-mla-data.php:
|
270 |
#, php-format
|
271 |
msgctxt "error_log"
|
272 |
msgid "ERROR: _parse_pdf_dictionary offset = %1$d, nest = %2$d."
|
273 |
msgstr ""
|
274 |
|
275 |
#. translators: 1: dictionary excerpt
|
276 |
-
#: includes/class-mla-data.php:
|
277 |
#, php-format
|
278 |
msgctxt "error_log"
|
279 |
msgid "ERROR: _parse_pdf_dictionary no end delimiter dump = %1$s."
|
280 |
msgstr ""
|
281 |
|
282 |
#. translators: 1: entry name 2: value excerpt
|
283 |
-
#: includes/class-mla-data.php:
|
284 |
#, php-format
|
285 |
msgctxt "error_log"
|
286 |
msgid "ERROR: _parse_pdf_dictionary bad value [ %1$s ] dump = %2$s"
|
287 |
msgstr ""
|
288 |
|
289 |
-
#: includes/class-mla-data.php:
|
290 |
msgctxt "error_log"
|
291 |
msgid "ERROR: _parse_xmp_metadata xml_parse_into_struct failed."
|
292 |
msgstr ""
|
293 |
|
294 |
-
#: includes/class-mla-data.php:
|
295 |
msgctxt "error_log"
|
296 |
msgid "ERROR: _parse_xmp_metadata set option failed."
|
297 |
msgstr ""
|
298 |
|
299 |
#. translators: 1: path and file
|
300 |
-
#: includes/class-mla-data.php:
|
301 |
#, php-format
|
302 |
msgctxt "error_log"
|
303 |
msgid "ERROR: File \"%1$s\", startxref not found."
|
304 |
msgstr ""
|
305 |
|
306 |
#. translators: 1: meta_key
|
307 |
-
#: includes/class-mla-data.php:
|
308 |
#, php-format
|
309 |
msgid "Deleting meta:%1$s"
|
310 |
msgstr ""
|
311 |
|
312 |
#. translators: 1: meta_key
|
313 |
-
#: includes/class-mla-data.php:
|
314 |
#, php-format
|
315 |
msgid "ERROR: meta:%1$s not found"
|
316 |
msgstr ""
|
317 |
|
318 |
#. translators: 1: meta_key 2: meta_value
|
319 |
-
#: includes/class-mla-data.php:
|
320 |
#, php-format
|
321 |
msgid "Adding meta:%1$s = %2$s"
|
322 |
msgstr ""
|
323 |
|
324 |
#. translators: 1: meta_key
|
325 |
-
#: includes/class-mla-data.php:
|
326 |
#, php-format
|
327 |
msgid "ERROR: Adding meta:%1$s; not found"
|
328 |
msgstr ""
|
329 |
|
330 |
#. translators: 1: meta_key
|
331 |
-
#: includes/class-mla-data.php:
|
332 |
#, php-format
|
333 |
msgid "Deleting Null meta:%1$s"
|
334 |
msgstr ""
|
335 |
|
336 |
#. translators: 1: element name 2: old_value 3: new_value
|
337 |
-
#: includes/class-mla-data.php:
|
338 |
-
#: includes/class-mla-data.php:
|
339 |
-
#: includes/class-mla-data.php:
|
340 |
-
#: includes/class-mla-data.php:
|
341 |
-
#: includes/class-mla-data.php:
|
342 |
-
#: includes/class-mla-data.php:
|
343 |
#: includes/class-mla-mime-types.php:1052
|
344 |
#: includes/class-mla-mime-types.php:2119
|
345 |
#, php-format
|
@@ -347,329 +347,304 @@ msgid "Changing %1$s from \"%2$s\" to \"%3$s\""
|
|
347 |
msgstr ""
|
348 |
|
349 |
#. translators: 1: meta_key
|
350 |
-
#: includes/class-mla-data.php:
|
351 |
#, php-format
|
352 |
msgid "ERROR: Changing meta:%1$s; not found"
|
353 |
msgstr ""
|
354 |
|
355 |
#. translators: 1: meta_key
|
356 |
-
#: includes/class-mla-data.php:
|
357 |
#, php-format
|
358 |
msgid "Deleting %1$s"
|
359 |
msgstr ""
|
360 |
|
361 |
#. translators: 1: meta_key 2: new_value
|
362 |
-
#: includes/class-mla-data.php:
|
363 |
#, php-format
|
364 |
msgid "Adding %1$s = [%2$s]"
|
365 |
msgstr ""
|
366 |
|
367 |
#. translators: 1: meta_key 2: meta_value
|
368 |
-
#: includes/class-mla-data.php:
|
369 |
#, php-format
|
370 |
msgid "Adding %1$s = %2$s"
|
371 |
msgstr ""
|
372 |
|
373 |
#. translators: 1: meta_key
|
374 |
-
#: includes/class-mla-data.php:
|
375 |
#, php-format
|
376 |
msgid "Deleting old %1$s values"
|
377 |
msgstr ""
|
378 |
|
379 |
#. translators: 1: meta_key 2: old_value 3: new_value 4: update count
|
380 |
-
#: includes/class-mla-data.php:
|
381 |
#, php-format
|
382 |
msgid "Changing %1$s from \"%2$s\" to \"%3$s\"; %4$d updates"
|
383 |
msgstr ""
|
384 |
|
385 |
-
#: includes/class-mla-data.php:
|
386 |
msgid "ERROR: Could not retrieve Attachment."
|
387 |
msgstr ""
|
388 |
|
389 |
-
#: includes/class-mla-data.php:
|
390 |
-
#: includes/class-mla-main.php:
|
391 |
-
#: includes/class-mla-main.php:
|
392 |
-
#: includes/class-mla-options.php:
|
|
|
393 |
#: includes/mla-media-modal-js-template.php:32
|
394 |
msgid "Title"
|
395 |
msgstr ""
|
396 |
|
397 |
#. translators: 1: old_value
|
398 |
-
#: includes/class-mla-data.php:
|
399 |
#, php-format
|
400 |
msgid "ERROR: Could not change Name/Slug \"%1$s\"; name already exists"
|
401 |
msgstr ""
|
402 |
|
403 |
-
#: includes/class-mla-data.php:
|
404 |
-
#: includes/class-mla-main.php:
|
405 |
msgid "Name/Slug"
|
406 |
msgstr ""
|
407 |
|
408 |
#. translators: 1: old_value
|
409 |
-
#: includes/class-mla-data.php:
|
410 |
#, php-format
|
411 |
msgid "Deleting ALT Text, was \"%1$s\""
|
412 |
msgstr ""
|
413 |
|
414 |
#. translators: 1: old_value
|
415 |
-
#: includes/class-mla-data.php:
|
416 |
#, php-format
|
417 |
msgid "ERROR: Could not delete ALT Text, remains \"%1$s\""
|
418 |
msgstr ""
|
419 |
|
420 |
-
#: includes/class-mla-data.php:
|
421 |
-
#: includes/class-mla-main.php:
|
422 |
-
#: includes/class-mla-
|
423 |
-
#: includes/
|
424 |
-
#: includes/mla-media-modal-js-template.php:
|
425 |
msgid "ALT Text"
|
426 |
msgstr ""
|
427 |
|
428 |
#. translators: 1: old_value 2: new_value
|
429 |
-
#: includes/class-mla-data.php:
|
430 |
#, php-format
|
431 |
msgid "ERROR: Could not change ALT Text from \"%1$s\" to \"%2$s\""
|
432 |
msgstr ""
|
433 |
|
434 |
-
#: includes/class-mla-data.php:
|
435 |
-
#: includes/class-mla-main.php:
|
436 |
-
#: includes/class-mla-
|
|
|
437 |
#: includes/mla-media-modal-js-template.php:45
|
438 |
msgid "Caption"
|
439 |
msgstr ""
|
440 |
|
441 |
-
#: includes/class-mla-data.php:
|
442 |
-
#: includes/class-mla-main.php:
|
443 |
-
#: includes/class-mla-
|
444 |
-
#: includes/class-mla-settings.php:
|
445 |
-
#: includes/class-mla-settings.php:
|
|
|
446 |
#: includes/mla-media-modal-js-template.php:49
|
447 |
msgid "Description"
|
448 |
msgstr ""
|
449 |
|
450 |
-
#: includes/class-mla-data.php:
|
451 |
-
#: includes/class-mla-list-table.php:
|
452 |
-
#: includes/class-mla-options.php:
|
453 |
msgid "Parent"
|
454 |
msgstr ""
|
455 |
|
456 |
-
#: includes/class-mla-data.php:
|
457 |
-
#: includes/class-mla-edit-media.php:
|
458 |
-
#: includes/class-mla-main.php:
|
459 |
#: includes/class-mla-settings.php:1409
|
460 |
msgid "Menu Order"
|
461 |
msgstr ""
|
462 |
|
463 |
-
#: includes/class-mla-data.php:
|
464 |
-
#: includes/class-mla-main.php:
|
465 |
-
#: includes/class-mla-main.php:
|
466 |
msgid "Author"
|
467 |
msgstr ""
|
468 |
|
469 |
-
#: includes/class-mla-data.php:
|
470 |
msgid "Comments"
|
471 |
msgstr ""
|
472 |
|
473 |
-
#: includes/class-mla-data.php:
|
474 |
msgid "Pings"
|
475 |
msgstr ""
|
476 |
|
477 |
-
#: includes/class-mla-data.php:
|
478 |
msgid "Adding"
|
479 |
msgstr ""
|
480 |
|
481 |
-
#: includes/class-mla-data.php:
|
482 |
msgid "Removing"
|
483 |
msgstr ""
|
484 |
|
485 |
-
#: includes/class-mla-data.php:
|
486 |
msgid "Replacing"
|
487 |
msgstr ""
|
488 |
|
489 |
-
#: includes/class-mla-data.php:
|
490 |
msgid "Ignoring"
|
491 |
msgstr ""
|
492 |
|
493 |
#. translators: 1: action_name, 2: taxonomy
|
494 |
-
#: includes/class-mla-data.php:
|
495 |
#, php-format
|
496 |
msgid "%1$s \"%2$s\" terms"
|
497 |
msgstr ""
|
498 |
|
499 |
#. translators: 1: taxonomy
|
500 |
-
#: includes/class-mla-data.php:
|
501 |
#, php-format
|
502 |
msgid "You cannot assign \"%1$s\" terms"
|
503 |
msgstr ""
|
504 |
|
505 |
#. translators: 1: post ID
|
506 |
-
#: includes/class-mla-data.php:
|
507 |
#, php-format
|
508 |
msgid "Item %1$d, no changes detected."
|
509 |
msgstr ""
|
510 |
|
511 |
#. translators: 1: post ID
|
512 |
-
#: includes/class-mla-data.php:
|
513 |
#, php-format
|
514 |
msgid "Item %1$d updated."
|
515 |
msgstr ""
|
516 |
|
517 |
#. translators: 1: post ID
|
518 |
-
#: includes/class-mla-data.php:
|
519 |
#, php-format
|
520 |
msgid "ERROR: Item %1$d update failed."
|
521 |
msgstr ""
|
522 |
|
523 |
-
#: includes/class-mla-data.php:
|
524 |
-
#: includes/class-mla-edit-media.php:170 includes/class-mla-main.php:
|
525 |
-
#: includes/class-mla-main.php:
|
526 |
#: includes/class-mla-settings.php:307 includes/class-mla-settings.php:325
|
527 |
msgctxt "tag_delimiter"
|
528 |
msgid ","
|
529 |
msgstr ""
|
530 |
|
531 |
-
#: includes/class-mla-edit-media.php:172 includes/class-mla-main.php:
|
532 |
msgid "An ajax.fail error has occurred. Please reload the page and try again."
|
533 |
msgstr ""
|
534 |
|
535 |
-
#: includes/class-mla-edit-media.php:173 includes/class-mla-main.php:
|
536 |
msgid "An ajax.done error has occurred. Please reload the page and try again."
|
537 |
msgstr ""
|
538 |
|
539 |
-
#: includes/class-mla-edit-media.php:
|
540 |
msgid "Custom field mapping updated."
|
541 |
msgstr ""
|
542 |
|
543 |
-
#: includes/class-mla-edit-media.php:
|
544 |
msgid "IPTC/EXIF mapping updated."
|
545 |
msgstr ""
|
546 |
|
547 |
#. translators: date_i18n format for last modified date and time
|
548 |
-
#: includes/class-mla-edit-media.php:
|
549 |
msgid "M j, Y @ G:i"
|
550 |
msgstr ""
|
551 |
|
552 |
-
#: includes/class-mla-edit-media.php:
|
553 |
msgid "Last modified"
|
554 |
msgstr ""
|
555 |
|
556 |
-
#: includes/class-mla-edit-media.php:
|
557 |
msgid "Map Custom Field metadata for this item"
|
558 |
msgstr ""
|
559 |
|
560 |
-
#: includes/class-mla-edit-media.php:
|
561 |
msgid "Map Custom Field Metadata"
|
562 |
msgstr ""
|
563 |
|
564 |
-
#: includes/class-mla-edit-media.php:
|
565 |
msgid "Map IPTC/EXIF metadata for this item"
|
566 |
msgstr ""
|
567 |
|
568 |
-
#: includes/class-mla-edit-media.php:
|
569 |
msgid "Map IPTC/EXIF Metadata"
|
570 |
msgstr ""
|
571 |
|
572 |
-
#: includes/class-mla-edit-media.php:
|
573 |
-
#: includes/class-mla-main.php:
|
574 |
msgid "Parent Info"
|
575 |
msgstr ""
|
576 |
|
577 |
-
#: includes/class-mla-edit-media.php:
|
578 |
msgid "Attachment Metadata"
|
579 |
msgstr ""
|
580 |
|
581 |
-
#: includes/class-mla-edit-media.php:
|
582 |
-
#: includes/class-mla-main.php:
|
583 |
msgid "Featured in"
|
584 |
msgstr ""
|
585 |
|
586 |
-
#: includes/class-mla-edit-media.php:
|
587 |
-
#: includes/class-mla-main.php:
|
588 |
msgid "Inserted in"
|
589 |
msgstr ""
|
590 |
|
591 |
-
#: includes/class-mla-edit-media.php:
|
592 |
-
#: includes/class-mla-main.php:
|
593 |
#: includes/class-mla-settings.php:3317
|
594 |
msgid "Gallery in"
|
595 |
msgstr ""
|
596 |
|
597 |
-
#: includes/class-mla-edit-media.php:
|
598 |
-
#: includes/class-mla-main.php:
|
599 |
#: includes/class-mla-settings.php:3327
|
600 |
msgid "MLA Gallery in"
|
601 |
msgstr ""
|
602 |
|
603 |
#. translators: 1: function name 2: template key
|
604 |
-
#: includes/class-mla-edit-media.php:
|
605 |
#: includes/class-mla-settings.php:469
|
606 |
#, php-format
|
607 |
msgctxt "error_log"
|
608 |
msgid "ERROR: %1$s discarding \"%2$s\"; no title/order"
|
609 |
msgstr ""
|
610 |
|
611 |
-
#: includes/class-mla-edit-media.php:
|
612 |
msgid "Post Parent"
|
613 |
msgstr ""
|
614 |
|
615 |
-
#: includes/class-mla-edit-media.php:
|
616 |
-
#: includes/class-mla-main.php:1550
|
617 |
msgid "Select Parent"
|
618 |
msgstr ""
|
619 |
|
620 |
-
#: includes/class-mla-edit-media.php:
|
621 |
#: includes/class-mla-upload-optional-list-table.php:281
|
622 |
msgid "Select"
|
623 |
msgstr ""
|
624 |
|
625 |
-
#: includes/class-mla-edit-media.php:
|
626 |
-
#: includes/mla-media-
|
627 |
-
|
628 |
-
|
629 |
-
|
630 |
-
#: includes/class-mla-
|
631 |
-
|
632 |
-
msgstr ""
|
633 |
-
|
634 |
-
#: includes/class-mla-edit-media.php:432 includes/class-mla-main.php:1553
|
635 |
-
msgid "Unattached"
|
636 |
-
msgstr ""
|
637 |
-
|
638 |
-
#: includes/class-mla-edit-media.php:437 includes/class-mla-main.php:1558
|
639 |
-
#: includes/class-mla-main.php:1591 includes/class-mla-main.php:1936
|
640 |
-
#: includes/class-mla-settings.php:1157 includes/class-mla-settings.php:1416
|
641 |
-
#: includes/class-mla-settings.php:1513 includes/class-mla-settings.php:1585
|
642 |
-
#: includes/class-mla-settings.php:1881
|
643 |
-
msgid "Cancel"
|
644 |
-
msgstr ""
|
645 |
-
|
646 |
-
#: includes/class-mla-edit-media.php:441 includes/class-mla-main.php:1562
|
647 |
-
#: includes/class-mla-main.php:1592 includes/class-mla-main.php:1937
|
648 |
-
#: includes/class-mla-settings.php:1156 includes/class-mla-settings.php:1417
|
649 |
-
#: includes/class-mla-settings.php:1512 includes/class-mla-settings.php:1882
|
650 |
-
msgid "Update"
|
651 |
-
msgstr ""
|
652 |
-
|
653 |
-
#: includes/class-mla-edit-media.php:504 includes/class-mla-edit-media.php:539
|
654 |
-
#: includes/class-mla-edit-media.php:572 includes/class-mla-edit-media.php:604
|
655 |
-
#: includes/class-mla-list-table.php:820 includes/class-mla-list-table.php:857
|
656 |
-
#: includes/class-mla-list-table.php:892 includes/class-mla-list-table.php:926
|
657 |
-
#: includes/class-mla-main.php:1794 includes/class-mla-main.php:1813
|
658 |
-
#: includes/class-mla-main.php:1830 includes/class-mla-main.php:1846
|
659 |
msgid "PARENT"
|
660 |
msgstr ""
|
661 |
|
662 |
-
#: includes/class-mla-edit-media.php:
|
663 |
msgid "Most Used"
|
664 |
msgstr ""
|
665 |
|
666 |
#. translators: %s: add new taxonomy label
|
667 |
-
#: includes/class-mla-edit-media.php:
|
668 |
#, php-format
|
669 |
msgid "+ %s"
|
670 |
msgstr ""
|
671 |
|
672 |
-
#: includes/class-mla-edit-media.php:
|
673 |
msgid "? Search"
|
674 |
msgstr ""
|
675 |
|
@@ -683,67 +658,67 @@ msgstr ""
|
|
683 |
msgid "No"
|
684 |
msgstr ""
|
685 |
|
686 |
-
#: includes/class-mla-list-table.php:
|
687 |
msgctxt "list_table_column"
|
688 |
msgid "ID/Parent"
|
689 |
msgstr ""
|
690 |
|
691 |
-
#: includes/class-mla-list-table.php:
|
692 |
msgctxt "list_table_column"
|
693 |
msgid "Title/Name"
|
694 |
msgstr ""
|
695 |
|
696 |
-
#: includes/class-mla-list-table.php:
|
697 |
msgctxt "list_table_column"
|
698 |
msgid "Title"
|
699 |
msgstr ""
|
700 |
|
701 |
-
#: includes/class-mla-list-table.php:
|
702 |
msgctxt "list_table_column"
|
703 |
msgid "Name"
|
704 |
msgstr ""
|
705 |
|
706 |
-
#: includes/class-mla-list-table.php:
|
707 |
msgctxt "list_table_column"
|
708 |
msgid "Parent ID"
|
709 |
msgstr ""
|
710 |
|
711 |
-
#: includes/class-mla-list-table.php:
|
712 |
msgctxt "list_table_column"
|
713 |
msgid "Menu Order"
|
714 |
msgstr ""
|
715 |
|
716 |
-
#: includes/class-mla-list-table.php:
|
717 |
msgctxt "list_table_column"
|
718 |
msgid "Featured in"
|
719 |
msgstr ""
|
720 |
|
721 |
-
#: includes/class-mla-list-table.php:
|
722 |
msgctxt "list_table_column"
|
723 |
msgid "Inserted in"
|
724 |
msgstr ""
|
725 |
|
726 |
-
#: includes/class-mla-list-table.php:
|
727 |
msgctxt "list_table_column"
|
728 |
msgid "Gallery in"
|
729 |
msgstr ""
|
730 |
|
731 |
-
#: includes/class-mla-list-table.php:
|
732 |
msgctxt "list_table_column"
|
733 |
msgid "MLA Gallery in"
|
734 |
msgstr ""
|
735 |
|
736 |
-
#: includes/class-mla-list-table.php:
|
737 |
msgctxt "list_table_column"
|
738 |
msgid "ALT Text"
|
739 |
msgstr ""
|
740 |
|
741 |
-
#: includes/class-mla-list-table.php:
|
742 |
msgctxt "list_table_column"
|
743 |
msgid "Caption"
|
744 |
msgstr ""
|
745 |
|
746 |
-
#: includes/class-mla-list-table.php:
|
747 |
#: includes/class-mla-upload-list-table.php:186
|
748 |
#: includes/class-mla-upload-optional-list-table.php:171
|
749 |
#: includes/class-mla-view-list-table.php:179
|
@@ -751,61 +726,62 @@ msgctxt "list_table_column"
|
|
751 |
msgid "Description"
|
752 |
msgstr ""
|
753 |
|
754 |
-
#: includes/class-mla-list-table.php:
|
755 |
#: includes/class-mla-upload-list-table.php:178
|
756 |
#: includes/class-mla-upload-optional-list-table.php:168
|
757 |
msgctxt "list_table_column"
|
758 |
msgid "MIME Type"
|
759 |
msgstr ""
|
760 |
|
761 |
-
#: includes/class-mla-list-table.php:
|
762 |
msgctxt "list_table_column"
|
763 |
msgid "File URL"
|
764 |
msgstr ""
|
765 |
|
766 |
-
#: includes/class-mla-list-table.php:
|
767 |
msgctxt "list_table_column"
|
768 |
msgid "Base File"
|
769 |
msgstr ""
|
770 |
|
771 |
-
#: includes/class-mla-list-table.php:
|
772 |
msgctxt "list_table_column"
|
773 |
msgid "Date"
|
774 |
msgstr ""
|
775 |
|
776 |
-
#: includes/class-mla-list-table.php:
|
777 |
msgctxt "list_table_column"
|
778 |
msgid "Last Modified"
|
779 |
msgstr ""
|
780 |
|
781 |
-
#: includes/class-mla-list-table.php:
|
782 |
msgctxt "list_table_column"
|
783 |
msgid "Author"
|
784 |
msgstr ""
|
785 |
|
786 |
-
#: includes/class-mla-list-table.php:
|
787 |
msgctxt "list_table_column"
|
788 |
msgid "Attached to"
|
789 |
msgstr ""
|
790 |
|
791 |
-
#: includes/class-mla-list-table.php:
|
792 |
-
#: includes/class-mla-list-table.php:
|
793 |
-
#: includes/class-mla-options.php:
|
794 |
-
#: includes/class-mla-options.php:
|
795 |
msgid "None"
|
796 |
msgstr ""
|
797 |
|
798 |
-
#: includes/class-mla-list-table.php:
|
799 |
-
#: includes/class-mla-list-table.php:
|
|
|
800 |
msgid "Filter by"
|
801 |
msgstr ""
|
802 |
|
803 |
-
#: includes/class-mla-list-table.php:
|
804 |
msgid "not supported"
|
805 |
msgstr ""
|
806 |
|
807 |
#. translators: 1: column_name 2: column_values
|
808 |
-
#: includes/class-mla-list-table.php:
|
809 |
#: includes/class-mla-upload-list-table.php:247
|
810 |
#: includes/class-mla-upload-optional-list-table.php:228
|
811 |
#: includes/class-mla-view-list-table.php:236
|
@@ -813,12 +789,12 @@ msgstr ""
|
|
813 |
msgid "column_default: %1$s, %2$s"
|
814 |
msgstr ""
|
815 |
|
816 |
-
#: includes/class-mla-list-table.php:
|
817 |
-
#: includes/class-mla-list-table.php:
|
818 |
-
#: includes/class-mla-list-table.php:
|
819 |
-
#: includes/class-mla-list-table.php:
|
820 |
-
#: includes/class-mla-list-table.php:
|
821 |
-
#: includes/class-mla-list-table.php:
|
822 |
#: includes/class-mla-upload-list-table.php:312
|
823 |
#: includes/class-mla-upload-list-table.php:610
|
824 |
#: includes/class-mla-view-list-table.php:302
|
@@ -826,157 +802,169 @@ msgstr ""
|
|
826 |
msgid "Edit"
|
827 |
msgstr ""
|
828 |
|
829 |
-
#: includes/class-mla-list-table.php:
|
830 |
msgid "Restore this item from the Trash"
|
831 |
msgstr ""
|
832 |
|
833 |
-
#: includes/class-mla-list-table.php:
|
834 |
-
#: includes/class-mla-list-table.php:
|
835 |
msgid "Restore"
|
836 |
msgstr ""
|
837 |
|
838 |
-
#: includes/class-mla-list-table.php:
|
839 |
#: includes/class-mla-upload-list-table.php:312
|
840 |
#: includes/class-mla-view-list-table.php:302
|
841 |
msgid "Edit this item"
|
842 |
msgstr ""
|
843 |
|
844 |
-
#: includes/class-mla-list-table.php:
|
845 |
#: includes/class-mla-upload-list-table.php:314
|
846 |
#: includes/class-mla-view-list-table.php:304
|
847 |
msgid "Edit this item inline"
|
848 |
msgstr ""
|
849 |
|
850 |
-
#: includes/class-mla-list-table.php:
|
851 |
-
#: includes/class-mla-options.php:
|
852 |
#: includes/class-mla-upload-list-table.php:314
|
853 |
#: includes/class-mla-view-list-table.php:304
|
854 |
msgid "Quick Edit"
|
855 |
msgstr ""
|
856 |
|
857 |
-
#: includes/class-mla-list-table.php:
|
858 |
msgid "Move this item to the Trash"
|
859 |
msgstr ""
|
860 |
|
861 |
-
#: includes/class-mla-list-table.php:
|
862 |
-
#: includes/class-mla-list-table.php:
|
863 |
msgid "Move to Trash"
|
864 |
msgstr ""
|
865 |
|
866 |
-
#: includes/class-mla-list-table.php:
|
867 |
#: includes/class-mla-upload-list-table.php:318
|
868 |
#: includes/class-mla-view-list-table.php:310
|
869 |
msgid "Delete this item Permanently"
|
870 |
msgstr ""
|
871 |
|
872 |
-
#: includes/class-mla-list-table.php:
|
873 |
-
#: includes/class-mla-list-table.php:
|
874 |
-
#: includes/class-mla-list-table.php:
|
875 |
#: includes/class-mla-upload-list-table.php:318
|
876 |
#: includes/class-mla-view-list-table.php:310
|
877 |
#: includes/class-mla-view-list-table.php:514
|
878 |
msgid "Delete Permanently"
|
879 |
msgstr ""
|
880 |
|
881 |
-
#: includes/class-mla-list-table.php:
|
882 |
msgid "View"
|
883 |
msgstr ""
|
884 |
|
885 |
-
#: includes/class-mla-list-table.php:
|
|
|
886 |
msgid "(no title)"
|
887 |
msgstr ""
|
888 |
|
889 |
-
#: includes/class-mla-list-table.php:
|
890 |
msgid "Filter by Parent ID"
|
891 |
msgstr ""
|
892 |
|
893 |
-
#: includes/class-mla-list-table.php:
|
894 |
msgid "(no title: bad ID)"
|
895 |
msgstr ""
|
896 |
|
897 |
-
#: includes/class-mla-list-table.php:
|
898 |
-
#: includes/class-mla-list-table.php:
|
899 |
-
#: includes/class-mla-
|
900 |
-
#: includes/class-mla-main.php:
|
901 |
-
#: includes/class-mla-
|
902 |
-
#: includes/class-mla-options.php:
|
|
|
903 |
msgid "Disabled"
|
904 |
msgstr ""
|
905 |
|
906 |
-
#: includes/class-mla-list-table.php:
|
907 |
#: includes/class-mla-settings.php:1868
|
908 |
msgid "MIME Type"
|
909 |
msgstr ""
|
910 |
|
911 |
-
#: includes/class-mla-list-table.php:
|
912 |
-
#: includes/class-mla-list-table.php:
|
913 |
msgid "Unpublished"
|
914 |
msgstr ""
|
915 |
|
916 |
#. translators: 1: upload/last modified date and time
|
917 |
-
#: includes/class-mla-list-table.php:
|
918 |
-
#: includes/class-mla-list-table.php:
|
919 |
#, php-format
|
920 |
msgid "%1$s from now"
|
921 |
msgstr ""
|
922 |
|
923 |
#. translators: 1: upload/last modified date and time
|
924 |
-
#: includes/class-mla-list-table.php:
|
925 |
-
#: includes/class-mla-list-table.php:
|
926 |
#, php-format
|
927 |
msgid "%1$s ago"
|
928 |
msgstr ""
|
929 |
|
930 |
#. translators: format for upload/last modified date
|
931 |
-
|
932 |
-
#: includes/class-mla-list-table.php:1084
|
933 |
#: includes/class-mla-list-table.php:1140
|
|
|
|
|
934 |
msgid "Y/m/d"
|
935 |
msgstr ""
|
936 |
|
937 |
-
#: includes/class-mla-list-table.php:
|
938 |
msgid "Filter by Author ID"
|
939 |
msgstr ""
|
940 |
|
941 |
-
#: includes/class-mla-list-table.php:
|
942 |
msgctxt "post_mime_types_singular"
|
943 |
msgid "Unattached"
|
944 |
msgstr ""
|
945 |
|
946 |
-
#: includes/class-mla-list-table.php:
|
947 |
msgid "Set Parent"
|
948 |
msgstr ""
|
949 |
|
950 |
-
#: includes/class-mla-list-table.php:
|
951 |
msgctxt "uploaded files"
|
952 |
msgid "All"
|
953 |
msgid_plural "All"
|
954 |
msgstr[0] ""
|
955 |
msgstr[1] ""
|
956 |
|
957 |
-
#: includes/class-mla-list-table.php:
|
958 |
msgid "Filter"
|
959 |
msgstr ""
|
960 |
|
961 |
-
#: includes/class-mla-list-table.php:
|
|
|
|
|
|
|
|
|
|
|
962 |
msgid "Clear Filter-by"
|
963 |
msgstr ""
|
964 |
|
965 |
-
#: includes/class-mla-list-table.php:
|
966 |
msgid "Empty Trash"
|
967 |
msgstr ""
|
968 |
|
969 |
-
#: includes/class-mla-main.php:
|
970 |
#: includes/class-mla-settings.php:322
|
971 |
msgid "Error while saving the changes."
|
972 |
msgstr ""
|
973 |
|
974 |
-
#: includes/class-mla-main.php:
|
975 |
#: includes/class-mla-settings.php:323
|
976 |
msgid "Remove From Bulk Edit"
|
977 |
msgstr ""
|
978 |
|
979 |
-
#: includes/class-mla-main.php:
|
|
|
|
|
|
|
|
|
980 |
#, php-format
|
981 |
msgid "Item permanently deleted."
|
982 |
msgid_plural "%d items permanently deleted."
|
@@ -984,45 +972,45 @@ msgstr[0] ""
|
|
984 |
msgstr[1] ""
|
985 |
|
986 |
#. translators: 1: post ID
|
987 |
-
#: includes/class-mla-main.php:
|
988 |
#, php-format
|
989 |
msgid "Item %1$d moved to Trash."
|
990 |
msgstr ""
|
991 |
|
992 |
-
#: includes/class-mla-main.php:
|
993 |
msgid "Entries per page"
|
994 |
msgstr ""
|
995 |
|
996 |
-
#: includes/class-mla-main.php:
|
997 |
msgid "You do not have permission to manage attachments."
|
998 |
msgstr ""
|
999 |
|
1000 |
#. translators: 1: bulk_action, e.g., delete, edit, restore, trash
|
1001 |
-
#: includes/class-mla-main.php:
|
1002 |
#: includes/class-mla-settings.php:1733
|
1003 |
#, php-format
|
1004 |
msgid "Unknown bulk action %1$s"
|
1005 |
msgstr ""
|
1006 |
|
1007 |
#. translators: 1: action name, e.g., edit
|
1008 |
-
#: includes/class-mla-main.php:
|
1009 |
#: includes/class-mla-settings.php:1744
|
1010 |
#, php-format
|
1011 |
msgid "Bulk Action %1$s - no items selected."
|
1012 |
msgstr ""
|
1013 |
|
1014 |
-
#: includes/class-mla-main.php:
|
1015 |
-
#: includes/class-mla-main.php:
|
1016 |
#: includes/class-mla-settings.php:547 includes/class-mla-settings.php:587
|
1017 |
#: includes/class-mla-settings.php:1220 includes/class-mla-settings.php:1297
|
1018 |
#: includes/class-mla-settings.php:1686 includes/class-mla-settings.php:1765
|
1019 |
#: includes/class-mla-settings.php:2316 includes/class-mla-settings.php:2439
|
1020 |
-
#: includes/class-mla-settings.php:2574 includes/class-mla-shortcodes.php:
|
1021 |
-
#: includes/class-mla-shortcodes.php:
|
1022 |
msgid "ERROR:"
|
1023 |
msgstr ""
|
1024 |
|
1025 |
-
#: includes/class-mla-main.php:
|
1026 |
#, php-format
|
1027 |
msgctxt "deleted items"
|
1028 |
msgid "%s item deleted."
|
@@ -1030,256 +1018,327 @@ msgid_plural "%s items deleted."
|
|
1030 |
msgstr[0] ""
|
1031 |
msgstr[1] ""
|
1032 |
|
1033 |
-
#: includes/class-mla-main.php:
|
1034 |
msgid "No items deleted."
|
1035 |
msgstr ""
|
1036 |
|
1037 |
-
#: includes/class-mla-main.php:
|
1038 |
msgid "Edit single item"
|
1039 |
msgstr ""
|
1040 |
|
1041 |
#. translators: 1: post ID
|
1042 |
-
#: includes/class-mla-main.php:
|
1043 |
#, php-format
|
1044 |
msgid "Item %1$d cancelled."
|
1045 |
msgstr ""
|
1046 |
|
|
|
|
|
|
|
|
|
|
|
1047 |
#. translators: 1: bulk_action, e.g., single_item_delete, single_item_edit
|
1048 |
-
#: includes/class-mla-main.php:
|
1049 |
#: includes/class-mla-settings.php:1783
|
1050 |
#, php-format
|
1051 |
msgid "Unknown mla_admin_action - \"%1$s\""
|
1052 |
msgstr ""
|
1053 |
|
1054 |
-
#: includes/class-mla-main.php:
|
|
|
|
|
|
|
|
|
1055 |
msgid "post/parent results for"
|
1056 |
msgstr ""
|
1057 |
|
1058 |
-
#: includes/class-mla-main.php:
|
1059 |
msgid "search results for"
|
1060 |
msgstr ""
|
1061 |
|
1062 |
-
#: includes/class-mla-main.php:
|
1063 |
-
|
1064 |
-
msgid "Search Media"
|
1065 |
msgstr ""
|
1066 |
|
1067 |
-
#: includes/class-mla-main.php:
|
1068 |
-
|
1069 |
-
msgid "and"
|
1070 |
msgstr ""
|
1071 |
|
1072 |
-
#: includes/class-mla-main.php:
|
1073 |
-
#: includes/mla-
|
1074 |
-
msgid "
|
1075 |
msgstr ""
|
1076 |
|
1077 |
-
#: includes/class-mla-main.php:
|
1078 |
-
|
1079 |
-
|
1080 |
-
|
1081 |
-
#: includes/mla-
|
1082 |
-
msgid "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1083 |
msgstr ""
|
1084 |
|
1085 |
-
#: includes/class-mla-main.php:
|
1086 |
msgid "ERROR: No post ID found"
|
1087 |
msgstr ""
|
1088 |
|
1089 |
-
#: includes/class-mla-main.php:
|
1090 |
-
#: includes/class-mla-main.php:
|
1091 |
msgid "You are not allowed to edit this Attachment."
|
1092 |
msgstr ""
|
1093 |
|
1094 |
-
#: includes/class-mla-main.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1095 |
msgid "more"
|
1096 |
msgstr ""
|
1097 |
|
1098 |
-
#: includes/class-mla-main.php:
|
1099 |
msgid "less"
|
1100 |
msgstr ""
|
1101 |
|
1102 |
-
#: includes/class-mla-main.php:
|
1103 |
msgid "Add"
|
1104 |
msgstr ""
|
1105 |
|
1106 |
-
#: includes/class-mla-main.php:
|
1107 |
msgid "Remove"
|
1108 |
msgstr ""
|
1109 |
|
1110 |
-
#: includes/class-mla-main.php:
|
1111 |
-
#: includes/class-mla-options.php:
|
1112 |
-
#: includes/class-mla-options.php:
|
1113 |
-
#: includes/class-mla-options.php:
|
1114 |
-
#: includes/class-mla-options.php:
|
1115 |
msgid "Replace"
|
1116 |
msgstr ""
|
1117 |
|
1118 |
-
#: includes/class-mla-main.php:
|
1119 |
msgid "Parent ID"
|
1120 |
msgstr ""
|
1121 |
|
1122 |
-
#: includes/class-mla-main.php:
|
1123 |
-
#: includes/class-mla-options.php:
|
1124 |
#: includes/class-mla-settings.php:1883
|
1125 |
msgid "Bulk Edit"
|
1126 |
msgstr ""
|
1127 |
|
1128 |
-
#: includes/class-mla-main.php:
|
1129 |
#: includes/class-mla-settings.php:1419 includes/class-mla-settings.php:1457
|
1130 |
#: includes/class-mla-settings.php:1885
|
1131 |
msgid "No Change"
|
1132 |
msgstr ""
|
1133 |
|
1134 |
-
#: includes/class-mla-main.php:
|
1135 |
msgid "Allow"
|
1136 |
msgstr ""
|
1137 |
|
1138 |
-
#: includes/class-mla-main.php:
|
1139 |
msgid "Do not allow"
|
1140 |
msgstr ""
|
1141 |
|
1142 |
-
#: includes/class-mla-main.php:
|
1143 |
msgid "Map IPTC/EXIF metadata"
|
1144 |
msgstr ""
|
1145 |
|
1146 |
-
#: includes/class-mla-main.php:
|
1147 |
msgid "ERROR: You are not allowed to delete this item."
|
1148 |
msgstr ""
|
1149 |
|
1150 |
#. translators: 1: post ID
|
1151 |
-
#: includes/class-mla-main.php:
|
1152 |
#, php-format
|
1153 |
msgid "ERROR: Item %1$d could NOT be deleted."
|
1154 |
msgstr ""
|
1155 |
|
1156 |
#. translators: 1: post ID
|
1157 |
-
#: includes/class-mla-main.php:
|
1158 |
#, php-format
|
1159 |
msgid "Item %1$d permanently deleted."
|
1160 |
msgstr ""
|
1161 |
|
1162 |
#. translators: 1: page_template_array
|
1163 |
-
#: includes/class-mla-main.php:
|
1164 |
#, php-format
|
1165 |
msgctxt "error_log"
|
1166 |
msgid "ERROR: MLA::_display_single_item \\$page_template_array = \"%1$s\""
|
1167 |
msgstr ""
|
1168 |
|
1169 |
-
#: includes/class-mla-main.php:
|
1170 |
msgid "File name"
|
1171 |
msgstr ""
|
1172 |
|
1173 |
-
#: includes/class-mla-main.php:
|
1174 |
msgid "File type"
|
1175 |
msgstr ""
|
1176 |
|
1177 |
-
#: includes/class-mla-main.php:
|
1178 |
msgid "Upload date"
|
1179 |
msgstr ""
|
1180 |
|
1181 |
-
#: includes/class-mla-main.php:
|
1182 |
msgid "Dimensions"
|
1183 |
msgstr ""
|
1184 |
|
1185 |
-
#: includes/class-mla-main.php:
|
1186 |
msgid "required"
|
1187 |
msgstr ""
|
1188 |
|
1189 |
-
#: includes/class-mla-main.php:
|
1190 |
msgid "Must be unique; will be validated."
|
1191 |
msgstr ""
|
1192 |
|
1193 |
-
#: includes/class-mla-main.php:
|
1194 |
msgid "Alternate text for the image, e.g. “The Mona Lisa”"
|
1195 |
msgstr ""
|
1196 |
|
1197 |
-
#: includes/class-mla-main.php:
|
1198 |
msgid "ID, type and title of parent, if any."
|
1199 |
msgstr ""
|
1200 |
|
1201 |
-
#: includes/class-mla-main.php:
|
1202 |
msgid "File URL"
|
1203 |
msgstr ""
|
1204 |
|
1205 |
-
#: includes/class-mla-main.php:
|
1206 |
msgid "Location of the uploaded file."
|
1207 |
msgstr ""
|
1208 |
|
1209 |
-
#: includes/class-mla-main.php:
|
1210 |
msgid "Image Metadata"
|
1211 |
msgstr ""
|
1212 |
|
1213 |
-
#: includes/class-mla-main.php:
|
1214 |
msgid "ERROR: You are not allowed to move this item out of the Trash."
|
1215 |
msgstr ""
|
1216 |
|
1217 |
#. translators: 1: post ID
|
1218 |
-
#: includes/class-mla-main.php:
|
1219 |
#, php-format
|
1220 |
msgid "ERROR: Item %1$d could NOT be restored from Trash."
|
1221 |
msgstr ""
|
1222 |
|
1223 |
#. translators: 1: post ID
|
1224 |
-
#: includes/class-mla-main.php:
|
1225 |
#, php-format
|
1226 |
msgid "Item %1$d restored from Trash."
|
1227 |
msgstr ""
|
1228 |
|
1229 |
-
#: includes/class-mla-main.php:
|
1230 |
msgid "ERROR: You are not allowed to move this item to the Trash."
|
1231 |
msgstr ""
|
1232 |
|
1233 |
#. translators: 1: post ID
|
1234 |
-
#: includes/class-mla-main.php:
|
1235 |
#, php-format
|
1236 |
msgid "ERROR: Item %1$d could NOT be moved to Trash."
|
1237 |
msgstr ""
|
1238 |
|
1239 |
-
#: includes/class-mla-media-modal.php:
|
1240 |
-
#: includes/class-mla-media-modal.php:
|
1241 |
-
#: includes/class-mla-media-modal.php:
|
1242 |
-
#: includes/class-mla-media-modal.php:
|
1243 |
-
#: includes/class-mla-media-modal.php:
|
1244 |
msgid "Click to toggle"
|
1245 |
msgstr ""
|
1246 |
|
1247 |
-
#: includes/class-mla-media-modal.php:
|
1248 |
msgid "Show all dates"
|
1249 |
msgstr ""
|
1250 |
|
1251 |
#. translators: 1: month name, 2: 4-digit year
|
1252 |
-
#: includes/class-mla-media-modal.php:
|
1253 |
#, php-format
|
1254 |
msgid "%1$s %2$d"
|
1255 |
msgstr ""
|
1256 |
|
1257 |
-
#: includes/class-mla-media-modal.php:
|
1258 |
msgid "Search Box"
|
1259 |
msgstr ""
|
1260 |
|
1261 |
-
#: includes/class-mla-media-modal.php:
|
1262 |
msgid "Loading..."
|
1263 |
msgstr ""
|
1264 |
|
1265 |
-
#: includes/class-mla-media-modal.php:
|
1266 |
msgid "Tags"
|
1267 |
msgstr ""
|
1268 |
|
1269 |
#. translators: %s: add new taxonomy label
|
1270 |
-
#: includes/class-mla-media-modal.php:
|
1271 |
#, php-format
|
1272 |
msgid "Add New %1$s"
|
1273 |
msgstr ""
|
1274 |
|
1275 |
-
#: includes/class-mla-media-modal.php:
|
1276 |
msgid "Choose from the most used tags"
|
1277 |
msgstr ""
|
1278 |
|
1279 |
-
#: includes/class-mla-media-modal.php:
|
1280 |
msgid "Not Supported"
|
1281 |
msgstr ""
|
1282 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1283 |
#: includes/class-mla-mime-types.php:364
|
1284 |
msgctxt "post_mime_types"
|
1285 |
msgid "Manage"
|
@@ -1568,155 +1627,155 @@ msgstr ""
|
|
1568 |
msgid "Att. Category"
|
1569 |
msgstr ""
|
1570 |
|
1571 |
-
#: includes/class-mla-objects.php:
|
1572 |
msgctxt "taxonomy_name_plural"
|
1573 |
msgid "Att. Tags"
|
1574 |
msgstr ""
|
1575 |
|
1576 |
-
#: includes/class-mla-objects.php:
|
1577 |
msgctxt "taxonomy_name_singular"
|
1578 |
msgid "Att. Tag"
|
1579 |
msgstr ""
|
1580 |
|
1581 |
-
#: includes/class-mla-objects.php:
|
1582 |
msgid "Search Att. Tags"
|
1583 |
msgstr ""
|
1584 |
|
1585 |
-
#: includes/class-mla-objects.php:
|
1586 |
msgid "All Att. Tags"
|
1587 |
msgstr ""
|
1588 |
|
1589 |
-
#: includes/class-mla-objects.php:
|
1590 |
msgid "Parent Att. Tag"
|
1591 |
msgstr ""
|
1592 |
|
1593 |
-
#: includes/class-mla-objects.php:
|
1594 |
msgid "Edit Att. Tag"
|
1595 |
msgstr ""
|
1596 |
|
1597 |
-
#: includes/class-mla-objects.php:
|
1598 |
msgid "Update Att. Tag"
|
1599 |
msgstr ""
|
1600 |
|
1601 |
-
#: includes/class-mla-objects.php:
|
1602 |
msgid "Add New Att. Tag"
|
1603 |
msgstr ""
|
1604 |
|
1605 |
-
#: includes/class-mla-objects.php:
|
1606 |
msgid "New Att. Tag Name"
|
1607 |
msgstr ""
|
1608 |
|
1609 |
-
#: includes/class-mla-objects.php:
|
1610 |
msgid "Att. Tag"
|
1611 |
msgstr ""
|
1612 |
|
1613 |
-
#: includes/class-mla-objects.php:
|
1614 |
msgid "Attachments"
|
1615 |
msgstr ""
|
1616 |
|
1617 |
#. translators: 1: taxonomy 2: error message
|
1618 |
-
#: includes/class-mla-objects.php:
|
1619 |
#, php-format
|
1620 |
msgctxt "error_log"
|
1621 |
msgid ""
|
1622 |
"ERROR: mla_taxonomy_column_filter( \"%1$s\" ) - get_term failed: \"%2$s\""
|
1623 |
msgstr ""
|
1624 |
|
1625 |
-
#: includes/class-mla-objects.php:
|
1626 |
msgid "click to search"
|
1627 |
msgstr ""
|
1628 |
|
1629 |
-
#: includes/class-mla-objects.php:
|
1630 |
msgid "Shortcode(s), HTML and/or Plain Text"
|
1631 |
msgstr ""
|
1632 |
|
1633 |
-
#: includes/class-mla-objects.php:
|
1634 |
msgid "MLA Text"
|
1635 |
msgstr ""
|
1636 |
|
1637 |
-
#: includes/class-mla-objects.php:
|
1638 |
msgid "Automatically add paragraphs"
|
1639 |
msgstr ""
|
1640 |
|
1641 |
-
#: includes/class-mla-options.php:
|
1642 |
msgid "error loading tpls/mla-option-templates.tpl"
|
1643 |
msgstr ""
|
1644 |
|
1645 |
-
#: includes/class-mla-options.php:
|
1646 |
msgid "tpls/mla-option-templates.tpl not found"
|
1647 |
msgstr ""
|
1648 |
|
1649 |
-
#: includes/class-mla-options.php:
|
1650 |
msgid "Attachment Categories"
|
1651 |
msgstr ""
|
1652 |
|
1653 |
-
#: includes/class-mla-options.php:
|
1654 |
msgid "Check this option to add support for Attachment Categories."
|
1655 |
msgstr ""
|
1656 |
|
1657 |
-
#: includes/class-mla-options.php:
|
1658 |
msgid "Attachment Tags"
|
1659 |
msgstr ""
|
1660 |
|
1661 |
-
#: includes/class-mla-options.php:
|
1662 |
msgid "Check this option to add support for Attachment Tags."
|
1663 |
msgstr ""
|
1664 |
|
1665 |
-
#: includes/class-mla-options.php:
|
1666 |
msgid "Where-used Reporting"
|
1667 |
msgstr ""
|
1668 |
|
1669 |
-
#: includes/class-mla-options.php:
|
1670 |
msgid "Exclude Revisions"
|
1671 |
msgstr ""
|
1672 |
|
1673 |
-
#: includes/class-mla-options.php:
|
1674 |
msgid "Check this option to exclude revisions from where-used reporting."
|
1675 |
msgstr ""
|
1676 |
|
1677 |
-
#: includes/class-mla-options.php:
|
1678 |
msgid "Where-used database access tuning"
|
1679 |
msgstr ""
|
1680 |
|
1681 |
-
#: includes/class-mla-options.php:
|
1682 |
msgid "Enabled"
|
1683 |
msgstr ""
|
1684 |
|
1685 |
-
#: includes/class-mla-options.php:
|
1686 |
msgid "Search database posts and pages for Featured Image attachments."
|
1687 |
msgstr ""
|
1688 |
|
1689 |
-
#: includes/class-mla-options.php:
|
1690 |
msgid "Base"
|
1691 |
msgstr ""
|
1692 |
|
1693 |
-
#: includes/class-mla-options.php:
|
1694 |
msgid ""
|
1695 |
"Search database posts and pages for attachments embedded in content."
|
1696 |
"<br> Base = ignore intermediate size suffixes; use path, base "
|
1697 |
"name and extension only."
|
1698 |
msgstr ""
|
1699 |
|
1700 |
-
#: includes/class-mla-options.php:
|
1701 |
msgid "Dynamic"
|
1702 |
msgstr ""
|
1703 |
|
1704 |
-
#: includes/class-mla-options.php:
|
1705 |
msgid "Refresh"
|
1706 |
msgstr ""
|
1707 |
|
1708 |
-
#: includes/class-mla-options.php:
|
1709 |
msgid "Cached"
|
1710 |
msgstr ""
|
1711 |
|
1712 |
-
#: includes/class-mla-options.php:
|
1713 |
msgid ""
|
1714 |
"Search database posts and pages for [gallery] shortcode results.<br> "
|
1715 |
" Dynamic = once every page load, Cached = once every login, Disabled = "
|
1716 |
"never.<br> Refresh = update references, then set to Cached."
|
1717 |
msgstr ""
|
1718 |
|
1719 |
-
#: includes/class-mla-options.php:
|
1720 |
msgid ""
|
1721 |
"Search database posts and pages for [mla_gallery] shortcode results."
|
1722 |
"<br> Dynamic = once every page load, Cached = once every login, "
|
@@ -1724,69 +1783,104 @@ msgid ""
|
|
1724 |
"Cached."
|
1725 |
msgstr ""
|
1726 |
|
1727 |
-
#: includes/class-mla-options.php:
|
1728 |
msgid "Taxonomy Support"
|
1729 |
msgstr ""
|
1730 |
|
1731 |
-
#: includes/class-mla-options.php:
|
1732 |
msgid "Compute Attachments Column"
|
1733 |
msgstr ""
|
1734 |
|
1735 |
-
#: includes/class-mla-options.php:
|
1736 |
msgid ""
|
1737 |
"Check this option to calculate attachments per term in the Attachments "
|
1738 |
"Column."
|
1739 |
msgstr ""
|
1740 |
|
1741 |
-
#: includes/class-mla-options.php:
|
1742 |
msgid ""
|
1743 |
"Check the \"Support\" box to add the taxonomy to the Assistant and the Edit "
|
1744 |
-
"Media screen
|
1745 |
-
|
1746 |
-
|
1747 |
-
|
1748 |
-
|
1749 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1750 |
msgstr ""
|
1751 |
|
1752 |
-
#: includes/class-mla-options.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1753 |
msgid "Media/Assistant Screen Options"
|
1754 |
msgstr ""
|
1755 |
|
1756 |
-
#: includes/class-mla-options.php:
|
1757 |
msgid "Admin Menu Options"
|
1758 |
msgstr ""
|
1759 |
|
1760 |
-
#: includes/class-mla-options.php:
|
1761 |
msgid "Page Title"
|
1762 |
msgstr ""
|
1763 |
|
1764 |
-
#: includes/class-mla-options.php:
|
1765 |
#: includes/class-mla-settings.php:2555
|
1766 |
msgid "Media Library Assistant"
|
1767 |
msgstr ""
|
1768 |
|
1769 |
-
#: includes/class-mla-options.php:
|
1770 |
msgid "Enter the title for the Media/Assistant submenu page"
|
1771 |
msgstr ""
|
1772 |
|
1773 |
-
#: includes/class-mla-options.php:
|
1774 |
msgid "Menu Title"
|
1775 |
msgstr ""
|
1776 |
|
1777 |
-
#: includes/class-mla-options.php:
|
1778 |
msgid "Assistant"
|
1779 |
msgstr ""
|
1780 |
|
1781 |
-
#: includes/class-mla-options.php:
|
1782 |
msgid "Enter the title for the Media/Assistant submenu entry"
|
1783 |
msgstr ""
|
1784 |
|
1785 |
-
#: includes/class-mla-options.php:
|
1786 |
msgid "Submenu Order"
|
1787 |
msgstr ""
|
1788 |
|
1789 |
-
#: includes/class-mla-options.php:
|
1790 |
msgid ""
|
1791 |
"Enter the position of the Media/Assistant submenu entry.<br> 0 = "
|
1792 |
"natural order (at bottom), 1 - 4 = at top<br> "
|
@@ -1794,174 +1888,207 @@ msgid ""
|
|
1794 |
"\""
|
1795 |
msgstr ""
|
1796 |
|
1797 |
-
#: includes/class-mla-options.php:
|
1798 |
msgid "Display Media/Library"
|
1799 |
msgstr ""
|
1800 |
|
1801 |
-
#: includes/class-mla-options.php:
|
1802 |
msgid ""
|
1803 |
"Check/uncheck this option to display/remove the WordPress Media/Library "
|
1804 |
"submenu entry."
|
1805 |
msgstr ""
|
1806 |
|
1807 |
-
#: includes/class-mla-options.php:
|
1808 |
msgid "Table Defaults"
|
1809 |
msgstr ""
|
1810 |
|
1811 |
-
#: includes/class-mla-options.php:
|
1812 |
msgid "Order By"
|
1813 |
msgstr ""
|
1814 |
|
1815 |
-
#: includes/class-mla-options.php:
|
1816 |
msgid "Title/Name"
|
1817 |
msgstr ""
|
1818 |
|
1819 |
-
#: includes/class-mla-options.php:
|
1820 |
msgid "Select the column for the sort order of the Assistant table listing."
|
1821 |
msgstr ""
|
1822 |
|
1823 |
-
#: includes/class-mla-options.php:
|
1824 |
msgid "Order"
|
1825 |
msgstr ""
|
1826 |
|
1827 |
-
#: includes/class-mla-options.php:
|
1828 |
msgid "Ascending"
|
1829 |
msgstr ""
|
1830 |
|
1831 |
-
#: includes/class-mla-options.php:
|
1832 |
msgid "Descending"
|
1833 |
msgstr ""
|
1834 |
|
1835 |
-
#: includes/class-mla-options.php:
|
1836 |
msgid "Choose the sort order."
|
1837 |
msgstr ""
|
1838 |
|
1839 |
-
#: includes/class-mla-options.php:
|
1840 |
msgid "Views Width"
|
1841 |
msgstr ""
|
1842 |
|
1843 |
-
#: includes/class-mla-options.php:
|
1844 |
msgid "Enter the width for the views list, in pixels (px) or percent (%)"
|
1845 |
msgstr ""
|
1846 |
|
1847 |
-
#: includes/class-mla-options.php:
|
1848 |
msgid "Icon Size"
|
1849 |
msgstr ""
|
1850 |
|
1851 |
-
#: includes/class-mla-options.php:
|
1852 |
msgid "Enter the size of the thumbnail/icon images, in pixels"
|
1853 |
msgstr ""
|
1854 |
|
1855 |
-
#: includes/class-mla-options.php:
|
1856 |
msgid "Taxonomy Filter parameters"
|
1857 |
msgstr ""
|
1858 |
|
1859 |
-
#: includes/class-mla-options.php:
|
1860 |
msgid "Maximum Depth"
|
1861 |
msgstr ""
|
1862 |
|
1863 |
-
#: includes/class-mla-options.php:
|
1864 |
msgid ""
|
1865 |
"Enter the number of levels displayed for hierarchial taxonomies; enter zero "
|
1866 |
"for no limit."
|
1867 |
msgstr ""
|
1868 |
|
1869 |
-
#: includes/class-mla-options.php:
|
1870 |
msgid "Include Children"
|
1871 |
msgstr ""
|
1872 |
|
1873 |
-
#: includes/class-mla-options.php:
|
1874 |
msgid ""
|
1875 |
"Check/uncheck this option to include/exclude children for hierarchical "
|
1876 |
"taxonomies."
|
1877 |
msgstr ""
|
1878 |
|
1879 |
-
#: includes/class-mla-options.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1880 |
msgid "Media/Edit Media Enhancements"
|
1881 |
msgstr ""
|
1882 |
|
1883 |
-
#: includes/class-mla-options.php:
|
1884 |
msgid "Enable enhanced \"checklist\" taxonomies"
|
1885 |
msgstr ""
|
1886 |
|
1887 |
-
#: includes/class-mla-options.php:
|
1888 |
msgid ""
|
1889 |
"Check this option to enable the \"? Search\" feature for hierarchical "
|
1890 |
"taxonomies, e.g., Att. Categories.<br> This option also enables "
|
1891 |
"the \"checklist-style\" support for flat taxonomies, e.g., Att. Tags."
|
1892 |
msgstr ""
|
1893 |
|
1894 |
-
#: includes/class-mla-options.php:
|
1895 |
msgid "Enable Edit Media additional meta boxes"
|
1896 |
msgstr ""
|
1897 |
|
1898 |
-
#: includes/class-mla-options.php:
|
1899 |
msgid ""
|
1900 |
"Check this option to add \"Parent Info\", \"Menu Order\", \"Attachment "
|
1901 |
"Metadata\" and four \"where-used\" meta boxes to the Edit Media screen."
|
1902 |
msgstr ""
|
1903 |
|
1904 |
-
#: includes/class-mla-options.php:
|
1905 |
msgid "Media Manager Enhancements"
|
1906 |
msgstr ""
|
1907 |
|
1908 |
-
#: includes/class-mla-options.php:
|
1909 |
msgid "Enable Media Manager Enhancements"
|
1910 |
msgstr ""
|
1911 |
|
1912 |
-
#: includes/class-mla-options.php:
|
1913 |
msgid "Check/uncheck this option to enable/disable Media Manager Enhancements."
|
1914 |
msgstr ""
|
1915 |
|
1916 |
-
#: includes/class-mla-options.php:
|
1917 |
msgid "Media Manager Enhanced MIME Type filter"
|
1918 |
msgstr ""
|
1919 |
|
1920 |
-
#: includes/class-mla-options.php:
|
1921 |
msgid ""
|
1922 |
"Check this option to filter by more MIME Types, e.g., text, applications."
|
1923 |
msgstr ""
|
1924 |
|
1925 |
-
#: includes/class-mla-options.php:
|
1926 |
msgid "Media Manager Month and Year filter"
|
1927 |
msgstr ""
|
1928 |
|
1929 |
-
#: includes/class-mla-options.php:
|
1930 |
msgid "Check this option to filter by month and year uploaded."
|
1931 |
msgstr ""
|
1932 |
|
1933 |
-
#: includes/class-mla-options.php:
|
1934 |
msgid "Media Manager Category/Tag filter"
|
1935 |
msgstr ""
|
1936 |
|
1937 |
-
#: includes/class-mla-options.php:
|
1938 |
msgid "Check this option to filter by taxonomy terms."
|
1939 |
msgstr ""
|
1940 |
|
1941 |
-
#: includes/class-mla-options.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1942 |
msgid "Media Manager Enhanced Search Media box"
|
1943 |
msgstr ""
|
1944 |
|
1945 |
-
#: includes/class-mla-options.php:
|
1946 |
msgid "Check this option to enable search box enhancements."
|
1947 |
msgstr ""
|
1948 |
|
1949 |
-
#: includes/class-mla-options.php:
|
|
|
|
|
|
|
|
|
1950 |
msgid "Media Manager Checklist meta boxes"
|
1951 |
msgstr ""
|
1952 |
|
1953 |
-
#: includes/class-mla-options.php:
|
1954 |
msgid ""
|
1955 |
"Check this option to enable MLA-enhanced meta boxes in the \"ATTACHMENT "
|
1956 |
"DETAILS\" pane.<br> This option is for any taxonomy that uses a "
|
1957 |
"<strong>\"checklist-style\"</strong> meta box.</strong>"
|
1958 |
msgstr ""
|
1959 |
|
1960 |
-
#: includes/class-mla-options.php:
|
1961 |
msgid "Media Manager Flat meta boxes"
|
1962 |
msgstr ""
|
1963 |
|
1964 |
-
#: includes/class-mla-options.php:
|
1965 |
msgid ""
|
1966 |
"Check this option to enable MLA-enhanced meta boxes in the \"ATTACHMENT "
|
1967 |
"DETAILS\" pane.<br> This option is for <strong>flat taxonomies</"
|
@@ -1969,143 +2096,143 @@ msgid ""
|
|
1969 |
"style\" meta box."
|
1970 |
msgstr ""
|
1971 |
|
1972 |
-
#: includes/class-mla-options.php:
|
1973 |
msgid "Media Manager Order By"
|
1974 |
msgstr ""
|
1975 |
|
1976 |
-
#: includes/class-mla-options.php:
|
1977 |
-
#: includes/class-mla-options.php:
|
1978 |
-
#: includes/class-mla-options.php:
|
1979 |
msgid "Media Manager Default"
|
1980 |
msgstr ""
|
1981 |
|
1982 |
-
#: includes/class-mla-options.php:
|
1983 |
msgid ""
|
1984 |
"If you want to override the Media Manager default,<br> select a "
|
1985 |
"column for the sort order of the Media Library listing."
|
1986 |
msgstr ""
|
1987 |
|
1988 |
-
#: includes/class-mla-options.php:
|
1989 |
msgid "Media Manager Order"
|
1990 |
msgstr ""
|
1991 |
|
1992 |
-
#: includes/class-mla-options.php:
|
1993 |
msgid "Attachment Display Settings"
|
1994 |
msgstr ""
|
1995 |
|
1996 |
#. translators: 1: option name, e.g., Alignment, Link To or Size
|
1997 |
-
#: includes/class-mla-options.php:
|
1998 |
msgid "Alignment"
|
1999 |
msgstr ""
|
2000 |
|
2001 |
-
#: includes/class-mla-options.php:
|
2002 |
msgid "Left"
|
2003 |
msgstr ""
|
2004 |
|
2005 |
-
#: includes/class-mla-options.php:
|
2006 |
msgid "Center"
|
2007 |
msgstr ""
|
2008 |
|
2009 |
-
#: includes/class-mla-options.php:
|
2010 |
msgid "Right"
|
2011 |
msgstr ""
|
2012 |
|
2013 |
#. translators: 1: option name, e.g., Alignment, Link To or Size
|
2014 |
-
#: includes/class-mla-options.php:
|
2015 |
msgid "Link To"
|
2016 |
msgstr ""
|
2017 |
|
2018 |
-
#: includes/class-mla-options.php:
|
2019 |
msgid "Media File"
|
2020 |
msgstr ""
|
2021 |
|
2022 |
-
#: includes/class-mla-options.php:
|
2023 |
msgid "Attachment Page"
|
2024 |
msgstr ""
|
2025 |
|
2026 |
-
#: includes/class-mla-options.php:
|
2027 |
msgid "Custom URL"
|
2028 |
msgstr ""
|
2029 |
|
2030 |
#. translators: 1: option name, e.g., Alignment, Link To or Size
|
2031 |
-
#: includes/class-mla-options.php:
|
2032 |
msgid "Size"
|
2033 |
msgstr ""
|
2034 |
|
2035 |
-
#: includes/class-mla-options.php:
|
2036 |
msgid "Thumbnail"
|
2037 |
msgstr ""
|
2038 |
|
2039 |
-
#: includes/class-mla-options.php:
|
2040 |
msgid "Medium"
|
2041 |
msgstr ""
|
2042 |
|
2043 |
-
#: includes/class-mla-options.php:
|
2044 |
msgid "Large"
|
2045 |
msgstr ""
|
2046 |
|
2047 |
-
#: includes/class-mla-options.php:
|
2048 |
msgid "Full Size"
|
2049 |
msgstr ""
|
2050 |
|
2051 |
-
#: includes/class-mla-options.php:
|
2052 |
msgid "Default [mla_gallery] Templates and Settings"
|
2053 |
msgstr ""
|
2054 |
|
2055 |
-
#: includes/class-mla-options.php:
|
2056 |
msgid "Style Template"
|
2057 |
msgstr ""
|
2058 |
|
2059 |
#. translators: 1: template type 2: shortcode
|
2060 |
-
#: includes/class-mla-options.php:
|
2061 |
-
#: includes/class-mla-options.php:
|
2062 |
#, php-format
|
2063 |
msgid "Select the default %1$s for your %2$s shortcodes."
|
2064 |
msgstr ""
|
2065 |
|
2066 |
-
#: includes/class-mla-options.php:
|
2067 |
#: includes/class-mla-settings.php:2650 includes/class-mla-settings.php:2661
|
2068 |
#: includes/class-mla-settings.php:2667 includes/class-mla-settings.php:2671
|
2069 |
#: includes/class-mla-settings.php:2700 includes/class-mla-settings.php:2711
|
2070 |
msgid "style template"
|
2071 |
msgstr ""
|
2072 |
|
2073 |
-
#: includes/class-mla-options.php:
|
2074 |
msgid "Markup Template"
|
2075 |
msgstr ""
|
2076 |
|
2077 |
-
#: includes/class-mla-options.php:
|
2078 |
#: includes/class-mla-settings.php:2740 includes/class-mla-settings.php:2753
|
2079 |
#: includes/class-mla-settings.php:2759 includes/class-mla-settings.php:2763
|
2080 |
#: includes/class-mla-settings.php:2832
|
2081 |
msgid "markup template"
|
2082 |
msgstr ""
|
2083 |
|
2084 |
-
#: includes/class-mla-options.php:
|
2085 |
msgid "Default columns"
|
2086 |
msgstr ""
|
2087 |
|
2088 |
-
#: includes/class-mla-options.php:
|
2089 |
msgid ""
|
2090 |
"Enter the number of [mla_tag_cloud] columns; must be a positive integer."
|
2091 |
msgstr ""
|
2092 |
|
2093 |
-
#: includes/class-mla-options.php:
|
2094 |
msgid "Default mla_margin"
|
2095 |
msgstr ""
|
2096 |
|
2097 |
-
#: includes/class-mla-options.php:
|
2098 |
msgid ""
|
2099 |
"Enter the CSS \"margin\" property value, in length (px, em, pt, etc.), "
|
2100 |
"percent (%), \"auto\" or \"inherit\".<br> Enter \"none\" to "
|
2101 |
"remove the property entirely."
|
2102 |
msgstr ""
|
2103 |
|
2104 |
-
#: includes/class-mla-options.php:
|
2105 |
msgid "Default mla_itemwidth"
|
2106 |
msgstr ""
|
2107 |
|
2108 |
-
#: includes/class-mla-options.php:
|
2109 |
msgid ""
|
2110 |
"Enter the CSS \"width\" property value, in length (px, em, pt, etc.), "
|
2111 |
"percent (%), \"auto\" or \"inherit\".<br> Enter \"calculate"
|
@@ -2115,15 +2242,15 @@ msgid ""
|
|
2115 |
"the property entirely."
|
2116 |
msgstr ""
|
2117 |
|
2118 |
-
#: includes/class-mla-options.php:
|
2119 |
msgid "Enter the number of [mla_gallery] columns; must be a positive integer."
|
2120 |
msgstr ""
|
2121 |
|
2122 |
-
#: includes/class-mla-options.php:
|
2123 |
msgid "Enable custom field mapping when adding new media"
|
2124 |
msgstr ""
|
2125 |
|
2126 |
-
#: includes/class-mla-options.php:
|
2127 |
msgid ""
|
2128 |
"Check this option to enable mapping when uploading new media (attachments)."
|
2129 |
"<br> Click Save Changes at the bottom of the screen if you change "
|
@@ -2131,18 +2258,18 @@ msgid ""
|
|
2131 |
"buttons on the bulk edit, single edit and settings screens."
|
2132 |
msgstr ""
|
2133 |
|
2134 |
-
#: includes/class-mla-options.php:
|
2135 |
msgid "Enable custom field mapping when updating media metadata"
|
2136 |
msgstr ""
|
2137 |
|
2138 |
-
#: includes/class-mla-options.php:
|
2139 |
msgid ""
|
2140 |
"Check this option to enable mapping when media (attachments) metadata is "
|
2141 |
"regenerated,<br> e.g., when the Media/Edit Media \"Edit Image\" "
|
2142 |
"functions are used."
|
2143 |
msgstr ""
|
2144 |
|
2145 |
-
#: includes/class-mla-options.php:
|
2146 |
msgid ""
|
2147 |
"Update the custom field mapping values above, then click Save Changes to "
|
2148 |
"make the updates permanent.<br>You can also make temporary updates and click "
|
@@ -2150,22 +2277,22 @@ msgid ""
|
|
2150 |
"saving any rule changes."
|
2151 |
msgstr ""
|
2152 |
|
2153 |
-
#: includes/class-mla-options.php:
|
2154 |
msgid "Enable IPTC/EXIF Mapping when adding new media"
|
2155 |
msgstr ""
|
2156 |
|
2157 |
-
#: includes/class-mla-options.php:
|
2158 |
msgid ""
|
2159 |
"Check this option to enable mapping when uploading new media (attachments)."
|
2160 |
"<br> Does NOT affect the operation of the \"Map\" buttons on the "
|
2161 |
"bulk edit, single edit and settings screens."
|
2162 |
msgstr ""
|
2163 |
|
2164 |
-
#: includes/class-mla-options.php:
|
2165 |
msgid "Enable IPTC/EXIF Mapping when updating media metadata"
|
2166 |
msgstr ""
|
2167 |
|
2168 |
-
#: includes/class-mla-options.php:
|
2169 |
msgid ""
|
2170 |
"Update the standard field mapping values above, then click <strong>Save "
|
2171 |
"Changes</strong> to make the updates permanent.<br>You can also make "
|
@@ -2174,13 +2301,13 @@ msgid ""
|
|
2174 |
"changes."
|
2175 |
msgstr ""
|
2176 |
|
2177 |
-
#: includes/class-mla-options.php:
|
2178 |
msgid ""
|
2179 |
"Update the taxonomy term mapping values above, then click <strong>Save "
|
2180 |
"Changes</strong> or <strong>Map All Attachments, Taxonomy Terms Now</strong>."
|
2181 |
msgstr ""
|
2182 |
|
2183 |
-
#: includes/class-mla-options.php:
|
2184 |
msgid ""
|
2185 |
"<strong>Update</strong> individual custom field mapping values above, or "
|
2186 |
"make several updates and click <strong>Save Changes</strong> below to apply "
|
@@ -2191,556 +2318,595 @@ msgid ""
|
|
2191 |
"changes."
|
2192 |
msgstr ""
|
2193 |
|
2194 |
-
#: includes/class-mla-options.php:
|
2195 |
msgid "IPTC/EXIF Mapping help"
|
2196 |
msgstr ""
|
2197 |
|
2198 |
-
#: includes/class-mla-options.php:
|
2199 |
msgid "Enable View and Post MIME Type Support"
|
2200 |
msgstr ""
|
2201 |
|
2202 |
-
#: includes/class-mla-options.php:
|
2203 |
msgid ""
|
2204 |
"Check/uncheck this option to enable/disable Post MIME Type Support, then "
|
2205 |
"click <strong>Save Changes</strong> to record the new setting."
|
2206 |
msgstr ""
|
2207 |
|
2208 |
-
#: includes/class-mla-options.php:
|
2209 |
msgid "Post MIME Types help."
|
2210 |
msgstr ""
|
2211 |
|
2212 |
-
#: includes/class-mla-options.php:
|
2213 |
msgctxt "post_mime_types_singular"
|
2214 |
msgid "All"
|
2215 |
msgstr ""
|
2216 |
|
2217 |
-
#: includes/class-mla-options.php:
|
2218 |
msgctxt "post_mime_types_plural"
|
2219 |
msgid "All"
|
2220 |
msgstr ""
|
2221 |
|
2222 |
-
#: includes/class-mla-options.php:
|
2223 |
-
#: includes/class-mla-options.php:
|
2224 |
msgctxt "post_mime_types_description"
|
2225 |
msgid "Built-in view"
|
2226 |
msgstr ""
|
2227 |
|
2228 |
-
#: includes/class-mla-options.php:
|
2229 |
msgctxt "post_mime_types_singular"
|
2230 |
msgid "Image"
|
2231 |
msgstr ""
|
2232 |
|
2233 |
-
#: includes/class-mla-options.php:
|
2234 |
msgctxt "post_mime_types_plural"
|
2235 |
msgid "Images"
|
2236 |
msgstr ""
|
2237 |
|
2238 |
-
#: includes/class-mla-options.php:
|
2239 |
msgctxt "post_mime_types_description"
|
2240 |
msgid "All image subtypes"
|
2241 |
msgstr ""
|
2242 |
|
2243 |
-
#: includes/class-mla-options.php:
|
2244 |
msgctxt "post_mime_types_singular"
|
2245 |
msgid "Audio"
|
2246 |
msgstr ""
|
2247 |
|
2248 |
-
#: includes/class-mla-options.php:
|
2249 |
msgctxt "post_mime_types_plural"
|
2250 |
msgid "Audio"
|
2251 |
msgstr ""
|
2252 |
|
2253 |
-
#: includes/class-mla-options.php:
|
2254 |
msgctxt "post_mime_types_description"
|
2255 |
msgid "All audio subtypes"
|
2256 |
msgstr ""
|
2257 |
|
2258 |
-
#: includes/class-mla-options.php:
|
2259 |
msgctxt "post_mime_types_singular"
|
2260 |
msgid "Video"
|
2261 |
msgstr ""
|
2262 |
|
2263 |
-
#: includes/class-mla-options.php:
|
2264 |
msgctxt "post_mime_types_plural"
|
2265 |
msgid "Video"
|
2266 |
msgstr ""
|
2267 |
|
2268 |
-
#: includes/class-mla-options.php:
|
2269 |
msgctxt "post_mime_types_description"
|
2270 |
msgid "All video subtypes"
|
2271 |
msgstr ""
|
2272 |
|
2273 |
-
#: includes/class-mla-options.php:
|
2274 |
msgctxt "post_mime_types_singular"
|
2275 |
msgid "Text"
|
2276 |
msgstr ""
|
2277 |
|
2278 |
-
#: includes/class-mla-options.php:
|
2279 |
msgctxt "post_mime_types_plural"
|
2280 |
msgid "Text"
|
2281 |
msgstr ""
|
2282 |
|
2283 |
-
#: includes/class-mla-options.php:
|
2284 |
msgctxt "post_mime_types_description"
|
2285 |
msgid "All text subtypes"
|
2286 |
msgstr ""
|
2287 |
|
2288 |
-
#: includes/class-mla-options.php:
|
2289 |
msgctxt "post_mime_types_singular"
|
2290 |
msgid "Application"
|
2291 |
msgstr ""
|
2292 |
|
2293 |
-
#: includes/class-mla-options.php:
|
2294 |
msgctxt "post_mime_types_plural"
|
2295 |
msgid "Applications"
|
2296 |
msgstr ""
|
2297 |
|
2298 |
-
#: includes/class-mla-options.php:
|
2299 |
msgctxt "post_mime_types_description"
|
2300 |
msgid "All application subtypes"
|
2301 |
msgstr ""
|
2302 |
|
2303 |
-
#: includes/class-mla-options.php:
|
2304 |
msgctxt "post_mime_types_plural"
|
2305 |
msgid "Unattached"
|
2306 |
msgstr ""
|
2307 |
|
2308 |
-
#: includes/class-mla-options.php:
|
2309 |
msgctxt "post_mime_types_singular"
|
2310 |
msgid "Trash"
|
2311 |
msgstr ""
|
2312 |
|
2313 |
-
#: includes/class-mla-options.php:
|
2314 |
msgctxt "post_mime_types_plural"
|
2315 |
msgid "Trash"
|
2316 |
msgstr ""
|
2317 |
|
2318 |
-
#: includes/class-mla-options.php:
|
2319 |
msgid "Enable Upload MIME Type Support"
|
2320 |
msgstr ""
|
2321 |
|
2322 |
-
#: includes/class-mla-options.php:
|
2323 |
msgid ""
|
2324 |
"Check/uncheck this option to enable/disable Upload MIME Type Support, then "
|
2325 |
"click <strong>Save Changes</strong> to record the new setting."
|
2326 |
msgstr ""
|
2327 |
|
2328 |
-
#: includes/class-mla-options.php:
|
2329 |
msgid "Upload MIME Types help."
|
2330 |
msgstr ""
|
2331 |
|
2332 |
-
#: includes/class-mla-options.php:
|
2333 |
msgid "Enable MLA File Type Icons Support"
|
2334 |
msgstr ""
|
2335 |
|
2336 |
-
#: includes/class-mla-options.php:
|
2337 |
msgid ""
|
2338 |
"Check/uncheck this option to enable/disable MLA File Type Icons Support, "
|
2339 |
"then click <strong>Save Changes</strong> to record the new setting."
|
2340 |
msgstr ""
|
2341 |
|
2342 |
-
#: includes/class-mla-options.php:
|
2343 |
-
#: includes/class-mla-options.php:
|
2344 |
msgid "no templates exist"
|
2345 |
msgstr ""
|
2346 |
|
2347 |
-
#: includes/class-mla-options.php:
|
2348 |
msgid "not found"
|
2349 |
msgstr ""
|
2350 |
|
2351 |
#. translators: 1: option name 2: action, e.g., update, delete, reset
|
2352 |
-
#: includes/class-mla-options.php:
|
2353 |
-
#: includes/class-mla-options.php:
|
|
|
2354 |
#, php-format
|
2355 |
msgid "ERROR: Custom %1$s unknown action \"%2$s\""
|
2356 |
msgstr ""
|
2357 |
|
2358 |
-
#: includes/class-mla-options.php:
|
2359 |
msgid "Support"
|
2360 |
msgstr ""
|
2361 |
|
2362 |
-
#: includes/class-mla-options.php:
|
2363 |
msgid "Inline Edit"
|
2364 |
msgstr ""
|
2365 |
|
2366 |
-
#: includes/class-mla-options.php:
|
2367 |
msgid "Checklist"
|
2368 |
msgstr ""
|
2369 |
|
2370 |
-
#: includes/class-mla-options.php:
|
|
|
|
|
|
|
|
|
2371 |
msgid "List Filter"
|
2372 |
msgstr ""
|
2373 |
|
2374 |
-
#: includes/class-mla-options.php:
|
2375 |
msgid "Taxonomy"
|
2376 |
msgstr ""
|
2377 |
|
2378 |
#. translators: 1: taxonomy name
|
2379 |
-
#: includes/class-mla-options.php:
|
2380 |
#, php-format
|
2381 |
msgid "List Filter ignored; %1$s not supported."
|
2382 |
msgstr ""
|
2383 |
|
2384 |
#. translators: 1: taxonomy name
|
2385 |
-
#: includes/class-mla-options.php:
|
2386 |
#, php-format
|
2387 |
msgid "Inline Edit ignored; %1$s not supported."
|
2388 |
msgstr ""
|
2389 |
|
2390 |
#. translators: 1: taxonomy name
|
2391 |
-
#: includes/class-mla-options.php:
|
2392 |
#, php-format
|
2393 |
msgid "Checklist ignored; %1$s not supported."
|
2394 |
msgstr ""
|
2395 |
|
|
|
|
|
|
|
|
|
|
|
|
|
2396 |
#. translators: 1: option name, e.g., taxonomy_support
|
2397 |
-
#: includes/class-mla-options.php:
|
2398 |
#, php-format
|
2399 |
msgid "Update custom %1$s"
|
2400 |
msgstr ""
|
2401 |
|
2402 |
#. translators: 1: option name, e.g., taxonomy_support
|
2403 |
-
#: includes/class-mla-options.php:
|
|
|
2404 |
#, php-format
|
2405 |
msgid "Reset custom %1$s"
|
2406 |
msgstr ""
|
2407 |
|
2408 |
-
#: includes/class-mla-options.php:
|
2409 |
-
#: includes/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2410 |
#: includes/class-mla-settings.php:1463
|
2411 |
msgid "None (select a value)"
|
2412 |
msgstr ""
|
2413 |
|
2414 |
-
#: includes/class-mla-options.php:
|
2415 |
msgid "Metadata (see below)"
|
2416 |
msgstr ""
|
2417 |
|
2418 |
-
#: includes/class-mla-options.php:
|
2419 |
msgid "Template (see below)"
|
2420 |
msgstr ""
|
2421 |
|
2422 |
#. translators: 1: custom field name
|
2423 |
-
#: includes/class-mla-options.php:
|
2424 |
#, php-format
|
2425 |
msgid "ERROR: New field %1$s already exists."
|
2426 |
msgstr ""
|
2427 |
|
2428 |
#. translators: 1: custom field name
|
2429 |
-
#: includes/class-mla-options.php:
|
2430 |
#, php-format
|
2431 |
msgid "Adding new field %1$s."
|
2432 |
msgstr ""
|
2433 |
|
2434 |
#. translators: 1: custom field name
|
2435 |
-
#: includes/class-mla-options.php:
|
2436 |
#, php-format
|
2437 |
msgid "Adding new rule for %1$s."
|
2438 |
msgstr ""
|
2439 |
|
2440 |
#. translators: 1: custom field name
|
2441 |
-
#: includes/class-mla-options.php:
|
2442 |
-
#: includes/class-mla-options.php:
|
2443 |
#, php-format
|
2444 |
msgid "Deleting rule for %1$s."
|
2445 |
msgstr ""
|
2446 |
|
2447 |
#. translators: 1: custom field name 2: attribute 3: old value 4: new value
|
2448 |
-
#: includes/class-mla-options.php:
|
2449 |
-
#: includes/class-mla-options.php:
|
2450 |
-
#: includes/class-mla-options.php:
|
2451 |
-
#: includes/class-mla-options.php:
|
2452 |
-
#: includes/class-mla-options.php:
|
2453 |
-
#: includes/class-mla-options.php:
|
2454 |
-
#: includes/class-mla-options.php:
|
2455 |
#, php-format
|
2456 |
msgid "%1$s changing %2$s from %3$s to %4$s."
|
2457 |
msgstr ""
|
2458 |
|
2459 |
-
#: includes/class-mla-options.php:
|
2460 |
msgid "Data Source"
|
2461 |
msgstr ""
|
2462 |
|
2463 |
-
#: includes/class-mla-options.php:
|
2464 |
-
#: includes/class-mla-options.php:
|
2465 |
msgid "Replace to Keep"
|
2466 |
msgstr ""
|
2467 |
|
2468 |
-
#: includes/class-mla-options.php:
|
2469 |
-
#: includes/class-mla-options.php:
|
2470 |
msgid "Keep to Replace"
|
2471 |
msgstr ""
|
2472 |
|
2473 |
#. translators: 1: custom field name 2: attribute 3: old value 'to' new value
|
2474 |
-
#: includes/class-mla-options.php:
|
2475 |
-
#: includes/class-mla-options.php:
|
2476 |
-
#: includes/class-mla-options.php:
|
2477 |
-
#: includes/class-mla-options.php:
|
2478 |
-
#: includes/class-mla-options.php:
|
2479 |
-
#: includes/class-mla-options.php:
|
2480 |
#, php-format
|
2481 |
msgid "%1$s changing %2$s value from %3$s."
|
2482 |
msgstr ""
|
2483 |
|
2484 |
-
#: includes/class-mla-options.php:
|
2485 |
-
#: includes/class-mla-options.php:
|
2486 |
-
#: includes/class-mla-options.php:
|
2487 |
-
#: includes/class-mla-options.php:
|
2488 |
msgid "Existing Text"
|
2489 |
msgstr ""
|
2490 |
|
2491 |
-
#: includes/class-mla-options.php:
|
2492 |
msgid "Format"
|
2493 |
msgstr ""
|
2494 |
|
2495 |
-
#: includes/class-mla-options.php:
|
2496 |
-
#: includes/class-mla-options.php:
|
2497 |
msgid "unchecked to checked"
|
2498 |
msgstr ""
|
2499 |
|
2500 |
-
#: includes/class-mla-options.php:
|
2501 |
-
#: includes/class-mla-options.php:
|
2502 |
msgid "checked to unchecked"
|
2503 |
msgstr ""
|
2504 |
|
2505 |
-
#: includes/class-mla-options.php:
|
2506 |
msgid "MLA Column"
|
2507 |
msgstr ""
|
2508 |
|
2509 |
-
#: includes/class-mla-options.php:
|
2510 |
msgid "Metavalue name"
|
2511 |
msgstr ""
|
2512 |
|
2513 |
-
#: includes/class-mla-options.php:
|
2514 |
-
#: includes/class-mla-options.php:
|
2515 |
msgid "Option"
|
2516 |
msgstr ""
|
2517 |
|
2518 |
-
#: includes/class-mla-options.php:
|
2519 |
msgid "Delete NULL"
|
2520 |
msgstr ""
|
2521 |
|
2522 |
-
#: includes/class-mla-options.php:
|
2523 |
msgid "No Custom Field Mapping Rules Defined"
|
2524 |
msgstr ""
|
2525 |
|
2526 |
-
#: includes/class-mla-options.php:
|
2527 |
-
#: includes/class-mla-options.php:
|
2528 |
-
#: includes/class-mla-options.php:
|
2529 |
-
#: includes/class-mla-options.php:
|
2530 |
msgid "Keep"
|
2531 |
msgstr ""
|
2532 |
|
2533 |
-
#: includes/class-mla-options.php:
|
2534 |
-
#: includes/class-mla-options.php:
|
2535 |
msgid "Native"
|
2536 |
msgstr ""
|
2537 |
|
2538 |
-
#: includes/class-mla-options.php:
|
2539 |
-
#: includes/class-mla-options.php:
|
2540 |
msgid "Commas"
|
2541 |
msgstr ""
|
2542 |
|
2543 |
-
#: includes/class-mla-options.php:
|
2544 |
-
#: includes/class-mla-options.php:
|
2545 |
msgid "Text"
|
2546 |
msgstr ""
|
2547 |
|
2548 |
-
#: includes/class-mla-options.php:
|
2549 |
-
#: includes/class-mla-options.php:
|
2550 |
msgid "Single"
|
2551 |
msgstr ""
|
2552 |
|
2553 |
-
#: includes/class-mla-options.php:
|
2554 |
-
#: includes/class-mla-options.php:
|
2555 |
msgid "Export"
|
2556 |
msgstr ""
|
2557 |
|
2558 |
-
#: includes/class-mla-options.php:
|
2559 |
-
#: includes/class-mla-options.php:
|
2560 |
msgid "Array"
|
2561 |
msgstr ""
|
2562 |
|
2563 |
-
#: includes/class-mla-options.php:
|
2564 |
-
#: includes/class-mla-options.php:
|
2565 |
msgid "Multi"
|
2566 |
msgstr ""
|
2567 |
|
2568 |
-
#: includes/class-mla-options.php:
|
2569 |
-
#: includes/class-mla-options.php:
|
2570 |
msgid "Delete NULL values"
|
2571 |
msgstr ""
|
2572 |
|
2573 |
-
#: includes/class-mla-options.php:
|
2574 |
msgid "Delete Rule"
|
2575 |
msgstr ""
|
2576 |
|
2577 |
-
#: includes/class-mla-options.php:
|
2578 |
msgid "Delete Rule AND Field"
|
2579 |
msgstr ""
|
2580 |
|
2581 |
-
#: includes/class-mla-options.php:
|
2582 |
msgid "Update Rule"
|
2583 |
msgstr ""
|
2584 |
|
2585 |
-
#: includes/class-mla-options.php:
|
2586 |
msgid "Map All Attachments"
|
2587 |
msgstr ""
|
2588 |
|
2589 |
-
#: includes/class-mla-options.php:
|
2590 |
msgid "Add a new Mapping Rule"
|
2591 |
msgstr ""
|
2592 |
|
2593 |
-
#: includes/class-mla-options.php:
|
2594 |
msgid "Add Rule"
|
2595 |
msgstr ""
|
2596 |
|
2597 |
-
#: includes/class-mla-options.php:
|
2598 |
msgid "Add Rule and Map All Attachments"
|
2599 |
msgstr ""
|
2600 |
|
2601 |
-
#: includes/class-mla-options.php:
|
2602 |
msgid "Add a new Field and Mapping Rule"
|
2603 |
msgstr ""
|
2604 |
|
2605 |
-
#: includes/class-mla-options.php:
|
2606 |
msgid "Add Field"
|
2607 |
msgstr ""
|
2608 |
|
2609 |
-
#: includes/class-mla-options.php:
|
2610 |
msgid "Add Field and Map All Attachments"
|
2611 |
msgstr ""
|
2612 |
|
2613 |
-
#: includes/class-mla-options.php:
|
2614 |
-
#: includes/class-mla-options.php:
|
2615 |
-
#: includes/class-mla-options.php:
|
2616 |
msgid "Field Title"
|
2617 |
msgstr ""
|
2618 |
|
2619 |
-
#: includes/class-mla-options.php:
|
2620 |
msgid "Custom field mapping rules updated."
|
2621 |
msgstr ""
|
2622 |
|
2623 |
-
#: includes/class-mla-options.php:
|
2624 |
msgid "ERROR: Custom field mapping rules update failed."
|
2625 |
msgstr ""
|
2626 |
|
2627 |
-
#: includes/class-mla-options.php:
|
2628 |
msgid "Custom field no mapping rule changes detected."
|
2629 |
msgstr ""
|
2630 |
|
2631 |
-
#: includes/class-mla-options.php:
|
2632 |
msgid "Custom field mapping settings saved."
|
2633 |
msgstr ""
|
2634 |
|
2635 |
-
#: includes/class-mla-options.php:
|
2636 |
msgid "ERROR: Custom field mapping settings reset failed."
|
2637 |
msgstr ""
|
2638 |
|
2639 |
#. translators: 1: custom field name
|
2640 |
-
#: includes/class-mla-options.php:
|
2641 |
#, php-format
|
2642 |
msgid "ERROR: No old values for %1$s."
|
2643 |
msgstr ""
|
2644 |
|
2645 |
-
#: includes/class-mla-options.php:
|
2646 |
-
#: includes/class-mla-options.php:
|
2647 |
-
#: includes/class-mla-options.php:
|
2648 |
msgid "IPTC Value"
|
2649 |
msgstr ""
|
2650 |
|
2651 |
-
#: includes/class-mla-options.php:
|
2652 |
-
#: includes/class-mla-options.php:
|
2653 |
msgid "EXIF Value"
|
2654 |
msgstr ""
|
2655 |
|
2656 |
-
#: includes/class-mla-options.php:
|
2657 |
-
#: includes/class-mla-options.php:
|
2658 |
msgid "EXIF to IPTC"
|
2659 |
msgstr ""
|
2660 |
|
2661 |
-
#: includes/class-mla-options.php:
|
2662 |
-
#: includes/class-mla-options.php:
|
2663 |
msgid "IPTC to EXIF"
|
2664 |
msgstr ""
|
2665 |
|
2666 |
-
#: includes/class-mla-options.php:
|
2667 |
-
#: includes/class-mla-options.php:
|
2668 |
-
#: includes/class-mla-options.php:
|
2669 |
msgid "Priority"
|
2670 |
msgstr ""
|
2671 |
|
2672 |
-
#: includes/class-mla-options.php:
|
2673 |
msgid "Delimiter(s)"
|
2674 |
msgstr ""
|
2675 |
|
2676 |
-
#: includes/class-mla-options.php:
|
2677 |
-
#: includes/class-mla-options.php:
|
2678 |
-
#: includes/class-mla-options.php:
|
2679 |
msgid "IPTC"
|
2680 |
msgstr ""
|
2681 |
|
2682 |
-
#: includes/class-mla-options.php:
|
2683 |
-
#: includes/class-mla-options.php:
|
2684 |
-
#: includes/class-mla-options.php:
|
2685 |
msgid "EXIF"
|
2686 |
msgstr ""
|
2687 |
|
2688 |
-
#: includes/class-mla-options.php:
|
2689 |
-
#: includes/class-mla-options.php:
|
2690 |
msgid "EXIF/Template Value"
|
2691 |
msgstr ""
|
2692 |
|
2693 |
#. translators: 1: option name
|
2694 |
-
#: includes/class-mla-options.php:
|
2695 |
#, php-format
|
2696 |
msgid "ERROR: Render unknown custom %1$s."
|
2697 |
msgstr ""
|
2698 |
|
2699 |
#. translators: 1: option name
|
2700 |
-
#: includes/class-mla-options.php:
|
2701 |
#, php-format
|
2702 |
msgid "ERROR: Update/delete unknown custom %1$s."
|
2703 |
msgstr ""
|
2704 |
|
2705 |
-
#: includes/class-mla-options.php:
|
2706 |
msgid "IPTC/EXIF mapping settings updated."
|
2707 |
msgstr ""
|
2708 |
|
2709 |
-
#: includes/class-mla-options.php:
|
2710 |
msgid "ERROR: IPTC/EXIF settings update failed."
|
2711 |
msgstr ""
|
2712 |
|
2713 |
-
#: includes/class-mla-options.php:
|
2714 |
msgid "IPTC/EXIF no mapping changes detected."
|
2715 |
msgstr ""
|
2716 |
|
2717 |
#. translators: 1: field type
|
2718 |
-
#: includes/class-mla-options.php:
|
2719 |
-
#: includes/class-mla-options.php:
|
2720 |
#, php-format
|
2721 |
msgid "%1$s settings saved."
|
2722 |
msgstr ""
|
2723 |
|
2724 |
-
#: includes/class-mla-options.php:
|
2725 |
#: includes/class-mla-settings.php:3064 includes/class-mla-settings.php:3096
|
2726 |
#: includes/class-mla-settings.php:3099
|
2727 |
msgid "Standard field"
|
2728 |
msgstr ""
|
2729 |
|
2730 |
#. translators: 1: field type
|
2731 |
-
#: includes/class-mla-options.php:
|
2732 |
-
#: includes/class-mla-options.php:
|
2733 |
#, php-format
|
2734 |
msgid "ERROR: IPTC/EXIF %1$s settings update failed."
|
2735 |
msgstr ""
|
2736 |
|
2737 |
-
#: includes/class-mla-options.php:
|
2738 |
#: includes/class-mla-settings.php:3122 includes/class-mla-settings.php:3154
|
2739 |
#: includes/class-mla-settings.php:3157
|
2740 |
msgid "Taxonomy term"
|
2741 |
msgstr ""
|
2742 |
|
2743 |
-
#: includes/class-mla-options.php:
|
2744 |
#: includes/class-mla-settings.php:2971 includes/class-mla-settings.php:2974
|
2745 |
#: includes/class-mla-settings.php:3192 includes/class-mla-settings.php:3224
|
2746 |
#: includes/class-mla-settings.php:3227
|
@@ -2748,7 +2914,7 @@ msgid "Custom field"
|
|
2748 |
msgstr ""
|
2749 |
|
2750 |
#. translators: 1: option name, e.g., taxonomy_support
|
2751 |
-
#: includes/class-mla-options.php:
|
2752 |
#, php-format
|
2753 |
msgid "ERROR: Reset unknown custom %1$s"
|
2754 |
msgstr ""
|
@@ -2886,14 +3052,6 @@ msgstr ""
|
|
2886 |
msgid "enhanced version of the WordPress [gallery] shortcode."
|
2887 |
msgstr ""
|
2888 |
|
2889 |
-
#: includes/class-mla-settings.php:1014 includes/class-mla-settings.php:1015
|
2890 |
-
msgid "For complete documentation"
|
2891 |
-
msgstr ""
|
2892 |
-
|
2893 |
-
#: includes/class-mla-settings.php:1014 includes/class-mla-settings.php:1015
|
2894 |
-
msgid "click here"
|
2895 |
-
msgstr ""
|
2896 |
-
|
2897 |
#: includes/class-mla-settings.php:1015
|
2898 |
msgid "enhanced version of the WordPress Tag Cloud."
|
2899 |
msgstr ""
|
@@ -3153,10 +3311,6 @@ msgstr ""
|
|
3153 |
msgid "Search Known Types"
|
3154 |
msgstr ""
|
3155 |
|
3156 |
-
#: includes/class-mla-settings.php:1884
|
3157 |
-
msgid "Status"
|
3158 |
-
msgstr ""
|
3159 |
-
|
3160 |
#: includes/class-mla-settings.php:1886
|
3161 |
msgid "Active"
|
3162 |
msgstr ""
|
@@ -3582,231 +3736,231 @@ msgctxt "message_list"
|
|
3582 |
msgid "%1$s - references updated."
|
3583 |
msgstr ""
|
3584 |
|
3585 |
-
#: includes/class-mla-settings.php:
|
3586 |
msgid "General settings saved."
|
3587 |
msgstr ""
|
3588 |
|
3589 |
#. translators: 1: option name
|
3590 |
-
#: includes/class-mla-settings.php:
|
3591 |
#, php-format
|
3592 |
msgctxt "message_list"
|
3593 |
msgid "delete_option \"%1$s\""
|
3594 |
msgstr ""
|
3595 |
|
3596 |
-
#: includes/class-mla-settings.php:
|
3597 |
msgid "General settings reset to default values."
|
3598 |
msgstr ""
|
3599 |
|
3600 |
-
#: includes/class-mla-settings.php:
|
3601 |
msgid "select settings"
|
3602 |
msgstr ""
|
3603 |
|
3604 |
-
#: includes/class-mla-settings.php:
|
3605 |
msgid "Import ALL Settings"
|
3606 |
msgstr ""
|
3607 |
|
3608 |
-
#: includes/class-mla-settings.php:
|
3609 |
msgctxt "message_list"
|
3610 |
msgid "exported"
|
3611 |
msgstr ""
|
3612 |
|
3613 |
-
#: includes/class-mla-settings.php:
|
3614 |
msgctxt "message_list"
|
3615 |
msgid "skipped"
|
3616 |
msgstr ""
|
3617 |
|
3618 |
-
#: includes/class-mla-settings.php:
|
3619 |
msgid "ALL settings exported."
|
3620 |
msgstr ""
|
3621 |
|
3622 |
#. translators: 1: backup directory name
|
3623 |
-
#: includes/class-mla-settings.php:
|
3624 |
#, php-format
|
3625 |
msgid "ERROR: The settings directory ( %1$s ) cannot be created."
|
3626 |
msgstr ""
|
3627 |
|
3628 |
#. translators: 1: backup directory name
|
3629 |
-
#: includes/class-mla-settings.php:
|
3630 |
#, php-format
|
3631 |
msgid "ERROR: The settings directory ( %1$s ) is not writable."
|
3632 |
msgstr ""
|
3633 |
|
3634 |
#. translators: 1: backup file name
|
3635 |
-
#: includes/class-mla-settings.php:
|
3636 |
#, php-format
|
3637 |
msgid "ERROR: The settings file ( %1$s ) could not be opened."
|
3638 |
msgstr ""
|
3639 |
|
3640 |
#. translators: 1: PHP error information
|
3641 |
-
#: includes/class-mla-settings.php:
|
3642 |
#, php-format
|
3643 |
msgctxt "error_log"
|
3644 |
msgid "ERROR: _export_settings $error_info = \"%1$s\"."
|
3645 |
msgstr ""
|
3646 |
|
3647 |
#. translators: 1: backup file name 2: error message
|
3648 |
-
#: includes/class-mla-settings.php:
|
3649 |
#, php-format
|
3650 |
msgid "ERROR: Writing the settings file ( %1$s ) \"%2$s\"."
|
3651 |
msgstr ""
|
3652 |
|
3653 |
#. translators: 1: number of option settings
|
3654 |
-
#: includes/class-mla-settings.php:
|
3655 |
#, php-format
|
3656 |
msgid "Settings exported; %1$s settings recorded."
|
3657 |
msgstr ""
|
3658 |
|
3659 |
-
#: includes/class-mla-settings.php:
|
3660 |
msgid "No settings imported."
|
3661 |
msgstr ""
|
3662 |
|
3663 |
-
#: includes/class-mla-settings.php:
|
3664 |
msgid "Please select an import settings file from the dropdown list."
|
3665 |
msgstr ""
|
3666 |
|
3667 |
-
#: includes/class-mla-settings.php:
|
3668 |
msgid "ERROR: The import settings dropdown selection is missing."
|
3669 |
msgstr ""
|
3670 |
|
3671 |
#. translators: 1: PHP error information
|
3672 |
-
#: includes/class-mla-settings.php:
|
3673 |
#, php-format
|
3674 |
msgctxt "error_log"
|
3675 |
msgid "ERROR: _import_settings $error_info = \"%1$s\"."
|
3676 |
msgstr ""
|
3677 |
|
3678 |
#. translators: 1: backup file name 2: error message
|
3679 |
-
#: includes/class-mla-settings.php:
|
3680 |
#, php-format
|
3681 |
msgid "ERROR: Reading the settings file ( %1$s ) \"%2$s\"."
|
3682 |
msgstr ""
|
3683 |
|
3684 |
-
#: includes/class-mla-settings.php:
|
3685 |
msgctxt "message_list"
|
3686 |
msgid "updated"
|
3687 |
msgstr ""
|
3688 |
|
3689 |
-
#: includes/class-mla-settings.php:
|
3690 |
msgctxt "message_list"
|
3691 |
msgid "unchanged"
|
3692 |
msgstr ""
|
3693 |
|
3694 |
#. translators: 1: number of option settings updated 2: number of option settings unchanged
|
3695 |
-
#: includes/class-mla-settings.php:
|
3696 |
#, php-format
|
3697 |
msgid "Settings imported; %1$s updated, %2$s unchanged."
|
3698 |
msgstr ""
|
3699 |
|
3700 |
-
#: includes/class-mla-shortcodes.php:
|
3701 |
-
#: includes/class-mla-shortcodes.php:
|
3702 |
-
#: includes/class-mla-shortcodes.php:
|
3703 |
-
#: includes/class-mla-shortcodes.php:
|
3704 |
msgid "Previous"
|
3705 |
msgstr ""
|
3706 |
|
3707 |
-
#: includes/class-mla-shortcodes.php:
|
3708 |
-
#: includes/class-mla-shortcodes.php:
|
3709 |
-
#: includes/class-mla-shortcodes.php:
|
3710 |
-
#: includes/class-mla-shortcodes.php:
|
3711 |
msgid "Next"
|
3712 |
msgstr ""
|
3713 |
|
3714 |
-
#: includes/class-mla-shortcodes.php:
|
3715 |
msgid "mla_debug empty gallery"
|
3716 |
msgstr ""
|
3717 |
|
3718 |
-
#: includes/class-mla-shortcodes.php:
|
3719 |
msgid ""
|
3720 |
"<strong>Photonic-enhanced [mla_gallery]</strong> type must be "
|
3721 |
"<strong>default</strong>, query = "
|
3722 |
msgstr ""
|
3723 |
|
3724 |
-
#: includes/class-mla-shortcodes.php:
|
3725 |
msgid "unattached"
|
3726 |
msgstr ""
|
3727 |
|
3728 |
-
#: includes/class-mla-shortcodes.php:
|
3729 |
msgid "unknown"
|
3730 |
msgstr ""
|
3731 |
|
3732 |
-
#: includes/class-mla-shortcodes.php:
|
3733 |
msgid "mla_debug attributes"
|
3734 |
msgstr ""
|
3735 |
|
3736 |
-
#: includes/class-mla-shortcodes.php:
|
3737 |
msgid "mla_debug arguments"
|
3738 |
msgstr ""
|
3739 |
|
3740 |
-
#: includes/class-mla-shortcodes.php:
|
3741 |
msgid "mla_debug empty cloud"
|
3742 |
msgstr ""
|
3743 |
|
3744 |
-
#: includes/class-mla-shortcodes.php:
|
3745 |
-
#: includes/class-mla-shortcodes.php:
|
3746 |
msgid "ERROR: Invalid mla_gallery"
|
3747 |
msgstr ""
|
3748 |
|
3749 |
-
#: includes/class-mla-shortcodes.php:
|
3750 |
msgid "mla_debug query"
|
3751 |
msgstr ""
|
3752 |
|
3753 |
-
#: includes/class-mla-shortcodes.php:
|
3754 |
msgid "mla_debug request"
|
3755 |
msgstr ""
|
3756 |
|
3757 |
-
#: includes/class-mla-shortcodes.php:
|
3758 |
msgid "mla_debug query_vars"
|
3759 |
msgstr ""
|
3760 |
|
3761 |
-
#: includes/class-mla-shortcodes.php:
|
3762 |
msgid "mla_debug post_count"
|
3763 |
msgstr ""
|
3764 |
|
3765 |
-
#: includes/class-mla-shortcodes.php:
|
3766 |
msgid "mla_debug WHERE filter"
|
3767 |
msgstr ""
|
3768 |
|
3769 |
-
#: includes/class-mla-shortcodes.php:
|
3770 |
msgid "mla_debug modified WHERE filter"
|
3771 |
msgstr ""
|
3772 |
|
3773 |
-
#: includes/class-mla-shortcodes.php:
|
3774 |
msgid "mla_debug ORDER BY filter, incoming"
|
3775 |
msgstr ""
|
3776 |
|
3777 |
-
#: includes/class-mla-shortcodes.php:
|
3778 |
msgid "Replacement ORDER BY clause"
|
3779 |
msgstr ""
|
3780 |
|
3781 |
-
#: includes/class-mla-shortcodes.php:
|
3782 |
msgid "mla_debug posts_clauses filter"
|
3783 |
msgstr ""
|
3784 |
|
3785 |
-
#: includes/class-mla-shortcodes.php:
|
3786 |
msgid "mla_debug posts_clauses_request filter"
|
3787 |
msgstr ""
|
3788 |
|
3789 |
-
#: includes/class-mla-shortcodes.php:
|
3790 |
msgid "Invalid taxonomy"
|
3791 |
msgstr ""
|
3792 |
|
3793 |
-
#: includes/class-mla-shortcodes.php:
|
3794 |
msgid "mla_debug query arguments"
|
3795 |
msgstr ""
|
3796 |
|
3797 |
-
#: includes/class-mla-shortcodes.php:
|
3798 |
msgid "mla_debug last_query"
|
3799 |
msgstr ""
|
3800 |
|
3801 |
-
#: includes/class-mla-shortcodes.php:
|
3802 |
msgid "mla_debug last_error"
|
3803 |
msgstr ""
|
3804 |
|
3805 |
-
#: includes/class-mla-shortcodes.php:
|
3806 |
msgid "mla_debug num_rows"
|
3807 |
msgstr ""
|
3808 |
|
3809 |
-
#: includes/class-mla-shortcodes.php:
|
3810 |
msgid "mla_debug found_rows"
|
3811 |
msgstr ""
|
3812 |
|
@@ -3913,6 +4067,11 @@ msgctxt "list_table_column"
|
|
3913 |
msgid "Order"
|
3914 |
msgstr ""
|
3915 |
|
|
|
|
|
|
|
|
|
|
|
3916 |
#: includes/mla-plugin-loader.php:34
|
3917 |
msgid "The Media Library Assistant cannot load."
|
3918 |
msgstr ""
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Media Library Assistant\n"
|
4 |
+
"POT-Creation-Date: 2014-06-27 14:56-0800\n"
|
5 |
+
"PO-Revision-Date: 2014-06-27 14:57-0800\n"
|
6 |
"Last-Translator: David Lingren <david@fairtradejudaica.org>\n"
|
7 |
"Language-Team: David Lingren <david@fairtradejudaica.org>\n"
|
8 |
"Language: en_US\n"
|
89 |
msgstr ""
|
90 |
|
91 |
#. translators: 1: function name 2: non-array value
|
92 |
+
#: includes/class-mla-data.php:1256 includes/class-mla-main.php:1522
|
93 |
+
#: includes/class-mla-main.php:1597 includes/class-mla-media-modal.php:1071
|
94 |
#: includes/class-mla-mime-types.php:483
|
95 |
#: includes/class-mla-mime-types.php:1218
|
96 |
#: includes/class-mla-mime-types.php:2355 includes/class-mla-settings.php:1188
|
101 |
msgstr ""
|
102 |
|
103 |
#. translators: 1: query filter details
|
104 |
+
#: includes/class-mla-data.php:1659
|
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:1662
|
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:1679
|
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:1681
|
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:1684
|
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:1686
|
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:1968
|
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:1971
|
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:2033
|
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:2036
|
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:2087
|
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:2090
|
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:2189
|
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:2192
|
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:2228
|
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:2231
|
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:2252
|
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:2255
|
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:2287
|
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:2293
|
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:2841 includes/class-mla-list-table.php:803
|
235 |
msgid "NO REFERENCE TESTS"
|
236 |
msgstr ""
|
237 |
|
238 |
+
#: includes/class-mla-data.php:2847 includes/class-mla-options.php:2567
|
239 |
+
#: includes/class-mla-options.php:2568
|
240 |
msgid "ORPHAN"
|
241 |
msgstr ""
|
242 |
|
243 |
+
#: includes/class-mla-data.php:2851
|
244 |
msgid "UNUSED"
|
245 |
msgstr ""
|
246 |
|
247 |
+
#: includes/class-mla-data.php:2856
|
248 |
msgid "UNATTACHED"
|
249 |
msgstr ""
|
250 |
|
251 |
+
#: includes/class-mla-data.php:2858
|
252 |
msgid "INVALID PARENT"
|
253 |
msgstr ""
|
254 |
|
255 |
#. translators: 1: post_type, 2: post_title, 3: post ID, 4: query string, 5: error message
|
256 |
+
#: includes/class-mla-data.php:3032
|
257 |
#, php-format
|
258 |
msgid "(%1$s) %2$s (ID %3$d) query \"%4$s\" failed, returning \"%5$s\""
|
259 |
msgstr ""
|
260 |
|
261 |
#. translators: 1: index
|
262 |
+
#: includes/class-mla-data.php:3278
|
263 |
#, php-format
|
264 |
msgctxt "error_log"
|
265 |
msgid "ERROR: _build_pdf_indirect_objects bad value at $index = \"%1$d\"."
|
266 |
msgstr ""
|
267 |
|
268 |
#. translators: 1: source offset 2: nest level
|
269 |
+
#: includes/class-mla-data.php:3603
|
270 |
#, php-format
|
271 |
msgctxt "error_log"
|
272 |
msgid "ERROR: _parse_pdf_dictionary offset = %1$d, nest = %2$d."
|
273 |
msgstr ""
|
274 |
|
275 |
#. translators: 1: dictionary excerpt
|
276 |
+
#: includes/class-mla-data.php:3605
|
277 |
#, php-format
|
278 |
msgctxt "error_log"
|
279 |
msgid "ERROR: _parse_pdf_dictionary no end delimiter dump = %1$s."
|
280 |
msgstr ""
|
281 |
|
282 |
#. translators: 1: entry name 2: value excerpt
|
283 |
+
#: includes/class-mla-data.php:3651
|
284 |
#, php-format
|
285 |
msgctxt "error_log"
|
286 |
msgid "ERROR: _parse_pdf_dictionary bad value [ %1$s ] dump = %2$s"
|
287 |
msgstr ""
|
288 |
|
289 |
+
#: includes/class-mla-data.php:3765
|
290 |
msgctxt "error_log"
|
291 |
msgid "ERROR: _parse_xmp_metadata xml_parse_into_struct failed."
|
292 |
msgstr ""
|
293 |
|
294 |
+
#: includes/class-mla-data.php:3768
|
295 |
msgctxt "error_log"
|
296 |
msgid "ERROR: _parse_xmp_metadata set option failed."
|
297 |
msgstr ""
|
298 |
|
299 |
#. translators: 1: path and file
|
300 |
+
#: includes/class-mla-data.php:4125
|
301 |
#, php-format
|
302 |
msgctxt "error_log"
|
303 |
msgid "ERROR: File \"%1$s\", startxref not found."
|
304 |
msgstr ""
|
305 |
|
306 |
#. translators: 1: meta_key
|
307 |
+
#: includes/class-mla-data.php:5042
|
308 |
#, php-format
|
309 |
msgid "Deleting meta:%1$s"
|
310 |
msgstr ""
|
311 |
|
312 |
#. translators: 1: meta_key
|
313 |
+
#: includes/class-mla-data.php:5045
|
314 |
#, php-format
|
315 |
msgid "ERROR: meta:%1$s not found"
|
316 |
msgstr ""
|
317 |
|
318 |
#. translators: 1: meta_key 2: meta_value
|
319 |
+
#: includes/class-mla-data.php:5054
|
320 |
#, php-format
|
321 |
msgid "Adding meta:%1$s = %2$s"
|
322 |
msgstr ""
|
323 |
|
324 |
#. translators: 1: meta_key
|
325 |
+
#: includes/class-mla-data.php:5058
|
326 |
#, php-format
|
327 |
msgid "ERROR: Adding meta:%1$s; not found"
|
328 |
msgstr ""
|
329 |
|
330 |
#. translators: 1: meta_key
|
331 |
+
#: includes/class-mla-data.php:5065
|
332 |
#, php-format
|
333 |
msgid "Deleting Null meta:%1$s"
|
334 |
msgstr ""
|
335 |
|
336 |
#. translators: 1: element name 2: old_value 3: new_value
|
337 |
+
#: includes/class-mla-data.php:5075 includes/class-mla-data.php:5226
|
338 |
+
#: includes/class-mla-data.php:5287 includes/class-mla-data.php:5313
|
339 |
+
#: includes/class-mla-data.php:5347 includes/class-mla-data.php:5360
|
340 |
+
#: includes/class-mla-data.php:5369 includes/class-mla-data.php:5380
|
341 |
+
#: includes/class-mla-data.php:5391 includes/class-mla-data.php:5404
|
342 |
+
#: includes/class-mla-data.php:5413 includes/class-mla-data.php:5422
|
343 |
#: includes/class-mla-mime-types.php:1052
|
344 |
#: includes/class-mla-mime-types.php:2119
|
345 |
#, php-format
|
347 |
msgstr ""
|
348 |
|
349 |
#. translators: 1: meta_key
|
350 |
+
#: includes/class-mla-data.php:5080
|
351 |
#, php-format
|
352 |
msgid "ERROR: Changing meta:%1$s; not found"
|
353 |
msgstr ""
|
354 |
|
355 |
#. translators: 1: meta_key
|
356 |
+
#: includes/class-mla-data.php:5140
|
357 |
#, php-format
|
358 |
msgid "Deleting %1$s"
|
359 |
msgstr ""
|
360 |
|
361 |
#. translators: 1: meta_key 2: new_value
|
362 |
+
#: includes/class-mla-data.php:5151
|
363 |
#, php-format
|
364 |
msgid "Adding %1$s = [%2$s]"
|
365 |
msgstr ""
|
366 |
|
367 |
#. translators: 1: meta_key 2: meta_value
|
368 |
+
#: includes/class-mla-data.php:5157
|
369 |
#, php-format
|
370 |
msgid "Adding %1$s = %2$s"
|
371 |
msgstr ""
|
372 |
|
373 |
#. translators: 1: meta_key
|
374 |
+
#: includes/class-mla-data.php:5181
|
375 |
#, php-format
|
376 |
msgid "Deleting old %1$s values"
|
377 |
msgstr ""
|
378 |
|
379 |
#. translators: 1: meta_key 2: old_value 3: new_value 4: update count
|
380 |
+
#: includes/class-mla-data.php:5211
|
381 |
#, php-format
|
382 |
msgid "Changing %1$s from \"%2$s\" to \"%3$s\"; %4$d updates"
|
383 |
msgstr ""
|
384 |
|
385 |
+
#: includes/class-mla-data.php:5269 includes/class-mla-main.php:1879
|
386 |
msgid "ERROR: Could not retrieve Attachment."
|
387 |
msgstr ""
|
388 |
|
389 |
+
#: includes/class-mla-data.php:5287 includes/class-mla-main.php:1292
|
390 |
+
#: includes/class-mla-main.php:1536 includes/class-mla-main.php:1726
|
391 |
+
#: includes/class-mla-main.php:2097 includes/class-mla-objects.php:275
|
392 |
+
#: includes/class-mla-options.php:990 includes/class-mla-options.php:1750
|
393 |
+
#: includes/mla-main-search-box-template.php:42
|
394 |
#: includes/mla-media-modal-js-template.php:32
|
395 |
msgid "Title"
|
396 |
msgstr ""
|
397 |
|
398 |
#. translators: 1: old_value
|
399 |
+
#: includes/class-mla-data.php:5310
|
400 |
#, php-format
|
401 |
msgid "ERROR: Could not change Name/Slug \"%1$s\"; name already exists"
|
402 |
msgstr ""
|
403 |
|
404 |
+
#: includes/class-mla-data.php:5313 includes/class-mla-main.php:1727
|
405 |
+
#: includes/class-mla-main.php:2100 includes/class-mla-options.php:997
|
406 |
msgid "Name/Slug"
|
407 |
msgstr ""
|
408 |
|
409 |
#. translators: 1: old_value
|
410 |
+
#: includes/class-mla-data.php:5339
|
411 |
#, php-format
|
412 |
msgid "Deleting ALT Text, was \"%1$s\""
|
413 |
msgstr ""
|
414 |
|
415 |
#. translators: 1: old_value
|
416 |
+
#: includes/class-mla-data.php:5342
|
417 |
#, php-format
|
418 |
msgid "ERROR: Could not delete ALT Text, remains \"%1$s\""
|
419 |
msgstr ""
|
420 |
|
421 |
+
#: includes/class-mla-data.php:5347 includes/class-mla-list-table.php:1042
|
422 |
+
#: includes/class-mla-main.php:1730 includes/class-mla-main.php:2103
|
423 |
+
#: includes/class-mla-options.php:1004 includes/class-mla-options.php:1756
|
424 |
+
#: includes/mla-main-search-box-template.php:44
|
425 |
+
#: includes/mla-media-modal-js-template.php:40
|
426 |
msgid "ALT Text"
|
427 |
msgstr ""
|
428 |
|
429 |
#. translators: 1: old_value 2: new_value
|
430 |
+
#: includes/class-mla-data.php:5350
|
431 |
#, php-format
|
432 |
msgid "ERROR: Could not change ALT Text from \"%1$s\" to \"%2$s\""
|
433 |
msgstr ""
|
434 |
|
435 |
+
#: includes/class-mla-data.php:5360 includes/class-mla-main.php:1728
|
436 |
+
#: includes/class-mla-main.php:2106 includes/class-mla-options.php:1011
|
437 |
+
#: includes/class-mla-options.php:1759
|
438 |
+
#: includes/mla-main-search-box-template.php:45
|
439 |
#: includes/mla-media-modal-js-template.php:45
|
440 |
msgid "Caption"
|
441 |
msgstr ""
|
442 |
|
443 |
+
#: includes/class-mla-data.php:5369 includes/class-mla-main.php:1729
|
444 |
+
#: includes/class-mla-main.php:2108 includes/class-mla-options.php:1018
|
445 |
+
#: includes/class-mla-options.php:1762 includes/class-mla-settings.php:1154
|
446 |
+
#: includes/class-mla-settings.php:1411 includes/class-mla-settings.php:1510
|
447 |
+
#: includes/class-mla-settings.php:1874
|
448 |
+
#: includes/mla-main-search-box-template.php:46
|
449 |
#: includes/mla-media-modal-js-template.php:49
|
450 |
msgid "Description"
|
451 |
msgstr ""
|
452 |
|
453 |
+
#: includes/class-mla-data.php:5380 includes/class-mla-list-table.php:777
|
454 |
+
#: includes/class-mla-list-table.php:869 includes/class-mla-options.php:4025
|
455 |
+
#: includes/class-mla-options.php:4365
|
456 |
msgid "Parent"
|
457 |
msgstr ""
|
458 |
|
459 |
+
#: includes/class-mla-data.php:5391 includes/class-mla-edit-media.php:307
|
460 |
+
#: includes/class-mla-edit-media.php:438 includes/class-mla-main.php:1733
|
461 |
+
#: includes/class-mla-main.php:2114 includes/class-mla-settings.php:1152
|
462 |
#: includes/class-mla-settings.php:1409
|
463 |
msgid "Menu Order"
|
464 |
msgstr ""
|
465 |
|
466 |
+
#: includes/class-mla-data.php:5404 includes/class-mla-list-table.php:1191
|
467 |
+
#: includes/class-mla-main.php:1603 includes/class-mla-main.php:1705
|
468 |
+
#: includes/class-mla-main.php:1928
|
469 |
msgid "Author"
|
470 |
msgstr ""
|
471 |
|
472 |
+
#: includes/class-mla-data.php:5413 includes/class-mla-main.php:1744
|
473 |
msgid "Comments"
|
474 |
msgstr ""
|
475 |
|
476 |
+
#: includes/class-mla-data.php:5422 includes/class-mla-main.php:1745
|
477 |
msgid "Pings"
|
478 |
msgstr ""
|
479 |
|
480 |
+
#: includes/class-mla-data.php:5456
|
481 |
msgid "Adding"
|
482 |
msgstr ""
|
483 |
|
484 |
+
#: includes/class-mla-data.php:5460
|
485 |
msgid "Removing"
|
486 |
msgstr ""
|
487 |
|
488 |
+
#: includes/class-mla-data.php:5465
|
489 |
msgid "Replacing"
|
490 |
msgstr ""
|
491 |
|
492 |
+
#: includes/class-mla-data.php:5469
|
493 |
msgid "Ignoring"
|
494 |
msgstr ""
|
495 |
|
496 |
#. translators: 1: action_name, 2: taxonomy
|
497 |
+
#: includes/class-mla-data.php:5481
|
498 |
#, php-format
|
499 |
msgid "%1$s \"%2$s\" terms"
|
500 |
msgstr ""
|
501 |
|
502 |
#. translators: 1: taxonomy
|
503 |
+
#: includes/class-mla-data.php:5485
|
504 |
#, php-format
|
505 |
msgid "You cannot assign \"%1$s\" terms"
|
506 |
msgstr ""
|
507 |
|
508 |
#. translators: 1: post ID
|
509 |
+
#: includes/class-mla-data.php:5497
|
510 |
#, php-format
|
511 |
msgid "Item %1$d, no changes detected."
|
512 |
msgstr ""
|
513 |
|
514 |
#. translators: 1: post ID
|
515 |
+
#: includes/class-mla-data.php:5509
|
516 |
#, php-format
|
517 |
msgid "Item %1$d updated."
|
518 |
msgstr ""
|
519 |
|
520 |
#. translators: 1: post ID
|
521 |
+
#: includes/class-mla-data.php:5523
|
522 |
#, php-format
|
523 |
msgid "ERROR: Item %1$d update failed."
|
524 |
msgstr ""
|
525 |
|
526 |
+
#: includes/class-mla-data.php:5546 includes/class-mla-edit-media.php:125
|
527 |
+
#: includes/class-mla-edit-media.php:170 includes/class-mla-main.php:326
|
528 |
+
#: includes/class-mla-main.php:354 includes/class-mla-main.php:1431
|
529 |
#: includes/class-mla-settings.php:307 includes/class-mla-settings.php:325
|
530 |
msgctxt "tag_delimiter"
|
531 |
msgid ","
|
532 |
msgstr ""
|
533 |
|
534 |
+
#: includes/class-mla-edit-media.php:172 includes/class-mla-main.php:348
|
535 |
msgid "An ajax.fail error has occurred. Please reload the page and try again."
|
536 |
msgstr ""
|
537 |
|
538 |
+
#: includes/class-mla-edit-media.php:173 includes/class-mla-main.php:349
|
539 |
msgid "An ajax.done error has occurred. Please reload the page and try again."
|
540 |
msgstr ""
|
541 |
|
542 |
+
#: includes/class-mla-edit-media.php:204
|
543 |
msgid "Custom field mapping updated."
|
544 |
msgstr ""
|
545 |
|
546 |
+
#: includes/class-mla-edit-media.php:205
|
547 |
msgid "IPTC/EXIF mapping updated."
|
548 |
msgstr ""
|
549 |
|
550 |
#. translators: date_i18n format for last modified date and time
|
551 |
+
#: includes/class-mla-edit-media.php:223
|
552 |
msgid "M j, Y @ G:i"
|
553 |
msgstr ""
|
554 |
|
555 |
+
#: includes/class-mla-edit-media.php:225 includes/class-mla-main.php:2092
|
556 |
msgid "Last modified"
|
557 |
msgstr ""
|
558 |
|
559 |
+
#: includes/class-mla-edit-media.php:236
|
560 |
msgid "Map Custom Field metadata for this item"
|
561 |
msgstr ""
|
562 |
|
563 |
+
#: includes/class-mla-edit-media.php:236 includes/class-mla-main.php:1751
|
564 |
msgid "Map Custom Field Metadata"
|
565 |
msgstr ""
|
566 |
|
567 |
+
#: includes/class-mla-edit-media.php:238
|
568 |
msgid "Map IPTC/EXIF metadata for this item"
|
569 |
msgstr ""
|
570 |
|
571 |
+
#: includes/class-mla-edit-media.php:238
|
572 |
msgid "Map IPTC/EXIF Metadata"
|
573 |
msgstr ""
|
574 |
|
575 |
+
#: includes/class-mla-edit-media.php:306 includes/class-mla-edit-media.php:419
|
576 |
+
#: includes/class-mla-main.php:2110
|
577 |
msgid "Parent Info"
|
578 |
msgstr ""
|
579 |
|
580 |
+
#: includes/class-mla-edit-media.php:311 includes/class-mla-edit-media.php:460
|
581 |
msgid "Attachment Metadata"
|
582 |
msgstr ""
|
583 |
|
584 |
+
#: includes/class-mla-edit-media.php:315 includes/class-mla-edit-media.php:492
|
585 |
+
#: includes/class-mla-main.php:2121 includes/class-mla-options.php:451
|
586 |
msgid "Featured in"
|
587 |
msgstr ""
|
588 |
|
589 |
+
#: includes/class-mla-edit-media.php:319 includes/class-mla-edit-media.php:528
|
590 |
+
#: includes/class-mla-main.php:2123 includes/class-mla-options.php:460
|
591 |
msgid "Inserted in"
|
592 |
msgstr ""
|
593 |
|
594 |
+
#: includes/class-mla-edit-media.php:323 includes/class-mla-edit-media.php:560
|
595 |
+
#: includes/class-mla-main.php:2125 includes/class-mla-options.php:469
|
596 |
#: includes/class-mla-settings.php:3317
|
597 |
msgid "Gallery in"
|
598 |
msgstr ""
|
599 |
|
600 |
+
#: includes/class-mla-edit-media.php:327 includes/class-mla-edit-media.php:592
|
601 |
+
#: includes/class-mla-main.php:2127 includes/class-mla-options.php:478
|
602 |
#: includes/class-mla-settings.php:3327
|
603 |
msgid "MLA Gallery in"
|
604 |
msgstr ""
|
605 |
|
606 |
#. translators: 1: function name 2: template key
|
607 |
+
#: includes/class-mla-edit-media.php:370 includes/class-mla-main.php:589
|
608 |
#: includes/class-mla-settings.php:469
|
609 |
#, php-format
|
610 |
msgctxt "error_log"
|
611 |
msgid "ERROR: %1$s discarding \"%2$s\"; no title/order"
|
612 |
msgstr ""
|
613 |
|
614 |
+
#: includes/class-mla-edit-media.php:418
|
615 |
msgid "Post Parent"
|
616 |
msgstr ""
|
617 |
|
618 |
+
#: includes/class-mla-edit-media.php:420 includes/class-mla-main.php:1527
|
|
|
619 |
msgid "Select Parent"
|
620 |
msgstr ""
|
621 |
|
622 |
+
#: includes/class-mla-edit-media.php:420 includes/class-mla-main.php:1732
|
623 |
#: includes/class-mla-upload-optional-list-table.php:281
|
624 |
msgid "Select"
|
625 |
msgstr ""
|
626 |
|
627 |
+
#: includes/class-mla-edit-media.php:483 includes/class-mla-edit-media.php:518
|
628 |
+
#: includes/class-mla-edit-media.php:551 includes/class-mla-edit-media.php:583
|
629 |
+
#: includes/class-mla-list-table.php:905 includes/class-mla-list-table.php:942
|
630 |
+
#: includes/class-mla-list-table.php:977
|
631 |
+
#: includes/class-mla-list-table.php:1011 includes/class-mla-main.php:1941
|
632 |
+
#: includes/class-mla-main.php:1960 includes/class-mla-main.php:1977
|
633 |
+
#: includes/class-mla-main.php:1993
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
634 |
msgid "PARENT"
|
635 |
msgstr ""
|
636 |
|
637 |
+
#: includes/class-mla-edit-media.php:773
|
638 |
msgid "Most Used"
|
639 |
msgstr ""
|
640 |
|
641 |
#. translators: %s: add new taxonomy label
|
642 |
+
#: includes/class-mla-edit-media.php:802
|
643 |
#, php-format
|
644 |
msgid "+ %s"
|
645 |
msgstr ""
|
646 |
|
647 |
+
#: includes/class-mla-edit-media.php:808
|
648 |
msgid "? Search"
|
649 |
msgstr ""
|
650 |
|
658 |
msgid "No"
|
659 |
msgstr ""
|
660 |
|
661 |
+
#: includes/class-mla-list-table.php:398
|
662 |
msgctxt "list_table_column"
|
663 |
msgid "ID/Parent"
|
664 |
msgstr ""
|
665 |
|
666 |
+
#: includes/class-mla-list-table.php:399
|
667 |
msgctxt "list_table_column"
|
668 |
msgid "Title/Name"
|
669 |
msgstr ""
|
670 |
|
671 |
+
#: includes/class-mla-list-table.php:400
|
672 |
msgctxt "list_table_column"
|
673 |
msgid "Title"
|
674 |
msgstr ""
|
675 |
|
676 |
+
#: includes/class-mla-list-table.php:401
|
677 |
msgctxt "list_table_column"
|
678 |
msgid "Name"
|
679 |
msgstr ""
|
680 |
|
681 |
+
#: includes/class-mla-list-table.php:402
|
682 |
msgctxt "list_table_column"
|
683 |
msgid "Parent ID"
|
684 |
msgstr ""
|
685 |
|
686 |
+
#: includes/class-mla-list-table.php:403
|
687 |
msgctxt "list_table_column"
|
688 |
msgid "Menu Order"
|
689 |
msgstr ""
|
690 |
|
691 |
+
#: includes/class-mla-list-table.php:404
|
692 |
msgctxt "list_table_column"
|
693 |
msgid "Featured in"
|
694 |
msgstr ""
|
695 |
|
696 |
+
#: includes/class-mla-list-table.php:405
|
697 |
msgctxt "list_table_column"
|
698 |
msgid "Inserted in"
|
699 |
msgstr ""
|
700 |
|
701 |
+
#: includes/class-mla-list-table.php:406
|
702 |
msgctxt "list_table_column"
|
703 |
msgid "Gallery in"
|
704 |
msgstr ""
|
705 |
|
706 |
+
#: includes/class-mla-list-table.php:407
|
707 |
msgctxt "list_table_column"
|
708 |
msgid "MLA Gallery in"
|
709 |
msgstr ""
|
710 |
|
711 |
+
#: includes/class-mla-list-table.php:408
|
712 |
msgctxt "list_table_column"
|
713 |
msgid "ALT Text"
|
714 |
msgstr ""
|
715 |
|
716 |
+
#: includes/class-mla-list-table.php:409
|
717 |
msgctxt "list_table_column"
|
718 |
msgid "Caption"
|
719 |
msgstr ""
|
720 |
|
721 |
+
#: includes/class-mla-list-table.php:410
|
722 |
#: includes/class-mla-upload-list-table.php:186
|
723 |
#: includes/class-mla-upload-optional-list-table.php:171
|
724 |
#: includes/class-mla-view-list-table.php:179
|
726 |
msgid "Description"
|
727 |
msgstr ""
|
728 |
|
729 |
+
#: includes/class-mla-list-table.php:411
|
730 |
#: includes/class-mla-upload-list-table.php:178
|
731 |
#: includes/class-mla-upload-optional-list-table.php:168
|
732 |
msgctxt "list_table_column"
|
733 |
msgid "MIME Type"
|
734 |
msgstr ""
|
735 |
|
736 |
+
#: includes/class-mla-list-table.php:412
|
737 |
msgctxt "list_table_column"
|
738 |
msgid "File URL"
|
739 |
msgstr ""
|
740 |
|
741 |
+
#: includes/class-mla-list-table.php:413
|
742 |
msgctxt "list_table_column"
|
743 |
msgid "Base File"
|
744 |
msgstr ""
|
745 |
|
746 |
+
#: includes/class-mla-list-table.php:414
|
747 |
msgctxt "list_table_column"
|
748 |
msgid "Date"
|
749 |
msgstr ""
|
750 |
|
751 |
+
#: includes/class-mla-list-table.php:415
|
752 |
msgctxt "list_table_column"
|
753 |
msgid "Last Modified"
|
754 |
msgstr ""
|
755 |
|
756 |
+
#: includes/class-mla-list-table.php:416
|
757 |
msgctxt "list_table_column"
|
758 |
msgid "Author"
|
759 |
msgstr ""
|
760 |
|
761 |
+
#: includes/class-mla-list-table.php:417
|
762 |
msgctxt "list_table_column"
|
763 |
msgid "Attached to"
|
764 |
msgstr ""
|
765 |
|
766 |
+
#: includes/class-mla-list-table.php:513
|
767 |
+
#: includes/class-mla-list-table.php:1100 includes/class-mla-options.php:582
|
768 |
+
#: includes/class-mla-options.php:748 includes/class-mla-options.php:772
|
769 |
+
#: includes/class-mla-options.php:786 includes/class-mla-settings.php:1958
|
770 |
msgid "None"
|
771 |
msgstr ""
|
772 |
|
773 |
+
#: includes/class-mla-list-table.php:519 includes/class-mla-list-table.php:547
|
774 |
+
#: includes/class-mla-list-table.php:1038
|
775 |
+
#: includes/class-mla-list-table.php:1082
|
776 |
msgid "Filter by"
|
777 |
msgstr ""
|
778 |
|
779 |
+
#: includes/class-mla-list-table.php:529
|
780 |
msgid "not supported"
|
781 |
msgstr ""
|
782 |
|
783 |
#. translators: 1: column_name 2: column_values
|
784 |
+
#: includes/class-mla-list-table.php:564
|
785 |
#: includes/class-mla-upload-list-table.php:247
|
786 |
#: includes/class-mla-upload-optional-list-table.php:228
|
787 |
#: includes/class-mla-view-list-table.php:236
|
789 |
msgid "column_default: %1$s, %2$s"
|
790 |
msgstr ""
|
791 |
|
792 |
+
#: includes/class-mla-list-table.php:610 includes/class-mla-list-table.php:646
|
793 |
+
#: includes/class-mla-list-table.php:648 includes/class-mla-list-table.php:910
|
794 |
+
#: includes/class-mla-list-table.php:947 includes/class-mla-list-table.php:982
|
795 |
+
#: includes/class-mla-list-table.php:1016
|
796 |
+
#: includes/class-mla-list-table.php:1208
|
797 |
+
#: includes/class-mla-list-table.php:1633
|
798 |
#: includes/class-mla-upload-list-table.php:312
|
799 |
#: includes/class-mla-upload-list-table.php:610
|
800 |
#: includes/class-mla-view-list-table.php:302
|
802 |
msgid "Edit"
|
803 |
msgstr ""
|
804 |
|
805 |
+
#: includes/class-mla-list-table.php:640
|
806 |
msgid "Restore this item from the Trash"
|
807 |
msgstr ""
|
808 |
|
809 |
+
#: includes/class-mla-list-table.php:640
|
810 |
+
#: includes/class-mla-list-table.php:1630
|
811 |
msgid "Restore"
|
812 |
msgstr ""
|
813 |
|
814 |
+
#: includes/class-mla-list-table.php:646 includes/class-mla-list-table.php:648
|
815 |
#: includes/class-mla-upload-list-table.php:312
|
816 |
#: includes/class-mla-view-list-table.php:302
|
817 |
msgid "Edit this item"
|
818 |
msgstr ""
|
819 |
|
820 |
+
#: includes/class-mla-list-table.php:650
|
821 |
#: includes/class-mla-upload-list-table.php:314
|
822 |
#: includes/class-mla-view-list-table.php:304
|
823 |
msgid "Edit this item inline"
|
824 |
msgstr ""
|
825 |
|
826 |
+
#: includes/class-mla-list-table.php:650 includes/class-mla-main.php:1725
|
827 |
+
#: includes/class-mla-options.php:3128 includes/class-mla-options.php:3400
|
828 |
#: includes/class-mla-upload-list-table.php:314
|
829 |
#: includes/class-mla-view-list-table.php:304
|
830 |
msgid "Quick Edit"
|
831 |
msgstr ""
|
832 |
|
833 |
+
#: includes/class-mla-list-table.php:656
|
834 |
msgid "Move this item to the Trash"
|
835 |
msgstr ""
|
836 |
|
837 |
+
#: includes/class-mla-list-table.php:656
|
838 |
+
#: includes/class-mla-list-table.php:1636
|
839 |
msgid "Move to Trash"
|
840 |
msgstr ""
|
841 |
|
842 |
+
#: includes/class-mla-list-table.php:661
|
843 |
#: includes/class-mla-upload-list-table.php:318
|
844 |
#: includes/class-mla-view-list-table.php:310
|
845 |
msgid "Delete this item Permanently"
|
846 |
msgstr ""
|
847 |
|
848 |
+
#: includes/class-mla-list-table.php:661
|
849 |
+
#: includes/class-mla-list-table.php:1631
|
850 |
+
#: includes/class-mla-list-table.php:1638
|
851 |
#: includes/class-mla-upload-list-table.php:318
|
852 |
#: includes/class-mla-view-list-table.php:310
|
853 |
#: includes/class-mla-view-list-table.php:514
|
854 |
msgid "Delete Permanently"
|
855 |
msgstr ""
|
856 |
|
857 |
+
#: includes/class-mla-list-table.php:665
|
858 |
msgid "View"
|
859 |
msgstr ""
|
860 |
|
861 |
+
#: includes/class-mla-list-table.php:703 includes/class-mla-list-table.php:771
|
862 |
+
#: includes/class-mla-main.php:352 includes/class-mla-main.php:1296
|
863 |
msgid "(no title)"
|
864 |
msgstr ""
|
865 |
|
866 |
+
#: includes/class-mla-list-table.php:774 includes/class-mla-list-table.php:866
|
867 |
msgid "Filter by Parent ID"
|
868 |
msgstr ""
|
869 |
|
870 |
+
#: includes/class-mla-list-table.php:863
|
871 |
msgid "(no title: bad ID)"
|
872 |
msgstr ""
|
873 |
|
874 |
+
#: includes/class-mla-list-table.php:898 includes/class-mla-list-table.php:932
|
875 |
+
#: includes/class-mla-list-table.php:970
|
876 |
+
#: includes/class-mla-list-table.php:1004 includes/class-mla-main.php:1949
|
877 |
+
#: includes/class-mla-main.php:1969 includes/class-mla-main.php:1985
|
878 |
+
#: includes/class-mla-main.php:2001 includes/class-mla-options.php:455
|
879 |
+
#: includes/class-mla-options.php:464 includes/class-mla-options.php:473
|
880 |
+
#: includes/class-mla-options.php:482
|
881 |
msgid "Disabled"
|
882 |
msgstr ""
|
883 |
|
884 |
+
#: includes/class-mla-list-table.php:1085 includes/class-mla-settings.php:1503
|
885 |
#: includes/class-mla-settings.php:1868
|
886 |
msgid "MIME Type"
|
887 |
msgstr ""
|
888 |
|
889 |
+
#: includes/class-mla-list-table.php:1125
|
890 |
+
#: includes/class-mla-list-table.php:1157
|
891 |
msgid "Unpublished"
|
892 |
msgstr ""
|
893 |
|
894 |
#. translators: 1: upload/last modified date and time
|
895 |
+
#: includes/class-mla-list-table.php:1133
|
896 |
+
#: includes/class-mla-list-table.php:1164
|
897 |
#, php-format
|
898 |
msgid "%1$s from now"
|
899 |
msgstr ""
|
900 |
|
901 |
#. translators: 1: upload/last modified date and time
|
902 |
+
#: includes/class-mla-list-table.php:1136
|
903 |
+
#: includes/class-mla-list-table.php:1166
|
904 |
#, php-format
|
905 |
msgid "%1$s ago"
|
906 |
msgstr ""
|
907 |
|
908 |
#. translators: format for upload/last modified date
|
909 |
+
#. translators: date format in table columns, see http://php.net/date
|
|
|
910 |
#: includes/class-mla-list-table.php:1140
|
911 |
+
#: includes/class-mla-list-table.php:1169
|
912 |
+
#: includes/class-mla-list-table.php:1225 includes/class-mla-main.php:1319
|
913 |
msgid "Y/m/d"
|
914 |
msgstr ""
|
915 |
|
916 |
+
#: includes/class-mla-list-table.php:1188
|
917 |
msgid "Filter by Author ID"
|
918 |
msgstr ""
|
919 |
|
920 |
+
#: includes/class-mla-list-table.php:1227 includes/class-mla-options.php:1107
|
921 |
msgctxt "post_mime_types_singular"
|
922 |
msgid "Unattached"
|
923 |
msgstr ""
|
924 |
|
925 |
+
#: includes/class-mla-list-table.php:1230
|
926 |
msgid "Set Parent"
|
927 |
msgstr ""
|
928 |
|
929 |
+
#: includes/class-mla-list-table.php:1482
|
930 |
msgctxt "uploaded files"
|
931 |
msgid "All"
|
932 |
msgid_plural "All"
|
933 |
msgstr[0] ""
|
934 |
msgstr[1] ""
|
935 |
|
936 |
+
#: includes/class-mla-list-table.php:1664
|
937 |
msgid "Filter"
|
938 |
msgstr ""
|
939 |
|
940 |
+
#: includes/class-mla-list-table.php:1668
|
941 |
+
#: includes/mla-media-modal-js-template.php:58
|
942 |
+
msgid "Terms Search"
|
943 |
+
msgstr ""
|
944 |
+
|
945 |
+
#: includes/class-mla-list-table.php:1674
|
946 |
msgid "Clear Filter-by"
|
947 |
msgstr ""
|
948 |
|
949 |
+
#: includes/class-mla-list-table.php:1678
|
950 |
msgid "Empty Trash"
|
951 |
msgstr ""
|
952 |
|
953 |
+
#: includes/class-mla-main.php:350 includes/class-mla-settings.php:304
|
954 |
#: includes/class-mla-settings.php:322
|
955 |
msgid "Error while saving the changes."
|
956 |
msgstr ""
|
957 |
|
958 |
+
#: includes/class-mla-main.php:351 includes/class-mla-settings.php:305
|
959 |
#: includes/class-mla-settings.php:323
|
960 |
msgid "Remove From Bulk Edit"
|
961 |
msgstr ""
|
962 |
|
963 |
+
#: includes/class-mla-main.php:353
|
964 |
+
msgid "Bulk Edit items"
|
965 |
+
msgstr ""
|
966 |
+
|
967 |
+
#: includes/class-mla-main.php:471
|
968 |
#, php-format
|
969 |
msgid "Item permanently deleted."
|
970 |
msgid_plural "%d items permanently deleted."
|
972 |
msgstr[1] ""
|
973 |
|
974 |
#. translators: 1: post ID
|
975 |
+
#: includes/class-mla-main.php:476 includes/class-mla-main.php:2209
|
976 |
#, php-format
|
977 |
msgid "Item %1$d moved to Trash."
|
978 |
msgstr ""
|
979 |
|
980 |
+
#: includes/class-mla-main.php:495
|
981 |
msgid "Entries per page"
|
982 |
msgstr ""
|
983 |
|
984 |
+
#: includes/class-mla-main.php:815
|
985 |
msgid "You do not have permission to manage attachments."
|
986 |
msgstr ""
|
987 |
|
988 |
#. translators: 1: bulk_action, e.g., delete, edit, restore, trash
|
989 |
+
#: includes/class-mla-main.php:954 includes/class-mla-settings.php:1266
|
990 |
#: includes/class-mla-settings.php:1733
|
991 |
#, php-format
|
992 |
msgid "Unknown bulk action %1$s"
|
993 |
msgstr ""
|
994 |
|
995 |
#. translators: 1: action name, e.g., edit
|
996 |
+
#: includes/class-mla-main.php:979 includes/class-mla-settings.php:1276
|
997 |
#: includes/class-mla-settings.php:1744
|
998 |
#, php-format
|
999 |
msgid "Bulk Action %1$s - no items selected."
|
1000 |
msgstr ""
|
1001 |
|
1002 |
+
#: includes/class-mla-main.php:1008 includes/class-mla-main.php:1100
|
1003 |
+
#: includes/class-mla-main.php:1131 includes/class-mla-main.php:1359
|
1004 |
#: includes/class-mla-settings.php:547 includes/class-mla-settings.php:587
|
1005 |
#: includes/class-mla-settings.php:1220 includes/class-mla-settings.php:1297
|
1006 |
#: includes/class-mla-settings.php:1686 includes/class-mla-settings.php:1765
|
1007 |
#: includes/class-mla-settings.php:2316 includes/class-mla-settings.php:2439
|
1008 |
+
#: includes/class-mla-settings.php:2574 includes/class-mla-shortcodes.php:1261
|
1009 |
+
#: includes/class-mla-shortcodes.php:1335
|
1010 |
msgid "ERROR:"
|
1011 |
msgstr ""
|
1012 |
|
1013 |
+
#: includes/class-mla-main.php:1016
|
1014 |
#, php-format
|
1015 |
msgctxt "deleted items"
|
1016 |
msgid "%s item deleted."
|
1018 |
msgstr[0] ""
|
1019 |
msgstr[1] ""
|
1020 |
|
1021 |
+
#: includes/class-mla-main.php:1018
|
1022 |
msgid "No items deleted."
|
1023 |
msgstr ""
|
1024 |
|
1025 |
+
#: includes/class-mla-main.php:1033
|
1026 |
msgid "Edit single item"
|
1027 |
msgstr ""
|
1028 |
|
1029 |
#. translators: 1: post ID
|
1030 |
+
#: includes/class-mla-main.php:1046
|
1031 |
#, php-format
|
1032 |
msgid "Item %1$d cancelled."
|
1033 |
msgstr ""
|
1034 |
|
1035 |
+
#: includes/class-mla-main.php:1081
|
1036 |
+
msgid "Empty Terms Search; ignored"
|
1037 |
+
msgstr ""
|
1038 |
+
|
1039 |
+
#. translators: 1: row-level action, e.g., single_item_delete, single_item_edit
|
1040 |
#. translators: 1: bulk_action, e.g., single_item_delete, single_item_edit
|
1041 |
+
#: includes/class-mla-main.php:1091 includes/class-mla-settings.php:1313
|
1042 |
#: includes/class-mla-settings.php:1783
|
1043 |
#, php-format
|
1044 |
msgid "Unknown mla_admin_action - \"%1$s\""
|
1045 |
msgstr ""
|
1046 |
|
1047 |
+
#: includes/class-mla-main.php:1119
|
1048 |
+
msgid "term search results for"
|
1049 |
+
msgstr ""
|
1050 |
+
|
1051 |
+
#: includes/class-mla-main.php:1122
|
1052 |
msgid "post/parent results for"
|
1053 |
msgstr ""
|
1054 |
|
1055 |
+
#: includes/class-mla-main.php:1124
|
1056 |
msgid "search results for"
|
1057 |
msgstr ""
|
1058 |
|
1059 |
+
#: includes/class-mla-main.php:1292 includes/class-mla-main.php:1537
|
1060 |
+
msgid "Type"
|
|
|
1061 |
msgstr ""
|
1062 |
|
1063 |
+
#: includes/class-mla-main.php:1292 includes/class-mla-main.php:1538
|
1064 |
+
msgid "Date"
|
|
|
1065 |
msgstr ""
|
1066 |
|
1067 |
+
#: includes/class-mla-main.php:1292 includes/class-mla-main.php:1539
|
1068 |
+
#: includes/class-mla-settings.php:1884
|
1069 |
+
msgid "Status"
|
1070 |
msgstr ""
|
1071 |
|
1072 |
+
#: includes/class-mla-main.php:1302
|
1073 |
+
msgid "Published"
|
1074 |
+
msgstr ""
|
1075 |
+
|
1076 |
+
#: includes/class-mla-main.php:1305
|
1077 |
+
msgid "Scheduled"
|
1078 |
+
msgstr ""
|
1079 |
+
|
1080 |
+
#: includes/class-mla-main.php:1308
|
1081 |
+
msgid "Pending Review"
|
1082 |
+
msgstr ""
|
1083 |
+
|
1084 |
+
#: includes/class-mla-main.php:1311
|
1085 |
+
msgid "Draft"
|
1086 |
msgstr ""
|
1087 |
|
1088 |
+
#: includes/class-mla-main.php:1348 includes/class-mla-main.php:1386
|
1089 |
msgid "ERROR: No post ID found"
|
1090 |
msgstr ""
|
1091 |
|
1092 |
+
#: includes/class-mla-main.php:1355 includes/class-mla-main.php:1393
|
1093 |
+
#: includes/class-mla-main.php:1886
|
1094 |
msgid "You are not allowed to edit this Attachment."
|
1095 |
msgstr ""
|
1096 |
|
1097 |
+
#: includes/class-mla-main.php:1484
|
1098 |
+
msgid "All Post Types"
|
1099 |
+
msgstr ""
|
1100 |
+
|
1101 |
+
#: includes/class-mla-main.php:1528 includes/class-mla-media-modal.php:1101
|
1102 |
+
#: includes/mla-media-modal-js-template.php:20
|
1103 |
+
msgid "Search"
|
1104 |
+
msgstr ""
|
1105 |
+
|
1106 |
+
#: includes/class-mla-main.php:1530
|
1107 |
+
msgid "For"
|
1108 |
+
msgstr ""
|
1109 |
+
|
1110 |
+
#: includes/class-mla-main.php:1540
|
1111 |
+
msgid "Unattached"
|
1112 |
+
msgstr ""
|
1113 |
+
|
1114 |
+
#: includes/class-mla-main.php:1545 includes/class-mla-main.php:1738
|
1115 |
+
#: includes/class-mla-main.php:2083 includes/class-mla-settings.php:1157
|
1116 |
+
#: includes/class-mla-settings.php:1416 includes/class-mla-settings.php:1513
|
1117 |
+
#: includes/class-mla-settings.php:1585 includes/class-mla-settings.php:1881
|
1118 |
+
msgid "Cancel"
|
1119 |
+
msgstr ""
|
1120 |
+
|
1121 |
+
#: includes/class-mla-main.php:1549 includes/class-mla-main.php:1739
|
1122 |
+
#: includes/class-mla-main.php:2084 includes/class-mla-settings.php:1156
|
1123 |
+
#: includes/class-mla-settings.php:1417 includes/class-mla-settings.php:1512
|
1124 |
+
#: includes/class-mla-settings.php:1882
|
1125 |
+
msgid "Update"
|
1126 |
+
msgstr ""
|
1127 |
+
|
1128 |
+
#: includes/class-mla-main.php:1638
|
1129 |
msgid "more"
|
1130 |
msgstr ""
|
1131 |
|
1132 |
+
#: includes/class-mla-main.php:1639
|
1133 |
msgid "less"
|
1134 |
msgstr ""
|
1135 |
|
1136 |
+
#: includes/class-mla-main.php:1642 includes/class-mla-main.php:1680
|
1137 |
msgid "Add"
|
1138 |
msgstr ""
|
1139 |
|
1140 |
+
#: includes/class-mla-main.php:1643 includes/class-mla-main.php:1681
|
1141 |
msgid "Remove"
|
1142 |
msgstr ""
|
1143 |
|
1144 |
+
#: includes/class-mla-main.php:1644 includes/class-mla-main.php:1682
|
1145 |
+
#: includes/class-mla-options.php:3226 includes/class-mla-options.php:3323
|
1146 |
+
#: includes/class-mla-options.php:3365 includes/class-mla-options.php:4254
|
1147 |
+
#: includes/class-mla-options.php:4304 includes/class-mla-options.php:4401
|
1148 |
+
#: includes/class-mla-options.php:4445 includes/class-mla-options.php:4470
|
1149 |
msgid "Replace"
|
1150 |
msgstr ""
|
1151 |
|
1152 |
+
#: includes/class-mla-main.php:1731
|
1153 |
msgid "Parent ID"
|
1154 |
msgstr ""
|
1155 |
|
1156 |
+
#: includes/class-mla-main.php:1740 includes/class-mla-options.php:3142
|
1157 |
+
#: includes/class-mla-options.php:3401 includes/class-mla-settings.php:1418
|
1158 |
#: includes/class-mla-settings.php:1883
|
1159 |
msgid "Bulk Edit"
|
1160 |
msgstr ""
|
1161 |
|
1162 |
+
#: includes/class-mla-main.php:1746 includes/class-mla-main.php:1786
|
1163 |
#: includes/class-mla-settings.php:1419 includes/class-mla-settings.php:1457
|
1164 |
#: includes/class-mla-settings.php:1885
|
1165 |
msgid "No Change"
|
1166 |
msgstr ""
|
1167 |
|
1168 |
+
#: includes/class-mla-main.php:1747
|
1169 |
msgid "Allow"
|
1170 |
msgstr ""
|
1171 |
|
1172 |
+
#: includes/class-mla-main.php:1748
|
1173 |
msgid "Do not allow"
|
1174 |
msgstr ""
|
1175 |
|
1176 |
+
#: includes/class-mla-main.php:1750 includes/class-mla-main.php:2085
|
1177 |
msgid "Map IPTC/EXIF metadata"
|
1178 |
msgstr ""
|
1179 |
|
1180 |
+
#: includes/class-mla-main.php:1838
|
1181 |
msgid "ERROR: You are not allowed to delete this item."
|
1182 |
msgstr ""
|
1183 |
|
1184 |
#. translators: 1: post ID
|
1185 |
+
#: includes/class-mla-main.php:1846
|
1186 |
#, php-format
|
1187 |
msgid "ERROR: Item %1$d could NOT be deleted."
|
1188 |
msgstr ""
|
1189 |
|
1190 |
#. translators: 1: post ID
|
1191 |
+
#: includes/class-mla-main.php:1853
|
1192 |
#, php-format
|
1193 |
msgid "Item %1$d permanently deleted."
|
1194 |
msgstr ""
|
1195 |
|
1196 |
#. translators: 1: page_template_array
|
1197 |
+
#: includes/class-mla-main.php:1913
|
1198 |
#, php-format
|
1199 |
msgctxt "error_log"
|
1200 |
msgid "ERROR: MLA::_display_single_item \\$page_template_array = \"%1$s\""
|
1201 |
msgstr ""
|
1202 |
|
1203 |
+
#: includes/class-mla-main.php:2087
|
1204 |
msgid "File name"
|
1205 |
msgstr ""
|
1206 |
|
1207 |
+
#: includes/class-mla-main.php:2089
|
1208 |
msgid "File type"
|
1209 |
msgstr ""
|
1210 |
|
1211 |
+
#: includes/class-mla-main.php:2090
|
1212 |
msgid "Upload date"
|
1213 |
msgstr ""
|
1214 |
|
1215 |
+
#: includes/class-mla-main.php:2094
|
1216 |
msgid "Dimensions"
|
1217 |
msgstr ""
|
1218 |
|
1219 |
+
#: includes/class-mla-main.php:2098
|
1220 |
msgid "required"
|
1221 |
msgstr ""
|
1222 |
|
1223 |
+
#: includes/class-mla-main.php:2102
|
1224 |
msgid "Must be unique; will be validated."
|
1225 |
msgstr ""
|
1226 |
|
1227 |
+
#: includes/class-mla-main.php:2105
|
1228 |
msgid "Alternate text for the image, e.g. “The Mona Lisa”"
|
1229 |
msgstr ""
|
1230 |
|
1231 |
+
#: includes/class-mla-main.php:2113
|
1232 |
msgid "ID, type and title of parent, if any."
|
1233 |
msgstr ""
|
1234 |
|
1235 |
+
#: includes/class-mla-main.php:2116
|
1236 |
msgid "File URL"
|
1237 |
msgstr ""
|
1238 |
|
1239 |
+
#: includes/class-mla-main.php:2118
|
1240 |
msgid "Location of the uploaded file."
|
1241 |
msgstr ""
|
1242 |
|
1243 |
+
#: includes/class-mla-main.php:2119
|
1244 |
msgid "Image Metadata"
|
1245 |
msgstr ""
|
1246 |
|
1247 |
+
#: includes/class-mla-main.php:2154
|
1248 |
msgid "ERROR: You are not allowed to move this item out of the Trash."
|
1249 |
msgstr ""
|
1250 |
|
1251 |
#. translators: 1: post ID
|
1252 |
+
#: includes/class-mla-main.php:2162
|
1253 |
#, php-format
|
1254 |
msgid "ERROR: Item %1$d could NOT be restored from Trash."
|
1255 |
msgstr ""
|
1256 |
|
1257 |
#. translators: 1: post ID
|
1258 |
+
#: includes/class-mla-main.php:2177
|
1259 |
#, php-format
|
1260 |
msgid "Item %1$d restored from Trash."
|
1261 |
msgstr ""
|
1262 |
|
1263 |
+
#: includes/class-mla-main.php:2194
|
1264 |
msgid "ERROR: You are not allowed to move this item to the Trash."
|
1265 |
msgstr ""
|
1266 |
|
1267 |
#. translators: 1: post ID
|
1268 |
+
#: includes/class-mla-main.php:2202
|
1269 |
#, php-format
|
1270 |
msgid "ERROR: Item %1$d could NOT be moved to Trash."
|
1271 |
msgstr ""
|
1272 |
|
1273 |
+
#: includes/class-mla-media-modal.php:230
|
1274 |
+
#: includes/class-mla-media-modal.php:236
|
1275 |
+
#: includes/class-mla-media-modal.php:711
|
1276 |
+
#: includes/class-mla-media-modal.php:745
|
1277 |
+
#: includes/class-mla-media-modal.php:790
|
1278 |
msgid "Click to toggle"
|
1279 |
msgstr ""
|
1280 |
|
1281 |
+
#: includes/class-mla-media-modal.php:272
|
1282 |
msgid "Show all dates"
|
1283 |
msgstr ""
|
1284 |
|
1285 |
#. translators: 1: month name, 2: 4-digit year
|
1286 |
+
#: includes/class-mla-media-modal.php:287
|
1287 |
#, php-format
|
1288 |
msgid "%1$s %2$d"
|
1289 |
msgstr ""
|
1290 |
|
1291 |
+
#: includes/class-mla-media-modal.php:431
|
1292 |
msgid "Search Box"
|
1293 |
msgstr ""
|
1294 |
|
1295 |
+
#: includes/class-mla-media-modal.php:432
|
1296 |
msgid "Loading..."
|
1297 |
msgstr ""
|
1298 |
|
1299 |
+
#: includes/class-mla-media-modal.php:756
|
1300 |
msgid "Tags"
|
1301 |
msgstr ""
|
1302 |
|
1303 |
#. translators: %s: add new taxonomy label
|
1304 |
+
#: includes/class-mla-media-modal.php:758
|
1305 |
#, php-format
|
1306 |
msgid "Add New %1$s"
|
1307 |
msgstr ""
|
1308 |
|
1309 |
+
#: includes/class-mla-media-modal.php:774
|
1310 |
msgid "Choose from the most used tags"
|
1311 |
msgstr ""
|
1312 |
|
1313 |
+
#: includes/class-mla-media-modal.php:796
|
1314 |
msgid "Not Supported"
|
1315 |
msgstr ""
|
1316 |
|
1317 |
+
#: includes/class-mla-media-modal.php:1084
|
1318 |
+
#: includes/class-mla-media-modal.php:1100
|
1319 |
+
msgid "Search Terms"
|
1320 |
+
msgstr ""
|
1321 |
+
|
1322 |
+
#: includes/class-mla-media-modal.php:1085
|
1323 |
+
msgid "There are no taxonomies to search"
|
1324 |
+
msgstr ""
|
1325 |
+
|
1326 |
+
#: includes/class-mla-media-modal.php:1103
|
1327 |
+
msgid "All phrases"
|
1328 |
+
msgstr ""
|
1329 |
+
|
1330 |
+
#: includes/class-mla-media-modal.php:1105
|
1331 |
+
msgid "Any phrase"
|
1332 |
+
msgstr ""
|
1333 |
+
|
1334 |
+
#: includes/class-mla-media-modal.php:1107
|
1335 |
+
msgid "All terms"
|
1336 |
+
msgstr ""
|
1337 |
+
|
1338 |
+
#: includes/class-mla-media-modal.php:1109
|
1339 |
+
msgid "Any term"
|
1340 |
+
msgstr ""
|
1341 |
+
|
1342 |
#: includes/class-mla-mime-types.php:364
|
1343 |
msgctxt "post_mime_types"
|
1344 |
msgid "Manage"
|
1627 |
msgid "Att. Category"
|
1628 |
msgstr ""
|
1629 |
|
1630 |
+
#: includes/class-mla-objects.php:67
|
1631 |
msgctxt "taxonomy_name_plural"
|
1632 |
msgid "Att. Tags"
|
1633 |
msgstr ""
|
1634 |
|
1635 |
+
#: includes/class-mla-objects.php:68
|
1636 |
msgctxt "taxonomy_name_singular"
|
1637 |
msgid "Att. Tag"
|
1638 |
msgstr ""
|
1639 |
|
1640 |
+
#: includes/class-mla-objects.php:69
|
1641 |
msgid "Search Att. Tags"
|
1642 |
msgstr ""
|
1643 |
|
1644 |
+
#: includes/class-mla-objects.php:70
|
1645 |
msgid "All Att. Tags"
|
1646 |
msgstr ""
|
1647 |
|
1648 |
+
#: includes/class-mla-objects.php:71 includes/class-mla-objects.php:72
|
1649 |
msgid "Parent Att. Tag"
|
1650 |
msgstr ""
|
1651 |
|
1652 |
+
#: includes/class-mla-objects.php:73
|
1653 |
msgid "Edit Att. Tag"
|
1654 |
msgstr ""
|
1655 |
|
1656 |
+
#: includes/class-mla-objects.php:74
|
1657 |
msgid "Update Att. Tag"
|
1658 |
msgstr ""
|
1659 |
|
1660 |
+
#: includes/class-mla-objects.php:75
|
1661 |
msgid "Add New Att. Tag"
|
1662 |
msgstr ""
|
1663 |
|
1664 |
+
#: includes/class-mla-objects.php:76
|
1665 |
msgid "New Att. Tag Name"
|
1666 |
msgstr ""
|
1667 |
|
1668 |
+
#: includes/class-mla-objects.php:77
|
1669 |
msgid "Att. Tag"
|
1670 |
msgstr ""
|
1671 |
|
1672 |
+
#: includes/class-mla-objects.php:130
|
1673 |
msgid "Attachments"
|
1674 |
msgstr ""
|
1675 |
|
1676 |
#. translators: 1: taxonomy 2: error message
|
1677 |
+
#: includes/class-mla-objects.php:198
|
1678 |
#, php-format
|
1679 |
msgctxt "error_log"
|
1680 |
msgid ""
|
1681 |
"ERROR: mla_taxonomy_column_filter( \"%1$s\" ) - get_term failed: \"%2$s\""
|
1682 |
msgstr ""
|
1683 |
|
1684 |
+
#: includes/class-mla-objects.php:203
|
1685 |
msgid "click to search"
|
1686 |
msgstr ""
|
1687 |
|
1688 |
+
#: includes/class-mla-objects.php:230
|
1689 |
msgid "Shortcode(s), HTML and/or Plain Text"
|
1690 |
msgstr ""
|
1691 |
|
1692 |
+
#: includes/class-mla-objects.php:238
|
1693 |
msgid "MLA Text"
|
1694 |
msgstr ""
|
1695 |
|
1696 |
+
#: includes/class-mla-objects.php:280
|
1697 |
msgid "Automatically add paragraphs"
|
1698 |
msgstr ""
|
1699 |
|
1700 |
+
#: includes/class-mla-options.php:364
|
1701 |
msgid "error loading tpls/mla-option-templates.tpl"
|
1702 |
msgstr ""
|
1703 |
|
1704 |
+
#: includes/class-mla-options.php:367
|
1705 |
msgid "tpls/mla-option-templates.tpl not found"
|
1706 |
msgstr ""
|
1707 |
|
1708 |
+
#: includes/class-mla-options.php:420 includes/class-mla-options.php:1589
|
1709 |
msgid "Attachment Categories"
|
1710 |
msgstr ""
|
1711 |
|
1712 |
+
#: includes/class-mla-options.php:423
|
1713 |
msgid "Check this option to add support for Attachment Categories."
|
1714 |
msgstr ""
|
1715 |
|
1716 |
+
#: includes/class-mla-options.php:427 includes/class-mla-options.php:1604
|
1717 |
msgid "Attachment Tags"
|
1718 |
msgstr ""
|
1719 |
|
1720 |
+
#: includes/class-mla-options.php:430
|
1721 |
msgid "Check this option to add support for Attachment Tags."
|
1722 |
msgstr ""
|
1723 |
|
1724 |
+
#: includes/class-mla-options.php:434 includes/class-mla-settings.php:982
|
1725 |
msgid "Where-used Reporting"
|
1726 |
msgstr ""
|
1727 |
|
1728 |
+
#: includes/class-mla-options.php:439
|
1729 |
msgid "Exclude Revisions"
|
1730 |
msgstr ""
|
1731 |
|
1732 |
+
#: includes/class-mla-options.php:442
|
1733 |
msgid "Check this option to exclude revisions from where-used reporting."
|
1734 |
msgstr ""
|
1735 |
|
1736 |
+
#: includes/class-mla-options.php:446
|
1737 |
msgid "Where-used database access tuning"
|
1738 |
msgstr ""
|
1739 |
|
1740 |
+
#: includes/class-mla-options.php:455 includes/class-mla-options.php:464
|
1741 |
msgid "Enabled"
|
1742 |
msgstr ""
|
1743 |
|
1744 |
+
#: includes/class-mla-options.php:456
|
1745 |
msgid "Search database posts and pages for Featured Image attachments."
|
1746 |
msgstr ""
|
1747 |
|
1748 |
+
#: includes/class-mla-options.php:464
|
1749 |
msgid "Base"
|
1750 |
msgstr ""
|
1751 |
|
1752 |
+
#: includes/class-mla-options.php:465
|
1753 |
msgid ""
|
1754 |
"Search database posts and pages for attachments embedded in content."
|
1755 |
"<br> Base = ignore intermediate size suffixes; use path, base "
|
1756 |
"name and extension only."
|
1757 |
msgstr ""
|
1758 |
|
1759 |
+
#: includes/class-mla-options.php:473 includes/class-mla-options.php:482
|
1760 |
msgid "Dynamic"
|
1761 |
msgstr ""
|
1762 |
|
1763 |
+
#: includes/class-mla-options.php:473 includes/class-mla-options.php:482
|
1764 |
msgid "Refresh"
|
1765 |
msgstr ""
|
1766 |
|
1767 |
+
#: includes/class-mla-options.php:473 includes/class-mla-options.php:482
|
1768 |
msgid "Cached"
|
1769 |
msgstr ""
|
1770 |
|
1771 |
+
#: includes/class-mla-options.php:474
|
1772 |
msgid ""
|
1773 |
"Search database posts and pages for [gallery] shortcode results.<br> "
|
1774 |
" Dynamic = once every page load, Cached = once every login, Disabled = "
|
1775 |
"never.<br> Refresh = update references, then set to Cached."
|
1776 |
msgstr ""
|
1777 |
|
1778 |
+
#: includes/class-mla-options.php:483
|
1779 |
msgid ""
|
1780 |
"Search database posts and pages for [mla_gallery] shortcode results."
|
1781 |
"<br> Dynamic = once every page load, Cached = once every login, "
|
1783 |
"Cached."
|
1784 |
msgstr ""
|
1785 |
|
1786 |
+
#: includes/class-mla-options.php:487 includes/class-mla-settings.php:982
|
1787 |
msgid "Taxonomy Support"
|
1788 |
msgstr ""
|
1789 |
|
1790 |
+
#: includes/class-mla-options.php:492
|
1791 |
msgid "Compute Attachments Column"
|
1792 |
msgstr ""
|
1793 |
|
1794 |
+
#: includes/class-mla-options.php:495
|
1795 |
msgid ""
|
1796 |
"Check this option to calculate attachments per term in the Attachments "
|
1797 |
"Column."
|
1798 |
msgstr ""
|
1799 |
|
1800 |
+
#: includes/class-mla-options.php:499
|
1801 |
msgid ""
|
1802 |
"Check the \"Support\" box to add the taxonomy to the Assistant and the Edit "
|
1803 |
+
"Media screen."
|
1804 |
+
msgstr ""
|
1805 |
+
|
1806 |
+
#: includes/class-mla-options.php:500 includes/class-mla-options.php:506
|
1807 |
+
msgid ""
|
1808 |
+
"Check the \"Inline Edit\" box to display the taxonomy in the Quick Edit and "
|
1809 |
+
"Bulk Edit areas."
|
1810 |
+
msgstr ""
|
1811 |
+
|
1812 |
+
#: includes/class-mla-options.php:501
|
1813 |
+
msgid ""
|
1814 |
+
"Check the \"Checklist\" box to enable the checklist-style meta box for a "
|
1815 |
+
"flat taxonomy."
|
1816 |
+
msgstr ""
|
1817 |
+
|
1818 |
+
#: includes/class-mla-options.php:502
|
1819 |
+
msgid ""
|
1820 |
+
"You must also check the <strong>\"Enable enhanced checklist taxonomies\"</"
|
1821 |
+
"strong> box below to enable this feature."
|
1822 |
msgstr ""
|
1823 |
|
1824 |
+
#: includes/class-mla-options.php:503
|
1825 |
+
msgid ""
|
1826 |
+
"Check the \"Term Search\" box to add the taxonomy to the \"Search Media/Terms"
|
1827 |
+
"\" list."
|
1828 |
+
msgstr ""
|
1829 |
+
|
1830 |
+
#: includes/class-mla-options.php:504 includes/class-mla-settings.php:1014
|
1831 |
+
#: includes/class-mla-settings.php:1015
|
1832 |
+
msgid "For complete documentation"
|
1833 |
+
msgstr ""
|
1834 |
+
|
1835 |
+
#: includes/class-mla-options.php:504 includes/class-mla-settings.php:1014
|
1836 |
+
#: includes/class-mla-settings.php:1015
|
1837 |
+
msgid "click here"
|
1838 |
+
msgstr ""
|
1839 |
+
|
1840 |
+
#: includes/class-mla-options.php:507
|
1841 |
+
msgid ""
|
1842 |
+
"Use the \"List Filter\" option to select the taxonomy on which to filter the "
|
1843 |
+
"Assistant table listing."
|
1844 |
+
msgstr ""
|
1845 |
+
|
1846 |
+
#: includes/class-mla-options.php:532
|
1847 |
msgid "Media/Assistant Screen Options"
|
1848 |
msgstr ""
|
1849 |
|
1850 |
+
#: includes/class-mla-options.php:537
|
1851 |
msgid "Admin Menu Options"
|
1852 |
msgstr ""
|
1853 |
|
1854 |
+
#: includes/class-mla-options.php:542
|
1855 |
msgid "Page Title"
|
1856 |
msgstr ""
|
1857 |
|
1858 |
+
#: includes/class-mla-options.php:544 includes/class-mla-settings.php:356
|
1859 |
#: includes/class-mla-settings.php:2555
|
1860 |
msgid "Media Library Assistant"
|
1861 |
msgstr ""
|
1862 |
|
1863 |
+
#: includes/class-mla-options.php:546
|
1864 |
msgid "Enter the title for the Media/Assistant submenu page"
|
1865 |
msgstr ""
|
1866 |
|
1867 |
+
#: includes/class-mla-options.php:550
|
1868 |
msgid "Menu Title"
|
1869 |
msgstr ""
|
1870 |
|
1871 |
+
#: includes/class-mla-options.php:552
|
1872 |
msgid "Assistant"
|
1873 |
msgstr ""
|
1874 |
|
1875 |
+
#: includes/class-mla-options.php:554
|
1876 |
msgid "Enter the title for the Media/Assistant submenu entry"
|
1877 |
msgstr ""
|
1878 |
|
1879 |
+
#: includes/class-mla-options.php:558
|
1880 |
msgid "Submenu Order"
|
1881 |
msgstr ""
|
1882 |
|
1883 |
+
#: includes/class-mla-options.php:562
|
1884 |
msgid ""
|
1885 |
"Enter the position of the Media/Assistant submenu entry.<br> 0 = "
|
1886 |
"natural order (at bottom), 1 - 4 = at top<br> "
|
1888 |
"\""
|
1889 |
msgstr ""
|
1890 |
|
1891 |
+
#: includes/class-mla-options.php:566
|
1892 |
msgid "Display Media/Library"
|
1893 |
msgstr ""
|
1894 |
|
1895 |
+
#: includes/class-mla-options.php:569
|
1896 |
msgid ""
|
1897 |
"Check/uncheck this option to display/remove the WordPress Media/Library "
|
1898 |
"submenu entry."
|
1899 |
msgstr ""
|
1900 |
|
1901 |
+
#: includes/class-mla-options.php:573
|
1902 |
msgid "Table Defaults"
|
1903 |
msgstr ""
|
1904 |
|
1905 |
+
#: includes/class-mla-options.php:578
|
1906 |
msgid "Order By"
|
1907 |
msgstr ""
|
1908 |
|
1909 |
+
#: includes/class-mla-options.php:582 includes/class-mla-options.php:748
|
1910 |
msgid "Title/Name"
|
1911 |
msgstr ""
|
1912 |
|
1913 |
+
#: includes/class-mla-options.php:583
|
1914 |
msgid "Select the column for the sort order of the Assistant table listing."
|
1915 |
msgstr ""
|
1916 |
|
1917 |
+
#: includes/class-mla-options.php:587
|
1918 |
msgid "Order"
|
1919 |
msgstr ""
|
1920 |
|
1921 |
+
#: includes/class-mla-options.php:591
|
1922 |
msgid "Ascending"
|
1923 |
msgstr ""
|
1924 |
|
1925 |
+
#: includes/class-mla-options.php:591
|
1926 |
msgid "Descending"
|
1927 |
msgstr ""
|
1928 |
|
1929 |
+
#: includes/class-mla-options.php:592 includes/class-mla-options.php:758
|
1930 |
msgid "Choose the sort order."
|
1931 |
msgstr ""
|
1932 |
|
1933 |
+
#: includes/class-mla-options.php:596
|
1934 |
msgid "Views Width"
|
1935 |
msgstr ""
|
1936 |
|
1937 |
+
#: includes/class-mla-options.php:600
|
1938 |
msgid "Enter the width for the views list, in pixels (px) or percent (%)"
|
1939 |
msgstr ""
|
1940 |
|
1941 |
+
#: includes/class-mla-options.php:604
|
1942 |
msgid "Icon Size"
|
1943 |
msgstr ""
|
1944 |
|
1945 |
+
#: includes/class-mla-options.php:608
|
1946 |
msgid "Enter the size of the thumbnail/icon images, in pixels"
|
1947 |
msgstr ""
|
1948 |
|
1949 |
+
#: includes/class-mla-options.php:612
|
1950 |
msgid "Taxonomy Filter parameters"
|
1951 |
msgstr ""
|
1952 |
|
1953 |
+
#: includes/class-mla-options.php:617
|
1954 |
msgid "Maximum Depth"
|
1955 |
msgstr ""
|
1956 |
|
1957 |
+
#: includes/class-mla-options.php:621
|
1958 |
msgid ""
|
1959 |
"Enter the number of levels displayed for hierarchial taxonomies; enter zero "
|
1960 |
"for no limit."
|
1961 |
msgstr ""
|
1962 |
|
1963 |
+
#: includes/class-mla-options.php:625
|
1964 |
msgid "Include Children"
|
1965 |
msgstr ""
|
1966 |
|
1967 |
+
#: includes/class-mla-options.php:628
|
1968 |
msgid ""
|
1969 |
"Check/uncheck this option to include/exclude children for hierarchical "
|
1970 |
"taxonomies."
|
1971 |
msgstr ""
|
1972 |
|
1973 |
+
#: includes/class-mla-options.php:632
|
1974 |
+
msgid "Search Media Defaults"
|
1975 |
+
msgstr ""
|
1976 |
+
|
1977 |
+
#: includes/class-mla-options.php:637
|
1978 |
+
msgid "Display Search Controls"
|
1979 |
+
msgstr ""
|
1980 |
+
|
1981 |
+
#: includes/class-mla-options.php:640 includes/class-mla-options.php:726
|
1982 |
+
msgid ""
|
1983 |
+
"Check/uncheck this option to display/hide the and/or connector and search "
|
1984 |
+
"fields controls."
|
1985 |
+
msgstr ""
|
1986 |
+
|
1987 |
+
#: includes/class-mla-options.php:644
|
1988 |
+
msgid ""
|
1989 |
+
"Use these controls to set defaults for the and/or connector and search "
|
1990 |
+
"fields controls.<br>These defaults will be used for the Search Media boxes "
|
1991 |
+
"on both the Media/Assistant submenu<br>and the Media Manager Modal Window."
|
1992 |
+
msgstr ""
|
1993 |
+
|
1994 |
+
#: includes/class-mla-options.php:657
|
1995 |
msgid "Media/Edit Media Enhancements"
|
1996 |
msgstr ""
|
1997 |
|
1998 |
+
#: includes/class-mla-options.php:662
|
1999 |
msgid "Enable enhanced \"checklist\" taxonomies"
|
2000 |
msgstr ""
|
2001 |
|
2002 |
+
#: includes/class-mla-options.php:665
|
2003 |
msgid ""
|
2004 |
"Check this option to enable the \"? Search\" feature for hierarchical "
|
2005 |
"taxonomies, e.g., Att. Categories.<br> This option also enables "
|
2006 |
"the \"checklist-style\" support for flat taxonomies, e.g., Att. Tags."
|
2007 |
msgstr ""
|
2008 |
|
2009 |
+
#: includes/class-mla-options.php:669
|
2010 |
msgid "Enable Edit Media additional meta boxes"
|
2011 |
msgstr ""
|
2012 |
|
2013 |
+
#: includes/class-mla-options.php:672
|
2014 |
msgid ""
|
2015 |
"Check this option to add \"Parent Info\", \"Menu Order\", \"Attachment "
|
2016 |
"Metadata\" and four \"where-used\" meta boxes to the Edit Media screen."
|
2017 |
msgstr ""
|
2018 |
|
2019 |
+
#: includes/class-mla-options.php:676 includes/class-mla-settings.php:982
|
2020 |
msgid "Media Manager Enhancements"
|
2021 |
msgstr ""
|
2022 |
|
2023 |
+
#: includes/class-mla-options.php:681
|
2024 |
msgid "Enable Media Manager Enhancements"
|
2025 |
msgstr ""
|
2026 |
|
2027 |
+
#: includes/class-mla-options.php:684
|
2028 |
msgid "Check/uncheck this option to enable/disable Media Manager Enhancements."
|
2029 |
msgstr ""
|
2030 |
|
2031 |
+
#: includes/class-mla-options.php:688
|
2032 |
msgid "Media Manager Enhanced MIME Type filter"
|
2033 |
msgstr ""
|
2034 |
|
2035 |
+
#: includes/class-mla-options.php:691
|
2036 |
msgid ""
|
2037 |
"Check this option to filter by more MIME Types, e.g., text, applications."
|
2038 |
msgstr ""
|
2039 |
|
2040 |
+
#: includes/class-mla-options.php:695
|
2041 |
msgid "Media Manager Month and Year filter"
|
2042 |
msgstr ""
|
2043 |
|
2044 |
+
#: includes/class-mla-options.php:698
|
2045 |
msgid "Check this option to filter by month and year uploaded."
|
2046 |
msgstr ""
|
2047 |
|
2048 |
+
#: includes/class-mla-options.php:702
|
2049 |
msgid "Media Manager Category/Tag filter"
|
2050 |
msgstr ""
|
2051 |
|
2052 |
+
#: includes/class-mla-options.php:705
|
2053 |
msgid "Check this option to filter by taxonomy terms."
|
2054 |
msgstr ""
|
2055 |
|
2056 |
+
#: includes/class-mla-options.php:709
|
2057 |
+
msgid "Media Manager Terms Search popup"
|
2058 |
+
msgstr ""
|
2059 |
+
|
2060 |
+
#: includes/class-mla-options.php:712
|
2061 |
+
msgid "Check this option to enable the \"Terms Search\" popup window."
|
2062 |
+
msgstr ""
|
2063 |
+
|
2064 |
+
#: includes/class-mla-options.php:716
|
2065 |
msgid "Media Manager Enhanced Search Media box"
|
2066 |
msgstr ""
|
2067 |
|
2068 |
+
#: includes/class-mla-options.php:719
|
2069 |
msgid "Check this option to enable search box enhancements."
|
2070 |
msgstr ""
|
2071 |
|
2072 |
+
#: includes/class-mla-options.php:723
|
2073 |
+
msgid "Media Manager Enhanced Search Media Controls"
|
2074 |
+
msgstr ""
|
2075 |
+
|
2076 |
+
#: includes/class-mla-options.php:730
|
2077 |
msgid "Media Manager Checklist meta boxes"
|
2078 |
msgstr ""
|
2079 |
|
2080 |
+
#: includes/class-mla-options.php:733
|
2081 |
msgid ""
|
2082 |
"Check this option to enable MLA-enhanced meta boxes in the \"ATTACHMENT "
|
2083 |
"DETAILS\" pane.<br> This option is for any taxonomy that uses a "
|
2084 |
"<strong>\"checklist-style\"</strong> meta box.</strong>"
|
2085 |
msgstr ""
|
2086 |
|
2087 |
+
#: includes/class-mla-options.php:737
|
2088 |
msgid "Media Manager Flat meta boxes"
|
2089 |
msgstr ""
|
2090 |
|
2091 |
+
#: includes/class-mla-options.php:740
|
2092 |
msgid ""
|
2093 |
"Check this option to enable MLA-enhanced meta boxes in the \"ATTACHMENT "
|
2094 |
"DETAILS\" pane.<br> This option is for <strong>flat taxonomies</"
|
2096 |
"style\" meta box."
|
2097 |
msgstr ""
|
2098 |
|
2099 |
+
#: includes/class-mla-options.php:744
|
2100 |
msgid "Media Manager Order By"
|
2101 |
msgstr ""
|
2102 |
|
2103 |
+
#: includes/class-mla-options.php:748 includes/class-mla-options.php:757
|
2104 |
+
#: includes/class-mla-options.php:772 includes/class-mla-options.php:786
|
2105 |
+
#: includes/class-mla-options.php:800 includes/class-mla-settings.php:1064
|
2106 |
msgid "Media Manager Default"
|
2107 |
msgstr ""
|
2108 |
|
2109 |
+
#: includes/class-mla-options.php:749
|
2110 |
msgid ""
|
2111 |
"If you want to override the Media Manager default,<br> select a "
|
2112 |
"column for the sort order of the Media Library listing."
|
2113 |
msgstr ""
|
2114 |
|
2115 |
+
#: includes/class-mla-options.php:753
|
2116 |
msgid "Media Manager Order"
|
2117 |
msgstr ""
|
2118 |
|
2119 |
+
#: includes/class-mla-options.php:762
|
2120 |
msgid "Attachment Display Settings"
|
2121 |
msgstr ""
|
2122 |
|
2123 |
#. translators: 1: option name, e.g., Alignment, Link To or Size
|
2124 |
+
#: includes/class-mla-options.php:767 includes/class-mla-options.php:769
|
2125 |
msgid "Alignment"
|
2126 |
msgstr ""
|
2127 |
|
2128 |
+
#: includes/class-mla-options.php:772
|
2129 |
msgid "Left"
|
2130 |
msgstr ""
|
2131 |
|
2132 |
+
#: includes/class-mla-options.php:772
|
2133 |
msgid "Center"
|
2134 |
msgstr ""
|
2135 |
|
2136 |
+
#: includes/class-mla-options.php:772
|
2137 |
msgid "Right"
|
2138 |
msgstr ""
|
2139 |
|
2140 |
#. translators: 1: option name, e.g., Alignment, Link To or Size
|
2141 |
+
#: includes/class-mla-options.php:781 includes/class-mla-options.php:783
|
2142 |
msgid "Link To"
|
2143 |
msgstr ""
|
2144 |
|
2145 |
+
#: includes/class-mla-options.php:786
|
2146 |
msgid "Media File"
|
2147 |
msgstr ""
|
2148 |
|
2149 |
+
#: includes/class-mla-options.php:786
|
2150 |
msgid "Attachment Page"
|
2151 |
msgstr ""
|
2152 |
|
2153 |
+
#: includes/class-mla-options.php:786
|
2154 |
msgid "Custom URL"
|
2155 |
msgstr ""
|
2156 |
|
2157 |
#. translators: 1: option name, e.g., Alignment, Link To or Size
|
2158 |
+
#: includes/class-mla-options.php:795 includes/class-mla-options.php:797
|
2159 |
msgid "Size"
|
2160 |
msgstr ""
|
2161 |
|
2162 |
+
#: includes/class-mla-options.php:800
|
2163 |
msgid "Thumbnail"
|
2164 |
msgstr ""
|
2165 |
|
2166 |
+
#: includes/class-mla-options.php:800
|
2167 |
msgid "Medium"
|
2168 |
msgstr ""
|
2169 |
|
2170 |
+
#: includes/class-mla-options.php:800
|
2171 |
msgid "Large"
|
2172 |
msgstr ""
|
2173 |
|
2174 |
+
#: includes/class-mla-options.php:800
|
2175 |
msgid "Full Size"
|
2176 |
msgstr ""
|
2177 |
|
2178 |
+
#: includes/class-mla-options.php:809
|
2179 |
msgid "Default [mla_gallery] Templates and Settings"
|
2180 |
msgstr ""
|
2181 |
|
2182 |
+
#: includes/class-mla-options.php:814 includes/class-mla-options.php:858
|
2183 |
msgid "Style Template"
|
2184 |
msgstr ""
|
2185 |
|
2186 |
#. translators: 1: template type 2: shortcode
|
2187 |
+
#: includes/class-mla-options.php:820 includes/class-mla-options.php:830
|
2188 |
+
#: includes/class-mla-options.php:864 includes/class-mla-options.php:874
|
2189 |
#, php-format
|
2190 |
msgid "Select the default %1$s for your %2$s shortcodes."
|
2191 |
msgstr ""
|
2192 |
|
2193 |
+
#: includes/class-mla-options.php:820 includes/class-mla-options.php:864
|
2194 |
#: includes/class-mla-settings.php:2650 includes/class-mla-settings.php:2661
|
2195 |
#: includes/class-mla-settings.php:2667 includes/class-mla-settings.php:2671
|
2196 |
#: includes/class-mla-settings.php:2700 includes/class-mla-settings.php:2711
|
2197 |
msgid "style template"
|
2198 |
msgstr ""
|
2199 |
|
2200 |
+
#: includes/class-mla-options.php:824 includes/class-mla-options.php:868
|
2201 |
msgid "Markup Template"
|
2202 |
msgstr ""
|
2203 |
|
2204 |
+
#: includes/class-mla-options.php:830 includes/class-mla-options.php:874
|
2205 |
#: includes/class-mla-settings.php:2740 includes/class-mla-settings.php:2753
|
2206 |
#: includes/class-mla-settings.php:2759 includes/class-mla-settings.php:2763
|
2207 |
#: includes/class-mla-settings.php:2832
|
2208 |
msgid "markup template"
|
2209 |
msgstr ""
|
2210 |
|
2211 |
+
#: includes/class-mla-options.php:834 includes/class-mla-options.php:878
|
2212 |
msgid "Default columns"
|
2213 |
msgstr ""
|
2214 |
|
2215 |
+
#: includes/class-mla-options.php:838
|
2216 |
msgid ""
|
2217 |
"Enter the number of [mla_tag_cloud] columns; must be a positive integer."
|
2218 |
msgstr ""
|
2219 |
|
2220 |
+
#: includes/class-mla-options.php:842 includes/class-mla-options.php:886
|
2221 |
msgid "Default mla_margin"
|
2222 |
msgstr ""
|
2223 |
|
2224 |
+
#: includes/class-mla-options.php:846 includes/class-mla-options.php:890
|
2225 |
msgid ""
|
2226 |
"Enter the CSS \"margin\" property value, in length (px, em, pt, etc.), "
|
2227 |
"percent (%), \"auto\" or \"inherit\".<br> Enter \"none\" to "
|
2228 |
"remove the property entirely."
|
2229 |
msgstr ""
|
2230 |
|
2231 |
+
#: includes/class-mla-options.php:850 includes/class-mla-options.php:894
|
2232 |
msgid "Default mla_itemwidth"
|
2233 |
msgstr ""
|
2234 |
|
2235 |
+
#: includes/class-mla-options.php:854 includes/class-mla-options.php:898
|
2236 |
msgid ""
|
2237 |
"Enter the CSS \"width\" property value, in length (px, em, pt, etc.), "
|
2238 |
"percent (%), \"auto\" or \"inherit\".<br> Enter \"calculate"
|
2242 |
"the property entirely."
|
2243 |
msgstr ""
|
2244 |
|
2245 |
+
#: includes/class-mla-options.php:882
|
2246 |
msgid "Enter the number of [mla_gallery] columns; must be a positive integer."
|
2247 |
msgstr ""
|
2248 |
|
2249 |
+
#: includes/class-mla-options.php:918
|
2250 |
msgid "Enable custom field mapping when adding new media"
|
2251 |
msgstr ""
|
2252 |
|
2253 |
+
#: includes/class-mla-options.php:921
|
2254 |
msgid ""
|
2255 |
"Check this option to enable mapping when uploading new media (attachments)."
|
2256 |
"<br> Click Save Changes at the bottom of the screen if you change "
|
2258 |
"buttons on the bulk edit, single edit and settings screens."
|
2259 |
msgstr ""
|
2260 |
|
2261 |
+
#: includes/class-mla-options.php:925
|
2262 |
msgid "Enable custom field mapping when updating media metadata"
|
2263 |
msgstr ""
|
2264 |
|
2265 |
+
#: includes/class-mla-options.php:928 includes/class-mla-options.php:952
|
2266 |
msgid ""
|
2267 |
"Check this option to enable mapping when media (attachments) metadata is "
|
2268 |
"regenerated,<br> e.g., when the Media/Edit Media \"Edit Image\" "
|
2269 |
"functions are used."
|
2270 |
msgstr ""
|
2271 |
|
2272 |
+
#: includes/class-mla-options.php:932
|
2273 |
msgid ""
|
2274 |
"Update the custom field mapping values above, then click Save Changes to "
|
2275 |
"make the updates permanent.<br>You can also make temporary updates and click "
|
2277 |
"saving any rule changes."
|
2278 |
msgstr ""
|
2279 |
|
2280 |
+
#: includes/class-mla-options.php:942
|
2281 |
msgid "Enable IPTC/EXIF Mapping when adding new media"
|
2282 |
msgstr ""
|
2283 |
|
2284 |
+
#: includes/class-mla-options.php:945
|
2285 |
msgid ""
|
2286 |
"Check this option to enable mapping when uploading new media (attachments)."
|
2287 |
"<br> Does NOT affect the operation of the \"Map\" buttons on the "
|
2288 |
"bulk edit, single edit and settings screens."
|
2289 |
msgstr ""
|
2290 |
|
2291 |
+
#: includes/class-mla-options.php:949
|
2292 |
msgid "Enable IPTC/EXIF Mapping when updating media metadata"
|
2293 |
msgstr ""
|
2294 |
|
2295 |
+
#: includes/class-mla-options.php:956
|
2296 |
msgid ""
|
2297 |
"Update the standard field mapping values above, then click <strong>Save "
|
2298 |
"Changes</strong> to make the updates permanent.<br>You can also make "
|
2301 |
"changes."
|
2302 |
msgstr ""
|
2303 |
|
2304 |
+
#: includes/class-mla-options.php:966
|
2305 |
msgid ""
|
2306 |
"Update the taxonomy term mapping values above, then click <strong>Save "
|
2307 |
"Changes</strong> or <strong>Map All Attachments, Taxonomy Terms Now</strong>."
|
2308 |
msgstr ""
|
2309 |
|
2310 |
+
#: includes/class-mla-options.php:976
|
2311 |
msgid ""
|
2312 |
"<strong>Update</strong> individual custom field mapping values above, or "
|
2313 |
"make several updates and click <strong>Save Changes</strong> below to apply "
|
2318 |
"changes."
|
2319 |
msgstr ""
|
2320 |
|
2321 |
+
#: includes/class-mla-options.php:986
|
2322 |
msgid "IPTC/EXIF Mapping help"
|
2323 |
msgstr ""
|
2324 |
|
2325 |
+
#: includes/class-mla-options.php:1038
|
2326 |
msgid "Enable View and Post MIME Type Support"
|
2327 |
msgstr ""
|
2328 |
|
2329 |
+
#: includes/class-mla-options.php:1041
|
2330 |
msgid ""
|
2331 |
"Check/uncheck this option to enable/disable Post MIME Type Support, then "
|
2332 |
"click <strong>Save Changes</strong> to record the new setting."
|
2333 |
msgstr ""
|
2334 |
|
2335 |
+
#: includes/class-mla-options.php:1050
|
2336 |
msgid "Post MIME Types help."
|
2337 |
msgstr ""
|
2338 |
|
2339 |
+
#: includes/class-mla-options.php:1053
|
2340 |
msgctxt "post_mime_types_singular"
|
2341 |
msgid "All"
|
2342 |
msgstr ""
|
2343 |
|
2344 |
+
#: includes/class-mla-options.php:1054
|
2345 |
msgctxt "post_mime_types_plural"
|
2346 |
msgid "All"
|
2347 |
msgstr ""
|
2348 |
|
2349 |
+
#: includes/class-mla-options.php:1059 includes/class-mla-options.php:1113
|
2350 |
+
#: includes/class-mla-options.php:1122
|
2351 |
msgctxt "post_mime_types_description"
|
2352 |
msgid "Built-in view"
|
2353 |
msgstr ""
|
2354 |
|
2355 |
+
#: includes/class-mla-options.php:1062
|
2356 |
msgctxt "post_mime_types_singular"
|
2357 |
msgid "Image"
|
2358 |
msgstr ""
|
2359 |
|
2360 |
+
#: includes/class-mla-options.php:1063
|
2361 |
msgctxt "post_mime_types_plural"
|
2362 |
msgid "Images"
|
2363 |
msgstr ""
|
2364 |
|
2365 |
+
#: includes/class-mla-options.php:1068
|
2366 |
msgctxt "post_mime_types_description"
|
2367 |
msgid "All image subtypes"
|
2368 |
msgstr ""
|
2369 |
|
2370 |
+
#: includes/class-mla-options.php:1071
|
2371 |
msgctxt "post_mime_types_singular"
|
2372 |
msgid "Audio"
|
2373 |
msgstr ""
|
2374 |
|
2375 |
+
#: includes/class-mla-options.php:1072
|
2376 |
msgctxt "post_mime_types_plural"
|
2377 |
msgid "Audio"
|
2378 |
msgstr ""
|
2379 |
|
2380 |
+
#: includes/class-mla-options.php:1077
|
2381 |
msgctxt "post_mime_types_description"
|
2382 |
msgid "All audio subtypes"
|
2383 |
msgstr ""
|
2384 |
|
2385 |
+
#: includes/class-mla-options.php:1080
|
2386 |
msgctxt "post_mime_types_singular"
|
2387 |
msgid "Video"
|
2388 |
msgstr ""
|
2389 |
|
2390 |
+
#: includes/class-mla-options.php:1081
|
2391 |
msgctxt "post_mime_types_plural"
|
2392 |
msgid "Video"
|
2393 |
msgstr ""
|
2394 |
|
2395 |
+
#: includes/class-mla-options.php:1086
|
2396 |
msgctxt "post_mime_types_description"
|
2397 |
msgid "All video subtypes"
|
2398 |
msgstr ""
|
2399 |
|
2400 |
+
#: includes/class-mla-options.php:1089
|
2401 |
msgctxt "post_mime_types_singular"
|
2402 |
msgid "Text"
|
2403 |
msgstr ""
|
2404 |
|
2405 |
+
#: includes/class-mla-options.php:1090
|
2406 |
msgctxt "post_mime_types_plural"
|
2407 |
msgid "Text"
|
2408 |
msgstr ""
|
2409 |
|
2410 |
+
#: includes/class-mla-options.php:1095
|
2411 |
msgctxt "post_mime_types_description"
|
2412 |
msgid "All text subtypes"
|
2413 |
msgstr ""
|
2414 |
|
2415 |
+
#: includes/class-mla-options.php:1098
|
2416 |
msgctxt "post_mime_types_singular"
|
2417 |
msgid "Application"
|
2418 |
msgstr ""
|
2419 |
|
2420 |
+
#: includes/class-mla-options.php:1099
|
2421 |
msgctxt "post_mime_types_plural"
|
2422 |
msgid "Applications"
|
2423 |
msgstr ""
|
2424 |
|
2425 |
+
#: includes/class-mla-options.php:1104
|
2426 |
msgctxt "post_mime_types_description"
|
2427 |
msgid "All application subtypes"
|
2428 |
msgstr ""
|
2429 |
|
2430 |
+
#: includes/class-mla-options.php:1108
|
2431 |
msgctxt "post_mime_types_plural"
|
2432 |
msgid "Unattached"
|
2433 |
msgstr ""
|
2434 |
|
2435 |
+
#: includes/class-mla-options.php:1116
|
2436 |
msgctxt "post_mime_types_singular"
|
2437 |
msgid "Trash"
|
2438 |
msgstr ""
|
2439 |
|
2440 |
+
#: includes/class-mla-options.php:1117
|
2441 |
msgctxt "post_mime_types_plural"
|
2442 |
msgid "Trash"
|
2443 |
msgstr ""
|
2444 |
|
2445 |
+
#: includes/class-mla-options.php:1128
|
2446 |
msgid "Enable Upload MIME Type Support"
|
2447 |
msgstr ""
|
2448 |
|
2449 |
+
#: includes/class-mla-options.php:1131
|
2450 |
msgid ""
|
2451 |
"Check/uncheck this option to enable/disable Upload MIME Type Support, then "
|
2452 |
"click <strong>Save Changes</strong> to record the new setting."
|
2453 |
msgstr ""
|
2454 |
|
2455 |
+
#: includes/class-mla-options.php:1140
|
2456 |
msgid "Upload MIME Types help."
|
2457 |
msgstr ""
|
2458 |
|
2459 |
+
#: includes/class-mla-options.php:1145
|
2460 |
msgid "Enable MLA File Type Icons Support"
|
2461 |
msgstr ""
|
2462 |
|
2463 |
+
#: includes/class-mla-options.php:1148
|
2464 |
msgid ""
|
2465 |
"Check/uncheck this option to enable/disable MLA File Type Icons Support, "
|
2466 |
"then click <strong>Save Changes</strong> to record the new setting."
|
2467 |
msgstr ""
|
2468 |
|
2469 |
+
#: includes/class-mla-options.php:1175 includes/class-mla-options.php:1197
|
2470 |
+
#: includes/class-mla-options.php:1239
|
2471 |
msgid "no templates exist"
|
2472 |
msgstr ""
|
2473 |
|
2474 |
+
#: includes/class-mla-options.php:1183
|
2475 |
msgid "not found"
|
2476 |
msgstr ""
|
2477 |
|
2478 |
#. translators: 1: option name 2: action, e.g., update, delete, reset
|
2479 |
+
#: includes/class-mla-options.php:1556 includes/class-mla-options.php:1720
|
2480 |
+
#: includes/class-mla-options.php:1796 includes/class-mla-options.php:3439
|
2481 |
+
#: includes/class-mla-options.php:4590
|
2482 |
#, php-format
|
2483 |
msgid "ERROR: Custom %1$s unknown action \"%2$s\""
|
2484 |
msgstr ""
|
2485 |
|
2486 |
+
#: includes/class-mla-options.php:1645
|
2487 |
msgid "Support"
|
2488 |
msgstr ""
|
2489 |
|
2490 |
+
#: includes/class-mla-options.php:1646
|
2491 |
msgid "Inline Edit"
|
2492 |
msgstr ""
|
2493 |
|
2494 |
+
#: includes/class-mla-options.php:1647
|
2495 |
msgid "Checklist"
|
2496 |
msgstr ""
|
2497 |
|
2498 |
+
#: includes/class-mla-options.php:1648
|
2499 |
+
msgid "Term Search"
|
2500 |
+
msgstr ""
|
2501 |
+
|
2502 |
+
#: includes/class-mla-options.php:1649
|
2503 |
msgid "List Filter"
|
2504 |
msgstr ""
|
2505 |
|
2506 |
+
#: includes/class-mla-options.php:1650
|
2507 |
msgid "Taxonomy"
|
2508 |
msgstr ""
|
2509 |
|
2510 |
#. translators: 1: taxonomy name
|
2511 |
+
#: includes/class-mla-options.php:1668
|
2512 |
#, php-format
|
2513 |
msgid "List Filter ignored; %1$s not supported."
|
2514 |
msgstr ""
|
2515 |
|
2516 |
#. translators: 1: taxonomy name
|
2517 |
+
#: includes/class-mla-options.php:1675
|
2518 |
#, php-format
|
2519 |
msgid "Inline Edit ignored; %1$s not supported."
|
2520 |
msgstr ""
|
2521 |
|
2522 |
#. translators: 1: taxonomy name
|
2523 |
+
#: includes/class-mla-options.php:1685
|
2524 |
#, php-format
|
2525 |
msgid "Checklist ignored; %1$s not supported."
|
2526 |
msgstr ""
|
2527 |
|
2528 |
+
#. translators: 1: taxonomy name
|
2529 |
+
#: includes/class-mla-options.php:1693
|
2530 |
+
#, php-format
|
2531 |
+
msgid "Term Search ignored; %1$s not supported."
|
2532 |
+
msgstr ""
|
2533 |
+
|
2534 |
#. translators: 1: option name, e.g., taxonomy_support
|
2535 |
+
#: includes/class-mla-options.php:1710 includes/class-mla-options.php:1786
|
2536 |
#, php-format
|
2537 |
msgid "Update custom %1$s"
|
2538 |
msgstr ""
|
2539 |
|
2540 |
#. translators: 1: option name, e.g., taxonomy_support
|
2541 |
+
#: includes/class-mla-options.php:1717 includes/class-mla-options.php:1793
|
2542 |
+
#: includes/class-mla-options.php:4583
|
2543 |
#, php-format
|
2544 |
msgid "Reset custom %1$s"
|
2545 |
msgstr ""
|
2546 |
|
2547 |
+
#: includes/class-mla-options.php:1746
|
2548 |
+
#: includes/mla-main-search-box-template.php:38
|
2549 |
+
#: includes/mla-media-modal-js-template.php:24
|
2550 |
+
msgid "and"
|
2551 |
+
msgstr ""
|
2552 |
+
|
2553 |
+
#: includes/class-mla-options.php:1748
|
2554 |
+
#: includes/mla-main-search-box-template.php:40
|
2555 |
+
#: includes/mla-media-modal-js-template.php:28
|
2556 |
+
msgid "or"
|
2557 |
+
msgstr ""
|
2558 |
+
|
2559 |
+
#: includes/class-mla-options.php:1753 includes/class-mla-settings.php:2013
|
2560 |
+
#: includes/class-mla-settings.php:2046 includes/class-mla-settings.php:2072
|
2561 |
+
#: includes/class-mla-settings.php:2107 includes/class-mla-settings.php:2164
|
2562 |
+
#: includes/class-mla-settings.php:2214
|
2563 |
+
#: includes/mla-main-search-box-template.php:43
|
2564 |
+
#: includes/mla-media-modal-js-template.php:36
|
2565 |
+
msgid "Name"
|
2566 |
+
msgstr ""
|
2567 |
+
|
2568 |
+
#: includes/class-mla-options.php:1765
|
2569 |
+
#: includes/mla-main-search-box-template.php:47
|
2570 |
+
#: includes/mla-media-modal-js-template.php:53
|
2571 |
+
msgid "Terms"
|
2572 |
+
msgstr ""
|
2573 |
+
|
2574 |
+
#: includes/class-mla-options.php:2811 includes/class-mla-options.php:2931
|
2575 |
+
#: includes/class-mla-options.php:3771 includes/class-mla-options.php:3802
|
2576 |
#: includes/class-mla-settings.php:1463
|
2577 |
msgid "None (select a value)"
|
2578 |
msgstr ""
|
2579 |
|
2580 |
+
#: includes/class-mla-options.php:2938
|
2581 |
msgid "Metadata (see below)"
|
2582 |
msgstr ""
|
2583 |
|
2584 |
+
#: includes/class-mla-options.php:2945
|
2585 |
msgid "Template (see below)"
|
2586 |
msgstr ""
|
2587 |
|
2588 |
#. translators: 1: custom field name
|
2589 |
+
#: includes/class-mla-options.php:3010 includes/class-mla-options.php:4074
|
2590 |
#, php-format
|
2591 |
msgid "ERROR: New field %1$s already exists."
|
2592 |
msgstr ""
|
2593 |
|
2594 |
#. translators: 1: custom field name
|
2595 |
+
#: includes/class-mla-options.php:3015 includes/class-mla-options.php:4079
|
2596 |
#, php-format
|
2597 |
msgid "Adding new field %1$s."
|
2598 |
msgstr ""
|
2599 |
|
2600 |
#. translators: 1: custom field name
|
2601 |
+
#: includes/class-mla-options.php:3025 includes/class-mla-options.php:4089
|
2602 |
#, php-format
|
2603 |
msgid "Adding new rule for %1$s."
|
2604 |
msgstr ""
|
2605 |
|
2606 |
#. translators: 1: custom field name
|
2607 |
+
#: includes/class-mla-options.php:3056 includes/class-mla-options.php:3951
|
2608 |
+
#: includes/class-mla-options.php:4110
|
2609 |
#, php-format
|
2610 |
msgid "Deleting rule for %1$s."
|
2611 |
msgstr ""
|
2612 |
|
2613 |
#. translators: 1: custom field name 2: attribute 3: old value 4: new value
|
2614 |
+
#: includes/class-mla-options.php:3079 includes/class-mla-options.php:3100
|
2615 |
+
#: includes/class-mla-options.php:3150 includes/class-mla-options.php:3157
|
2616 |
+
#: includes/class-mla-options.php:3868 includes/class-mla-options.php:3875
|
2617 |
+
#: includes/class-mla-options.php:3882 includes/class-mla-options.php:3976
|
2618 |
+
#: includes/class-mla-options.php:3983 includes/class-mla-options.php:4018
|
2619 |
+
#: includes/class-mla-options.php:4025 includes/class-mla-options.php:4120
|
2620 |
+
#: includes/class-mla-options.php:4127
|
2621 |
#, php-format
|
2622 |
msgid "%1$s changing %2$s from %3$s to %4$s."
|
2623 |
msgstr ""
|
2624 |
|
2625 |
+
#: includes/class-mla-options.php:3079 includes/class-mla-options.php:3396
|
2626 |
msgid "Data Source"
|
2627 |
msgstr ""
|
2628 |
|
2629 |
+
#: includes/class-mla-options.php:3085 includes/class-mla-options.php:3902
|
2630 |
+
#: includes/class-mla-options.php:4003 includes/class-mla-options.php:4147
|
2631 |
msgid "Replace to Keep"
|
2632 |
msgstr ""
|
2633 |
|
2634 |
+
#: includes/class-mla-options.php:3088 includes/class-mla-options.php:3905
|
2635 |
+
#: includes/class-mla-options.php:4006 includes/class-mla-options.php:4150
|
2636 |
msgid "Keep to Replace"
|
2637 |
msgstr ""
|
2638 |
|
2639 |
#. translators: 1: custom field name 2: attribute 3: old value 'to' new value
|
2640 |
+
#: includes/class-mla-options.php:3093 includes/class-mla-options.php:3114
|
2641 |
+
#: includes/class-mla-options.php:3128 includes/class-mla-options.php:3142
|
2642 |
+
#: includes/class-mla-options.php:3171 includes/class-mla-options.php:3896
|
2643 |
+
#: includes/class-mla-options.php:3910 includes/class-mla-options.php:3997
|
2644 |
+
#: includes/class-mla-options.php:4011 includes/class-mla-options.php:4141
|
2645 |
+
#: includes/class-mla-options.php:4155
|
2646 |
#, php-format
|
2647 |
msgid "%1$s changing %2$s value from %3$s."
|
2648 |
msgstr ""
|
2649 |
|
2650 |
+
#: includes/class-mla-options.php:3093 includes/class-mla-options.php:3397
|
2651 |
+
#: includes/class-mla-options.php:3910 includes/class-mla-options.php:4011
|
2652 |
+
#: includes/class-mla-options.php:4155 includes/class-mla-options.php:4277
|
2653 |
+
#: includes/class-mla-options.php:4363 includes/class-mla-options.php:4481
|
2654 |
msgid "Existing Text"
|
2655 |
msgstr ""
|
2656 |
|
2657 |
+
#: includes/class-mla-options.php:3100 includes/class-mla-options.php:3398
|
2658 |
msgid "Format"
|
2659 |
msgstr ""
|
2660 |
|
2661 |
+
#: includes/class-mla-options.php:3106 includes/class-mla-options.php:3120
|
2662 |
+
#: includes/class-mla-options.php:3134 includes/class-mla-options.php:3163
|
2663 |
msgid "unchecked to checked"
|
2664 |
msgstr ""
|
2665 |
|
2666 |
+
#: includes/class-mla-options.php:3109 includes/class-mla-options.php:3123
|
2667 |
+
#: includes/class-mla-options.php:3137 includes/class-mla-options.php:3166
|
2668 |
msgid "checked to unchecked"
|
2669 |
msgstr ""
|
2670 |
|
2671 |
+
#: includes/class-mla-options.php:3114 includes/class-mla-options.php:3399
|
2672 |
msgid "MLA Column"
|
2673 |
msgstr ""
|
2674 |
|
2675 |
+
#: includes/class-mla-options.php:3150
|
2676 |
msgid "Metavalue name"
|
2677 |
msgstr ""
|
2678 |
|
2679 |
+
#: includes/class-mla-options.php:3157 includes/class-mla-options.php:3238
|
2680 |
+
#: includes/class-mla-options.php:3334 includes/class-mla-options.php:3376
|
2681 |
msgid "Option"
|
2682 |
msgstr ""
|
2683 |
|
2684 |
+
#: includes/class-mla-options.php:3171
|
2685 |
msgid "Delete NULL"
|
2686 |
msgstr ""
|
2687 |
|
2688 |
+
#: includes/class-mla-options.php:3210 includes/class-mla-options.php:4375
|
2689 |
msgid "No Custom Field Mapping Rules Defined"
|
2690 |
msgstr ""
|
2691 |
|
2692 |
+
#: includes/class-mla-options.php:3224 includes/class-mla-options.php:3321
|
2693 |
+
#: includes/class-mla-options.php:3363 includes/class-mla-options.php:4252
|
2694 |
+
#: includes/class-mla-options.php:4302 includes/class-mla-options.php:4399
|
2695 |
+
#: includes/class-mla-options.php:4443 includes/class-mla-options.php:4468
|
2696 |
msgid "Keep"
|
2697 |
msgstr ""
|
2698 |
|
2699 |
+
#: includes/class-mla-options.php:3228 includes/class-mla-options.php:3325
|
2700 |
+
#: includes/class-mla-options.php:3367
|
2701 |
msgid "Native"
|
2702 |
msgstr ""
|
2703 |
|
2704 |
+
#: includes/class-mla-options.php:3230 includes/class-mla-options.php:3327
|
2705 |
+
#: includes/class-mla-options.php:3369
|
2706 |
msgid "Commas"
|
2707 |
msgstr ""
|
2708 |
|
2709 |
+
#: includes/class-mla-options.php:3240 includes/class-mla-options.php:3336
|
2710 |
+
#: includes/class-mla-options.php:3378
|
2711 |
msgid "Text"
|
2712 |
msgstr ""
|
2713 |
|
2714 |
+
#: includes/class-mla-options.php:3242 includes/class-mla-options.php:3338
|
2715 |
+
#: includes/class-mla-options.php:3380
|
2716 |
msgid "Single"
|
2717 |
msgstr ""
|
2718 |
|
2719 |
+
#: includes/class-mla-options.php:3244 includes/class-mla-options.php:3340
|
2720 |
+
#: includes/class-mla-options.php:3382
|
2721 |
msgid "Export"
|
2722 |
msgstr ""
|
2723 |
|
2724 |
+
#: includes/class-mla-options.php:3246 includes/class-mla-options.php:3342
|
2725 |
+
#: includes/class-mla-options.php:3384
|
2726 |
msgid "Array"
|
2727 |
msgstr ""
|
2728 |
|
2729 |
+
#: includes/class-mla-options.php:3248 includes/class-mla-options.php:3344
|
2730 |
+
#: includes/class-mla-options.php:3386
|
2731 |
msgid "Multi"
|
2732 |
msgstr ""
|
2733 |
|
2734 |
+
#: includes/class-mla-options.php:3250 includes/class-mla-options.php:3346
|
2735 |
+
#: includes/class-mla-options.php:3388
|
2736 |
msgid "Delete NULL values"
|
2737 |
msgstr ""
|
2738 |
|
2739 |
+
#: includes/class-mla-options.php:3251 includes/class-mla-options.php:4402
|
2740 |
msgid "Delete Rule"
|
2741 |
msgstr ""
|
2742 |
|
2743 |
+
#: includes/class-mla-options.php:3252 includes/class-mla-options.php:4403
|
2744 |
msgid "Delete Rule AND Field"
|
2745 |
msgstr ""
|
2746 |
|
2747 |
+
#: includes/class-mla-options.php:3253 includes/class-mla-options.php:4404
|
2748 |
msgid "Update Rule"
|
2749 |
msgstr ""
|
2750 |
|
2751 |
+
#: includes/class-mla-options.php:3254 includes/class-mla-options.php:4405
|
2752 |
msgid "Map All Attachments"
|
2753 |
msgstr ""
|
2754 |
|
2755 |
+
#: includes/class-mla-options.php:3316 includes/class-mla-options.php:4432
|
2756 |
msgid "Add a new Mapping Rule"
|
2757 |
msgstr ""
|
2758 |
|
2759 |
+
#: includes/class-mla-options.php:3347 includes/class-mla-options.php:4446
|
2760 |
msgid "Add Rule"
|
2761 |
msgstr ""
|
2762 |
|
2763 |
+
#: includes/class-mla-options.php:3348 includes/class-mla-options.php:4447
|
2764 |
msgid "Add Rule and Map All Attachments"
|
2765 |
msgstr ""
|
2766 |
|
2767 |
+
#: includes/class-mla-options.php:3358 includes/class-mla-options.php:4457
|
2768 |
msgid "Add a new Field and Mapping Rule"
|
2769 |
msgstr ""
|
2770 |
|
2771 |
+
#: includes/class-mla-options.php:3389 includes/class-mla-options.php:4471
|
2772 |
msgid "Add Field"
|
2773 |
msgstr ""
|
2774 |
|
2775 |
+
#: includes/class-mla-options.php:3390 includes/class-mla-options.php:4472
|
2776 |
msgid "Add Field and Map All Attachments"
|
2777 |
msgstr ""
|
2778 |
|
2779 |
+
#: includes/class-mla-options.php:3395 includes/class-mla-options.php:3868
|
2780 |
+
#: includes/class-mla-options.php:4273 includes/class-mla-options.php:4359
|
2781 |
+
#: includes/class-mla-options.php:4477
|
2782 |
msgid "Field Title"
|
2783 |
msgstr ""
|
2784 |
|
2785 |
+
#: includes/class-mla-options.php:3420
|
2786 |
msgid "Custom field mapping rules updated."
|
2787 |
msgstr ""
|
2788 |
|
2789 |
+
#: includes/class-mla-options.php:3422
|
2790 |
msgid "ERROR: Custom field mapping rules update failed."
|
2791 |
msgstr ""
|
2792 |
|
2793 |
+
#: includes/class-mla-options.php:3425
|
2794 |
msgid "Custom field no mapping rule changes detected."
|
2795 |
msgstr ""
|
2796 |
|
2797 |
+
#: includes/class-mla-options.php:3433
|
2798 |
msgid "Custom field mapping settings saved."
|
2799 |
msgstr ""
|
2800 |
|
2801 |
+
#: includes/class-mla-options.php:3435
|
2802 |
msgid "ERROR: Custom field mapping settings reset failed."
|
2803 |
msgstr ""
|
2804 |
|
2805 |
#. translators: 1: custom field name
|
2806 |
+
#: includes/class-mla-options.php:3856
|
2807 |
#, php-format
|
2808 |
msgid "ERROR: No old values for %1$s."
|
2809 |
msgstr ""
|
2810 |
|
2811 |
+
#: includes/class-mla-options.php:3875 includes/class-mla-options.php:3976
|
2812 |
+
#: includes/class-mla-options.php:4120 includes/class-mla-options.php:4274
|
2813 |
+
#: includes/class-mla-options.php:4360 includes/class-mla-options.php:4478
|
2814 |
msgid "IPTC Value"
|
2815 |
msgstr ""
|
2816 |
|
2817 |
+
#: includes/class-mla-options.php:3882 includes/class-mla-options.php:3983
|
2818 |
+
#: includes/class-mla-options.php:4127
|
2819 |
msgid "EXIF Value"
|
2820 |
msgstr ""
|
2821 |
|
2822 |
+
#: includes/class-mla-options.php:3888 includes/class-mla-options.php:3989
|
2823 |
+
#: includes/class-mla-options.php:4133
|
2824 |
msgid "EXIF to IPTC"
|
2825 |
msgstr ""
|
2826 |
|
2827 |
+
#: includes/class-mla-options.php:3891 includes/class-mla-options.php:3992
|
2828 |
+
#: includes/class-mla-options.php:4136
|
2829 |
msgid "IPTC to EXIF"
|
2830 |
msgstr ""
|
2831 |
|
2832 |
+
#: includes/class-mla-options.php:3896 includes/class-mla-options.php:3997
|
2833 |
+
#: includes/class-mla-options.php:4141 includes/class-mla-options.php:4276
|
2834 |
+
#: includes/class-mla-options.php:4362 includes/class-mla-options.php:4480
|
2835 |
msgid "Priority"
|
2836 |
msgstr ""
|
2837 |
|
2838 |
+
#: includes/class-mla-options.php:4018 includes/class-mla-options.php:4364
|
2839 |
msgid "Delimiter(s)"
|
2840 |
msgstr ""
|
2841 |
|
2842 |
+
#: includes/class-mla-options.php:4248 includes/class-mla-options.php:4298
|
2843 |
+
#: includes/class-mla-options.php:4395 includes/class-mla-options.php:4439
|
2844 |
+
#: includes/class-mla-options.php:4464
|
2845 |
msgid "IPTC"
|
2846 |
msgstr ""
|
2847 |
|
2848 |
+
#: includes/class-mla-options.php:4250 includes/class-mla-options.php:4300
|
2849 |
+
#: includes/class-mla-options.php:4397 includes/class-mla-options.php:4441
|
2850 |
+
#: includes/class-mla-options.php:4466
|
2851 |
msgid "EXIF"
|
2852 |
msgstr ""
|
2853 |
|
2854 |
+
#: includes/class-mla-options.php:4275 includes/class-mla-options.php:4361
|
2855 |
+
#: includes/class-mla-options.php:4479
|
2856 |
msgid "EXIF/Template Value"
|
2857 |
msgstr ""
|
2858 |
|
2859 |
#. translators: 1: option name
|
2860 |
+
#: includes/class-mla-options.php:4489
|
2861 |
#, php-format
|
2862 |
msgid "ERROR: Render unknown custom %1$s."
|
2863 |
msgstr ""
|
2864 |
|
2865 |
#. translators: 1: option name
|
2866 |
+
#: includes/class-mla-options.php:4533
|
2867 |
#, php-format
|
2868 |
msgid "ERROR: Update/delete unknown custom %1$s."
|
2869 |
msgstr ""
|
2870 |
|
2871 |
+
#: includes/class-mla-options.php:4539
|
2872 |
msgid "IPTC/EXIF mapping settings updated."
|
2873 |
msgstr ""
|
2874 |
|
2875 |
+
#: includes/class-mla-options.php:4541
|
2876 |
msgid "ERROR: IPTC/EXIF settings update failed."
|
2877 |
msgstr ""
|
2878 |
|
2879 |
+
#: includes/class-mla-options.php:4544
|
2880 |
msgid "IPTC/EXIF no mapping changes detected."
|
2881 |
msgstr ""
|
2882 |
|
2883 |
#. translators: 1: field type
|
2884 |
+
#: includes/class-mla-options.php:4555 includes/class-mla-options.php:4565
|
2885 |
+
#: includes/class-mla-options.php:4575 includes/class-mla-settings.php:2838
|
2886 |
#, php-format
|
2887 |
msgid "%1$s settings saved."
|
2888 |
msgstr ""
|
2889 |
|
2890 |
+
#: includes/class-mla-options.php:4555 includes/class-mla-options.php:4558
|
2891 |
#: includes/class-mla-settings.php:3064 includes/class-mla-settings.php:3096
|
2892 |
#: includes/class-mla-settings.php:3099
|
2893 |
msgid "Standard field"
|
2894 |
msgstr ""
|
2895 |
|
2896 |
#. translators: 1: field type
|
2897 |
+
#: includes/class-mla-options.php:4558 includes/class-mla-options.php:4568
|
2898 |
+
#: includes/class-mla-options.php:4578
|
2899 |
#, php-format
|
2900 |
msgid "ERROR: IPTC/EXIF %1$s settings update failed."
|
2901 |
msgstr ""
|
2902 |
|
2903 |
+
#: includes/class-mla-options.php:4565 includes/class-mla-options.php:4568
|
2904 |
#: includes/class-mla-settings.php:3122 includes/class-mla-settings.php:3154
|
2905 |
#: includes/class-mla-settings.php:3157
|
2906 |
msgid "Taxonomy term"
|
2907 |
msgstr ""
|
2908 |
|
2909 |
+
#: includes/class-mla-options.php:4575 includes/class-mla-options.php:4578
|
2910 |
#: includes/class-mla-settings.php:2971 includes/class-mla-settings.php:2974
|
2911 |
#: includes/class-mla-settings.php:3192 includes/class-mla-settings.php:3224
|
2912 |
#: includes/class-mla-settings.php:3227
|
2914 |
msgstr ""
|
2915 |
|
2916 |
#. translators: 1: option name, e.g., taxonomy_support
|
2917 |
+
#: includes/class-mla-options.php:4586
|
2918 |
#, php-format
|
2919 |
msgid "ERROR: Reset unknown custom %1$s"
|
2920 |
msgstr ""
|
3052 |
msgid "enhanced version of the WordPress [gallery] shortcode."
|
3053 |
msgstr ""
|
3054 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3055 |
#: includes/class-mla-settings.php:1015
|
3056 |
msgid "enhanced version of the WordPress Tag Cloud."
|
3057 |
msgstr ""
|
3311 |
msgid "Search Known Types"
|
3312 |
msgstr ""
|
3313 |
|
|
|
|
|
|
|
|
|
3314 |
#: includes/class-mla-settings.php:1886
|
3315 |
msgid "Active"
|
3316 |
msgstr ""
|
3736 |
msgid "%1$s - references updated."
|
3737 |
msgstr ""
|
3738 |
|
3739 |
+
#: includes/class-mla-settings.php:3367
|
3740 |
msgid "General settings saved."
|
3741 |
msgstr ""
|
3742 |
|
3743 |
#. translators: 1: option name
|
3744 |
+
#: includes/class-mla-settings.php:3398
|
3745 |
#, php-format
|
3746 |
msgctxt "message_list"
|
3747 |
msgid "delete_option \"%1$s\""
|
3748 |
msgstr ""
|
3749 |
|
3750 |
+
#: includes/class-mla-settings.php:3406
|
3751 |
msgid "General settings reset to default values."
|
3752 |
msgstr ""
|
3753 |
|
3754 |
+
#: includes/class-mla-settings.php:3448
|
3755 |
msgid "select settings"
|
3756 |
msgstr ""
|
3757 |
|
3758 |
+
#: includes/class-mla-settings.php:3468
|
3759 |
msgid "Import ALL Settings"
|
3760 |
msgstr ""
|
3761 |
|
3762 |
+
#: includes/class-mla-settings.php:3493
|
3763 |
msgctxt "message_list"
|
3764 |
msgid "exported"
|
3765 |
msgstr ""
|
3766 |
|
3767 |
+
#: includes/class-mla-settings.php:3495
|
3768 |
msgctxt "message_list"
|
3769 |
msgid "skipped"
|
3770 |
msgstr ""
|
3771 |
|
3772 |
+
#: includes/class-mla-settings.php:3502
|
3773 |
msgid "ALL settings exported."
|
3774 |
msgstr ""
|
3775 |
|
3776 |
#. translators: 1: backup directory name
|
3777 |
+
#: includes/class-mla-settings.php:3513
|
3778 |
#, php-format
|
3779 |
msgid "ERROR: The settings directory ( %1$s ) cannot be created."
|
3780 |
msgstr ""
|
3781 |
|
3782 |
#. translators: 1: backup directory name
|
3783 |
+
#: includes/class-mla-settings.php:3517
|
3784 |
#, php-format
|
3785 |
msgid "ERROR: The settings directory ( %1$s ) is not writable."
|
3786 |
msgstr ""
|
3787 |
|
3788 |
#. translators: 1: backup file name
|
3789 |
+
#: includes/class-mla-settings.php:3528
|
3790 |
#, php-format
|
3791 |
msgid "ERROR: The settings file ( %1$s ) could not be opened."
|
3792 |
msgstr ""
|
3793 |
|
3794 |
#. translators: 1: PHP error information
|
3795 |
+
#: includes/class-mla-settings.php:3535
|
3796 |
#, php-format
|
3797 |
msgctxt "error_log"
|
3798 |
msgid "ERROR: _export_settings $error_info = \"%1$s\"."
|
3799 |
msgstr ""
|
3800 |
|
3801 |
#. translators: 1: backup file name 2: error message
|
3802 |
+
#: includes/class-mla-settings.php:3544
|
3803 |
#, php-format
|
3804 |
msgid "ERROR: Writing the settings file ( %1$s ) \"%2$s\"."
|
3805 |
msgstr ""
|
3806 |
|
3807 |
#. translators: 1: number of option settings
|
3808 |
+
#: includes/class-mla-settings.php:3550
|
3809 |
#, php-format
|
3810 |
msgid "Settings exported; %1$s settings recorded."
|
3811 |
msgstr ""
|
3812 |
|
3813 |
+
#: includes/class-mla-settings.php:3568
|
3814 |
msgid "No settings imported."
|
3815 |
msgstr ""
|
3816 |
|
3817 |
+
#: includes/class-mla-settings.php:3577
|
3818 |
msgid "Please select an import settings file from the dropdown list."
|
3819 |
msgstr ""
|
3820 |
|
3821 |
+
#: includes/class-mla-settings.php:3581
|
3822 |
msgid "ERROR: The import settings dropdown selection is missing."
|
3823 |
msgstr ""
|
3824 |
|
3825 |
#. translators: 1: PHP error information
|
3826 |
+
#: includes/class-mla-settings.php:3589
|
3827 |
#, php-format
|
3828 |
msgctxt "error_log"
|
3829 |
msgid "ERROR: _import_settings $error_info = \"%1$s\"."
|
3830 |
msgstr ""
|
3831 |
|
3832 |
#. translators: 1: backup file name 2: error message
|
3833 |
+
#: includes/class-mla-settings.php:3598
|
3834 |
#, php-format
|
3835 |
msgid "ERROR: Reading the settings file ( %1$s ) \"%2$s\"."
|
3836 |
msgstr ""
|
3837 |
|
3838 |
+
#: includes/class-mla-settings.php:3608
|
3839 |
msgctxt "message_list"
|
3840 |
msgid "updated"
|
3841 |
msgstr ""
|
3842 |
|
3843 |
+
#: includes/class-mla-settings.php:3611
|
3844 |
msgctxt "message_list"
|
3845 |
msgid "unchanged"
|
3846 |
msgstr ""
|
3847 |
|
3848 |
#. translators: 1: number of option settings updated 2: number of option settings unchanged
|
3849 |
+
#: includes/class-mla-settings.php:3616
|
3850 |
#, php-format
|
3851 |
msgid "Settings imported; %1$s updated, %2$s unchanged."
|
3852 |
msgstr ""
|
3853 |
|
3854 |
+
#: includes/class-mla-shortcodes.php:163
|
3855 |
+
#: includes/class-mla-shortcodes.php:1086
|
3856 |
+
#: includes/class-mla-shortcodes.php:1955
|
3857 |
+
#: includes/class-mla-shortcodes.php:2220
|
3858 |
msgid "Previous"
|
3859 |
msgstr ""
|
3860 |
|
3861 |
+
#: includes/class-mla-shortcodes.php:164
|
3862 |
+
#: includes/class-mla-shortcodes.php:1087
|
3863 |
+
#: includes/class-mla-shortcodes.php:2002
|
3864 |
+
#: includes/class-mla-shortcodes.php:2226
|
3865 |
msgid "Next"
|
3866 |
msgstr ""
|
3867 |
|
3868 |
+
#: includes/class-mla-shortcodes.php:245
|
3869 |
msgid "mla_debug empty gallery"
|
3870 |
msgstr ""
|
3871 |
|
3872 |
+
#: includes/class-mla-shortcodes.php:309
|
3873 |
msgid ""
|
3874 |
"<strong>Photonic-enhanced [mla_gallery]</strong> type must be "
|
3875 |
"<strong>default</strong>, query = "
|
3876 |
msgstr ""
|
3877 |
|
3878 |
+
#: includes/class-mla-shortcodes.php:625
|
3879 |
msgid "unattached"
|
3880 |
msgstr ""
|
3881 |
|
3882 |
+
#: includes/class-mla-shortcodes.php:646
|
3883 |
msgid "unknown"
|
3884 |
msgstr ""
|
3885 |
|
3886 |
+
#: includes/class-mla-shortcodes.php:1184
|
3887 |
msgid "mla_debug attributes"
|
3888 |
msgstr ""
|
3889 |
|
3890 |
+
#: includes/class-mla-shortcodes.php:1185
|
3891 |
msgid "mla_debug arguments"
|
3892 |
msgstr ""
|
3893 |
|
3894 |
+
#: includes/class-mla-shortcodes.php:1277
|
3895 |
msgid "mla_debug empty cloud"
|
3896 |
msgstr ""
|
3897 |
|
3898 |
+
#: includes/class-mla-shortcodes.php:2551
|
3899 |
+
#: includes/class-mla-shortcodes.php:2802
|
3900 |
msgid "ERROR: Invalid mla_gallery"
|
3901 |
msgstr ""
|
3902 |
|
3903 |
+
#: includes/class-mla-shortcodes.php:2959
|
3904 |
msgid "mla_debug query"
|
3905 |
msgstr ""
|
3906 |
|
3907 |
+
#: includes/class-mla-shortcodes.php:2960
|
3908 |
msgid "mla_debug request"
|
3909 |
msgstr ""
|
3910 |
|
3911 |
+
#: includes/class-mla-shortcodes.php:2961
|
3912 |
msgid "mla_debug query_vars"
|
3913 |
msgstr ""
|
3914 |
|
3915 |
+
#: includes/class-mla-shortcodes.php:2962
|
3916 |
msgid "mla_debug post_count"
|
3917 |
msgstr ""
|
3918 |
|
3919 |
+
#: includes/class-mla-shortcodes.php:3014
|
3920 |
msgid "mla_debug WHERE filter"
|
3921 |
msgstr ""
|
3922 |
|
3923 |
+
#: includes/class-mla-shortcodes.php:3033
|
3924 |
msgid "mla_debug modified WHERE filter"
|
3925 |
msgstr ""
|
3926 |
|
3927 |
+
#: includes/class-mla-shortcodes.php:3056
|
3928 |
msgid "mla_debug ORDER BY filter, incoming"
|
3929 |
msgstr ""
|
3930 |
|
3931 |
+
#: includes/class-mla-shortcodes.php:3056
|
3932 |
msgid "Replacement ORDER BY clause"
|
3933 |
msgstr ""
|
3934 |
|
3935 |
+
#: includes/class-mla-shortcodes.php:3079
|
3936 |
msgid "mla_debug posts_clauses filter"
|
3937 |
msgstr ""
|
3938 |
|
3939 |
+
#: includes/class-mla-shortcodes.php:3097
|
3940 |
msgid "mla_debug posts_clauses_request filter"
|
3941 |
msgstr ""
|
3942 |
|
3943 |
+
#: includes/class-mla-shortcodes.php:3279
|
3944 |
msgid "Invalid taxonomy"
|
3945 |
msgstr ""
|
3946 |
|
3947 |
+
#: includes/class-mla-shortcodes.php:3460
|
3948 |
msgid "mla_debug query arguments"
|
3949 |
msgstr ""
|
3950 |
|
3951 |
+
#: includes/class-mla-shortcodes.php:3461
|
3952 |
msgid "mla_debug last_query"
|
3953 |
msgstr ""
|
3954 |
|
3955 |
+
#: includes/class-mla-shortcodes.php:3462
|
3956 |
msgid "mla_debug last_error"
|
3957 |
msgstr ""
|
3958 |
|
3959 |
+
#: includes/class-mla-shortcodes.php:3463
|
3960 |
msgid "mla_debug num_rows"
|
3961 |
msgstr ""
|
3962 |
|
3963 |
+
#: includes/class-mla-shortcodes.php:3464
|
3964 |
msgid "mla_debug found_rows"
|
3965 |
msgstr ""
|
3966 |
|
4067 |
msgid "Order"
|
4068 |
msgstr ""
|
4069 |
|
4070 |
+
#: includes/mla-main-search-box-template.php:34
|
4071 |
+
#: includes/mla-media-modal-js-template.php:17
|
4072 |
+
msgid "Search Media"
|
4073 |
+
msgstr ""
|
4074 |
+
|
4075 |
#: includes/mla-plugin-loader.php:34
|
4076 |
msgid "The Media Library Assistant cannot load."
|
4077 |
msgstr ""
|
phpDocs/classes/MLA.html
CHANGED
@@ -64,6 +64,7 @@
|
|
64 |
<li class="method public "><a href="#mla_admin_init_action" title="mla_admin_init_action :: Load the plugin's Ajax handler or process Edit Media update actions"><span class="description">Load the plugin's Ajax handler or process Edit Media update actions</span><pre>mla_admin_init_action()</pre></a></li>
|
65 |
<li class="method public "><a href="#mla_admin_menu_action" title="mla_admin_menu_action :: Add the submenu pages"><span class="description">Add the submenu pages</span><pre>mla_admin_menu_action()</pre></a></li>
|
66 |
<li class="method public "><a href="#mla_edit_tax_redirect" title="mla_edit_tax_redirect :: Redirect to the Edit Tags/Categories page"><span class="description">Redirect to the Edit Tags/Categories page</span><pre>mla_edit_tax_redirect()</pre></a></li>
|
|
|
67 |
<li class="method public "><a href="#mla_inline_edit_ajax_action" title="mla_inline_edit_ajax_action :: Ajax handler for inline editing (quick and bulk edit)"><span class="description">Ajax handler for inline editing (quick and bulk edit)</span><pre>mla_inline_edit_ajax_action()</pre></a></li>
|
68 |
<li class="method public "><a href="#mla_load_media_action" title="mla_load_media_action :: Redirect to Media/Assistant if Media/Library is hidden"><span class="description">Redirect to Media/Assistant if Media/Library is hidden</span><pre>mla_load_media_action()</pre></a></li>
|
69 |
<li class="method public "><a href="#mla_parent_file_filter" title="mla_parent_file_filter :: Cleanup menus for Edit Tags/Categories page"><span class="description">Cleanup menus for Edit Tags/Categories page</span><pre>mla_parent_file_filter()</pre></a></li>
|
@@ -71,10 +72,12 @@
|
|
71 |
<li class="method public "><a href="#mla_render_admin_page" title='mla_render_admin_page :: Render the "Assistant" subpage in the Media section, using the list_table package'><span class="description">Render the "Assistant" subpage in the Media section, using the list_table package</span><pre>mla_render_admin_page()</pre></a></li>
|
72 |
<li class="method public "><a href="#mla_screen_options_show_screen_filter" title="mla_screen_options_show_screen_filter :: Only show screen options on the table-list screen"><span class="description">Only show screen options on the table-list screen</span><pre>mla_screen_options_show_screen_filter()</pre></a></li>
|
73 |
<li class="method public "><a href="#mla_set_parent_ajax_action" title="mla_set_parent_ajax_action :: Ajax handler to set post_parent for a single attachment"><span class="description">Ajax handler to set post_parent for a single attachment</span><pre>mla_set_parent_ajax_action()</pre></a></li>
|
|
|
74 |
<li class="method public "><a href="#mla_set_screen_option_filter" title='mla_set_screen_option_filter :: Save the "Entries per page" option set by this user'><span class="description">Save the "Entries per page" option set by this user</span><pre>mla_set_screen_option_filter()</pre></a></li>
|
75 |
<li class="nav-header private">» Private</li>
|
76 |
<li class="method private "><a href="#_authors_dropdown" title="_authors_dropdown :: Get the edit Authors dropdown box, if user has suitable permissions"><span class="description">Get the edit Authors dropdown box, if user has suitable permissions</span><pre>_authors_dropdown()</pre></a></li>
|
77 |
<li class="method private "><a href="#_build_inline_edit_form" title="_build_inline_edit_form :: Build the hidden row templates for inline editing (quick and bulk edit)"><span class="description">Build the hidden row templates for inline editing (quick and bulk edit)</span><pre>_build_inline_edit_form()</pre></a></li>
|
|
|
78 |
<li class="method private "><a href="#_current_bulk_action" title="_current_bulk_action :: Get the current action selected from the bulk actions dropdown"><span class="description">Get the current action selected from the bulk actions dropdown</span><pre>_current_bulk_action()</pre></a></li>
|
79 |
<li class="method private "><a href="#_delete_single_item" title="_delete_single_item :: Delete a single item permanently"><span class="description">Delete a single item permanently</span><pre>_delete_single_item()</pre></a></li>
|
80 |
<li class="method private "><a href="#_display_single_item" title="_display_single_item :: Display a single item sub page; prepare the form to
|
@@ -104,6 +107,7 @@ change the meta data for a single attachment.</span><pre>_display_single_item()<
|
|
104 |
<li class="constant "><a href="#MLA_ADMIN_SINGLE_MAP" title="MLA_ADMIN_SINGLE_MAP :: mla_admin_action value for mapping IPTC/EXIF metadata"><span class="description">mla_admin_action value for mapping IPTC/EXIF metadata</span><pre>MLA_ADMIN_SINGLE_MAP</pre></a></li>
|
105 |
<li class="constant "><a href="#MLA_ADMIN_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>
|
106 |
<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>
|
|
|
107 |
<li class="constant "><a href="#STYLESHEET_SLUG" title="STYLESHEET_SLUG :: Slug for registering and enqueueing plugin style sheet"><span class="description">Slug for registering and enqueueing plugin style sheet</span><pre>STYLESHEET_SLUG</pre></a></li>
|
108 |
</ul>
|
109 |
</div>
|
@@ -232,6 +236,19 @@ The filter is not required for WordPress 3.5 and later.</p></p>
|
|
232 |
</tr></table>
|
233 |
</div></div>
|
234 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
235 |
<a name="mla_inline_edit_ajax_action" id="mla_inline_edit_ajax_action"></a><div class="element clickable method public mla_inline_edit_ajax_action" data-toggle="collapse" data-target=".mla_inline_edit_ajax_action .collapse">
|
236 |
<h2>Ajax handler for inline editing (quick and bulk edit)</h2>
|
237 |
<pre>mla_inline_edit_ajax_action() : void</pre>
|
@@ -342,6 +359,26 @@ Defined as public because it's an action.</p></p>
|
|
342 |
</tr></table>
|
343 |
</div></div>
|
344 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
345 |
<a name="mla_set_screen_option_filter" id="mla_set_screen_option_filter"></a><div class="element clickable method public mla_set_screen_option_filter" data-toggle="collapse" data-target=".mla_set_screen_option_filter .collapse">
|
346 |
<h2>Save the "Entries per page" option set by this user</h2>
|
347 |
<pre>mla_set_screen_option_filter(mixed $status, string $option, string $value) : string | void</pre>
|
@@ -413,6 +450,35 @@ Defined as public because it's an action.</p></p>
|
|
413 |
<code>string</code>HTML <form> markup for hidden rows</div>
|
414 |
</div></div>
|
415 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
416 |
<a name="_current_bulk_action" id="_current_bulk_action"></a><div class="element clickable method private _current_bulk_action" data-toggle="collapse" data-target="._current_bulk_action .collapse">
|
417 |
<h2>Get the current action selected from the bulk actions dropdown</h2>
|
418 |
<pre>_current_bulk_action() : string | false</pre>
|
@@ -723,6 +789,18 @@ change the meta data for a single attachment.</h2>
|
|
723 |
</tr></table>
|
724 |
</div></div>
|
725 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
726 |
<a name="STYLESHEET_SLUG" id="STYLESHEET_SLUG"> </a><div class="element clickable constant STYLESHEET_SLUG" data-toggle="collapse" data-target=".STYLESHEET_SLUG .collapse">
|
727 |
<h2>Slug for registering and enqueueing plugin style sheet</h2>
|
728 |
<pre>STYLESHEET_SLUG : string</pre>
|
@@ -742,7 +820,7 @@ change the meta data for a single attachment.</h2>
|
|
742 |
<div class="row"><footer class="span12">
|
743 |
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>
|
744 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
745 |
-
generated on 2014-
|
746 |
</div>
|
747 |
</body>
|
748 |
</html>
|
64 |
<li class="method public "><a href="#mla_admin_init_action" title="mla_admin_init_action :: Load the plugin's Ajax handler or process Edit Media update actions"><span class="description">Load the plugin's Ajax handler or process Edit Media update actions</span><pre>mla_admin_init_action()</pre></a></li>
|
65 |
<li class="method public "><a href="#mla_admin_menu_action" title="mla_admin_menu_action :: Add the submenu pages"><span class="description">Add the submenu pages</span><pre>mla_admin_menu_action()</pre></a></li>
|
66 |
<li class="method public "><a href="#mla_edit_tax_redirect" title="mla_edit_tax_redirect :: Redirect to the Edit Tags/Categories page"><span class="description">Redirect to the Edit Tags/Categories page</span><pre>mla_edit_tax_redirect()</pre></a></li>
|
67 |
+
<li class="method public "><a href="#mla_find_posts_ajax_action" title='mla_find_posts_ajax_action :: Ajax handler to fetch candidates for the "Set Parent" popup window'><span class="description">Ajax handler to fetch candidates for the "Set Parent" popup window</span><pre>mla_find_posts_ajax_action()</pre></a></li>
|
68 |
<li class="method public "><a href="#mla_inline_edit_ajax_action" title="mla_inline_edit_ajax_action :: Ajax handler for inline editing (quick and bulk edit)"><span class="description">Ajax handler for inline editing (quick and bulk edit)</span><pre>mla_inline_edit_ajax_action()</pre></a></li>
|
69 |
<li class="method public "><a href="#mla_load_media_action" title="mla_load_media_action :: Redirect to Media/Assistant if Media/Library is hidden"><span class="description">Redirect to Media/Assistant if Media/Library is hidden</span><pre>mla_load_media_action()</pre></a></li>
|
70 |
<li class="method public "><a href="#mla_parent_file_filter" title="mla_parent_file_filter :: Cleanup menus for Edit Tags/Categories page"><span class="description">Cleanup menus for Edit Tags/Categories page</span><pre>mla_parent_file_filter()</pre></a></li>
|
72 |
<li class="method public "><a href="#mla_render_admin_page" title='mla_render_admin_page :: Render the "Assistant" subpage in the Media section, using the list_table package'><span class="description">Render the "Assistant" subpage in the Media section, using the list_table package</span><pre>mla_render_admin_page()</pre></a></li>
|
73 |
<li class="method public "><a href="#mla_screen_options_show_screen_filter" title="mla_screen_options_show_screen_filter :: Only show screen options on the table-list screen"><span class="description">Only show screen options on the table-list screen</span><pre>mla_screen_options_show_screen_filter()</pre></a></li>
|
74 |
<li class="method public "><a href="#mla_set_parent_ajax_action" title="mla_set_parent_ajax_action :: Ajax handler to set post_parent for a single attachment"><span class="description">Ajax handler to set post_parent for a single attachment</span><pre>mla_set_parent_ajax_action()</pre></a></li>
|
75 |
+
<li class="method public "><a href="#mla_set_parent_form" title='mla_set_parent_form :: Build the hidden form for the "Set Parent" popup modal window'><span class="description">Build the hidden form for the "Set Parent" popup modal window</span><pre>mla_set_parent_form()</pre></a></li>
|
76 |
<li class="method public "><a href="#mla_set_screen_option_filter" title='mla_set_screen_option_filter :: Save the "Entries per page" option set by this user'><span class="description">Save the "Entries per page" option set by this user</span><pre>mla_set_screen_option_filter()</pre></a></li>
|
77 |
<li class="nav-header private">» Private</li>
|
78 |
<li class="method private "><a href="#_authors_dropdown" title="_authors_dropdown :: Get the edit Authors dropdown box, if user has suitable permissions"><span class="description">Get the edit Authors dropdown box, if user has suitable permissions</span><pre>_authors_dropdown()</pre></a></li>
|
79 |
<li class="method private "><a href="#_build_inline_edit_form" title="_build_inline_edit_form :: Build the hidden row templates for inline editing (quick and bulk edit)"><span class="description">Build the hidden row templates for inline editing (quick and bulk edit)</span><pre>_build_inline_edit_form()</pre></a></li>
|
80 |
+
<li class="method private "><a href="#_compose_post_type_select" title="_compose_post_type_select :: Compose a Post Type Options list with current selection"><span class="description">Compose a Post Type Options list with current selection</span><pre>_compose_post_type_select()</pre></a></li>
|
81 |
<li class="method private "><a href="#_current_bulk_action" title="_current_bulk_action :: Get the current action selected from the bulk actions dropdown"><span class="description">Get the current action selected from the bulk actions dropdown</span><pre>_current_bulk_action()</pre></a></li>
|
82 |
<li class="method private "><a href="#_delete_single_item" title="_delete_single_item :: Delete a single item permanently"><span class="description">Delete a single item permanently</span><pre>_delete_single_item()</pre></a></li>
|
83 |
<li class="method private "><a href="#_display_single_item" title="_display_single_item :: Display a single item sub page; prepare the form to
|
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>
|
236 |
</tr></table>
|
237 |
</div></div>
|
238 |
</div>
|
239 |
+
<a name="mla_find_posts_ajax_action" id="mla_find_posts_ajax_action"></a><div class="element clickable method public mla_find_posts_ajax_action" data-toggle="collapse" data-target=".mla_find_posts_ajax_action .collapse">
|
240 |
+
<h2>Ajax handler to fetch candidates for the "Set Parent" popup window</h2>
|
241 |
+
<pre>mla_find_posts_ajax_action() : void</pre>
|
242 |
+
<div class="labels"></div>
|
243 |
+
<div class="row collapse"><div class="detail-description">
|
244 |
+
<p class="long_description"><p>Adapted from wp_ajax_find_posts in /wp-admin/includes/ajax-actions.php.
|
245 |
+
Adds filters for post type and pagination.</p></p>
|
246 |
+
<table class="table table-bordered"><tr>
|
247 |
+
<th>since</th>
|
248 |
+
<td>1.90</td>
|
249 |
+
</tr></table>
|
250 |
+
</div></div>
|
251 |
+
</div>
|
252 |
<a name="mla_inline_edit_ajax_action" id="mla_inline_edit_ajax_action"></a><div class="element clickable method public mla_inline_edit_ajax_action" data-toggle="collapse" data-target=".mla_inline_edit_ajax_action .collapse">
|
253 |
<h2>Ajax handler for inline editing (quick and bulk edit)</h2>
|
254 |
<pre>mla_inline_edit_ajax_action() : void</pre>
|
359 |
</tr></table>
|
360 |
</div></div>
|
361 |
</div>
|
362 |
+
<a name="mla_set_parent_form" id="mla_set_parent_form"></a><div class="element clickable method public mla_set_parent_form" data-toggle="collapse" data-target=".mla_set_parent_form .collapse">
|
363 |
+
<h2>Build the hidden form for the "Set Parent" popup modal window</h2>
|
364 |
+
<pre>mla_set_parent_form(boolean $return_form) : string</pre>
|
365 |
+
<div class="labels"></div>
|
366 |
+
<div class="row collapse"><div class="detail-description">
|
367 |
+
<p class="long_description"></p>
|
368 |
+
<table class="table table-bordered"><tr>
|
369 |
+
<th>since</th>
|
370 |
+
<td>1.90</td>
|
371 |
+
</tr></table>
|
372 |
+
<h3>Parameters</h3>
|
373 |
+
<div class="subelement argument">
|
374 |
+
<h4>$return_form</h4>
|
375 |
+
<code>boolean</code><p>true to return complete form, false to return mla-set-parent-div</p>
|
376 |
+
</div>
|
377 |
+
<h3>Returns</h3>
|
378 |
+
<div class="subelement response">
|
379 |
+
<code>string</code>HTML <form> markup for hidden form</div>
|
380 |
+
</div></div>
|
381 |
+
</div>
|
382 |
<a name="mla_set_screen_option_filter" id="mla_set_screen_option_filter"></a><div class="element clickable method public mla_set_screen_option_filter" data-toggle="collapse" data-target=".mla_set_screen_option_filter .collapse">
|
383 |
<h2>Save the "Entries per page" option set by this user</h2>
|
384 |
<pre>mla_set_screen_option_filter(mixed $status, string $option, string $value) : string | void</pre>
|
450 |
<code>string</code>HTML <form> markup for hidden rows</div>
|
451 |
</div></div>
|
452 |
</div>
|
453 |
+
<a name="_compose_post_type_select" id="_compose_post_type_select"></a><div class="element clickable method private _compose_post_type_select" data-toggle="collapse" data-target="._compose_post_type_select .collapse">
|
454 |
+
<h2>Compose a Post Type Options list with current selection</h2>
|
455 |
+
<pre>_compose_post_type_select(array $templates, string $selection) : string</pre>
|
456 |
+
<div class="labels"></div>
|
457 |
+
<div class="row collapse"><div class="detail-description">
|
458 |
+
<p class="long_description"></p>
|
459 |
+
<table class="table table-bordered">
|
460 |
+
<tr>
|
461 |
+
<th>since</th>
|
462 |
+
<td>1.90</td>
|
463 |
+
</tr>
|
464 |
+
<tr>
|
465 |
+
<th>uses</th>
|
466 |
+
<td>\global\$mla_option_templates</td>
|
467 |
+
</tr>
|
468 |
+
</table>
|
469 |
+
<h3>Parameters</h3>
|
470 |
+
<div class="subelement argument">
|
471 |
+
<h4>$templates</h4>
|
472 |
+
<code>array</code><p>template parts</p></div>
|
473 |
+
<div class="subelement argument">
|
474 |
+
<h4>$selection</h4>
|
475 |
+
<code>string</code><p>current selection or 'all' (default)</p>
|
476 |
+
</div>
|
477 |
+
<h3>Returns</h3>
|
478 |
+
<div class="subelement response">
|
479 |
+
<code>string</code>HTML markup with select field options</div>
|
480 |
+
</div></div>
|
481 |
+
</div>
|
482 |
<a name="_current_bulk_action" id="_current_bulk_action"></a><div class="element clickable method private _current_bulk_action" data-toggle="collapse" data-target="._current_bulk_action .collapse">
|
483 |
<h2>Get the current action selected from the bulk actions dropdown</h2>
|
484 |
<pre>_current_bulk_action() : string | false</pre>
|
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>
|
798 |
+
<table class="table table-bordered"><tr>
|
799 |
+
<th>since</th>
|
800 |
+
<td>1.90</td>
|
801 |
+
</tr></table>
|
802 |
+
</div></div>
|
803 |
+
</div>
|
804 |
<a name="STYLESHEET_SLUG" id="STYLESHEET_SLUG"> </a><div class="element clickable constant STYLESHEET_SLUG" data-toggle="collapse" data-target=".STYLESHEET_SLUG .collapse">
|
805 |
<h2>Slug for registering and enqueueing plugin style sheet</h2>
|
806 |
<pre>STYLESHEET_SLUG : string</pre>
|
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-06-27T14:50:12-07:00.<br></footer></div>
|
824 |
</div>
|
825 |
</body>
|
826 |
</html>
|
phpDocs/classes/MLAData.html
CHANGED
@@ -80,6 +80,7 @@
|
|
80 |
<li class="method public "><a href="#mla_query_media_modal_items" title="mla_query_media_modal_items :: Retrieve attachment objects for the WordPress Media Manager"><span class="description">Retrieve attachment objects for the WordPress Media Manager</span><pre>mla_query_media_modal_items()</pre></a></li>
|
81 |
<li class="method public "><a href="#mla_query_posts_clauses_filter" title="mla_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_query_posts_clauses_filter()</pre></a></li>
|
82 |
<li class="method public "><a href="#mla_query_posts_clauses_request_filter" title="mla_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_query_posts_clauses_request_filter()</pre></a></li>
|
|
|
83 |
<li class="method public "><a href="#mla_query_posts_join_filter" title="mla_query_posts_join_filter :: Adds a JOIN clause, if required, to handle sorting/searching on custom fields or ALT Text"><span class="description">Adds a JOIN clause, if required, to handle sorting/searching on custom fields or ALT Text</span><pre>mla_query_posts_join_filter()</pre></a></li>
|
84 |
<li class="method public "><a href="#mla_query_posts_orderby_filter" title="mla_query_posts_orderby_filter :: Adds a ORDERBY clause, if required"><span class="description">Adds a ORDERBY clause, if required</span><pre>mla_query_posts_orderby_filter()</pre></a></li>
|
85 |
<li class="method public "><a href="#mla_query_posts_search_filter" title="mla_query_posts_search_filter :: Adds a keyword search to the WHERE clause, if required"><span class="description">Adds a keyword search to the WHERE clause, if required</span><pre>mla_query_posts_search_filter()</pre></a></li>
|
@@ -728,6 +729,26 @@ Defined as public because it's a filter.</p></p>
|
|
728 |
<code>array</code>query clauses after modification (none)</div>
|
729 |
</div></div>
|
730 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
731 |
<a name="mla_query_posts_join_filter" id="mla_query_posts_join_filter"></a><div class="element clickable method public mla_query_posts_join_filter" data-toggle="collapse" data-target=".mla_query_posts_join_filter .collapse">
|
732 |
<h2>Adds a JOIN clause, if required, to handle sorting/searching on custom fields or ALT Text</h2>
|
733 |
<pre>mla_query_posts_join_filter(string $join_clause) : string</pre>
|
@@ -1836,7 +1857,7 @@ ALT Text and custom field columns.</p></p>
|
|
1836 |
<div class="row"><footer class="span12">
|
1837 |
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>
|
1838 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
1839 |
-
generated on 2014-
|
1840 |
</div>
|
1841 |
</body>
|
1842 |
</html>
|
80 |
<li class="method public "><a href="#mla_query_media_modal_items" title="mla_query_media_modal_items :: Retrieve attachment objects for the WordPress Media Manager"><span class="description">Retrieve attachment objects for the WordPress Media Manager</span><pre>mla_query_media_modal_items()</pre></a></li>
|
81 |
<li class="method public "><a href="#mla_query_posts_clauses_filter" title="mla_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_query_posts_clauses_filter()</pre></a></li>
|
82 |
<li class="method public "><a href="#mla_query_posts_clauses_request_filter" title="mla_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_query_posts_clauses_request_filter()</pre></a></li>
|
83 |
+
<li class="method public "><a href="#mla_query_posts_groupby_filter" title="mla_query_posts_groupby_filter :: Adds a GROUPBY clause, if required"><span class="description">Adds a GROUPBY clause, if required</span><pre>mla_query_posts_groupby_filter()</pre></a></li>
|
84 |
<li class="method public "><a href="#mla_query_posts_join_filter" title="mla_query_posts_join_filter :: Adds a JOIN clause, if required, to handle sorting/searching on custom fields or ALT Text"><span class="description">Adds a JOIN clause, if required, to handle sorting/searching on custom fields or ALT Text</span><pre>mla_query_posts_join_filter()</pre></a></li>
|
85 |
<li class="method public "><a href="#mla_query_posts_orderby_filter" title="mla_query_posts_orderby_filter :: Adds a ORDERBY clause, if required"><span class="description">Adds a ORDERBY clause, if required</span><pre>mla_query_posts_orderby_filter()</pre></a></li>
|
86 |
<li class="method public "><a href="#mla_query_posts_search_filter" title="mla_query_posts_search_filter :: Adds a keyword search to the WHERE clause, if required"><span class="description">Adds a keyword search to the WHERE clause, if required</span><pre>mla_query_posts_search_filter()</pre></a></li>
|
729 |
<code>array</code>query clauses after modification (none)</div>
|
730 |
</div></div>
|
731 |
</div>
|
732 |
+
<a name="mla_query_posts_groupby_filter" id="mla_query_posts_groupby_filter"></a><div class="element clickable method public mla_query_posts_groupby_filter" data-toggle="collapse" data-target=".mla_query_posts_groupby_filter .collapse">
|
733 |
+
<h2>Adds a GROUPBY clause, if required</h2>
|
734 |
+
<pre>mla_query_posts_groupby_filter(string $groupby_clause) : string</pre>
|
735 |
+
<div class="labels"></div>
|
736 |
+
<div class="row collapse"><div class="detail-description">
|
737 |
+
<p class="long_description"><p>Taxonomy text queries require a GROUPBY clause.
|
738 |
+
Defined as public because it's a filter.</p></p>
|
739 |
+
<table class="table table-bordered"><tr>
|
740 |
+
<th>since</th>
|
741 |
+
<td>1.90</td>
|
742 |
+
</tr></table>
|
743 |
+
<h3>Parameters</h3>
|
744 |
+
<div class="subelement argument">
|
745 |
+
<h4>$groupby_clause</h4>
|
746 |
+
<code>string</code><p>query clause before modification</p></div>
|
747 |
+
<h3>Returns</h3>
|
748 |
+
<div class="subelement response">
|
749 |
+
<code>string</code>updated query clause</div>
|
750 |
+
</div></div>
|
751 |
+
</div>
|
752 |
<a name="mla_query_posts_join_filter" id="mla_query_posts_join_filter"></a><div class="element clickable method public mla_query_posts_join_filter" data-toggle="collapse" data-target=".mla_query_posts_join_filter .collapse">
|
753 |
<h2>Adds a JOIN clause, if required, to handle sorting/searching on custom fields or ALT Text</h2>
|
754 |
<pre>mla_query_posts_join_filter(string $join_clause) : string</pre>
|
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-06-27T14:50:12-07:00.<br></footer></div>
|
1861 |
</div>
|
1862 |
</body>
|
1863 |
</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-06-27T14:50:12-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-06-27T14:50:12-07:00.<br></footer></div>
|
1292 |
</div>
|
1293 |
</body>
|
1294 |
</html>
|
phpDocs/classes/MLAModal.html
CHANGED
@@ -58,14 +58,22 @@
|
|
58 |
<li class="nav-header">
|
59 |
<i class="icon-custom icon-method"></i> Methods</li>
|
60 |
<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>
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
<li class="method public "><a href="#mla_admin_init_action" title="mla_admin_init_action :: Adjust ajax handler for Media Manager queries"><span class="description">Adjust ajax handler for Media Manager queries</span><pre>mla_admin_init_action()</pre></a></li>
|
62 |
<li class="method public "><a href="#mla_attachment_fields_to_edit_filter" title="mla_attachment_fields_to_edit_filter :: Add/change custom fields to the Edit Media screen and Modal Window"><span class="description">Add/change custom fields to the Edit Media screen and Modal Window</span><pre>mla_attachment_fields_to_edit_filter()</pre></a></li>
|
|
|
63 |
<li class="method public "><a href="#mla_fill_compat_fields_action" title='mla_fill_compat_fields_action :: Ajax handler for Media Manager "fill compat-attachment-fields" queries'><span class="description">Ajax handler for Media Manager "fill compat-attachment-fields" queries</span><pre>mla_fill_compat_fields_action()</pre></a></li>
|
64 |
<li class="method public "><a href="#mla_get_media_item_args_filter" title="mla_get_media_item_args_filter :: Saves the get_media_item_args array for the attachment_fields_to_edit filter"><span class="description">Saves the get_media_item_args array for the attachment_fields_to_edit filter</span><pre>mla_get_media_item_args_filter()</pre></a></li>
|
65 |
<li class="method public "><a href="#mla_media_view_settings_filter" title="mla_media_view_settings_filter :: Adds settings values to be passed to the Media Manager in /wp-includes/js/media-views.js."><span class="description">Adds settings values to be passed to the Media Manager in /wp-includes/js/media-views.js.</span><pre>mla_media_view_settings_filter()</pre></a></li>
|
66 |
<li class="method public "><a href="#mla_media_view_strings_filter" title="mla_media_view_strings_filter :: Adds strings values to be passed to the Media Manager in /wp-includes/js/media-views.js."><span class="description">Adds strings values to be passed to the Media Manager in /wp-includes/js/media-views.js.</span><pre>mla_media_view_strings_filter()</pre></a></li>
|
67 |
<li class="method public "><a href="#mla_print_media_templates_action" title="mla_print_media_templates_action :: Prints the templates used in the MLA Media Manager enhancements."><span class="description">Prints the templates used in the MLA Media Manager enhancements.</span><pre>mla_print_media_templates_action()</pre></a></li>
|
68 |
<li class="method public "><a href="#mla_query_attachments_action" title='mla_query_attachments_action :: Ajax handler for Media Manager "Query Attachments" queries'><span class="description">Ajax handler for Media Manager "Query Attachments" queries</span><pre>mla_query_attachments_action()</pre></a></li>
|
|
|
69 |
<li class="method public "><a href="#mla_update_compat_fields_action" title='mla_update_compat_fields_action :: Ajax handler for Media Manager "update compat-attachment-fields" queries'><span class="description">Ajax handler for Media Manager "update compat-attachment-fields" queries</span><pre>mla_update_compat_fields_action()</pre></a></li>
|
70 |
<li class="method public "><a href="#mla_wp_enqueue_media_action" title="mla_wp_enqueue_media_action :: Enqueues the mla-media-modal-scripts.js file, adding it to the Media Manager scripts."><span class="description">Enqueues the mla-media-modal-scripts.js file, adding it to the Media Manager scripts.</span><pre>mla_wp_enqueue_media_action()</pre></a></li>
|
71 |
<li class="nav-header private">» Private</li>
|
@@ -85,6 +93,7 @@ and mla_print_media_templates_action</span><pre>$mla_media_modal_settings</pre><
|
|
85 |
<li class="constant "><a href="#JAVASCRIPT_MEDIA_MODAL_SLUG" title="JAVASCRIPT_MEDIA_MODAL_SLUG :: Slug for localizing and enqueueing JavaScript - Add Media and related dialogs"><span class="description">Slug for localizing and enqueueing JavaScript - Add Media and related dialogs</span><pre>JAVASCRIPT_MEDIA_MODAL_SLUG</pre></a></li>
|
86 |
<li class="constant "><a href="#JAVASCRIPT_MEDIA_MODAL_STYLES" title="JAVASCRIPT_MEDIA_MODAL_STYLES :: Slug for localizing and enqueueing CSS - Add Media and related dialogs"><span class="description">Slug for localizing and enqueueing CSS - Add Media and related dialogs</span><pre>JAVASCRIPT_MEDIA_MODAL_STYLES</pre></a></li>
|
87 |
<li class="constant "><a href="#JAVASCRIPT_QUERY_ATTACHMENTS_ACTION" title='JAVASCRIPT_QUERY_ATTACHMENTS_ACTION :: Slug for the "query attachments" action - Add Media and related dialogs'><span class="description">Slug for the "query attachments" action - Add Media and related dialogs</span><pre>JAVASCRIPT_QUERY_ATTACHMENTS_ACTION</pre></a></li>
|
|
|
88 |
<li class="constant "><a href="#JAVASCRIPT_UPDATE_COMPAT_ACTION" title='JAVASCRIPT_UPDATE_COMPAT_ACTION :: Slug for the "update compat-attachment-fields" action - Add Media and related dialogs'><span class="description">Slug for the "update compat-attachment-fields" action - Add Media and related dialogs</span><pre>JAVASCRIPT_UPDATE_COMPAT_ACTION</pre></a></li>
|
89 |
</ul>
|
90 |
</div>
|
@@ -126,6 +135,32 @@ and mla_print_media_templates_action</span><pre>$mla_media_modal_settings</pre><
|
|
126 |
</tr></table>
|
127 |
</div></div>
|
128 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
129 |
<a name="mla_admin_init_action" id="mla_admin_init_action"></a><div class="element clickable method public mla_admin_init_action" data-toggle="collapse" data-target=".mla_admin_init_action .collapse">
|
130 |
<h2>Adjust ajax handler for Media Manager queries</h2>
|
131 |
<pre>mla_admin_init_action() : void</pre>
|
@@ -167,6 +202,18 @@ Declared public because it is a filter.</p></p>
|
|
167 |
<code>array</code>updated descriptors for the "compat-attachment-fields"</div>
|
168 |
</div></div>
|
169 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
170 |
<a name="mla_fill_compat_fields_action" id="mla_fill_compat_fields_action"></a><div class="element clickable method public mla_fill_compat_fields_action" data-toggle="collapse" data-target=".mla_fill_compat_fields_action .collapse">
|
171 |
<h2>Ajax handler for Media Manager "fill compat-attachment-fields" queries</h2>
|
172 |
<pre>mla_fill_compat_fields_action() : void</pre>
|
@@ -269,6 +316,21 @@ Declared public because it is a filter.</p></p>
|
|
269 |
</tr></table>
|
270 |
</div></div>
|
271 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
272 |
<a name="mla_update_compat_fields_action" id="mla_update_compat_fields_action"></a><div class="element clickable method public mla_update_compat_fields_action" data-toggle="collapse" data-target=".mla_update_compat_fields_action .collapse">
|
273 |
<h2>Ajax handler for Media Manager "update compat-attachment-fields" queries</h2>
|
274 |
<pre>mla_update_compat_fields_action() : void</pre>
|
@@ -330,7 +392,7 @@ Declared public because it is a filter.</p></p>
|
|
330 |
</div>
|
331 |
<h3>Returns</h3>
|
332 |
<div class="subelement response">
|
333 |
-
<code>array</code>( value =>
|
334 |
</div></div>
|
335 |
</div>
|
336 |
<h3>
|
@@ -422,6 +484,18 @@ and mla_print_media_templates_action</h2>
|
|
422 |
</tr></table>
|
423 |
</div></div>
|
424 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
425 |
<a name="JAVASCRIPT_UPDATE_COMPAT_ACTION" id="JAVASCRIPT_UPDATE_COMPAT_ACTION"> </a><div class="element clickable constant JAVASCRIPT_UPDATE_COMPAT_ACTION" data-toggle="collapse" data-target=".JAVASCRIPT_UPDATE_COMPAT_ACTION .collapse">
|
426 |
<h2>Slug for the "update compat-attachment-fields" action - Add Media and related dialogs</h2>
|
427 |
<pre>JAVASCRIPT_UPDATE_COMPAT_ACTION : string</pre>
|
@@ -441,7 +515,7 @@ and mla_print_media_templates_action</h2>
|
|
441 |
<div class="row"><footer class="span12">
|
442 |
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>
|
443 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
444 |
-
generated on 2014-
|
445 |
</div>
|
446 |
</body>
|
447 |
</html>
|
58 |
<li class="nav-header">
|
59 |
<i class="icon-custom icon-method"></i> Methods</li>
|
60 |
<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>
|
61 |
+
<li class="method public "><a href="#mla_add_terms_search_form" title='mla_add_terms_search_form :: Add the hidden form for the "Search Terms" popup modal window,
|
62 |
+
but only once per page load'><span class="description">Add the hidden form for the "Search Terms" popup modal window,
|
63 |
+
but only once per page load</span><pre>mla_add_terms_search_form()</pre></a></li>
|
64 |
+
<li class="method public "><a href="#mla_add_terms_search_scripts" title='mla_add_terms_search_scripts :: Add the styles and scripts for the "Search Terms" popup modal window,
|
65 |
+
but only once per page load'><span class="description">Add the styles and scripts for the "Search Terms" popup modal window,
|
66 |
+
but only once per page load</span><pre>mla_add_terms_search_scripts()</pre></a></li>
|
67 |
<li class="method public "><a href="#mla_admin_init_action" title="mla_admin_init_action :: Adjust ajax handler for Media Manager queries"><span class="description">Adjust ajax handler for Media Manager queries</span><pre>mla_admin_init_action()</pre></a></li>
|
68 |
<li class="method public "><a href="#mla_attachment_fields_to_edit_filter" title="mla_attachment_fields_to_edit_filter :: Add/change custom fields to the Edit Media screen and Modal Window"><span class="description">Add/change custom fields to the Edit Media screen and Modal Window</span><pre>mla_attachment_fields_to_edit_filter()</pre></a></li>
|
69 |
+
<li class="method public "><a href="#mla_echo_terms_search_form" title='mla_echo_terms_search_form :: Echo the hidden form for the "Search Terms" popup modal window'><span class="description">Echo the hidden form for the "Search Terms" popup modal window</span><pre>mla_echo_terms_search_form()</pre></a></li>
|
70 |
<li class="method public "><a href="#mla_fill_compat_fields_action" title='mla_fill_compat_fields_action :: Ajax handler for Media Manager "fill compat-attachment-fields" queries'><span class="description">Ajax handler for Media Manager "fill compat-attachment-fields" queries</span><pre>mla_fill_compat_fields_action()</pre></a></li>
|
71 |
<li class="method public "><a href="#mla_get_media_item_args_filter" title="mla_get_media_item_args_filter :: Saves the get_media_item_args array for the attachment_fields_to_edit filter"><span class="description">Saves the get_media_item_args array for the attachment_fields_to_edit filter</span><pre>mla_get_media_item_args_filter()</pre></a></li>
|
72 |
<li class="method public "><a href="#mla_media_view_settings_filter" title="mla_media_view_settings_filter :: Adds settings values to be passed to the Media Manager in /wp-includes/js/media-views.js."><span class="description">Adds settings values to be passed to the Media Manager in /wp-includes/js/media-views.js.</span><pre>mla_media_view_settings_filter()</pre></a></li>
|
73 |
<li class="method public "><a href="#mla_media_view_strings_filter" title="mla_media_view_strings_filter :: Adds strings values to be passed to the Media Manager in /wp-includes/js/media-views.js."><span class="description">Adds strings values to be passed to the Media Manager in /wp-includes/js/media-views.js.</span><pre>mla_media_view_strings_filter()</pre></a></li>
|
74 |
<li class="method public "><a href="#mla_print_media_templates_action" title="mla_print_media_templates_action :: Prints the templates used in the MLA Media Manager enhancements."><span class="description">Prints the templates used in the MLA Media Manager enhancements.</span><pre>mla_print_media_templates_action()</pre></a></li>
|
75 |
<li class="method public "><a href="#mla_query_attachments_action" title='mla_query_attachments_action :: Ajax handler for Media Manager "Query Attachments" queries'><span class="description">Ajax handler for Media Manager "Query Attachments" queries</span><pre>mla_query_attachments_action()</pre></a></li>
|
76 |
+
<li class="method public "><a href="#mla_terms_search_form" title='mla_terms_search_form :: Build the hidden form for the "Search Terms" popup modal window'><span class="description">Build the hidden form for the "Search Terms" popup modal window</span><pre>mla_terms_search_form()</pre></a></li>
|
77 |
<li class="method public "><a href="#mla_update_compat_fields_action" title='mla_update_compat_fields_action :: Ajax handler for Media Manager "update compat-attachment-fields" queries'><span class="description">Ajax handler for Media Manager "update compat-attachment-fields" queries</span><pre>mla_update_compat_fields_action()</pre></a></li>
|
78 |
<li class="method public "><a href="#mla_wp_enqueue_media_action" title="mla_wp_enqueue_media_action :: Enqueues the mla-media-modal-scripts.js file, adding it to the Media Manager scripts."><span class="description">Enqueues the mla-media-modal-scripts.js file, adding it to the Media Manager scripts.</span><pre>mla_wp_enqueue_media_action()</pre></a></li>
|
79 |
<li class="nav-header private">» Private</li>
|
93 |
<li class="constant "><a href="#JAVASCRIPT_MEDIA_MODAL_SLUG" title="JAVASCRIPT_MEDIA_MODAL_SLUG :: Slug for localizing and enqueueing JavaScript - Add Media and related dialogs"><span class="description">Slug for localizing and enqueueing JavaScript - Add Media and related dialogs</span><pre>JAVASCRIPT_MEDIA_MODAL_SLUG</pre></a></li>
|
94 |
<li class="constant "><a href="#JAVASCRIPT_MEDIA_MODAL_STYLES" title="JAVASCRIPT_MEDIA_MODAL_STYLES :: Slug for localizing and enqueueing CSS - Add Media and related dialogs"><span class="description">Slug for localizing and enqueueing CSS - Add Media and related dialogs</span><pre>JAVASCRIPT_MEDIA_MODAL_STYLES</pre></a></li>
|
95 |
<li class="constant "><a href="#JAVASCRIPT_QUERY_ATTACHMENTS_ACTION" title='JAVASCRIPT_QUERY_ATTACHMENTS_ACTION :: Slug for the "query attachments" action - Add Media and related dialogs'><span class="description">Slug for the "query attachments" action - Add Media and related dialogs</span><pre>JAVASCRIPT_QUERY_ATTACHMENTS_ACTION</pre></a></li>
|
96 |
+
<li class="constant "><a href="#JAVASCRIPT_TERMS_SEARCH_OBJECT" title="JAVASCRIPT_TERMS_SEARCH_OBJECT :: Object name for localizing JavaScript - Terms Search popup"><span class="description">Object name for localizing JavaScript - Terms Search popup</span><pre>JAVASCRIPT_TERMS_SEARCH_OBJECT</pre></a></li>
|
97 |
<li class="constant "><a href="#JAVASCRIPT_UPDATE_COMPAT_ACTION" title='JAVASCRIPT_UPDATE_COMPAT_ACTION :: Slug for the "update compat-attachment-fields" action - Add Media and related dialogs'><span class="description">Slug for the "update compat-attachment-fields" action - Add Media and related dialogs</span><pre>JAVASCRIPT_UPDATE_COMPAT_ACTION</pre></a></li>
|
98 |
</ul>
|
99 |
</div>
|
135 |
</tr></table>
|
136 |
</div></div>
|
137 |
</div>
|
138 |
+
<a name="mla_add_terms_search_form" id="mla_add_terms_search_form"></a><div class="element clickable method public mla_add_terms_search_form" data-toggle="collapse" data-target=".mla_add_terms_search_form .collapse">
|
139 |
+
<h2>Add the hidden form for the "Search Terms" popup modal window,
|
140 |
+
but only once per page load</h2>
|
141 |
+
<pre>mla_add_terms_search_form() : void</pre>
|
142 |
+
<div class="labels"></div>
|
143 |
+
<div class="row collapse"><div class="detail-description">
|
144 |
+
<p class="long_description"></p>
|
145 |
+
<table class="table table-bordered"><tr>
|
146 |
+
<th>since</th>
|
147 |
+
<td>1.90</td>
|
148 |
+
</tr></table>
|
149 |
+
</div></div>
|
150 |
+
</div>
|
151 |
+
<a name="mla_add_terms_search_scripts" id="mla_add_terms_search_scripts"></a><div class="element clickable method public mla_add_terms_search_scripts" data-toggle="collapse" data-target=".mla_add_terms_search_scripts .collapse">
|
152 |
+
<h2>Add the styles and scripts for the "Search Terms" popup modal window,
|
153 |
+
but only once per page load</h2>
|
154 |
+
<pre>mla_add_terms_search_scripts() : void</pre>
|
155 |
+
<div class="labels"></div>
|
156 |
+
<div class="row collapse"><div class="detail-description">
|
157 |
+
<p class="long_description"></p>
|
158 |
+
<table class="table table-bordered"><tr>
|
159 |
+
<th>since</th>
|
160 |
+
<td>1.90</td>
|
161 |
+
</tr></table>
|
162 |
+
</div></div>
|
163 |
+
</div>
|
164 |
<a name="mla_admin_init_action" id="mla_admin_init_action"></a><div class="element clickable method public mla_admin_init_action" data-toggle="collapse" data-target=".mla_admin_init_action .collapse">
|
165 |
<h2>Adjust ajax handler for Media Manager queries</h2>
|
166 |
<pre>mla_admin_init_action() : void</pre>
|
202 |
<code>array</code>updated descriptors for the "compat-attachment-fields"</div>
|
203 |
</div></div>
|
204 |
</div>
|
205 |
+
<a name="mla_echo_terms_search_form" id="mla_echo_terms_search_form"></a><div class="element clickable method public mla_echo_terms_search_form" data-toggle="collapse" data-target=".mla_echo_terms_search_form .collapse">
|
206 |
+
<h2>Echo the hidden form for the "Search Terms" popup modal window</h2>
|
207 |
+
<pre>mla_echo_terms_search_form() : void</pre>
|
208 |
+
<div class="labels"></div>
|
209 |
+
<div class="row collapse"><div class="detail-description">
|
210 |
+
<p class="long_description"></p>
|
211 |
+
<table class="table table-bordered"><tr>
|
212 |
+
<th>since</th>
|
213 |
+
<td>1.90</td>
|
214 |
+
</tr></table>
|
215 |
+
</div></div>
|
216 |
+
</div>
|
217 |
<a name="mla_fill_compat_fields_action" id="mla_fill_compat_fields_action"></a><div class="element clickable method public mla_fill_compat_fields_action" data-toggle="collapse" data-target=".mla_fill_compat_fields_action .collapse">
|
218 |
<h2>Ajax handler for Media Manager "fill compat-attachment-fields" queries</h2>
|
219 |
<pre>mla_fill_compat_fields_action() : void</pre>
|
316 |
</tr></table>
|
317 |
</div></div>
|
318 |
</div>
|
319 |
+
<a name="mla_terms_search_form" id="mla_terms_search_form"></a><div class="element clickable method public mla_terms_search_form" data-toggle="collapse" data-target=".mla_terms_search_form .collapse">
|
320 |
+
<h2>Build the hidden form for the "Search Terms" popup modal window</h2>
|
321 |
+
<pre>mla_terms_search_form() : string</pre>
|
322 |
+
<div class="labels"></div>
|
323 |
+
<div class="row collapse"><div class="detail-description">
|
324 |
+
<p class="long_description"></p>
|
325 |
+
<table class="table table-bordered"><tr>
|
326 |
+
<th>since</th>
|
327 |
+
<td>1.90</td>
|
328 |
+
</tr></table>
|
329 |
+
<h3>Returns</h3>
|
330 |
+
<div class="subelement response">
|
331 |
+
<code>string</code>HTML <form> markup for hidden form</div>
|
332 |
+
</div></div>
|
333 |
+
</div>
|
334 |
<a name="mla_update_compat_fields_action" id="mla_update_compat_fields_action"></a><div class="element clickable method public mla_update_compat_fields_action" data-toggle="collapse" data-target=".mla_update_compat_fields_action .collapse">
|
335 |
<h2>Ajax handler for Media Manager "update compat-attachment-fields" queries</h2>
|
336 |
<pre>mla_update_compat_fields_action() : void</pre>
|
392 |
</div>
|
393 |
<h3>Returns</h3>
|
394 |
<div class="subelement response">
|
395 |
+
<code>array</code>( 'class' => $class_array, 'value' => $value_array, 'text' => $text_array )</div>
|
396 |
</div></div>
|
397 |
</div>
|
398 |
<h3>
|
484 |
</tr></table>
|
485 |
</div></div>
|
486 |
</div>
|
487 |
+
<a name="JAVASCRIPT_TERMS_SEARCH_OBJECT" id="JAVASCRIPT_TERMS_SEARCH_OBJECT"> </a><div class="element clickable constant JAVASCRIPT_TERMS_SEARCH_OBJECT" data-toggle="collapse" data-target=".JAVASCRIPT_TERMS_SEARCH_OBJECT .collapse">
|
488 |
+
<h2>Object name for localizing JavaScript - Terms Search popup</h2>
|
489 |
+
<pre>JAVASCRIPT_TERMS_SEARCH_OBJECT : string</pre>
|
490 |
+
<div class="labels"></div>
|
491 |
+
<div class="row collapse"><div class="detail-description">
|
492 |
+
<p class="long_description"></p>
|
493 |
+
<table class="table table-bordered"><tr>
|
494 |
+
<th>since</th>
|
495 |
+
<td>1.90</td>
|
496 |
+
</tr></table>
|
497 |
+
</div></div>
|
498 |
+
</div>
|
499 |
<a name="JAVASCRIPT_UPDATE_COMPAT_ACTION" id="JAVASCRIPT_UPDATE_COMPAT_ACTION"> </a><div class="element clickable constant JAVASCRIPT_UPDATE_COMPAT_ACTION" data-toggle="collapse" data-target=".JAVASCRIPT_UPDATE_COMPAT_ACTION .collapse">
|
500 |
<h2>Slug for the "update compat-attachment-fields" action - Add Media and related dialogs</h2>
|
501 |
<pre>JAVASCRIPT_UPDATE_COMPAT_ACTION : string</pre>
|
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-06-27T14:50:12-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-06-27T14:50:12-07:00.<br></footer></div>
|
176 |
</div>
|
177 |
</body>
|
178 |
</html>
|
phpDocs/classes/MLAOptions.html
CHANGED
@@ -76,6 +76,8 @@
|
|
76 |
<li class="method public "><a href="#mla_localize_option_definitions_array" title="mla_localize_option_definitions_array :: Localize $mla_option_definitions array"><span class="description">Localize $mla_option_definitions array</span><pre>mla_localize_option_definitions_array()</pre></a></li>
|
77 |
<li class="method public "><a href="#mla_put_markup_templates" title="mla_put_markup_templates :: Put user-defined markup templates to $mla_templates and database"><span class="description">Put user-defined markup templates to $mla_templates and database</span><pre>mla_put_markup_templates()</pre></a></li>
|
78 |
<li class="method public "><a href="#mla_put_style_templates" title="mla_put_style_templates :: Put user-defined style templates to $mla_templates and database"><span class="description">Put user-defined style templates to $mla_templates and database</span><pre>mla_put_style_templates()</pre></a></li>
|
|
|
|
|
79 |
<li class="method public "><a href="#mla_taxonomy_option_handler" title="mla_taxonomy_option_handler :: Render and manage taxonomy support options, e.g., Categories and Post Tags"><span class="description">Render and manage taxonomy support options, e.g., Categories and Post Tags</span><pre>mla_taxonomy_option_handler()</pre></a></li>
|
80 |
<li class="method public "><a href="#mla_taxonomy_support" title="mla_taxonomy_support :: Determine MLA support for a taxonomy, handling the special case where the
|
81 |
settings are being updated or reset."><span class="description">Determine MLA support for a taxonomy, handling the special case where the
|
@@ -137,7 +139,9 @@ This option is for flat taxonomies, e.g., "Att.</span><pre>MLA_MEDIA_MODAL_DETAI
|
|
137 |
<li class="constant "><a href="#MLA_MEDIA_MODAL_ORDER" title="MLA_MEDIA_MODAL_ORDER :: Provides a unique name for the Media Manager order option"><span class="description">Provides a unique name for the Media Manager order option</span><pre>MLA_MEDIA_MODAL_ORDER</pre></a></li>
|
138 |
<li class="constant "><a href="#MLA_MEDIA_MODAL_ORDERBY" title="MLA_MEDIA_MODAL_ORDERBY :: Provides a unique name for the Media Manager orderby option"><span class="description">Provides a unique name for the Media Manager orderby option</span><pre>MLA_MEDIA_MODAL_ORDERBY</pre></a></li>
|
139 |
<li class="constant "><a href="#MLA_MEDIA_MODAL_SEARCHBOX" title="MLA_MEDIA_MODAL_SEARCHBOX :: Provides a unique name for the Media Manager toolbar Search Box option"><span class="description">Provides a unique name for the Media Manager toolbar Search Box option</span><pre>MLA_MEDIA_MODAL_SEARCHBOX</pre></a></li>
|
|
|
140 |
<li class="constant "><a href="#MLA_MEDIA_MODAL_TERMS" title="MLA_MEDIA_MODAL_TERMS :: Provides a unique name for the Media Manager toolbar Taxonomy Terms option"><span class="description">Provides a unique name for the Media Manager toolbar Taxonomy Terms option</span><pre>MLA_MEDIA_MODAL_TERMS</pre></a></li>
|
|
|
141 |
<li class="constant "><a href="#MLA_MEDIA_MODAL_TOOLBAR" title="MLA_MEDIA_MODAL_TOOLBAR :: Provides a unique name for the Media Manager toolbar option, which
|
142 |
also controls the ATTACHMENT DETAILS enhancements"><span class="description">Provides a unique name for the Media Manager toolbar option, which
|
143 |
also controls the ATTACHMENT DETAILS enhancements</span><pre>MLA_MEDIA_MODAL_TOOLBAR</pre></a></li>
|
@@ -149,6 +153,8 @@ also controls the ATTACHMENT DETAILS enhancements</span><pre>MLA_MEDIA_MODAL_TOO
|
|
149 |
<li class="constant "><a href="#MLA_SCREEN_MENU_TITLE" title="MLA_SCREEN_MENU_TITLE :: Provides a unique name for the admin screen menu title option"><span class="description">Provides a unique name for the admin screen menu title option</span><pre>MLA_SCREEN_MENU_TITLE</pre></a></li>
|
150 |
<li class="constant "><a href="#MLA_SCREEN_ORDER" title="MLA_SCREEN_ORDER :: Provides a unique name for the admin screen menu order option"><span class="description">Provides a unique name for the admin screen menu order option</span><pre>MLA_SCREEN_ORDER</pre></a></li>
|
151 |
<li class="constant "><a href="#MLA_SCREEN_PAGE_TITLE" title="MLA_SCREEN_PAGE_TITLE :: Provides a unique name for the admin screen page title option"><span class="description">Provides a unique name for the admin screen page title option</span><pre>MLA_SCREEN_PAGE_TITLE</pre></a></li>
|
|
|
|
|
152 |
<li class="constant "><a href="#MLA_TABLE_ICON_SIZE" title="MLA_TABLE_ICON_SIZE :: Provides a unique name for the Media/Assistant submenu table thumbnail/icon size option"><span class="description">Provides a unique name for the Media/Assistant submenu table thumbnail/icon size option</span><pre>MLA_TABLE_ICON_SIZE</pre></a></li>
|
153 |
<li class="constant "><a href="#MLA_TABLE_VIEWS_WIDTH" title="MLA_TABLE_VIEWS_WIDTH :: Provides a unique name for the Media/Assistant submenu table views width option"><span class="description">Provides a unique name for the Media/Assistant submenu table views width option</span><pre>MLA_TABLE_VIEWS_WIDTH</pre></a></li>
|
154 |
<li class="constant "><a href="#MLA_TAXONOMY_FILTER_DEPTH" title="MLA_TAXONOMY_FILTER_DEPTH :: Provides a unique name for the taxonomy filter maximum depth option"><span class="description">Provides a unique name for the taxonomy filter maximum depth option</span><pre>MLA_TAXONOMY_FILTER_DEPTH</pre></a></li>
|
@@ -629,6 +635,63 @@ in the "public static" array definition itself.</p></p>
|
|
629 |
<code>boolean</code>true if success, false if failure</div>
|
630 |
</div></div>
|
631 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
632 |
<a name="mla_taxonomy_option_handler" id="mla_taxonomy_option_handler"></a><div class="element clickable method public mla_taxonomy_option_handler" data-toggle="collapse" data-target=".mla_taxonomy_option_handler .collapse">
|
633 |
<h2>Render and manage taxonomy support options, e.g., Categories and Post Tags</h2>
|
634 |
<pre>mla_taxonomy_option_handler(string $action, string $key, array $value, array $args) : string</pre>
|
@@ -652,7 +715,7 @@ in the "public static" array definition itself.</p></p>
|
|
652 |
</div>
|
653 |
<div class="subelement argument">
|
654 |
<h4>$key</h4>
|
655 |
-
<code>string</code><p>option name, e.g., '
|
656 |
</div>
|
657 |
<div class="subelement argument">
|
658 |
<h4>$value</h4>
|
@@ -687,7 +750,7 @@ settings are being updated or reset.</h2>
|
|
687 |
</div>
|
688 |
<h3>Returns</h3>
|
689 |
<div class="subelement response">
|
690 |
-
<code>boolean</code><code>string</code>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
|
691 |
</div></div>
|
692 |
</div>
|
693 |
<a name="mla_update_attachment_metadata_filter" id="mla_update_attachment_metadata_filter"></a><div class="element clickable method public mla_update_attachment_metadata_filter" data-toggle="collapse" data-target=".mla_update_attachment_metadata_filter .collapse">
|
@@ -1379,12 +1442,24 @@ This option is for flat taxonomies, e.g., "Att.</h2>
|
|
1379 |
<div class="labels"></div>
|
1380 |
<div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
|
1381 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
1382 |
<a name="MLA_MEDIA_MODAL_TERMS" id="MLA_MEDIA_MODAL_TERMS"> </a><div class="element clickable constant MLA_MEDIA_MODAL_TERMS" data-toggle="collapse" data-target=".MLA_MEDIA_MODAL_TERMS .collapse">
|
1383 |
<h2>Provides a unique name for the Media Manager toolbar Taxonomy Terms option</h2>
|
1384 |
<pre>MLA_MEDIA_MODAL_TERMS </pre>
|
1385 |
<div class="labels"></div>
|
1386 |
<div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
|
1387 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
1388 |
<a name="MLA_MEDIA_MODAL_TOOLBAR" id="MLA_MEDIA_MODAL_TOOLBAR"> </a><div class="element clickable constant MLA_MEDIA_MODAL_TOOLBAR" data-toggle="collapse" data-target=".MLA_MEDIA_MODAL_TOOLBAR .collapse">
|
1389 |
<h2>Provides a unique name for the Media Manager toolbar option, which
|
1390 |
also controls the ATTACHMENT DETAILS enhancements</h2>
|
@@ -1440,6 +1515,18 @@ also controls the ATTACHMENT DETAILS enhancements</h2>
|
|
1440 |
<div class="labels"></div>
|
1441 |
<div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
|
1442 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1443 |
<a name="MLA_TABLE_ICON_SIZE" id="MLA_TABLE_ICON_SIZE"> </a><div class="element clickable constant MLA_TABLE_ICON_SIZE" data-toggle="collapse" data-target=".MLA_TABLE_ICON_SIZE .collapse">
|
1444 |
<h2>Provides a unique name for the Media/Assistant submenu table thumbnail/icon size option</h2>
|
1445 |
<pre>MLA_TABLE_ICON_SIZE </pre>
|
@@ -1489,7 +1576,7 @@ also controls the ATTACHMENT DETAILS enhancements</h2>
|
|
1489 |
<div class="row"><footer class="span12">
|
1490 |
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>
|
1491 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
1492 |
-
generated on 2014-
|
1493 |
</div>
|
1494 |
</body>
|
1495 |
</html>
|
76 |
<li class="method public "><a href="#mla_localize_option_definitions_array" title="mla_localize_option_definitions_array :: Localize $mla_option_definitions array"><span class="description">Localize $mla_option_definitions array</span><pre>mla_localize_option_definitions_array()</pre></a></li>
|
77 |
<li class="method public "><a href="#mla_put_markup_templates" title="mla_put_markup_templates :: Put user-defined markup templates to $mla_templates and database"><span class="description">Put user-defined markup templates to $mla_templates and database</span><pre>mla_put_markup_templates()</pre></a></li>
|
78 |
<li class="method public "><a href="#mla_put_style_templates" title="mla_put_style_templates :: Put user-defined style templates to $mla_templates and database"><span class="description">Put user-defined style templates to $mla_templates and database</span><pre>mla_put_style_templates()</pre></a></li>
|
79 |
+
<li class="method public "><a href="#mla_search_option_handler" title="mla_search_option_handler :: Render and manage Search box options, e.g., connector and search fields"><span class="description">Render and manage Search box options, e.g., connector and search fields</span><pre>mla_search_option_handler()</pre></a></li>
|
80 |
+
<li class="method public "><a href="#mla_supported_taxonomies" title="mla_supported_taxonomies :: Returns an array of taxonomy names assigned to $support_type"><span class="description">Returns an array of taxonomy names assigned to $support_type</span><pre>mla_supported_taxonomies()</pre></a></li>
|
81 |
<li class="method public "><a href="#mla_taxonomy_option_handler" title="mla_taxonomy_option_handler :: Render and manage taxonomy support options, e.g., Categories and Post Tags"><span class="description">Render and manage taxonomy support options, e.g., Categories and Post Tags</span><pre>mla_taxonomy_option_handler()</pre></a></li>
|
82 |
<li class="method public "><a href="#mla_taxonomy_support" title="mla_taxonomy_support :: Determine MLA support for a taxonomy, handling the special case where the
|
83 |
settings are being updated or reset."><span class="description">Determine MLA support for a taxonomy, handling the special case where the
|
139 |
<li class="constant "><a href="#MLA_MEDIA_MODAL_ORDER" title="MLA_MEDIA_MODAL_ORDER :: Provides a unique name for the Media Manager order option"><span class="description">Provides a unique name for the Media Manager order option</span><pre>MLA_MEDIA_MODAL_ORDER</pre></a></li>
|
140 |
<li class="constant "><a href="#MLA_MEDIA_MODAL_ORDERBY" title="MLA_MEDIA_MODAL_ORDERBY :: Provides a unique name for the Media Manager orderby option"><span class="description">Provides a unique name for the Media Manager orderby option</span><pre>MLA_MEDIA_MODAL_ORDERBY</pre></a></li>
|
141 |
<li class="constant "><a href="#MLA_MEDIA_MODAL_SEARCHBOX" title="MLA_MEDIA_MODAL_SEARCHBOX :: Provides a unique name for the Media Manager toolbar Search Box option"><span class="description">Provides a unique name for the Media Manager toolbar Search Box option</span><pre>MLA_MEDIA_MODAL_SEARCHBOX</pre></a></li>
|
142 |
+
<li class="constant "><a href="#MLA_MEDIA_MODAL_SEARCHBOX_CONTROLS" title="MLA_MEDIA_MODAL_SEARCHBOX_CONTROLS :: Provides a unique name for the Media Manager toolbar Search Box Controls option"><span class="description">Provides a unique name for the Media Manager toolbar Search Box Controls option</span><pre>MLA_MEDIA_MODAL_SEARCHBOX_CONTROLS</pre></a></li>
|
143 |
<li class="constant "><a href="#MLA_MEDIA_MODAL_TERMS" title="MLA_MEDIA_MODAL_TERMS :: Provides a unique name for the Media Manager toolbar Taxonomy Terms option"><span class="description">Provides a unique name for the Media Manager toolbar Taxonomy Terms option</span><pre>MLA_MEDIA_MODAL_TERMS</pre></a></li>
|
144 |
+
<li class="constant "><a href="#MLA_MEDIA_MODAL_TERMS_SEARCH" title='MLA_MEDIA_MODAL_TERMS_SEARCH :: Provides a unique name for the Media Manager toolbar Taxonomy "Terms Search" option'><span class="description">Provides a unique name for the Media Manager toolbar Taxonomy "Terms Search" option</span><pre>MLA_MEDIA_MODAL_TERMS_SEARCH</pre></a></li>
|
145 |
<li class="constant "><a href="#MLA_MEDIA_MODAL_TOOLBAR" title="MLA_MEDIA_MODAL_TOOLBAR :: Provides a unique name for the Media Manager toolbar option, which
|
146 |
also controls the ATTACHMENT DETAILS enhancements"><span class="description">Provides a unique name for the Media Manager toolbar option, which
|
147 |
also controls the ATTACHMENT DETAILS enhancements</span><pre>MLA_MEDIA_MODAL_TOOLBAR</pre></a></li>
|
153 |
<li class="constant "><a href="#MLA_SCREEN_MENU_TITLE" title="MLA_SCREEN_MENU_TITLE :: Provides a unique name for the admin screen menu title option"><span class="description">Provides a unique name for the admin screen menu title option</span><pre>MLA_SCREEN_MENU_TITLE</pre></a></li>
|
154 |
<li class="constant "><a href="#MLA_SCREEN_ORDER" title="MLA_SCREEN_ORDER :: Provides a unique name for the admin screen menu order option"><span class="description">Provides a unique name for the admin screen menu order option</span><pre>MLA_SCREEN_ORDER</pre></a></li>
|
155 |
<li class="constant "><a href="#MLA_SCREEN_PAGE_TITLE" title="MLA_SCREEN_PAGE_TITLE :: Provides a unique name for the admin screen page title option"><span class="description">Provides a unique name for the admin screen page title option</span><pre>MLA_SCREEN_PAGE_TITLE</pre></a></li>
|
156 |
+
<li class="constant "><a href="#MLA_SEARCH_MEDIA_FILTER_DEFAULTS" title="MLA_SEARCH_MEDIA_FILTER_DEFAULTS :: Provides a unique name for the display Search Media controls option"><span class="description">Provides a unique name for the display Search Media controls option</span><pre>MLA_SEARCH_MEDIA_FILTER_DEFAULTS</pre></a></li>
|
157 |
+
<li class="constant "><a href="#MLA_SEARCH_MEDIA_FILTER_SHOW_CONTROLS" title="MLA_SEARCH_MEDIA_FILTER_SHOW_CONTROLS :: Provides a unique name for the display Search Media controls option"><span class="description">Provides a unique name for the display Search Media controls option</span><pre>MLA_SEARCH_MEDIA_FILTER_SHOW_CONTROLS</pre></a></li>
|
158 |
<li class="constant "><a href="#MLA_TABLE_ICON_SIZE" title="MLA_TABLE_ICON_SIZE :: Provides a unique name for the Media/Assistant submenu table thumbnail/icon size option"><span class="description">Provides a unique name for the Media/Assistant submenu table thumbnail/icon size option</span><pre>MLA_TABLE_ICON_SIZE</pre></a></li>
|
159 |
<li class="constant "><a href="#MLA_TABLE_VIEWS_WIDTH" title="MLA_TABLE_VIEWS_WIDTH :: Provides a unique name for the Media/Assistant submenu table views width option"><span class="description">Provides a unique name for the Media/Assistant submenu table views width option</span><pre>MLA_TABLE_VIEWS_WIDTH</pre></a></li>
|
160 |
<li class="constant "><a href="#MLA_TAXONOMY_FILTER_DEPTH" title="MLA_TAXONOMY_FILTER_DEPTH :: Provides a unique name for the taxonomy filter maximum depth option"><span class="description">Provides a unique name for the taxonomy filter maximum depth option</span><pre>MLA_TAXONOMY_FILTER_DEPTH</pre></a></li>
|
635 |
<code>boolean</code>true if success, false if failure</div>
|
636 |
</div></div>
|
637 |
</div>
|
638 |
+
<a name="mla_search_option_handler" id="mla_search_option_handler"></a><div class="element clickable method public mla_search_option_handler" data-toggle="collapse" data-target=".mla_search_option_handler .collapse">
|
639 |
+
<h2>Render and manage Search box options, e.g., connector and search fields</h2>
|
640 |
+
<pre>mla_search_option_handler(string $action, string $key, array $value, array $args) : string</pre>
|
641 |
+
<div class="labels"></div>
|
642 |
+
<div class="row collapse"><div class="detail-description">
|
643 |
+
<p class="long_description"></p>
|
644 |
+
<table class="table table-bordered">
|
645 |
+
<tr>
|
646 |
+
<th>since</th>
|
647 |
+
<td>1.90</td>
|
648 |
+
</tr>
|
649 |
+
<tr>
|
650 |
+
<th>uses</th>
|
651 |
+
<td>\global\$mla_option_templates</td>
|
652 |
+
</tr>
|
653 |
+
</table>
|
654 |
+
<h3>Parameters</h3>
|
655 |
+
<div class="subelement argument">
|
656 |
+
<h4>$action</h4>
|
657 |
+
<code>string</code><p>'render', 'update', 'delete', or 'reset'</p>
|
658 |
+
</div>
|
659 |
+
<div class="subelement argument">
|
660 |
+
<h4>$key</h4>
|
661 |
+
<code>string</code><p>option name; 'search_connector' or 'search_fields'</p>
|
662 |
+
</div>
|
663 |
+
<div class="subelement argument">
|
664 |
+
<h4>$value</h4>
|
665 |
+
<code>array</code><p>option parameters</p></div>
|
666 |
+
<div class="subelement argument">
|
667 |
+
<h4>$args</h4>
|
668 |
+
<code>array</code><p>Optional. null (default) for 'render' else option data, e.g., $_REQUEST</p>
|
669 |
+
</div>
|
670 |
+
<h3>Returns</h3>
|
671 |
+
<div class="subelement response">
|
672 |
+
<code>string</code>HTML table row markup for 'render' else message(s) reflecting the results of the operation.</div>
|
673 |
+
</div></div>
|
674 |
+
</div>
|
675 |
+
<a name="mla_supported_taxonomies" id="mla_supported_taxonomies"></a><div class="element clickable method public mla_supported_taxonomies" data-toggle="collapse" data-target=".mla_supported_taxonomies .collapse">
|
676 |
+
<h2>Returns an array of taxonomy names assigned to $support_type</h2>
|
677 |
+
<pre>mla_supported_taxonomies(string $support_type) : array</pre>
|
678 |
+
<div class="labels"></div>
|
679 |
+
<div class="row collapse"><div class="detail-description">
|
680 |
+
<p class="long_description"></p>
|
681 |
+
<table class="table table-bordered"><tr>
|
682 |
+
<th>since</th>
|
683 |
+
<td>1.90</td>
|
684 |
+
</tr></table>
|
685 |
+
<h3>Parameters</h3>
|
686 |
+
<div class="subelement argument">
|
687 |
+
<h4>$support_type</h4>
|
688 |
+
<code>string</code><p>Optional. 'support' (default), 'quick-edit', 'flat-checklist', 'term-search' or 'filter'</p>
|
689 |
+
</div>
|
690 |
+
<h3>Returns</h3>
|
691 |
+
<div class="subelement response">
|
692 |
+
<code>array</code>taxonomies assigned to $support_type; can be empty.</div>
|
693 |
+
</div></div>
|
694 |
+
</div>
|
695 |
<a name="mla_taxonomy_option_handler" id="mla_taxonomy_option_handler"></a><div class="element clickable method public mla_taxonomy_option_handler" data-toggle="collapse" data-target=".mla_taxonomy_option_handler .collapse">
|
696 |
<h2>Render and manage taxonomy support options, e.g., Categories and Post Tags</h2>
|
697 |
<pre>mla_taxonomy_option_handler(string $action, string $key, array $value, array $args) : string</pre>
|
715 |
</div>
|
716 |
<div class="subelement argument">
|
717 |
<h4>$key</h4>
|
718 |
+
<code>string</code><p>option name, e.g., 'tax_support', or 'tax_flat_checklist'</p>
|
719 |
</div>
|
720 |
<div class="subelement argument">
|
721 |
<h4>$value</h4>
|
750 |
</div>
|
751 |
<h3>Returns</h3>
|
752 |
<div class="subelement response">
|
753 |
+
<code>boolean</code><code>string</code>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.</div>
|
754 |
</div></div>
|
755 |
</div>
|
756 |
<a name="mla_update_attachment_metadata_filter" id="mla_update_attachment_metadata_filter"></a><div class="element clickable method public mla_update_attachment_metadata_filter" data-toggle="collapse" data-target=".mla_update_attachment_metadata_filter .collapse">
|
1442 |
<div class="labels"></div>
|
1443 |
<div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
|
1444 |
</div>
|
1445 |
+
<a name="MLA_MEDIA_MODAL_SEARCHBOX_CONTROLS" id="MLA_MEDIA_MODAL_SEARCHBOX_CONTROLS"> </a><div class="element clickable constant MLA_MEDIA_MODAL_SEARCHBOX_CONTROLS" data-toggle="collapse" data-target=".MLA_MEDIA_MODAL_SEARCHBOX_CONTROLS .collapse">
|
1446 |
+
<h2>Provides a unique name for the Media Manager toolbar Search Box Controls option</h2>
|
1447 |
+
<pre>MLA_MEDIA_MODAL_SEARCHBOX_CONTROLS </pre>
|
1448 |
+
<div class="labels"></div>
|
1449 |
+
<div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
|
1450 |
+
</div>
|
1451 |
<a name="MLA_MEDIA_MODAL_TERMS" id="MLA_MEDIA_MODAL_TERMS"> </a><div class="element clickable constant MLA_MEDIA_MODAL_TERMS" data-toggle="collapse" data-target=".MLA_MEDIA_MODAL_TERMS .collapse">
|
1452 |
<h2>Provides a unique name for the Media Manager toolbar Taxonomy Terms option</h2>
|
1453 |
<pre>MLA_MEDIA_MODAL_TERMS </pre>
|
1454 |
<div class="labels"></div>
|
1455 |
<div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
|
1456 |
</div>
|
1457 |
+
<a name="MLA_MEDIA_MODAL_TERMS_SEARCH" id="MLA_MEDIA_MODAL_TERMS_SEARCH"> </a><div class="element clickable constant MLA_MEDIA_MODAL_TERMS_SEARCH" data-toggle="collapse" data-target=".MLA_MEDIA_MODAL_TERMS_SEARCH .collapse">
|
1458 |
+
<h2>Provides a unique name for the Media Manager toolbar Taxonomy "Terms Search" option</h2>
|
1459 |
+
<pre>MLA_MEDIA_MODAL_TERMS_SEARCH </pre>
|
1460 |
+
<div class="labels"></div>
|
1461 |
+
<div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
|
1462 |
+
</div>
|
1463 |
<a name="MLA_MEDIA_MODAL_TOOLBAR" id="MLA_MEDIA_MODAL_TOOLBAR"> </a><div class="element clickable constant MLA_MEDIA_MODAL_TOOLBAR" data-toggle="collapse" data-target=".MLA_MEDIA_MODAL_TOOLBAR .collapse">
|
1464 |
<h2>Provides a unique name for the Media Manager toolbar option, which
|
1465 |
also controls the ATTACHMENT DETAILS enhancements</h2>
|
1515 |
<div class="labels"></div>
|
1516 |
<div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
|
1517 |
</div>
|
1518 |
+
<a name="MLA_SEARCH_MEDIA_FILTER_DEFAULTS" id="MLA_SEARCH_MEDIA_FILTER_DEFAULTS"> </a><div class="element clickable constant MLA_SEARCH_MEDIA_FILTER_DEFAULTS" data-toggle="collapse" data-target=".MLA_SEARCH_MEDIA_FILTER_DEFAULTS .collapse">
|
1519 |
+
<h2>Provides a unique name for the display Search Media controls option</h2>
|
1520 |
+
<pre>MLA_SEARCH_MEDIA_FILTER_DEFAULTS </pre>
|
1521 |
+
<div class="labels"></div>
|
1522 |
+
<div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
|
1523 |
+
</div>
|
1524 |
+
<a name="MLA_SEARCH_MEDIA_FILTER_SHOW_CONTROLS" id="MLA_SEARCH_MEDIA_FILTER_SHOW_CONTROLS"> </a><div class="element clickable constant MLA_SEARCH_MEDIA_FILTER_SHOW_CONTROLS" data-toggle="collapse" data-target=".MLA_SEARCH_MEDIA_FILTER_SHOW_CONTROLS .collapse">
|
1525 |
+
<h2>Provides a unique name for the display Search Media controls option</h2>
|
1526 |
+
<pre>MLA_SEARCH_MEDIA_FILTER_SHOW_CONTROLS </pre>
|
1527 |
+
<div class="labels"></div>
|
1528 |
+
<div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
|
1529 |
+
</div>
|
1530 |
<a name="MLA_TABLE_ICON_SIZE" id="MLA_TABLE_ICON_SIZE"> </a><div class="element clickable constant MLA_TABLE_ICON_SIZE" data-toggle="collapse" data-target=".MLA_TABLE_ICON_SIZE .collapse">
|
1531 |
<h2>Provides a unique name for the Media/Assistant submenu table thumbnail/icon size option</h2>
|
1532 |
<pre>MLA_TABLE_ICON_SIZE </pre>
|
1576 |
<div class="row"><footer class="span12">
|
1577 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
1578 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
1579 |
+
generated on 2014-06-27T14:50:12-07:00.<br></footer></div>
|
1580 |
</div>
|
1581 |
</body>
|
1582 |
</html>
|
phpDocs/classes/MLASettings.html
CHANGED
@@ -1193,7 +1193,7 @@ because Localization calls cannot be placed in the "public static" array definit
|
|
1193 |
<div class="row"><footer class="span12">
|
1194 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
1195 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
1196 |
-
generated on 2014-
|
1197 |
</div>
|
1198 |
</body>
|
1199 |
</html>
|
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-06-27T14:50:12-07:00.<br></footer></div>
|
1197 |
</div>
|
1198 |
</body>
|
1199 |
</html>
|
phpDocs/classes/MLAShortcodes.html
CHANGED
@@ -70,6 +70,7 @@
|
|
70 |
<li class="method public "><a href="#mla_tag_cloud" title="mla_tag_cloud :: The MLA Tag Cloud support function."><span class="description">The MLA Tag Cloud support function.</span><pre>mla_tag_cloud()</pre></a></li>
|
71 |
<li class="method public "><a href="#mla_tag_cloud_shortcode" title="mla_tag_cloud_shortcode :: The MLA Tag Cloud shortcode."><span class="description">The MLA Tag Cloud shortcode.</span><pre>mla_tag_cloud_shortcode()</pre></a></li>
|
72 |
<li class="nav-header private">» Private</li>
|
|
|
73 |
<li class="method private "><a href="#_paginate_links" title="_paginate_links :: Handles pagnation output types 'previous_page', 'next_page', and 'paginate_links'"><span class="description">Handles pagnation output types 'previous_page', 'next_page', and 'paginate_links'</span><pre>_paginate_links()</pre></a></li>
|
74 |
<li class="method private "><a href="#_process_pagination_output_types" title="_process_pagination_output_types :: Handles pagnation output types 'previous_page', 'next_page', and 'paginate_links'"><span class="description">Handles pagnation output types 'previous_page', 'next_page', and 'paginate_links'</span><pre>_process_pagination_output_types()</pre></a></li>
|
75 |
<li class="method private "><a href="#_process_shortcode_parameter" title="_process_shortcode_parameter :: Handles brace/bracket escaping and parses template for a shortcode parameter"><span class="description">Handles brace/bracket escaping and parses template for a shortcode parameter</span><pre>_process_shortcode_parameter()</pre></a></li>
|
@@ -196,7 +197,15 @@ Enhancements include many additional selection parameters and full taxonomy supp
|
|
196 |
an accurate count of attachments associated with each term.</p>
|
197 |
|
198 |
<p>taxonomy - string containing one or more (comma-delimited) taxonomy names
|
199 |
-
or an array of taxonomy names.</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
200 |
|
201 |
<p>include - An array, comma- or space-delimited string of term ids to include
|
202 |
in the return array.</p>
|
@@ -206,24 +215,26 @@ from the return array. If 'include' is non-empty, 'exclude' is ignored.</p>
|
|
206 |
|
207 |
<p>parent - term_id of the terms' immediate parent; 0 for top-level terms.</p>
|
208 |
|
209 |
-
<p>minimum - minimum number of attachments a term must have to be included.</p>
|
210 |
|
211 |
-
<p>no_count - true
|
212 |
|
213 |
<p>number - maximum number of term objects to return. Terms are ordered by count,
|
214 |
-
descending and then by term_id before this value is applied.</p>
|
|
|
|
|
215 |
|
216 |
-
<p>
|
217 |
|
218 |
-
<p>
|
219 |
|
220 |
-
<p>
|
221 |
|
222 |
-
<p>
|
223 |
|
224 |
-
<p>limit - final number of term objects to return, for pagination.</p>
|
225 |
|
226 |
-
<p>offset - number of term objects to skip, for pagination.</p></p>
|
227 |
<table class="table table-bordered"><tr>
|
228 |
<th>since</th>
|
229 |
<td>1.60</td>
|
@@ -285,7 +296,7 @@ Defined as public because it's a filter.</p></p>
|
|
285 |
<p class="long_description"><p>Defined as public because it's a filter.</p></p>
|
286 |
<table class="table table-bordered"><tr>
|
287 |
<th>since</th>
|
288 |
-
<td>1.
|
289 |
</tr></table>
|
290 |
<h3>Parameters</h3>
|
291 |
<div class="subelement argument">
|
@@ -377,6 +388,37 @@ options to customize the hyperlink behind each term.</p></p>
|
|
377 |
<code>string</code>HTML content to display the tag cloud.</div>
|
378 |
</div></div>
|
379 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
380 |
<a name="_paginate_links" id="_paginate_links"></a><div class="element clickable method private _paginate_links" data-toggle="collapse" data-target="._paginate_links .collapse">
|
381 |
<h2>Handles pagnation output types 'previous_page', 'next_page', and 'paginate_links'</h2>
|
382 |
<pre>_paginate_links(array $output_parameters, string $markup_values, string $arguments, integer $found_rows, string $output) : mixed</pre>
|
@@ -609,7 +651,7 @@ any further logic required to translate those values is contained in the filter.
|
|
609 |
<div class="row"><footer class="span12">
|
610 |
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>
|
611 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
612 |
-
generated on 2014-
|
613 |
</div>
|
614 |
</body>
|
615 |
</html>
|
70 |
<li class="method public "><a href="#mla_tag_cloud" title="mla_tag_cloud :: The MLA Tag Cloud support function."><span class="description">The MLA Tag Cloud support function.</span><pre>mla_tag_cloud()</pre></a></li>
|
71 |
<li class="method public "><a href="#mla_tag_cloud_shortcode" title="mla_tag_cloud_shortcode :: The MLA Tag Cloud shortcode."><span class="description">The MLA Tag Cloud shortcode.</span><pre>mla_tag_cloud_shortcode()</pre></a></li>
|
72 |
<li class="nav-header private">» Private</li>
|
73 |
+
<li class="method private "><a href="#_pad_term_counts" title="_pad_term_counts :: Add count of children to parent count."><span class="description">Add count of children to parent count.</span><pre>_pad_term_counts()</pre></a></li>
|
74 |
<li class="method private "><a href="#_paginate_links" title="_paginate_links :: Handles pagnation output types 'previous_page', 'next_page', and 'paginate_links'"><span class="description">Handles pagnation output types 'previous_page', 'next_page', and 'paginate_links'</span><pre>_paginate_links()</pre></a></li>
|
75 |
<li class="method private "><a href="#_process_pagination_output_types" title="_process_pagination_output_types :: Handles pagnation output types 'previous_page', 'next_page', and 'paginate_links'"><span class="description">Handles pagnation output types 'previous_page', 'next_page', and 'paginate_links'</span><pre>_process_pagination_output_types()</pre></a></li>
|
76 |
<li class="method private "><a href="#_process_shortcode_parameter" title="_process_shortcode_parameter :: Handles brace/bracket escaping and parses template for a shortcode parameter"><span class="description">Handles brace/bracket escaping and parses template for a shortcode parameter</span><pre>_process_shortcode_parameter()</pre></a></li>
|
197 |
an accurate count of attachments associated with each term.</p>
|
198 |
|
199 |
<p>taxonomy - string containing one or more (comma-delimited) taxonomy names
|
200 |
+
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. The default is "attachment".</p>
|
205 |
+
|
206 |
+
<p>post_status - The post status value(s) of the items to include in the term-specific counts. The default is "inherit".</p>
|
207 |
+
|
208 |
+
<p>ids - A comma-separated list of attachment ID values for an item-specific cloud.</p>
|
209 |
|
210 |
<p>include - An array, comma- or space-delimited string of term ids to include
|
211 |
in the return array.</p>
|
215 |
|
216 |
<p>parent - term_id of the terms' immediate parent; 0 for top-level terms.</p>
|
217 |
|
218 |
+
<p>minimum - minimum number of attachments a term must have to be included. Default 0.</p>
|
219 |
|
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 45.</p>
|
224 |
+
|
225 |
+
<p>orderby - 'count', 'id', 'name' (default), 'none', 'random', 'slug'</p>
|
226 |
|
227 |
+
<p>order - 'ASC' (default), 'DESC'</p>
|
228 |
|
229 |
+
<p>no_orderby - 'true', 'false' (default) to suppress ALL sorting clauses else false.</p>
|
230 |
|
231 |
+
<p>preserve_case - 'true', 'false' (default) to make orderby case-sensitive.</p>
|
232 |
|
233 |
+
<p>pad_counts - 'true', 'false' (default) to make orderby case-sensitive.</p>
|
234 |
|
235 |
+
<p>limit - final number of term objects to return, for pagination. Default 0.</p>
|
236 |
|
237 |
+
<p>offset - number of term objects to skip, for pagination. Default 0.</p></p>
|
238 |
<table class="table table-bordered"><tr>
|
239 |
<th>since</th>
|
240 |
<td>1.60</td>
|
296 |
<p class="long_description"><p>Defined as public because it's a filter.</p></p>
|
297 |
<table class="table table-bordered"><tr>
|
298 |
<th>since</th>
|
299 |
+
<td>1.90</td>
|
300 |
</tr></table>
|
301 |
<h3>Parameters</h3>
|
302 |
<div class="subelement argument">
|
388 |
<code>string</code>HTML content to display the tag cloud.</div>
|
389 |
</div></div>
|
390 |
</div>
|
391 |
+
<a name="_pad_term_counts" id="_pad_term_counts"></a><div class="element clickable method private _pad_term_counts" data-toggle="collapse" data-target="._pad_term_counts .collapse">
|
392 |
+
<h2>Add count of children to parent count.</h2>
|
393 |
+
<pre>_pad_term_counts(array $terms, string $taxonomy, array $post_types, array $post_stati) : null</pre>
|
394 |
+
<div class="labels"></div>
|
395 |
+
<div class="row collapse"><div class="detail-description">
|
396 |
+
<p class="long_description"><p>Recalculates term counts by including items from child terms. Assumes all
|
397 |
+
relevant children are already in the $terms argument.</p></p>
|
398 |
+
<table class="table table-bordered"><tr>
|
399 |
+
<th>since</th>
|
400 |
+
<td>1.90</td>
|
401 |
+
</tr></table>
|
402 |
+
<h3>Parameters</h3>
|
403 |
+
<div class="subelement argument">
|
404 |
+
<h4>$terms</h4>
|
405 |
+
<code>array</code><p>Array of Term objects, by reference</p></div>
|
406 |
+
<div class="subelement argument">
|
407 |
+
<h4>$taxonomy</h4>
|
408 |
+
<code>string</code><p>Term Context</p></div>
|
409 |
+
<div class="subelement argument">
|
410 |
+
<h4>$post_types</h4>
|
411 |
+
<code>array</code><p>Qualifying post type value(s)</p>
|
412 |
+
</div>
|
413 |
+
<div class="subelement argument">
|
414 |
+
<h4>$post_stati</h4>
|
415 |
+
<code>array</code><p>Qualifying post status value(s)</p>
|
416 |
+
</div>
|
417 |
+
<h3>Returns</h3>
|
418 |
+
<div class="subelement response">
|
419 |
+
<code>null</code>Will break from function if conditions are not met.</div>
|
420 |
+
</div></div>
|
421 |
+
</div>
|
422 |
<a name="_paginate_links" id="_paginate_links"></a><div class="element clickable method private _paginate_links" data-toggle="collapse" data-target="._paginate_links .collapse">
|
423 |
<h2>Handles pagnation output types 'previous_page', 'next_page', and 'paginate_links'</h2>
|
424 |
<pre>_paginate_links(array $output_parameters, string $markup_values, string $arguments, integer $found_rows, string $output) : mixed</pre>
|
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-06-27T14:50:12-07:00.<br></footer></div>
|
655 |
</div>
|
656 |
</body>
|
657 |
</html>
|
phpDocs/classes/MLATest.html
CHANGED
@@ -165,7 +165,7 @@ to ensure the plugin can run in the current WordPress envrionment.</p>
|
|
165 |
<div class="row"><footer class="span12">
|
166 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
167 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
168 |
-
generated on 2014-
|
169 |
</div>
|
170 |
</body>
|
171 |
</html>
|
165 |
<div class="row"><footer class="span12">
|
166 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
167 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
168 |
+
generated on 2014-06-27T14:50:12-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-06-27T14:50:12-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-06-27T14:50:12-07:00.<br></footer></div>
|
167 |
</div>
|
168 |
</body>
|
169 |
</html>
|
phpDocs/classes/MLA_List_Table.html
CHANGED
@@ -104,6 +104,8 @@ and the value is db column to sort by.</span><pre>get_sortable_columns()</pre></
|
|
104 |
<li class="method public "><a href="#mla_manage_hidden_columns_filter" title="mla_manage_hidden_columns_filter :: Handler for filter 'get_user_option_managemedia_page_mla-menucolumnshidden'"><span class="description">Handler for filter 'get_user_option_managemedia_page_mla-menucolumnshidden'</span><pre>mla_manage_hidden_columns_filter()</pre></a></li>
|
105 |
<li class="method public "><a href="#mla_submenu_arguments" title="mla_submenu_arguments :: Process $_REQUEST, building $submenu_arguments"><span class="description">Process $_REQUEST, building $submenu_arguments</span><pre>mla_submenu_arguments()</pre></a></li>
|
106 |
<li class="method public "><a href="#mla_views_media_page_mla_menu_filter" title='mla_views_media_page_mla_menu_filter :: Handler for filter "views_{$this->screen->id}" in /admin/includes/class-wp-list-table.php'><span class="description">Handler for filter "views_{$this->screen->id}" in /admin/includes/class-wp-list-table.php</span><pre>mla_views_media_page_mla_menu_filter()</pre></a></li>
|
|
|
|
|
107 |
<li class="method public "><a href="#pagination" title="pagination :: Display the pagination, adding view, search and filter arguments"><span class="description">Display the pagination, adding view, search and filter arguments</span><pre>pagination()</pre></a></li>
|
108 |
<li class="method public "><a href="#prepare_items" title="prepare_items :: Prepares the list of items for displaying"><span class="description">Prepares the list of items for displaying</span><pre>prepare_items()</pre></a></li>
|
109 |
<li class="method public "><a href="#print_column_headers" title="print_column_headers :: Print column headers, adding view, search and filter arguments"><span class="description">Print column headers, adding view, search and filter arguments</span><pre>print_column_headers()</pre></a></li>
|
@@ -899,6 +901,62 @@ to affect the "screen options" setup.</p></p>
|
|
899 |
<code>array</code>Updated list of available list table views</div>
|
900 |
</div></div>
|
901 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
902 |
<a name="pagination" id="pagination"></a><div class="element clickable method public pagination" data-toggle="collapse" data-target=".pagination .collapse">
|
903 |
<h2>Display the pagination, adding view, search and filter arguments</h2>
|
904 |
<pre>pagination(string $which) : void</pre>
|
@@ -1135,7 +1193,7 @@ MLA_List_Table::mla_admin_init_action.</p></p>
|
|
1135 |
<div class="row"><footer class="span12">
|
1136 |
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>
|
1137 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
1138 |
-
generated on 2014-
|
1139 |
</div>
|
1140 |
</body>
|
1141 |
</html>
|
104 |
<li class="method public "><a href="#mla_manage_hidden_columns_filter" title="mla_manage_hidden_columns_filter :: Handler for filter 'get_user_option_managemedia_page_mla-menucolumnshidden'"><span class="description">Handler for filter 'get_user_option_managemedia_page_mla-menucolumnshidden'</span><pre>mla_manage_hidden_columns_filter()</pre></a></li>
|
105 |
<li class="method public "><a href="#mla_submenu_arguments" title="mla_submenu_arguments :: Process $_REQUEST, building $submenu_arguments"><span class="description">Process $_REQUEST, building $submenu_arguments</span><pre>mla_submenu_arguments()</pre></a></li>
|
106 |
<li class="method public "><a href="#mla_views_media_page_mla_menu_filter" title='mla_views_media_page_mla_menu_filter :: Handler for filter "views_{$this->screen->id}" in /admin/includes/class-wp-list-table.php'><span class="description">Handler for filter "views_{$this->screen->id}" in /admin/includes/class-wp-list-table.php</span><pre>mla_views_media_page_mla_menu_filter()</pre></a></li>
|
107 |
+
<li class="method public "><a href="#mla_wpml_media_view_upload_count_filter" title='mla_wpml_media_view_upload_count_filter :: Handler for filter "wpml-media_view-upload-count" in /plugins/wpml-media/inc/wpml-media.class.php'><span class="description">Handler for filter "wpml-media_view-upload-count" in /plugins/wpml-media/inc/wpml-media.class.php</span><pre>mla_wpml_media_view_upload_count_filter()</pre></a></li>
|
108 |
+
<li class="method public "><a href="#mla_wpml_media_view_upload_page_count_filter" title='mla_wpml_media_view_upload_page_count_filter :: Handler for filter "wpml-media_view-upload-page-count" in /plugins/wpml-media/inc/wpml-media.class.php'><span class="description">Handler for filter "wpml-media_view-upload-page-count" in /plugins/wpml-media/inc/wpml-media.class.php</span><pre>mla_wpml_media_view_upload_page_count_filter()</pre></a></li>
|
109 |
<li class="method public "><a href="#pagination" title="pagination :: Display the pagination, adding view, search and filter arguments"><span class="description">Display the pagination, adding view, search and filter arguments</span><pre>pagination()</pre></a></li>
|
110 |
<li class="method public "><a href="#prepare_items" title="prepare_items :: Prepares the list of items for displaying"><span class="description">Prepares the list of items for displaying</span><pre>prepare_items()</pre></a></li>
|
111 |
<li class="method public "><a href="#print_column_headers" title="print_column_headers :: Print column headers, adding view, search and filter arguments"><span class="description">Print column headers, adding view, search and filter arguments</span><pre>print_column_headers()</pre></a></li>
|
901 |
<code>array</code>Updated list of available list table views</div>
|
902 |
</div></div>
|
903 |
</div>
|
904 |
+
<a name="mla_wpml_media_view_upload_count_filter" id="mla_wpml_media_view_upload_count_filter"></a><div class="element clickable method public mla_wpml_media_view_upload_count_filter" data-toggle="collapse" data-target=".mla_wpml_media_view_upload_count_filter .collapse">
|
905 |
+
<h2>Handler for filter "wpml-media_view-upload-count" in /plugins/wpml-media/inc/wpml-media.class.php</h2>
|
906 |
+
<pre>mla_wpml_media_view_upload_count_filter(NULL $count, string $key, string $view, string $lang) : mixed</pre>
|
907 |
+
<div class="labels"></div>
|
908 |
+
<div class="row collapse"><div class="detail-description">
|
909 |
+
<p class="long_description"><p>Computes the number of attachments that satisfy a meta_query specification.
|
910 |
+
The count is automatically made language-specific by WPML filters.</p></p>
|
911 |
+
<table class="table table-bordered"><tr>
|
912 |
+
<th>since</th>
|
913 |
+
<td>1.90</td>
|
914 |
+
</tr></table>
|
915 |
+
<h3>Parameters</h3>
|
916 |
+
<div class="subelement argument">
|
917 |
+
<h4>$count</h4>
|
918 |
+
<code>NULL</code><p>default return value if not replacing count</p></div>
|
919 |
+
<div class="subelement argument">
|
920 |
+
<h4>$key</h4>
|
921 |
+
<code>string</code><p>key/slug value for the selected view</p>
|
922 |
+
</div>
|
923 |
+
<div class="subelement argument">
|
924 |
+
<h4>$view</h4>
|
925 |
+
<code>string</code><p>HTML <a></a> tag for the link to the selected view</p>
|
926 |
+
</div>
|
927 |
+
<div class="subelement argument">
|
928 |
+
<h4>$lang</h4>
|
929 |
+
<code>string</code><p>language code, e.g., 'en', 'es'</p>
|
930 |
+
</div>
|
931 |
+
<h3>Returns</h3>
|
932 |
+
<div class="subelement response">
|
933 |
+
<code>mixed</code>NULL to allow SQL query or replacement count value</div>
|
934 |
+
</div></div>
|
935 |
+
</div>
|
936 |
+
<a name="mla_wpml_media_view_upload_page_count_filter" id="mla_wpml_media_view_upload_page_count_filter"></a><div class="element clickable method public mla_wpml_media_view_upload_page_count_filter" data-toggle="collapse" data-target=".mla_wpml_media_view_upload_page_count_filter .collapse">
|
937 |
+
<h2>Handler for filter "wpml-media_view-upload-page-count" in /plugins/wpml-media/inc/wpml-media.class.php</h2>
|
938 |
+
<pre>mla_wpml_media_view_upload_page_count_filter(NULL $count, string $lang) : mixed</pre>
|
939 |
+
<div class="labels"></div>
|
940 |
+
<div class="row collapse"><div class="detail-description">
|
941 |
+
<p class="long_description"><p>Computes the number of language-specific attachments that satisfy a meta_query specification.
|
942 |
+
The count is made language-specific by WPML filters when the current_language is set.</p></p>
|
943 |
+
<table class="table table-bordered"><tr>
|
944 |
+
<th>since</th>
|
945 |
+
<td>1.90</td>
|
946 |
+
</tr></table>
|
947 |
+
<h3>Parameters</h3>
|
948 |
+
<div class="subelement argument">
|
949 |
+
<h4>$count</h4>
|
950 |
+
<code>NULL</code><p>default return value if not replacing count</p></div>
|
951 |
+
<div class="subelement argument">
|
952 |
+
<h4>$lang</h4>
|
953 |
+
<code>string</code><p>language code, e.g., 'en', 'es'</p>
|
954 |
+
</div>
|
955 |
+
<h3>Returns</h3>
|
956 |
+
<div class="subelement response">
|
957 |
+
<code>mixed</code>NULL to allow SQL query or replacement count value</div>
|
958 |
+
</div></div>
|
959 |
+
</div>
|
960 |
<a name="pagination" id="pagination"></a><div class="element clickable method public pagination" data-toggle="collapse" data-target=".pagination .collapse">
|
961 |
<h2>Display the pagination, adding view, search and filter arguments</h2>
|
962 |
<pre>pagination(string $which) : void</pre>
|
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-06-27T14:50:12-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-06-27T14:50:12-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-06-27T14:50:12-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-06-27T14:50:12-07:00.<br></footer></div>
|
637 |
</div>
|
638 |
</body>
|
639 |
</html>
|
phpDocs/deprecated.html
CHANGED
@@ -67,7 +67,7 @@
|
|
67 |
<div class="row"><footer class="span12">
|
68 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
69 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
70 |
-
generated on 2014-
|
71 |
</div>
|
72 |
</body>
|
73 |
</html>
|
67 |
<div class="row"><footer class="span12">
|
68 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
69 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
70 |
+
generated on 2014-06-27T14:50:12-07:00.<br></footer></div>
|
71 |
</div>
|
72 |
</body>
|
73 |
</html>
|
phpDocs/errors.html
CHANGED
@@ -95,12 +95,13 @@
|
|
95 |
<div class="package-contents"></div>
|
96 |
<div class="package-contents"></div>
|
97 |
<div class="package-contents"></div>
|
|
|
98 |
</div>
|
99 |
</div>
|
100 |
<div class="row"><footer class="span12">
|
101 |
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>
|
102 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
103 |
-
generated on 2014-
|
104 |
</div>
|
105 |
</body>
|
106 |
</html>
|
95 |
<div class="package-contents"></div>
|
96 |
<div class="package-contents"></div>
|
97 |
<div class="package-contents"></div>
|
98 |
+
<div class="package-contents"></div>
|
99 |
</div>
|
100 |
</div>
|
101 |
<div class="row"><footer class="span12">
|
102 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
103 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
104 |
+
generated on 2014-06-27T14:50:12-07:00.<br></footer></div>
|
105 |
</div>
|
106 |
</body>
|
107 |
</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-06-27T14:50:12-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-06-27T14:50:12-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>3449</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-06-27T14:50:12-07:00.<br></footer></div>
|
93 |
</div>
|
94 |
</body>
|
95 |
</html>
|
phpDocs/namespaces/global.html
CHANGED
@@ -348,7 +348,7 @@ searchable database of exension/type associations for the "Uploads" admin settin
|
|
348 |
<div class="row"><footer class="span12">
|
349 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
350 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
351 |
-
generated on 2014-
|
352 |
</div>
|
353 |
</body>
|
354 |
</html>
|
348 |
<div class="row"><footer class="span12">
|
349 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
350 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
351 |
+
generated on 2014-06-27T14:50:12-07:00.<br></footer></div>
|
352 |
</div>
|
353 |
</body>
|
354 |
</html>
|
phpDocs/packages/Media Library Assistant.MLA.Child.Theme.html
CHANGED
@@ -189,7 +189,7 @@ display an "accordian-style" list.</p></p>
|
|
189 |
<div class="row"><footer class="span12">
|
190 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
191 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
192 |
-
generated on 2014-
|
193 |
</div>
|
194 |
</body>
|
195 |
</html>
|
189 |
<div class="row"><footer class="span12">
|
190 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
191 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
192 |
+
generated on 2014-06-27T14:50:12-07:00.<br></footer></div>
|
193 |
</div>
|
194 |
</body>
|
195 |
</html>
|
phpDocs/packages/Media Library Assistant.MLA.Child.html
CHANGED
@@ -188,7 +188,7 @@ display an "accordian-style" list.</p></p>
|
|
188 |
<div class="row"><footer class="span12">
|
189 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
190 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
191 |
-
generated on 2014-
|
192 |
</div>
|
193 |
</body>
|
194 |
</html>
|
188 |
<div class="row"><footer class="span12">
|
189 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
190 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
191 |
+
generated on 2014-06-27T14:50:12-07:00.<br></footer></div>
|
192 |
</div>
|
193 |
</body>
|
194 |
</html>
|
phpDocs/packages/Media Library Assistant.MLA.html
CHANGED
@@ -199,7 +199,7 @@ display an "accordian-style" list.</p></p>
|
|
199 |
<div class="row"><footer class="span12">
|
200 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
201 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
202 |
-
generated on 2014-
|
203 |
</div>
|
204 |
</body>
|
205 |
</html>
|
199 |
<div class="row"><footer class="span12">
|
200 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
201 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
202 |
+
generated on 2014-06-27T14:50:12-07:00.<br></footer></div>
|
203 |
</div>
|
204 |
</body>
|
205 |
</html>
|
phpDocs/packages/Media Library Assistant.html
CHANGED
@@ -420,7 +420,7 @@ display an "accordian-style" list.</p></p>
|
|
420 |
<div class="row"><footer class="span12">
|
421 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
422 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
423 |
-
generated on 2014-
|
424 |
</div>
|
425 |
</body>
|
426 |
</html>
|
420 |
<div class="row"><footer class="span12">
|
421 |
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
|
422 |
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
|
423 |
+
generated on 2014-06-27T14:50:12-07:00.<br></footer></div>
|
424 |
</div>
|
425 |
</body>
|
426 |
</html>
|
phpDocs/structure.xml
CHANGED
@@ -316,7 +316,7 @@ different template.</p>]]></long-description>
|
|
316 |
<tag line="2" name="since" description="MLA 1.80"/>
|
317 |
</docblock>
|
318 |
</file>
|
319 |
-
<file path="includes\class-mla-data.php" hash="
|
320 |
<docblock line="2">
|
321 |
<description><![CDATA[Database and template file access for MLA needs]]></description>
|
322 |
<long-description><![CDATA[]]></long-description>
|
@@ -385,10 +385,10 @@ any further logic required to translate those values is contained in the filters
|
|
385 |
</tag>
|
386 |
</docblock>
|
387 |
</property>
|
388 |
-
<property final="false" static="true" visibility="private" line="
|
389 |
<name>$galleries</name>
|
390 |
<default><![CDATA[null]]></default>
|
391 |
-
<docblock line="
|
392 |
<description><![CDATA[Objects containing [gallery] shortcodes]]></description>
|
393 |
<long-description><![CDATA[<p>This array contains all of the objects containing one or more [gallery] shortcodes
|
394 |
and array(s) of which attachments each [gallery] contains. The arrays are built once
|
@@ -401,126 +401,126 @@ each page load and cached for subsequent calls.</p>
|
|
401 |
['galleries'] array of [gallery] entries numbered from one (1), containing:
|
402 |
galleries[X]['query'] contains a string with the arguments of the [gallery],
|
403 |
galleries[X]['results'] contains an array ( ID ) of post_ids for the objects in the gallery.</p>]]></long-description>
|
404 |
-
<tag line="
|
405 |
-
<tag line="
|
406 |
<type by_reference="false">array</type>
|
407 |
</tag>
|
408 |
</docblock>
|
409 |
</property>
|
410 |
-
<property final="false" static="true" visibility="private" line="
|
411 |
<name>$mla_galleries</name>
|
412 |
<default><![CDATA[null]]></default>
|
413 |
-
<docblock line="
|
414 |
<description><![CDATA[Objects containing [mla_gallery] shortcodes]]></description>
|
415 |
<long-description><![CDATA[<p>This array contains all of the objects containing one or more [mla_gallery] shortcodes
|
416 |
and array(s) of which attachments each [mla_gallery] contains. The arrays are built once
|
417 |
each page load and cached for subsequent calls.</p>]]></long-description>
|
418 |
-
<tag line="
|
419 |
-
<tag line="
|
420 |
<type by_reference="false">array</type>
|
421 |
</tag>
|
422 |
</docblock>
|
423 |
</property>
|
424 |
-
<property final="false" static="true" visibility="private" line="
|
425 |
<name>$pdf_indirect_objects</name>
|
426 |
<default><![CDATA[NULL]]></default>
|
427 |
-
<docblock line="
|
428 |
<description><![CDATA[Array of PDF indirect objects]]></description>
|
429 |
<long-description><![CDATA[<p>This array contains all of the indirect object offsets and lengths.
|
430 |
The array key is ( object ID * 1000 ) + object generation.
|
431 |
The array value is array( number, generation, start, optional /length )</p>]]></long-description>
|
432 |
-
<tag line="
|
433 |
-
<tag line="
|
434 |
<type by_reference="false">array</type>
|
435 |
</tag>
|
436 |
</docblock>
|
437 |
</property>
|
438 |
-
<property final="false" static="true" visibility="private" line="
|
439 |
<name>$utf8_chars</name>
|
440 |
<default><![CDATA[array("\xC2\x80", "\xC2\x81", "\xC2\x82", "\xC2\x83", "\xC2\x84", "\xC2\x85", "\xC2\x86", "\xC2\x87", "\xC2\x88", "\xC2\x89", "\xC2\x8A", "\xC2\x8B", "\xC2\x8C", "\xC2\x8D", "\xC2\x8E", "\xC2\x8F", "\xC2\x90", "\xC2\x91", "\xC2\x92", "\xC2\x93", "\xC2\x94", "\xC2\x95", "\xC2\x96", "\xC2\x97", "\xC2\x98", "\xC2\x99", "\xC2\x9A", "\xC2\x9B", "\xC2\x9C", "\xC2\x9D", "\xC2\x9E", "\xC2\x9F", "\xC2\xA0", "\xC2\xA1", "\xC2\xA2", "\xC2\xA3", "\xC2\xA4", "\xC2\xA5", "\xC2\xA6", "\xC2\xA7", "\xC2\xA8", "\xC2\xA9", "\xC2\xAA", "\xC2\xAB", "\xC2\xAC", "\xC2\xAD", "\xC2\xAE", "\xC2\xAF", "\xC2\xB0", "\xC2\xB1", "\xC2\xB2", "\xC2\xB3", "\xC2\xB4", "\xC2\xB5", "\xC2\xB6", "\xC2\xB7", "\xC2\xB8", "\xC2\xB9", "\xC2\xBA", "\xC2\xBB", "\xC2\xBC", "\xC2\xBD", "\xC2\xBE", "\xC2\xBF", "\xC3\x80", "\xC3\x81", "\xC3\x82", "\xC3\x83", "\xC3\x84", "\xC3\x85", "\xC3\x86", "\xC3\x87", "\xC3\x88", "\xC3\x89", "\xC3\x8A", "\xC3\x8B", "\xC3\x8C", "\xC3\x8D", "\xC3\x8E", "\xC3\x8F", "\xC3\x90", "\xC3\x91", "\xC3\x92", "\xC3\x93", "\xC3\x94", "\xC3\x95", "\xC3\x96", "\xC3\x97", "\xC3\x98", "\xC3\x99", "\xC3\x9A", "\xC3\x9B", "\xC3\x9C", "\xC3\x9D", "\xC3\x9E", "\xC3\x9F", "\xC3\xA0", "\xC3\xA1", "\xC3\xA2", "\xC3\xA3", "\xC3\xA4", "\xC3\xA5", "\xC3\xA6", "\xC3\xA7", "\xC3\xA8", "\xC3\xA9", "\xC3\xAA", "\xC3\xAB", "\xC3\xAC", "\xC3\xAD", "\xC3\xAE", "\xC3\xAF", "\xC3\xB0", "\xC3\xB1", "\xC3\xB2", "\xC3\xB3", "\xC3\xB4", "\xC3\xB5", "\xC3\xB6", "\xC3\xB7", "\xC3\xB8", "\xC3\xB9", "\xC3\xBA", "\xC3\xBB", "\xC3\xBC", "\xC3\xBD", "\xC3\xBE", "\xC3\xBF")]]></default>
|
441 |
-
<docblock line="
|
442 |
<description><![CDATA[UTF-8 replacements for invalid SQL characters]]></description>
|
443 |
<long-description><![CDATA[]]></long-description>
|
444 |
-
<tag line="
|
445 |
-
<tag line="
|
446 |
<type by_reference="false">array</type>
|
447 |
</tag>
|
448 |
</docblock>
|
449 |
</property>
|
450 |
-
<property final="false" static="true" visibility="private" line="
|
451 |
<name>$mla_iptc_records</name>
|
452 |
<default><![CDATA[array("1#000" => "Model Version", "1#005" => "Destination", "1#020" => "File Format", "1#022" => "File Format Version", "1#030" => "Service Identifier", "1#040" => "Envelope Number", "1#050" => "Product ID", "1#060" => "Envelope Priority", "1#070" => "Date Sent", "1#080" => "Time Sent", "1#090" => "Coded Character Set", "1#100" => "UNO", "1#120" => "ARM Identifier", "1#122" => "ARM Version", "2#000" => "Record Version", "2#003" => "Object Type Reference", "2#004" => "Object Attribute Reference", "2#005" => "Object Name", "2#007" => "Edit Status", "2#008" => "Editorial Update", "2#010" => "Urgency", "2#012" => "Subject Reference", "2#015" => "Category", "2#020" => "Supplemental Category", "2#022" => "Fixture Identifier", "2#025" => "Keywords", "2#026" => "Content Location Code", "2#027" => "Content Location Name", "2#030" => "Release Date", "2#035" => "Release Time", "2#037" => "Expiration Date", "2#038" => "Expiration Time", "2#040" => "Special Instructions", "2#042" => "Action Advised", "2#045" => "Reference Service", "2#047" => "Reference Date", "2#050" => "Reference Number", "2#055" => "Date Created", "2#060" => "Time Created", "2#062" => "Digital Creation Date", "2#063" => "Digital Creation Time", "2#065" => "Originating Program", "2#070" => "Program Version", "2#075" => "Object Cycle", "2#080" => "By-line", "2#085" => "By-line Title", "2#090" => "City", "2#092" => "Sub-location", "2#095" => "Province or State", "2#100" => "Country or Primary Location Code", "2#101" => "Country or Primary Location Name", "2#103" => "Original Transmission Reference", "2#105" => "Headline", "2#110" => "Credit", "2#115" => "Source", "2#116" => "Copyright Notice", "2#118" => "Contact", "2#120" => "Caption or Abstract", "2#122" => "Caption Writer or Editor", "2#125" => "Rasterized Caption", "2#130" => "Image Type", "2#131" => "Image Orientation", "2#135" => "Language Identifier", "2#150" => "Audio Type", "2#151" => "Audio Sampling Rate", "2#152" => "Audio Sampling Resolution", "2#153" => "Audio Duration", "2#154" => "Audio Outcue", "2#200" => "ObjectData Preview File Format", "2#201" => "ObjectData Preview File Format Version", "2#202" => "ObjectData Preview Data", "7#010" => "Size Mode", "7#020" => "Max Subfile Size", "7#090" => "ObjectData Size Announced", "7#095" => "Maximum ObjectData Size", "8#010" => "Subfile", "9#010" => "Confirmed ObjectData Size")]]></default>
|
453 |
-
<docblock line="
|
454 |
<description><![CDATA[IPTC Dataset identifiers and names]]></description>
|
455 |
<long-description><![CDATA[<p>This array contains the identifiers and names of Datasets defined in
|
456 |
the "IPTC-NAA Information Interchange Model Version No. 4.1".</p>]]></long-description>
|
457 |
-
<tag line="
|
458 |
-
<tag line="
|
459 |
<type by_reference="false">array</type>
|
460 |
</tag>
|
461 |
</docblock>
|
462 |
</property>
|
463 |
-
<property final="false" static="true" visibility="public" line="
|
464 |
<name>$mla_iptc_keys</name>
|
465 |
<default><![CDATA[array('model-version' => '1#000', 'destination' => '1#005', 'file-format' => '1#020', 'file-format-version' => '1#022', 'service-identifier' => '1#030', 'envelope-number' => '1#040', 'product-id' => '1#050', 'envelope-priority' => '1#060', 'date-sent' => '1#070', 'time-sent' => '1#080', 'coded-character-set' => '1#090', 'uno' => '1#100', 'arm-identifier' => '1#120', 'arm-version' => '1#122', 'record-version' => '2#000', 'object-type-reference' => '2#003', 'object-attribute-reference' => '2#004', 'object-name' => '2#005', 'edit-status' => '2#007', 'editorial-update' => '2#008', 'urgency' => '2#010', 'subject-reference' => '2#012', 'category' => '2#015', 'supplemental-category' => '2#020', 'fixture-identifier' => '2#022', 'keywords' => '2#025', 'content-location-code' => '2#026', 'content-location-name' => '2#027', 'release-date' => '2#030', 'release-time' => '2#035', 'expiration-date' => '2#037', 'expiration-time' => '2#038', 'special-instructions' => '2#040', 'action-advised' => '2#042', 'reference-service' => '2#045', 'reference-date' => '2#047', 'reference-number' => '2#050', 'date-created' => '2#055', 'time-created' => '2#060', 'digital-creation-date' => '2#062', 'digital-creation-time' => '2#063', 'originating-program' => '2#065', 'program-version' => '2#070', 'object-cycle' => '2#075', 'by-line' => '2#080', 'by-line-title' => '2#085', 'city' => '2#090', 'sub-location' => '2#092', 'province-or-state' => '2#095', 'country-or-primary-location-code' => '2#100', 'country-or-primary-location-name' => '2#101', 'original-transmission-reference' => '2#103', 'headline' => '2#105', 'credit' => '2#110', 'source' => '2#115', 'copyright-notice' => '2#116', 'contact' => '2#118', 'caption-or-abstract' => '2#120', 'caption-writer-or-editor' => '2#122', 'rasterized-caption' => '2#125', 'image-type' => '2#130', 'image-orientation' => '2#131', 'language-identifier' => '2#135', 'audio-type' => '2#150', 'audio-sampling-rate' => '2#151', 'audio-sampling-resolution' => '2#152', 'audio-duration' => '2#153', 'audio-outcue' => '2#154', 'objectdata-preview-file-format' => '2#200', 'objectdata-preview-file-format-version' => '2#201', 'objectdata-preview-data' => '2#202', 'size-mode' => '7#010', 'max-subfile-size' => '7#020', 'objectdata-size-announced' => '7#090', 'maximum-objectdata-size' => '7#095', 'subfile' => '8#010', 'confirmed-objectdata-size' => '9#010')]]></default>
|
466 |
-
<docblock line="
|
467 |
<description><![CDATA[IPTC Dataset friendly name/slug and identifiers]]></description>
|
468 |
<long-description><![CDATA[<p>This array contains the sanitized names and identifiers of Datasets defined in
|
469 |
the "IPTC-NAA Information Interchange Model Version No. 4.1".</p>]]></long-description>
|
470 |
-
<tag line="
|
471 |
-
<tag line="
|
472 |
<type by_reference="false">array</type>
|
473 |
</tag>
|
474 |
</docblock>
|
475 |
</property>
|
476 |
-
<property final="false" static="true" visibility="private" line="
|
477 |
<name>$mla_iptc_descriptions</name>
|
478 |
<default><![CDATA[array("1#000" => "2 octet binary IIM version number", "1#005" => "Max 1024 characters of Destination (ISO routing information); repeatable", "1#020" => "2 octet binary file format number, see IPTC-NAA V4 Appendix A", "1#022" => "2 octet binary file format version number", "1#030" => "Max 10 characters of Service Identifier and product", "1#040" => "8 Character Envelope Number", "1#050" => "Max 32 characters subset of provider's overall service; repeatable", "1#060" => "1 numeric character of envelope handling priority (not urgency)", "1#070" => "8 numeric characters of Date Sent by service - CCYYMMDD", "1#080" => "11 characters of Time Sent by service - HHMMSS±HHMM", "1#090" => "Max 32 characters of control functions, etc.", "1#100" => "14 to 80 characters of eternal, globally unique identification for objects", "1#120" => "2 octet binary Abstract Relationship Model Identifier", "1#122" => "2 octet binary Abstract Relationship Model Version", "2#000" => "2 octet binary Information Interchange Model, Part II version number", "2#003" => "3 to 67 Characters of Object Type Reference number and optional text", "2#004" => "3 to 67 Characters of Object Attribute Reference number and optional text; repeatable", "2#005" => "Max 64 characters of the object name or shorthand reference", "2#007" => "Max 64 characters of the status of the objectdata", "2#008" => "2 numeric characters of the type of update this object provides", "2#010" => "1 numeric character of the editorial urgency of content", "2#012" => "13 to 236 characters of a structured definition of the subject matter; repeatable", "2#015" => "Max 3 characters of the subject of the objectdata, DEPRECATED", "2#020" => "Max 32 characters (each) of further refinement of subject, DEPRECATED; repeatable", "2#022" => "Max 32 characters identifying recurring, predictable content", "2#025" => "Max 64 characters (each) of tags; repeatable", "2#026" => "3 characters of ISO3166 country code or IPTC-assigned code; repeatable", "2#027" => "Max 64 characters of publishable country/geographical location name; repeatable", "2#030" => "8 numeric characters of Release Date - CCYYMMDD", "2#035" => "11 characters of Release Time (earliest use) - HHMMSS±HHMM", "2#037" => "8 numeric characters of Expiration Date (latest use) - CCYYMDD", "2#038" => "11 characters of Expiration Time (latest use) - HHMMSS±HHMM", "2#040" => "Max 256 Characters of editorial instructions, e.g., embargoes and warnings", "2#042" => "2 numeric characters of type of action this object provides to a previous object", "2#045" => "Max 10 characters of the Service ID (1#030) of a prior envelope; repeatable", "2#047" => "8 numeric characters of prior envelope Reference Date (1#070) - CCYYMMDD; repeatable", "2#050" => "8 characters of prior envelope Reference Number (1#040); repeatable", "2#055" => "8 numeric characters of intellectual content Date Created - CCYYMMDD", "2#060" => "11 characters of intellectual content Time Created - HHMMSS±HHMM", "2#062" => "8 numeric characters of digital representation creation date - CCYYMMDD", "2#063" => "11 characters of digital representation creation time - HHMMSS±HHMM", "2#065" => "Max 32 characters of the program used to create the objectdata", "2#070" => "Program Version - Max 10 characters of the version of the program used to create the objectdata", "2#075" => "1 character where a=morning, p=evening, b=both", "2#080" => "Max 32 Characters of the name of the objectdata creator, e.g., the writer, photographer; repeatable", "2#085" => "Max 32 characters of the title of the objectdata creator; repeatable", "2#090" => "Max 32 Characters of the city of objectdata origin", "2#092" => "Max 32 Characters of the location within the city of objectdata origin", "2#095" => "Max 32 Characters of the objectdata origin Province or State", "2#100" => "3 characters of ISO3166 or IPTC-assigned code for Country of objectdata origin", "2#101" => "Max 64 characters of publishable country/geographical location name of objectdata origin", "2#103" => "Max 32 characters of a code representing the location of original transmission", "2#105" => "Max 256 Characters of a publishable entry providing a synopsis of the contents of the objectdata", "2#110" => "Max 32 Characters that identifies the provider of the objectdata (Vs the owner/creator)", "2#115" => "Max 32 Characters that identifies the original owner of the intellectual content", "2#116" => "Max 128 Characters that contains any necessary copyright notice", "2#118" => "Max 128 characters that identifies the person or organisation which can provide further background information; repeatable", "2#120" => "Max 2000 Characters of a textual description of the objectdata", "2#122" => "Max 32 Characters that the identifies the person involved in the writing, editing or correcting the objectdata or caption/abstract; repeatable", "2#125" => "7360 binary octets of the rasterized caption - 1 bit per pixel, 460x128-pixel image", "2#130" => "2 characters of color composition type and information", "2#131" => "1 alphabetic character indicating the image area layout - P=portrait, L=landscape, S=square", "2#135" => "2 or 3 aphabetic characters containing the major national language of the object, according to the ISO 639:1988 codes", "2#150" => "2 characters identifying monaural/stereo and exact type of audio content", "2#151" => "6 numeric characters representing the audio sampling rate in hertz (Hz)", "2#152" => "2 numeric characters representing the number of bits in each audio sample", "2#153" => "6 numeric characters of the Audio Duration - HHMMSS", "2#154" => "Max 64 characters of the content of the end of an audio objectdata", "2#200" => "2 octet binary file format of the ObjectData Preview", "2#201" => "2 octet binary particular version of the ObjectData Preview File Format", "2#202" => "Max 256000 binary octets containing the ObjectData Preview data", "7#010" => "1 numeric character - 0=objectdata size not known, 1=objectdata size known at beginning of transfer", "7#020" => "4 octet binary maximum subfile dataset(s) size", "7#090" => "4 octet binary objectdata size if known at beginning of transfer", "7#095" => "4 octet binary largest possible objectdata size", "8#010" => "Subfile DataSet containing the objectdata itself; repeatable", "9#010" => "4 octet binary total objectdata size")]]></default>
|
479 |
-
<docblock line="
|
480 |
<description><![CDATA[IPTC Dataset descriptions]]></description>
|
481 |
<long-description><![CDATA[<p>This array contains the descriptions of Datasets defined in
|
482 |
the "IPTC-NAA Information Interchange Model Version No. 4.1".</p>]]></long-description>
|
483 |
-
<tag line="
|
484 |
-
<tag line="
|
485 |
<type by_reference="false">array</type>
|
486 |
</tag>
|
487 |
</docblock>
|
488 |
</property>
|
489 |
-
<property final="false" static="true" visibility="private" line="
|
490 |
<name>$mla_iptc_formats</name>
|
491 |
<default><![CDATA[array(0 => "No ObjectData", 1 => "IPTC-NAA Digital Newsphoto Parameter Record", 2 => "IPTC7901 Recommended Message Format", 3 => "Tagged Image File Format (Adobe/Aldus Image data)", 4 => "Illustrator (Adobe Graphics data)", 5 => "AppleSingle (Apple Computer Inc)", 6 => "NAA 89-3 (ANPA 1312)", 7 => "MacBinary II", 0 => "IPTC Unstructured Character Oriented File Format (UCOFF)", 0 => "United Press International ANPA 1312 variant", 10 => "United Press International Down-Load Message", 11 => "JPEG File Interchange (JFIF)", 12 => "Photo-CD Image-Pac (Eastman Kodak)", 13 => "Microsoft Bit Mapped Graphics File [*.BMP]", 14 => "Digital Audio File [*.WAV] (Microsoft & Creative Labs)", 15 => "Audio plus Moving Video [*.AVI] (Microsoft)", 16 => "PC DOS/Windows Executable Files [*.COM][*.EXE]", 17 => "Compressed Binary File [*.ZIP] (PKWare Inc)", 18 => "Audio Interchange File Format AIFF (Apple Computer Inc)", 19 => "RIFF Wave (Microsoft Corporation)", 20 => "Freehand (Macromedia/Aldus)", 21 => "Hypertext Markup Language - HTML (The Internet Society)", 22 => "MPEG 2 Audio Layer 2 (Musicom), ISO/IEC", 23 => "MPEG 2 Audio Layer 3, ISO/IEC", 24 => "Portable Document File (*.PDF) Adobe", 25 => "News Industry Text Format (NITF)", 26 => "Tape Archive (*.TAR)", 27 => "Tidningarnas Telegrambyrå NITF version (TTNITF DTD)", 28 => "Ritzaus Bureau NITF version (RBNITF DTD)", 29 => "Corel Draw [*.CDR]")]]></default>
|
492 |
-
<docblock line="
|
493 |
<description><![CDATA[IPTC file format identifiers and descriptions]]></description>
|
494 |
<long-description><![CDATA[<p>This array contains the file format identifiers and descriptions defined in
|
495 |
the "IPTC-NAA Information Interchange Model Version No. 4.1" for dataset 1#020.</p>]]></long-description>
|
496 |
-
<tag line="
|
497 |
-
<tag line="
|
498 |
<type by_reference="false">array</type>
|
499 |
</tag>
|
500 |
</docblock>
|
501 |
</property>
|
502 |
-
<property final="false" static="true" visibility="private" line="
|
503 |
<name>$mla_iptc_image_types</name>
|
504 |
<default><![CDATA[array("M" => "Monochrome", "Y" => "Yellow Component", "M" => "Magenta Component", "C" => "Cyan Component", "K" => "Black Component", "R" => "Red Component", "G" => "Green Component", "B" => "Blue Component", "T" => "Text Only", "F" => "Full colour composite, frame sequential", "L" => "Full colour composite, line sequential", "P" => "Full colour composite, pixel sequential", "S" => "Full colour composite, special interleaving")]]></default>
|
505 |
-
<docblock line="
|
506 |
<description><![CDATA[IPTC image type identifiers and descriptions]]></description>
|
507 |
<long-description><![CDATA[<p>This array contains the image type identifiers and descriptions defined in
|
508 |
the "IPTC-NAA Information Interchange Model Version No. 4.1" for dataset 2#130, octet 2.</p>]]></long-description>
|
509 |
-
<tag line="
|
510 |
-
<tag line="
|
511 |
<type by_reference="false">array</type>
|
512 |
</tag>
|
513 |
</docblock>
|
514 |
</property>
|
515 |
-
<property final="false" static="true" visibility="private" line="
|
516 |
<name>$mla_IPTC_EXIF_errors</name>
|
517 |
<default><![CDATA[array()]]></default>
|
518 |
-
<docblock line="
|
519 |
<description><![CDATA[Passes IPTC/EXIF parse errors between mla_IPTC_EXIF_error_handler
|
520 |
and mla_fetch_attachment_image_metadata]]></description>
|
521 |
<long-description><![CDATA[]]></long-description>
|
522 |
-
<tag line="
|
523 |
-
<tag line="
|
524 |
<type by_reference="false">array</type>
|
525 |
</tag>
|
526 |
</docblock>
|
@@ -1047,1280 +1047,1301 @@ Modeled after wp_edit_attachments_query in wp-admin/post.php</p>]]></long-descri
|
|
1047 |
<type/>
|
1048 |
</argument>
|
1049 |
</method>
|
1050 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
1051 |
<name>_execute_list_table_query</name>
|
1052 |
<full_name>_execute_list_table_query</full_name>
|
1053 |
-
<docblock line="
|
1054 |
<description><![CDATA[Add filters, run query, remove filters]]></description>
|
1055 |
<long-description><![CDATA[]]></long-description>
|
1056 |
-
<tag line="
|
1057 |
-
<tag line="
|
1058 |
<type by_reference="false">array</type>
|
1059 |
</tag>
|
1060 |
-
<tag line="
|
1061 |
<type by_reference="false">object</type>
|
1062 |
</tag>
|
1063 |
</docblock>
|
1064 |
-
<argument line="
|
1065 |
<name>$request</name>
|
1066 |
<default><![CDATA[]]></default>
|
1067 |
<type/>
|
1068 |
</argument>
|
1069 |
</method>
|
1070 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
1071 |
<name>mla_search_terms_tidy</name>
|
1072 |
<full_name>mla_search_terms_tidy</full_name>
|
1073 |
-
<docblock line="
|
1074 |
<description><![CDATA[Replaces a WordPress function deprecated in v3.7]]></description>
|
1075 |
<long-description><![CDATA[<p>Defined as public because it's a callback from array_map().</p>]]></long-description>
|
1076 |
-
<tag line="
|
1077 |
-
<tag line="
|
1078 |
<type by_reference="false">string</type>
|
1079 |
</tag>
|
1080 |
-
<tag line="
|
1081 |
<type by_reference="false">string</type>
|
1082 |
</tag>
|
1083 |
</docblock>
|
1084 |
-
<argument line="
|
1085 |
<name>$term</name>
|
1086 |
<default><![CDATA[]]></default>
|
1087 |
<type/>
|
1088 |
</argument>
|
1089 |
</method>
|
1090 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
1091 |
<name>mla_query_posts_search_filter</name>
|
1092 |
<full_name>mla_query_posts_search_filter</full_name>
|
1093 |
-
<docblock line="
|
1094 |
<description><![CDATA[Adds a keyword search to the WHERE clause, if required]]></description>
|
1095 |
<long-description><![CDATA[<p>Defined as public because it's a filter.</p>]]></long-description>
|
1096 |
-
<tag line="
|
1097 |
-
<tag line="
|
1098 |
<type by_reference="false">string</type>
|
1099 |
</tag>
|
1100 |
-
<tag line="
|
1101 |
<type by_reference="false">object</type>
|
1102 |
</tag>
|
1103 |
-
<tag line="
|
1104 |
<type by_reference="false">string</type>
|
1105 |
</tag>
|
1106 |
</docblock>
|
1107 |
-
<argument line="
|
1108 |
<name>$search_string</name>
|
1109 |
<default><![CDATA[]]></default>
|
1110 |
<type/>
|
1111 |
</argument>
|
1112 |
-
<argument line="
|
1113 |
<name>$query_object</name>
|
1114 |
<default><![CDATA[]]></default>
|
1115 |
<type/>
|
1116 |
</argument>
|
1117 |
</method>
|
1118 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1119 |
<name>mla_query_posts_join_filter</name>
|
1120 |
<full_name>mla_query_posts_join_filter</full_name>
|
1121 |
-
<docblock line="
|
1122 |
<description><![CDATA[Adds a JOIN clause, if required, to handle sorting/searching on custom fields or ALT Text]]></description>
|
1123 |
<long-description><![CDATA[<p>Defined as public because it's a filter.</p>]]></long-description>
|
1124 |
-
<tag line="
|
1125 |
-
<tag line="
|
1126 |
<type by_reference="false">string</type>
|
1127 |
</tag>
|
1128 |
-
<tag line="
|
1129 |
<type by_reference="false">string</type>
|
1130 |
</tag>
|
1131 |
</docblock>
|
1132 |
-
<argument line="
|
1133 |
<name>$join_clause</name>
|
1134 |
<default><![CDATA[]]></default>
|
1135 |
<type/>
|
1136 |
</argument>
|
1137 |
</method>
|
1138 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
1139 |
-
<name>
|
1140 |
-
<full_name>
|
1141 |
-
<docblock line="
|
1142 |
-
<description><![CDATA[Adds a
|
1143 |
-
<long-description><![CDATA[<p>
|
1144 |
Defined as public because it's a filter.</p>]]></long-description>
|
1145 |
-
<tag line="
|
1146 |
-
<tag line="
|
1147 |
<type by_reference="false">string</type>
|
1148 |
</tag>
|
1149 |
-
<tag line="
|
1150 |
<type by_reference="false">string</type>
|
1151 |
</tag>
|
1152 |
</docblock>
|
1153 |
-
<argument line="
|
1154 |
-
<name>$
|
1155 |
<default><![CDATA[]]></default>
|
1156 |
<type/>
|
1157 |
</argument>
|
1158 |
</method>
|
1159 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
1160 |
<name>mla_query_posts_orderby_filter</name>
|
1161 |
<full_name>mla_query_posts_orderby_filter</full_name>
|
1162 |
-
<docblock line="
|
1163 |
<description><![CDATA[Adds a ORDERBY clause, if required]]></description>
|
1164 |
<long-description><![CDATA[<p>Expands the range of sort options because the logic in WP_Query is limited.
|
1165 |
Defined as public because it's a filter.</p>]]></long-description>
|
1166 |
-
<tag line="
|
1167 |
-
<tag line="
|
1168 |
<type by_reference="false">string</type>
|
1169 |
</tag>
|
1170 |
-
<tag line="
|
1171 |
<type by_reference="false">string</type>
|
1172 |
</tag>
|
1173 |
</docblock>
|
1174 |
-
<argument line="
|
1175 |
<name>$orderby_clause</name>
|
1176 |
<default><![CDATA[]]></default>
|
1177 |
<type/>
|
1178 |
</argument>
|
1179 |
</method>
|
1180 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
1181 |
<name>mla_query_relevanssi_admin_search_ok_filter</name>
|
1182 |
<full_name>mla_query_relevanssi_admin_search_ok_filter</full_name>
|
1183 |
-
<docblock line="
|
1184 |
<description><![CDATA[Disable Relevanssi - A Better Search, v3.2 by Mikko Saari
|
1185 |
Defined as public because it's a filter.]]></description>
|
1186 |
<long-description><![CDATA[]]></long-description>
|
1187 |
-
<tag line="
|
1188 |
-
<tag line="
|
1189 |
<type by_reference="false">boolean</type>
|
1190 |
</tag>
|
1191 |
-
<tag line="
|
1192 |
<type by_reference="false">boolean</type>
|
1193 |
</tag>
|
1194 |
</docblock>
|
1195 |
-
<argument line="
|
1196 |
<name>$admin_search_ok</name>
|
1197 |
<default><![CDATA[]]></default>
|
1198 |
<type/>
|
1199 |
</argument>
|
1200 |
</method>
|
1201 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
1202 |
<name>mla_query_posts_clauses_filter</name>
|
1203 |
<full_name>mla_query_posts_clauses_filter</full_name>
|
1204 |
-
<docblock line="
|
1205 |
<description><![CDATA[Filters all clauses for shortcode queries, pre caching plugins]]></description>
|
1206 |
<long-description><![CDATA[<p>This is for debug purposes only.
|
1207 |
Defined as public because it's a filter.</p>]]></long-description>
|
1208 |
-
<tag line="
|
1209 |
-
<tag line="
|
1210 |
<type by_reference="false">array</type>
|
1211 |
</tag>
|
1212 |
-
<tag line="
|
1213 |
<type by_reference="false">array</type>
|
1214 |
</tag>
|
1215 |
</docblock>
|
1216 |
-
<argument line="
|
1217 |
<name>$pieces</name>
|
1218 |
<default><![CDATA[]]></default>
|
1219 |
<type/>
|
1220 |
</argument>
|
1221 |
</method>
|
1222 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
1223 |
<name>mla_query_posts_clauses_request_filter</name>
|
1224 |
<full_name>mla_query_posts_clauses_request_filter</full_name>
|
1225 |
-
<docblock line="
|
1226 |
<description><![CDATA[Filters all clauses for shortcode queries, post caching plugins]]></description>
|
1227 |
<long-description><![CDATA[<p>This is for debug purposes only.
|
1228 |
Defined as public because it's a filter.</p>]]></long-description>
|
1229 |
-
<tag line="
|
1230 |
-
<tag line="
|
1231 |
<type by_reference="false">array</type>
|
1232 |
</tag>
|
1233 |
-
<tag line="
|
1234 |
<type by_reference="false">array</type>
|
1235 |
</tag>
|
1236 |
</docblock>
|
1237 |
-
<argument line="
|
1238 |
<name>$pieces</name>
|
1239 |
<default><![CDATA[]]></default>
|
1240 |
<type/>
|
1241 |
</argument>
|
1242 |
</method>
|
1243 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
1244 |
<name>mla_get_attachment_by_id</name>
|
1245 |
<full_name>mla_get_attachment_by_id</full_name>
|
1246 |
-
<docblock line="
|
1247 |
<description><![CDATA[Retrieve an Attachment array given a $post_id]]></description>
|
1248 |
<long-description><![CDATA[<p>The (associative) array will contain every field that can be found in
|
1249 |
the posts and postmeta tables, and all references to the attachment.</p>]]></long-description>
|
1250 |
-
<tag line="
|
1251 |
-
<tag line="
|
1252 |
-
<tag line="
|
1253 |
<type by_reference="false">int</type>
|
1254 |
</tag>
|
1255 |
-
<tag line="
|
1256 |
<type by_reference="false">NULL</type>
|
1257 |
<type by_reference="false">array</type>
|
1258 |
</tag>
|
1259 |
</docblock>
|
1260 |
-
<argument line="
|
1261 |
<name>$post_id</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_fetch_attachment_parent_data</name>
|
1268 |
<full_name>mla_fetch_attachment_parent_data</full_name>
|
1269 |
-
<docblock line="
|
1270 |
<description><![CDATA[Returns information about an attachment's parent, if found]]></description>
|
1271 |
<long-description><![CDATA[]]></long-description>
|
1272 |
-
<tag line="
|
1273 |
-
<tag line="
|
1274 |
<type by_reference="false">int</type>
|
1275 |
</tag>
|
1276 |
-
<tag line="
|
1277 |
<type by_reference="false">array</type>
|
1278 |
</tag>
|
1279 |
</docblock>
|
1280 |
-
<argument line="
|
1281 |
<name>$parent_id</name>
|
1282 |
<default><![CDATA[]]></default>
|
1283 |
<type/>
|
1284 |
</argument>
|
1285 |
</method>
|
1286 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
1287 |
<name>_set_array_element</name>
|
1288 |
<full_name>_set_array_element</full_name>
|
1289 |
-
<docblock line="
|
1290 |
<description><![CDATA[Adds or replaces the value of a key in a possibly nested array structure]]></description>
|
1291 |
<long-description><![CDATA[]]></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">mixed</type>
|
1298 |
</tag>
|
1299 |
-
<tag line="
|
1300 |
<type by_reference="false">array</type>
|
1301 |
</tag>
|
1302 |
-
<tag line="
|
1303 |
<type by_reference="false">boolean</type>
|
1304 |
</tag>
|
1305 |
</docblock>
|
1306 |
-
<argument line="
|
1307 |
<name>$needle</name>
|
1308 |
<default><![CDATA[]]></default>
|
1309 |
<type/>
|
1310 |
</argument>
|
1311 |
-
<argument line="
|
1312 |
<name>$value</name>
|
1313 |
<default><![CDATA[]]></default>
|
1314 |
<type/>
|
1315 |
</argument>
|
1316 |
-
<argument line="
|
1317 |
<name>$haystack</name>
|
1318 |
<default><![CDATA[]]></default>
|
1319 |
<type/>
|
1320 |
</argument>
|
1321 |
</method>
|
1322 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
1323 |
<name>_unset_array_element</name>
|
1324 |
<full_name>_unset_array_element</full_name>
|
1325 |
-
<docblock line="
|
1326 |
<description><![CDATA[Deletes the value of a key in a possibly nested array structure]]></description>
|
1327 |
<long-description><![CDATA[]]></long-description>
|
1328 |
-
<tag line="
|
1329 |
-
<tag line="
|
1330 |
<type by_reference="false">string</type>
|
1331 |
</tag>
|
1332 |
-
<tag line="
|
1333 |
<type by_reference="false">array</type>
|
1334 |
</tag>
|
1335 |
-
<tag line="
|
1336 |
<type by_reference="false">boolean</type>
|
1337 |
</tag>
|
1338 |
</docblock>
|
1339 |
-
<argument line="
|
1340 |
<name>$needle</name>
|
1341 |
<default><![CDATA[]]></default>
|
1342 |
<type/>
|
1343 |
</argument>
|
1344 |
-
<argument line="
|
1345 |
<name>$haystack</name>
|
1346 |
<default><![CDATA[]]></default>
|
1347 |
<type/>
|
1348 |
</argument>
|
1349 |
</method>
|
1350 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
1351 |
<name>mla_find_array_element</name>
|
1352 |
<full_name>mla_find_array_element</full_name>
|
1353 |
-
<docblock line="
|
1354 |
<description><![CDATA[Finds the value of a key in a possibly nested array structure]]></description>
|
1355 |
<long-description><![CDATA[<p>Used primarily to extract fields from the _wp_attachment_metadata custom field.
|
1356 |
Could also be used with the ID3 metadata exposed in WordPress 3.6 and later.</p>]]></long-description>
|
1357 |
-
<tag line="
|
1358 |
-
<tag line="
|
1359 |
<type by_reference="false">string</type>
|
1360 |
</tag>
|
1361 |
-
<tag line="
|
1362 |
<type by_reference="false">array</type>
|
1363 |
</tag>
|
1364 |
-
<tag line="
|
1365 |
<type by_reference="false">string</type>
|
1366 |
</tag>
|
1367 |
-
<tag line="
|
1368 |
<type by_reference="false">boolean</type>
|
1369 |
</tag>
|
1370 |
-
<tag line="
|
1371 |
<type by_reference="false">mixed</type>
|
1372 |
</tag>
|
1373 |
</docblock>
|
1374 |
-
<argument line="
|
1375 |
<name>$needle</name>
|
1376 |
<default><![CDATA[]]></default>
|
1377 |
<type/>
|
1378 |
</argument>
|
1379 |
-
<argument line="
|
1380 |
<name>$haystack</name>
|
1381 |
<default><![CDATA[]]></default>
|
1382 |
<type/>
|
1383 |
</argument>
|
1384 |
-
<argument line="
|
1385 |
<name>$option</name>
|
1386 |
<default><![CDATA[]]></default>
|
1387 |
<type/>
|
1388 |
</argument>
|
1389 |
-
<argument line="
|
1390 |
<name>$keep_existing</name>
|
1391 |
<default><![CDATA[false]]></default>
|
1392 |
<type/>
|
1393 |
</argument>
|
1394 |
</method>
|
1395 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
1396 |
<name>mla_fetch_attachment_metadata</name>
|
1397 |
<full_name>mla_fetch_attachment_metadata</full_name>
|
1398 |
-
<docblock line="
|
1399 |
<description><![CDATA[Fetch and filter meta data for an attachment]]></description>
|
1400 |
<long-description><![CDATA[<p>Returns a filtered array of a post's meta data. Internal values beginning with '<em>'
|
1401 |
are stripped out or converted to an 'mla</em>' equivalent.</p>]]></long-description>
|
1402 |
-
<tag line="
|
1403 |
-
<tag line="
|
1404 |
<type by_reference="false">int</type>
|
1405 |
</tag>
|
1406 |
-
<tag line="
|
1407 |
<type by_reference="false">array</type>
|
1408 |
</tag>
|
1409 |
</docblock>
|
1410 |
-
<argument line="
|
1411 |
<name>$post_id</name>
|
1412 |
<default><![CDATA[]]></default>
|
1413 |
<type/>
|
1414 |
</argument>
|
1415 |
</method>
|
1416 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
1417 |
<name>mla_fetch_attachment_references</name>
|
1418 |
<full_name>mla_fetch_attachment_references</full_name>
|
1419 |
-
<docblock line="
|
1420 |
<description><![CDATA[Find Featured Image and inserted image/link references to an attachment]]></description>
|
1421 |
<long-description><![CDATA[<p>Searches all post and page content to see if the attachment is used
|
1422 |
as a Featured Image or inserted in the post as an image or link.</p>]]></long-description>
|
1423 |
-
<tag line="
|
1424 |
-
<tag line="
|
1425 |
<type by_reference="false">int</type>
|
1426 |
</tag>
|
1427 |
-
<tag line="
|
1428 |
<type by_reference="false">int</type>
|
1429 |
</tag>
|
1430 |
-
<tag line="
|
1431 |
<type by_reference="false">array</type>
|
1432 |
</tag>
|
1433 |
</docblock>
|
1434 |
-
<argument line="
|
1435 |
<name>$ID</name>
|
1436 |
<default><![CDATA[]]></default>
|
1437 |
<type/>
|
1438 |
</argument>
|
1439 |
-
<argument line="
|
1440 |
<name>$parent</name>
|
1441 |
<default><![CDATA[]]></default>
|
1442 |
<type/>
|
1443 |
</argument>
|
1444 |
</method>
|
1445 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
1446 |
<name>mla_flush_mla_galleries</name>
|
1447 |
<full_name>mla_flush_mla_galleries</full_name>
|
1448 |
-
<docblock line="
|
1449 |
<description><![CDATA[Invalidates the $mla_galleries or $galleries array and cached values]]></description>
|
1450 |
<long-description><![CDATA[]]></long-description>
|
1451 |
-
<tag line="
|
1452 |
-
<tag line="
|
1453 |
<type by_reference="false">string</type>
|
1454 |
</tag>
|
1455 |
-
<tag line="
|
1456 |
<type by_reference="false">void</type>
|
1457 |
</tag>
|
1458 |
</docblock>
|
1459 |
-
<argument line="
|
1460 |
<name>$option_name</name>
|
1461 |
<default><![CDATA[]]></default>
|
1462 |
<type/>
|
1463 |
</argument>
|
1464 |
</method>
|
1465 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
1466 |
<name>mla_save_post_action</name>
|
1467 |
<full_name>mla_save_post_action</full_name>
|
1468 |
-
<docblock line="
|
1469 |
<description><![CDATA[Invalidates $mla_galleries and $galleries arrays and cached values after post, page or attachment updates]]></description>
|
1470 |
<long-description><![CDATA[]]></long-description>
|
1471 |
-
<tag line="
|
1472 |
-
<tag line="
|
1473 |
<type by_reference="false">integer</type>
|
1474 |
</tag>
|
1475 |
-
<tag line="
|
1476 |
<type by_reference="false">void</type>
|
1477 |
</tag>
|
1478 |
</docblock>
|
1479 |
-
<argument line="
|
1480 |
<name>$post_id</name>
|
1481 |
<default><![CDATA[]]></default>
|
1482 |
<type/>
|
1483 |
</argument>
|
1484 |
</method>
|
1485 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
1486 |
<name>_build_mla_galleries</name>
|
1487 |
<full_name>_build_mla_galleries</full_name>
|
1488 |
-
<docblock line="
|
1489 |
<description><![CDATA[Builds the $mla_galleries or $galleries array]]></description>
|
1490 |
<long-description><![CDATA[]]></long-description>
|
1491 |
-
<tag line="
|
1492 |
-
<tag line="
|
1493 |
<type by_reference="false">string</type>
|
1494 |
</tag>
|
1495 |
-
<tag line="
|
1496 |
<type by_reference="false">array</type>
|
1497 |
</tag>
|
1498 |
-
<tag line="
|
1499 |
<type by_reference="false">string</type>
|
1500 |
</tag>
|
1501 |
-
<tag line="
|
1502 |
<type by_reference="false">boolean</type>
|
1503 |
</tag>
|
1504 |
-
<tag line="
|
1505 |
<type by_reference="false">boolean</type>
|
1506 |
</tag>
|
1507 |
</docblock>
|
1508 |
-
<argument line="
|
1509 |
<name>$option_name</name>
|
1510 |
<default><![CDATA[]]></default>
|
1511 |
<type/>
|
1512 |
</argument>
|
1513 |
-
<argument line="
|
1514 |
<name>$galleries_array</name>
|
1515 |
<default><![CDATA[]]></default>
|
1516 |
<type/>
|
1517 |
</argument>
|
1518 |
-
<argument line="
|
1519 |
<name>$shortcode</name>
|
1520 |
<default><![CDATA[]]></default>
|
1521 |
<type/>
|
1522 |
</argument>
|
1523 |
-
<argument line="
|
1524 |
<name>$exclude_revisions</name>
|
1525 |
<default><![CDATA[]]></default>
|
1526 |
<type/>
|
1527 |
</argument>
|
1528 |
</method>
|
1529 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
1530 |
<name>_search_mla_galleries</name>
|
1531 |
<full_name>_search_mla_galleries</full_name>
|
1532 |
-
<docblock line="
|
1533 |
<description><![CDATA[Search the $mla_galleries or $galleries array]]></description>
|
1534 |
<long-description><![CDATA[]]></long-description>
|
1535 |
-
<tag line="
|
1536 |
-
<tag line="
|
1537 |
<type by_reference="false">array</type>
|
1538 |
</tag>
|
1539 |
-
<tag line="
|
1540 |
<type by_reference="false">int</type>
|
1541 |
</tag>
|
1542 |
-
<tag line="
|
1543 |
<type by_reference="false">array</type>
|
1544 |
</tag>
|
1545 |
</docblock>
|
1546 |
-
<argument line="
|
1547 |
<name>$galleries_array</name>
|
1548 |
<default><![CDATA[]]></default>
|
1549 |
<type/>
|
1550 |
</argument>
|
1551 |
-
<argument line="
|
1552 |
<name>$attachment_id</name>
|
1553 |
<default><![CDATA[]]></default>
|
1554 |
<type/>
|
1555 |
</argument>
|
1556 |
</method>
|
1557 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
1558 |
<name>_parse_pdf_xref_subsection</name>
|
1559 |
<full_name>_parse_pdf_xref_subsection</full_name>
|
1560 |
-
<docblock line="
|
1561 |
<description><![CDATA[Parse a cross-reference table subsection into the array of indirect object definitions]]></description>
|
1562 |
<long-description><![CDATA[<p>A cross-reference subsection is a sequence of 20-byte entries, each with offset and generation values.</p>]]></long-description>
|
1563 |
-
<tag line="
|
1564 |
-
<tag line="
|
1565 |
<type by_reference="false">string</type>
|
1566 |
</tag>
|
1567 |
-
<tag line="
|
1568 |
<type by_reference="false">integer</type>
|
1569 |
</tag>
|
1570 |
-
<tag line="
|
1571 |
<type by_reference="false">integer</type>
|
1572 |
</tag>
|
1573 |
-
<tag line="
|
1574 |
<type by_reference="false">integer</type>
|
1575 |
</tag>
|
1576 |
-
<tag line="
|
1577 |
<type by_reference="false">void</type>
|
1578 |
</tag>
|
1579 |
</docblock>
|
1580 |
-
<argument line="
|
1581 |
<name>$xref_section</name>
|
1582 |
<default><![CDATA[]]></default>
|
1583 |
<type/>
|
1584 |
</argument>
|
1585 |
-
<argument line="
|
1586 |
<name>$offset</name>
|
1587 |
<default><![CDATA[]]></default>
|
1588 |
<type/>
|
1589 |
</argument>
|
1590 |
-
<argument line="
|
1591 |
<name>$object_id</name>
|
1592 |
<default><![CDATA[]]></default>
|
1593 |
<type/>
|
1594 |
</argument>
|
1595 |
-
<argument line="
|
1596 |
<name>$count</name>
|
1597 |
<default><![CDATA[]]></default>
|
1598 |
<type/>
|
1599 |
</argument>
|
1600 |
</method>
|
1601 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
1602 |
<name>_parse_pdf_xref_section</name>
|
1603 |
<full_name>_parse_pdf_xref_section</full_name>
|
1604 |
-
<docblock line="
|
1605 |
<description><![CDATA[Parse a cross-reference table section into the array of indirect object definitions]]></description>
|
1606 |
<long-description><![CDATA[<p>Creates the array of indirect object offsets and lengths</p>]]></long-description>
|
1607 |
-
<tag line="
|
1608 |
-
<tag line="
|
1609 |
<type by_reference="false">string</type>
|
1610 |
</tag>
|
1611 |
-
<tag line="
|
1612 |
<type by_reference="false">integer</type>
|
1613 |
</tag>
|
1614 |
-
<tag line="
|
1615 |
<type by_reference="false">integer</type>
|
1616 |
</tag>
|
1617 |
</docblock>
|
1618 |
-
<argument line="
|
1619 |
<name>$file_name</name>
|
1620 |
<default><![CDATA[]]></default>
|
1621 |
<type/>
|
1622 |
</argument>
|
1623 |
-
<argument line="
|
1624 |
<name>$file_offset</name>
|
1625 |
<default><![CDATA[]]></default>
|
1626 |
<type/>
|
1627 |
</argument>
|
1628 |
</method>
|
1629 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
1630 |
<name>_parse_pdf_xref_stream</name>
|
1631 |
<full_name>_parse_pdf_xref_stream</full_name>
|
1632 |
-
<docblock line="
|
1633 |
<description><![CDATA[Parse a cross-reference steam into the array of indirect object definitions]]></description>
|
1634 |
<long-description><![CDATA[<p>Creates the array of indirect object offsets and lengths</p>]]></long-description>
|
1635 |
-
<tag line="
|
1636 |
-
<tag line="
|
1637 |
<type by_reference="false">string</type>
|
1638 |
</tag>
|
1639 |
-
<tag line="
|
1640 |
<type by_reference="false">integer</type>
|
1641 |
</tag>
|
1642 |
-
<tag line="
|
1643 |
<type by_reference="false">string</type>
|
1644 |
</tag>
|
1645 |
-
<tag line="
|
1646 |
<type by_reference="false">integer</type>
|
1647 |
</tag>
|
1648 |
</docblock>
|
1649 |
-
<argument line="
|
1650 |
<name>$file_name</name>
|
1651 |
<default><![CDATA[]]></default>
|
1652 |
<type/>
|
1653 |
</argument>
|
1654 |
-
<argument line="
|
1655 |
<name>$file_offset</name>
|
1656 |
<default><![CDATA[]]></default>
|
1657 |
<type/>
|
1658 |
</argument>
|
1659 |
-
<argument line="
|
1660 |
<name>$entry_parms_string</name>
|
1661 |
<default><![CDATA[]]></default>
|
1662 |
<type/>
|
1663 |
</argument>
|
1664 |
</method>
|
1665 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
1666 |
<name>_build_pdf_indirect_objects</name>
|
1667 |
<full_name>_build_pdf_indirect_objects</full_name>
|
1668 |
-
<docblock line="
|
1669 |
<description><![CDATA[Build an array of indirect object definitions]]></description>
|
1670 |
<long-description><![CDATA[<p>Creates the array of indirect object offsets and lengths</p>]]></long-description>
|
1671 |
-
<tag line="
|
1672 |
-
<tag line="
|
1673 |
<type by_reference="false">string</type>
|
1674 |
</tag>
|
1675 |
-
<tag line="
|
1676 |
<type by_reference="false">void</type>
|
1677 |
</tag>
|
1678 |
</docblock>
|
1679 |
-
<argument line="
|
1680 |
<name>$string</name>
|
1681 |
<default><![CDATA[]]></default>
|
1682 |
<type/>
|
1683 |
</argument>
|
1684 |
</method>
|
1685 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
1686 |
<name>_find_pdf_indirect_dictionary</name>
|
1687 |
<full_name>_find_pdf_indirect_dictionary</full_name>
|
1688 |
-
<docblock line="
|
1689 |
<description><![CDATA[Find the offset, length and contents of an indirect object containing a dictionary]]></description>
|
1690 |
<long-description><![CDATA[<p>The function searches the entire file, if necessary, to find the last/most recent copy of the object.
|
1691 |
This is required because Adobe Acrobat does NOT increment the generation number when it reuses an object.</p>]]></long-description>
|
1692 |
-
<tag line="
|
1693 |
-
<tag line="
|
1694 |
<type by_reference="false">string</type>
|
1695 |
</tag>
|
1696 |
-
<tag line="
|
1697 |
<type by_reference="false">integer</type>
|
1698 |
</tag>
|
1699 |
-
<tag line="
|
1700 |
<type by_reference="false">integer</type>
|
1701 |
</tag>
|
1702 |
-
<tag line="
|
1703 |
<type by_reference="false">mixed</type>
|
1704 |
</tag>
|
1705 |
</docblock>
|
1706 |
-
<argument line="
|
1707 |
<name>$file_name</name>
|
1708 |
<default><![CDATA[]]></default>
|
1709 |
<type/>
|
1710 |
</argument>
|
1711 |
-
<argument line="
|
1712 |
<name>$object</name>
|
1713 |
<default><![CDATA[]]></default>
|
1714 |
<type/>
|
1715 |
</argument>
|
1716 |
-
<argument line="
|
1717 |
<name>$generation</name>
|
1718 |
<default><![CDATA[0]]></default>
|
1719 |
<type/>
|
1720 |
</argument>
|
1721 |
</method>
|
1722 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
1723 |
<name>_parse_iso8601_date</name>
|
1724 |
<full_name>_parse_iso8601_date</full_name>
|
1725 |
-
<docblock line="
|
1726 |
<description><![CDATA[Parse a ISO 8601 Timestamp]]></description>
|
1727 |
<long-description><![CDATA[]]></long-description>
|
1728 |
-
<tag line="
|
1729 |
-
<tag line="
|
1730 |
<type by_reference="false">string</type>
|
1731 |
</tag>
|
1732 |
-
<tag line="
|
1733 |
<type by_reference="false">string</type>
|
1734 |
</tag>
|
1735 |
</docblock>
|
1736 |
-
<argument line="
|
1737 |
<name>$source_string</name>
|
1738 |
<default><![CDATA[]]></default>
|
1739 |
<type/>
|
1740 |
</argument>
|
1741 |
</method>
|
1742 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
1743 |
<name>_parse_pdf_date</name>
|
1744 |
<full_name>_parse_pdf_date</full_name>
|
1745 |
-
<docblock line="
|
1746 |
<description><![CDATA[Parse a PDF date string]]></description>
|
1747 |
<long-description><![CDATA[]]></long-description>
|
1748 |
-
<tag line="
|
1749 |
-
<tag line="
|
1750 |
<type by_reference="false">string</type>
|
1751 |
</tag>
|
1752 |
-
<tag line="
|
1753 |
<type by_reference="false">string</type>
|
1754 |
</tag>
|
1755 |
</docblock>
|
1756 |
-
<argument line="
|
1757 |
<name>$source_string</name>
|
1758 |
<default><![CDATA[]]></default>
|
1759 |
<type/>
|
1760 |
</argument>
|
1761 |
</method>
|
1762 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
1763 |
<name>_parse_pdf_UTF16BE</name>
|
1764 |
<full_name>_parse_pdf_UTF16BE</full_name>
|
1765 |
-
<docblock line="
|
1766 |
<description><![CDATA[Parse a PDF Unicode (16-bit Big Endian) object]]></description>
|
1767 |
<long-description><![CDATA[]]></long-description>
|
1768 |
-
<tag line="
|
1769 |
-
<tag line="
|
1770 |
<type by_reference="false">string</type>
|
1771 |
</tag>
|
1772 |
-
<tag line="
|
1773 |
<type by_reference="false">string</type>
|
1774 |
</tag>
|
1775 |
</docblock>
|
1776 |
-
<argument line="
|
1777 |
<name>$source_string</name>
|
1778 |
<default><![CDATA[]]></default>
|
1779 |
<type/>
|
1780 |
</argument>
|
1781 |
</method>
|
1782 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
1783 |
<name>_parse_pdf_string</name>
|
1784 |
<full_name>_parse_pdf_string</full_name>
|
1785 |
-
<docblock line="
|
1786 |
<description><![CDATA[Parse a PDF string object]]></description>
|
1787 |
<long-description><![CDATA[<p>Returns an array with one dictionary entry. The array also has a '/length' element containing
|
1788 |
the number of bytes occupied by the string in the source string, including the enclosing parentheses.</p>]]></long-description>
|
1789 |
-
<tag line="
|
1790 |
-
<tag line="
|
1791 |
<type by_reference="false">string</type>
|
1792 |
</tag>
|
1793 |
-
<tag line="
|
1794 |
<type by_reference="false">integer</type>
|
1795 |
</tag>
|
1796 |
-
<tag line="
|
1797 |
<type by_reference="false">array</type>
|
1798 |
</tag>
|
1799 |
</docblock>
|
1800 |
-
<argument line="
|
1801 |
<name>$source_string</name>
|
1802 |
<default><![CDATA[]]></default>
|
1803 |
<type/>
|
1804 |
</argument>
|
1805 |
-
<argument line="
|
1806 |
<name>$offset</name>
|
1807 |
<default><![CDATA[]]></default>
|
1808 |
<type/>
|
1809 |
</argument>
|
1810 |
</method>
|
1811 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
1812 |
<name>_parse_pdf_LPD_dictionary</name>
|
1813 |
<full_name>_parse_pdf_LPD_dictionary</full_name>
|
1814 |
-
<docblock line="
|
1815 |
<description><![CDATA[Parse a PDF Linearization Parameter Dictionary object]]></description>
|
1816 |
<long-description><![CDATA[<p>Returns an array of dictionary contents, classified by object type: boolean, numeric, string, hex (string),
|
1817 |
indirect (object), name, array, dictionary, stream, and null.
|
1818 |
The array also has a '/length' element containing the number of bytes occupied by the
|
1819 |
dictionary in the source string, excluding the enclosing delimiters, if passed in.</p>]]></long-description>
|
1820 |
-
<tag line="
|
1821 |
-
<tag line="
|
1822 |
<type by_reference="false">string</type>
|
1823 |
</tag>
|
1824 |
-
<tag line="
|
1825 |
<type by_reference="false">integer</type>
|
1826 |
</tag>
|
1827 |
-
<tag line="
|
1828 |
<type by_reference="false">mixed</type>
|
1829 |
</tag>
|
1830 |
</docblock>
|
1831 |
-
<argument line="
|
1832 |
<name>$source_string</name>
|
1833 |
<default><![CDATA[]]></default>
|
1834 |
<type/>
|
1835 |
</argument>
|
1836 |
-
<argument line="
|
1837 |
<name>$filesize</name>
|
1838 |
<default><![CDATA[]]></default>
|
1839 |
<type/>
|
1840 |
</argument>
|
1841 |
</method>
|
1842 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
1843 |
<name>_parse_pdf_dictionary</name>
|
1844 |
<full_name>_parse_pdf_dictionary</full_name>
|
1845 |
-
<docblock line="
|
1846 |
<description><![CDATA[Parse a PDF dictionary object]]></description>
|
1847 |
<long-description><![CDATA[<p>Returns an array of dictionary contents, classified by object type: boolean, numeric, string, hex (string),
|
1848 |
indirect (object), name, array, dictionary, stream, and null.
|
1849 |
The array also has a '/length' element containing the number of bytes occupied by the
|
1850 |
dictionary in the source string, excluding the enclosing delimiters.</p>]]></long-description>
|
1851 |
-
<tag line="
|
1852 |
-
<tag line="
|
1853 |
<type by_reference="false">string</type>
|
1854 |
</tag>
|
1855 |
-
<tag line="
|
1856 |
<type by_reference="false">integer</type>
|
1857 |
</tag>
|
1858 |
-
<tag line="
|
1859 |
<type by_reference="false">array</type>
|
1860 |
</tag>
|
1861 |
</docblock>
|
1862 |
-
<argument line="
|
1863 |
<name>$source_string</name>
|
1864 |
<default><![CDATA[]]></default>
|
1865 |
<type/>
|
1866 |
</argument>
|
1867 |
-
<argument line="
|
1868 |
<name>$offset</name>
|
1869 |
<default><![CDATA[]]></default>
|
1870 |
<type/>
|
1871 |
</argument>
|
1872 |
</method>
|
1873 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
1874 |
<name>_parse_xmp_metadata</name>
|
1875 |
<full_name>_parse_xmp_metadata</full_name>
|
1876 |
-
<docblock line="
|
1877 |
<description><![CDATA[Parse an XMP object]]></description>
|
1878 |
<long-description><![CDATA[<p>Returns an array of dictionary contents, classified by object type: boolean, numeric, string, hex (string),
|
1879 |
indirect (object), name, array, dictionary, stream, and null.
|
1880 |
The array also has a '/length' element containing the number of bytes occupied by the
|
1881 |
dictionary in the source string, excluding the enclosing delimiters, if passed in.</p>]]></long-description>
|
1882 |
-
<tag line="
|
1883 |
-
<tag line="
|
1884 |
<type by_reference="false">string</type>
|
1885 |
</tag>
|
1886 |
-
<tag line="
|
1887 |
<type by_reference="false">integer</type>
|
1888 |
</tag>
|
1889 |
-
<tag line="
|
1890 |
<type by_reference="false">mixed</type>
|
1891 |
</tag>
|
1892 |
</docblock>
|
1893 |
-
<argument line="
|
1894 |
<name>$file_name</name>
|
1895 |
<default><![CDATA[]]></default>
|
1896 |
<type/>
|
1897 |
</argument>
|
1898 |
-
<argument line="
|
1899 |
<name>$file_offset</name>
|
1900 |
<default><![CDATA[]]></default>
|
1901 |
<type/>
|
1902 |
</argument>
|
1903 |
</method>
|
1904 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
1905 |
<name>_extract_pdf_trailer</name>
|
1906 |
<full_name>_extract_pdf_trailer</full_name>
|
1907 |
-
<docblock line="
|
1908 |
<description><![CDATA[Extract dictionary from traditional cross-reference + trailer documents]]></description>
|
1909 |
<long-description><![CDATA[]]></long-description>
|
1910 |
-
<tag line="
|
1911 |
-
<tag line="
|
1912 |
<type by_reference="false">string</type>
|
1913 |
</tag>
|
1914 |
-
<tag line="
|
1915 |
<type by_reference="false">integer</type>
|
1916 |
</tag>
|
1917 |
-
<tag line="
|
1918 |
<type by_reference="false">mixed</type>
|
1919 |
</tag>
|
1920 |
</docblock>
|
1921 |
-
<argument line="
|
1922 |
<name>$file_name</name>
|
1923 |
<default><![CDATA[]]></default>
|
1924 |
<type/>
|
1925 |
</argument>
|
1926 |
-
<argument line="
|
1927 |
<name>$file_offset</name>
|
1928 |
<default><![CDATA[]]></default>
|
1929 |
<type/>
|
1930 |
</argument>
|
1931 |
</method>
|
1932 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
1933 |
<name>_extract_pdf_metadata</name>
|
1934 |
<full_name>_extract_pdf_metadata</full_name>
|
1935 |
-
<docblock line="
|
1936 |
<description><![CDATA[Extract Metadata from a PDF file]]></description>
|
1937 |
<long-description><![CDATA[]]></long-description>
|
1938 |
-
<tag line="
|
1939 |
-
<tag line="
|
1940 |
<type by_reference="false">string</type>
|
1941 |
</tag>
|
1942 |
-
<tag line="
|
1943 |
<type by_reference="false">array</type>
|
1944 |
</tag>
|
1945 |
</docblock>
|
1946 |
-
<argument line="
|
1947 |
<name>$file_name</name>
|
1948 |
<default><![CDATA[]]></default>
|
1949 |
<type/>
|
1950 |
</argument>
|
1951 |
</method>
|
1952 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
1953 |
<name>_bin_to_utf8</name>
|
1954 |
<full_name>_bin_to_utf8</full_name>
|
1955 |
-
<docblock line="
|
1956 |
<description><![CDATA[Replace SQL incorrect characters (0x80 - 0xFF) with their UTF-8 equivalents]]></description>
|
1957 |
<long-description><![CDATA[]]></long-description>
|
1958 |
-
<tag line="
|
1959 |
-
<tag line="
|
1960 |
<type by_reference="false">string</type>
|
1961 |
</tag>
|
1962 |
-
<tag line="
|
1963 |
<type by_reference="false">string</type>
|
1964 |
</tag>
|
1965 |
</docblock>
|
1966 |
-
<argument line="
|
1967 |
<name>$string</name>
|
1968 |
<default><![CDATA[]]></default>
|
1969 |
<type/>
|
1970 |
</argument>
|
1971 |
</method>
|
1972 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
1973 |
<name>mla_iptc_metadata_value</name>
|
1974 |
<full_name>mla_iptc_metadata_value</full_name>
|
1975 |
-
<docblock line="
|
1976 |
<description><![CDATA[Parse one IPTC metadata field]]></description>
|
1977 |
<long-description><![CDATA[]]></long-description>
|
1978 |
-
<tag line="
|
1979 |
-
<tag line="
|
1980 |
<type by_reference="false">string</type>
|
1981 |
</tag>
|
1982 |
-
<tag line="
|
1983 |
<type by_reference="false">string</type>
|
1984 |
</tag>
|
1985 |
-
<tag line="
|
1986 |
<type by_reference="false">mixed</type>
|
1987 |
</tag>
|
1988 |
</docblock>
|
1989 |
-
<argument line="
|
1990 |
<name>$iptc_key</name>
|
1991 |
<default><![CDATA[]]></default>
|
1992 |
<type/>
|
1993 |
</argument>
|
1994 |
-
<argument line="
|
1995 |
<name>$item_metadata</name>
|
1996 |
<default><![CDATA[]]></default>
|
1997 |
<type/>
|
1998 |
</argument>
|
1999 |
</method>
|
2000 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
2001 |
<name>mla_exif_metadata_value</name>
|
2002 |
<full_name>mla_exif_metadata_value</full_name>
|
2003 |
-
<docblock line="
|
2004 |
<description><![CDATA[Parse one EXIF metadata field]]></description>
|
2005 |
<long-description><![CDATA[<p>Also handles the special pseudo-values 'ALL_EXIF' and 'ALL_IPTC'.</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">string</type>
|
2012 |
</tag>
|
2013 |
-
<tag line="
|
2014 |
<type by_reference="false">mixed</type>
|
2015 |
</tag>
|
2016 |
</docblock>
|
2017 |
-
<argument line="
|
2018 |
<name>$exif_key</name>
|
2019 |
<default><![CDATA[]]></default>
|
2020 |
<type/>
|
2021 |
</argument>
|
2022 |
-
<argument line="
|
2023 |
<name>$item_metadata</name>
|
2024 |
<default><![CDATA[]]></default>
|
2025 |
<type/>
|
2026 |
</argument>
|
2027 |
</method>
|
2028 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
2029 |
<name>mla_pdf_metadata_value</name>
|
2030 |
<full_name>mla_pdf_metadata_value</full_name>
|
2031 |
-
<docblock line="
|
2032 |
<description><![CDATA[Parse one PDF metadata field]]></description>
|
2033 |
<long-description><![CDATA[<p>Also handles the special pseudo-value 'ALL_PDF'.</p>]]></long-description>
|
2034 |
-
<tag line="
|
2035 |
-
<tag line="
|
2036 |
<type by_reference="false">string</type>
|
2037 |
</tag>
|
2038 |
-
<tag line="
|
2039 |
<type by_reference="false">string</type>
|
2040 |
</tag>
|
2041 |
-
<tag line="
|
2042 |
<type by_reference="false">mixed</type>
|
2043 |
</tag>
|
2044 |
</docblock>
|
2045 |
-
<argument line="
|
2046 |
<name>$pdf_key</name>
|
2047 |
<default><![CDATA[]]></default>
|
2048 |
<type/>
|
2049 |
</argument>
|
2050 |
-
<argument line="
|
2051 |
<name>$item_metadata</name>
|
2052 |
<default><![CDATA[]]></default>
|
2053 |
<type/>
|
2054 |
</argument>
|
2055 |
</method>
|
2056 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
2057 |
<name>_rational_to_decimal</name>
|
2058 |
<full_name>_rational_to_decimal</full_name>
|
2059 |
-
<docblock line="
|
2060 |
<description><![CDATA[Convert an EXIF GPS rational value to a PHP float value]]></description>
|
2061 |
<long-description><![CDATA[]]></long-description>
|
2062 |
-
<tag line="
|
2063 |
-
<tag line="
|
2064 |
<type by_reference="false">array</type>
|
2065 |
</tag>
|
2066 |
-
<tag line="
|
2067 |
<type by_reference="false">float</type>
|
2068 |
</tag>
|
2069 |
</docblock>
|
2070 |
-
<argument line="
|
2071 |
<name>$rational</name>
|
2072 |
<default><![CDATA[]]></default>
|
2073 |
<type/>
|
2074 |
</argument>
|
2075 |
</method>
|
2076 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
2077 |
<name>mla_IPTC_EXIF_error_handler</name>
|
2078 |
<full_name>mla_IPTC_EXIF_error_handler</full_name>
|
2079 |
-
<docblock line="
|
2080 |
<description><![CDATA[Intercept IPTC and EXIF parse errors]]></description>
|
2081 |
<long-description><![CDATA[]]></long-description>
|
2082 |
-
<tag line="
|
2083 |
-
<tag line="
|
2084 |
<type by_reference="false">int</type>
|
2085 |
</tag>
|
2086 |
-
<tag line="
|
2087 |
<type by_reference="false">string</type>
|
2088 |
</tag>
|
2089 |
-
<tag line="
|
2090 |
<type by_reference="false">string</type>
|
2091 |
</tag>
|
2092 |
-
<tag line="
|
2093 |
<type by_reference="false">int</type>
|
2094 |
</tag>
|
2095 |
-
<tag line="
|
2096 |
<type by_reference="false">boolean</type>
|
2097 |
</tag>
|
2098 |
</docblock>
|
2099 |
-
<argument line="
|
2100 |
<name>$type</name>
|
2101 |
<default><![CDATA[]]></default>
|
2102 |
<type/>
|
2103 |
</argument>
|
2104 |
-
<argument line="
|
2105 |
<name>$string</name>
|
2106 |
<default><![CDATA[]]></default>
|
2107 |
<type/>
|
2108 |
</argument>
|
2109 |
-
<argument line="
|
2110 |
<name>$file</name>
|
2111 |
<default><![CDATA[]]></default>
|
2112 |
<type/>
|
2113 |
</argument>
|
2114 |
-
<argument line="
|
2115 |
<name>$line</name>
|
2116 |
<default><![CDATA[]]></default>
|
2117 |
<type/>
|
2118 |
</argument>
|
2119 |
</method>
|
2120 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
2121 |
<name>mla_fetch_attachment_image_metadata</name>
|
2122 |
<full_name>mla_fetch_attachment_image_metadata</full_name>
|
2123 |
-
<docblock line="
|
2124 |
<description><![CDATA[Fetch and filter IPTC and EXIF or PDF metadata for an image attachment]]></description>
|
2125 |
<long-description><![CDATA[]]></long-description>
|
2126 |
-
<tag line="
|
2127 |
-
<tag line="
|
2128 |
<type by_reference="false">int</type>
|
2129 |
</tag>
|
2130 |
-
<tag line="
|
2131 |
<type by_reference="false">string</type>
|
2132 |
</tag>
|
2133 |
-
<tag line="
|
2134 |
<type by_reference="false">array</type>
|
2135 |
</tag>
|
2136 |
</docblock>
|
2137 |
-
<argument line="
|
2138 |
<name>$post_id</name>
|
2139 |
<default><![CDATA[]]></default>
|
2140 |
<type/>
|
2141 |
</argument>
|
2142 |
-
<argument line="
|
2143 |
<name>$path</name>
|
2144 |
<default><![CDATA['']]></default>
|
2145 |
<type/>
|
2146 |
</argument>
|
2147 |
</method>
|
2148 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
2149 |
<name>mla_update_wp_attachment_metadata</name>
|
2150 |
<full_name>mla_update_wp_attachment_metadata</full_name>
|
2151 |
-
<docblock line="
|
2152 |
<description><![CDATA[Update "meta:" data for a single attachment]]></description>
|
2153 |
<long-description><![CDATA[]]></long-description>
|
2154 |
-
<tag line="
|
2155 |
-
<tag line="
|
2156 |
<type by_reference="false">array</type>
|
2157 |
</tag>
|
2158 |
-
<tag line="
|
2159 |
<type by_reference="false">array</type>
|
2160 |
</tag>
|
2161 |
-
<tag line="
|
2162 |
<type by_reference="false">string</type>
|
2163 |
</tag>
|
2164 |
</docblock>
|
2165 |
-
<argument line="
|
2166 |
<name>$current_values</name>
|
2167 |
<default><![CDATA[]]></default>
|
2168 |
<type/>
|
2169 |
</argument>
|
2170 |
-
<argument line="
|
2171 |
<name>$new_meta</name>
|
2172 |
<default><![CDATA[]]></default>
|
2173 |
<type/>
|
2174 |
</argument>
|
2175 |
</method>
|
2176 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
2177 |
<name>mla_update_item_postmeta</name>
|
2178 |
<full_name>mla_update_item_postmeta</full_name>
|
2179 |
-
<docblock line="
|
2180 |
<description><![CDATA[Update custom field and "meta:" data for a single attachment]]></description>
|
2181 |
<long-description><![CDATA[]]></long-description>
|
2182 |
-
<tag line="
|
2183 |
-
<tag line="
|
2184 |
<type by_reference="false">int</type>
|
2185 |
</tag>
|
2186 |
-
<tag line="
|
2187 |
<type by_reference="false">array</type>
|
2188 |
</tag>
|
2189 |
-
<tag line="
|
2190 |
<type by_reference="false">string</type>
|
2191 |
</tag>
|
2192 |
</docblock>
|
2193 |
-
<argument line="
|
2194 |
<name>$post_id</name>
|
2195 |
<default><![CDATA[]]></default>
|
2196 |
<type/>
|
2197 |
</argument>
|
2198 |
-
<argument line="
|
2199 |
<name>$new_meta</name>
|
2200 |
<default><![CDATA[]]></default>
|
2201 |
<type/>
|
2202 |
</argument>
|
2203 |
</method>
|
2204 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
2205 |
<name>mla_update_single_item</name>
|
2206 |
<full_name>mla_update_single_item</full_name>
|
2207 |
-
<docblock line="
|
2208 |
<description><![CDATA[Update a single item; change the "post" data, taxonomy terms
|
2209 |
and meta data for a single attachment]]></description>
|
2210 |
<long-description><![CDATA[]]></long-description>
|
2211 |
-
<tag line="
|
2212 |
-
<tag line="
|
2213 |
<type by_reference="false">int</type>
|
2214 |
</tag>
|
2215 |
-
<tag line="
|
2216 |
<type by_reference="false">array</type>
|
2217 |
</tag>
|
2218 |
-
<tag line="
|
2219 |
<type by_reference="false">array</type>
|
2220 |
</tag>
|
2221 |
-
<tag line="
|
2222 |
<type by_reference="false">array</type>
|
2223 |
</tag>
|
2224 |
-
<tag line="
|
2225 |
<type by_reference="false">array</type>
|
2226 |
</tag>
|
2227 |
</docblock>
|
2228 |
-
<argument line="
|
2229 |
<name>$post_id</name>
|
2230 |
<default><![CDATA[]]></default>
|
2231 |
<type/>
|
2232 |
</argument>
|
2233 |
-
<argument line="
|
2234 |
<name>$new_data</name>
|
2235 |
<default><![CDATA[]]></default>
|
2236 |
<type/>
|
2237 |
</argument>
|
2238 |
-
<argument line="
|
2239 |
<name>$tax_input</name>
|
2240 |
<default><![CDATA[NULL]]></default>
|
2241 |
<type/>
|
2242 |
</argument>
|
2243 |
-
<argument line="
|
2244 |
<name>$tax_actions</name>
|
2245 |
<default><![CDATA[NULL]]></default>
|
2246 |
<type/>
|
2247 |
</argument>
|
2248 |
</method>
|
2249 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
2250 |
<name>_remove_tags</name>
|
2251 |
<full_name>_remove_tags</full_name>
|
2252 |
-
<docblock line="
|
2253 |
<description><![CDATA[Remove tags from a term ids list]]></description>
|
2254 |
<long-description><![CDATA[]]></long-description>
|
2255 |
-
<tag line="
|
2256 |
-
<tag line="
|
2257 |
<type by_reference="false">array</type>
|
2258 |
</tag>
|
2259 |
-
<tag line="
|
2260 |
<type by_reference="false">array</type>
|
2261 |
</tag>
|
2262 |
-
<tag line="
|
2263 |
<type by_reference="false">object</type>
|
2264 |
</tag>
|
2265 |
-
<tag line="
|
2266 |
<type by_reference="false">array</type>
|
2267 |
</tag>
|
2268 |
</docblock>
|
2269 |
-
<argument line="
|
2270 |
<name>$terms_before</name>
|
2271 |
<default><![CDATA[]]></default>
|
2272 |
<type/>
|
2273 |
</argument>
|
2274 |
-
<argument line="
|
2275 |
<name>$tags</name>
|
2276 |
<default><![CDATA[]]></default>
|
2277 |
<type/>
|
2278 |
</argument>
|
2279 |
-
<argument line="
|
2280 |
<name>$taxonomy_obj</name>
|
2281 |
<default><![CDATA[]]></default>
|
2282 |
<type/>
|
2283 |
</argument>
|
2284 |
</method>
|
2285 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
2286 |
<name>_hex_dump</name>
|
2287 |
<full_name>_hex_dump</full_name>
|
2288 |
-
<docblock line="
|
2289 |
<description><![CDATA[Format printable version of binary data]]></description>
|
2290 |
<long-description><![CDATA[]]></long-description>
|
2291 |
-
<tag line="
|
2292 |
-
<tag line="
|
2293 |
<type by_reference="false">string</type>
|
2294 |
</tag>
|
2295 |
-
<tag line="
|
2296 |
<type by_reference="false">integer</type>
|
2297 |
</tag>
|
2298 |
-
<tag line="
|
2299 |
<type by_reference="false">\intger</type>
|
2300 |
</tag>
|
2301 |
-
<tag line="
|
2302 |
<type by_reference="false">integer</type>
|
2303 |
</tag>
|
2304 |
-
<tag line="
|
2305 |
<type by_reference="false">string</type>
|
2306 |
</tag>
|
2307 |
</docblock>
|
2308 |
-
<argument line="
|
2309 |
<name>$data</name>
|
2310 |
<default><![CDATA[]]></default>
|
2311 |
<type/>
|
2312 |
</argument>
|
2313 |
-
<argument line="
|
2314 |
<name>$limit</name>
|
2315 |
<default><![CDATA[0]]></default>
|
2316 |
<type/>
|
2317 |
</argument>
|
2318 |
-
<argument line="
|
2319 |
<name>$bytes_per_row</name>
|
2320 |
<default><![CDATA[16]]></default>
|
2321 |
<type/>
|
2322 |
</argument>
|
2323 |
-
<argument line="
|
2324 |
<name>$offset</name>
|
2325 |
<default><![CDATA[-1]]></default>
|
2326 |
<type/>
|
@@ -2328,10 +2349,10 @@ and meta data for a single attachment]]></description>
|
|
2328 |
</method>
|
2329 |
</class>
|
2330 |
<markers>
|
2331 |
-
<todo line="
|
2332 |
</markers>
|
2333 |
</file>
|
2334 |
-
<file path="includes\class-mla-edit-media.php" hash="
|
2335 |
<docblock line="2">
|
2336 |
<description><![CDATA[Media Library Assistant Edit Media screen enhancements]]></description>
|
2337 |
<long-description><![CDATA[]]></long-description>
|
@@ -2387,15 +2408,15 @@ and meta data for a single attachment]]></description>
|
|
2387 |
</tag>
|
2388 |
</docblock>
|
2389 |
</constant>
|
2390 |
-
<property final="false" static="true" visibility="private" line="
|
2391 |
<name>$mla_references</name>
|
2392 |
<default><![CDATA[null]]></default>
|
2393 |
-
<docblock line="
|
2394 |
<description><![CDATA[Where-used values for the current item]]></description>
|
2395 |
<long-description><![CDATA[<p>This array contains the Featured/Inserted/Gallery/MLA Gallery references for the item.
|
2396 |
The array is built once each page load and cached for subsequent calls.</p>]]></long-description>
|
2397 |
-
<tag line="
|
2398 |
-
<tag line="
|
2399 |
<type by_reference="false">array</type>
|
2400 |
</tag>
|
2401 |
</docblock>
|
@@ -2444,405 +2465,405 @@ The array is built once each page load and cached for subsequent calls.</p>]]></
|
|
2444 |
<type/>
|
2445 |
</argument>
|
2446 |
</method>
|
2447 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
2448 |
<name>mla_post_updated_messages_filter</name>
|
2449 |
<full_name>mla_post_updated_messages_filter</full_name>
|
2450 |
-
<docblock line="
|
2451 |
<description><![CDATA[Adds mapping update messages for display at the top of the Edit Media screen.]]></description>
|
2452 |
<long-description><![CDATA[<p>Declared public because it is a filter.</p>]]></long-description>
|
2453 |
-
<tag line="
|
2454 |
-
<tag line="
|
2455 |
<type by_reference="false">array</type>
|
2456 |
</tag>
|
2457 |
-
<tag line="
|
2458 |
<type by_reference="false">array</type>
|
2459 |
</tag>
|
2460 |
</docblock>
|
2461 |
-
<argument line="
|
2462 |
<name>$messages</name>
|
2463 |
<default><![CDATA[]]></default>
|
2464 |
<type/>
|
2465 |
</argument>
|
2466 |
</method>
|
2467 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
2468 |
<name>mla_attachment_submitbox_action</name>
|
2469 |
<full_name>mla_attachment_submitbox_action</full_name>
|
2470 |
-
<docblock line="
|
2471 |
<description><![CDATA[Adds Last Modified date to the Submit box on the Edit Media screen.]]></description>
|
2472 |
<long-description><![CDATA[<p>Declared public because it is an action.</p>]]></long-description>
|
2473 |
-
<tag line="
|
2474 |
-
<tag line="
|
2475 |
<type by_reference="false">void</type>
|
2476 |
</tag>
|
2477 |
</docblock>
|
2478 |
</method>
|
2479 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
2480 |
<name>mla_add_meta_boxes_action</name>
|
2481 |
<full_name>mla_add_meta_boxes_action</full_name>
|
2482 |
-
<docblock line="
|
2483 |
<description><![CDATA[Registers meta boxes for the Edit Media screen.]]></description>
|
2484 |
<long-description><![CDATA[<p>Declared public because it is an action.</p>]]></long-description>
|
2485 |
-
<tag line="
|
2486 |
-
<tag line="
|
2487 |
<type by_reference="false">string</type>
|
2488 |
</tag>
|
2489 |
-
<tag line="
|
2490 |
<type by_reference="false">object</type>
|
2491 |
</tag>
|
2492 |
-
<tag line="
|
2493 |
<type by_reference="false">void</type>
|
2494 |
</tag>
|
2495 |
</docblock>
|
2496 |
-
<argument line="
|
2497 |
<name>$post_type</name>
|
2498 |
<default><![CDATA['unknown']]></default>
|
2499 |
<type/>
|
2500 |
</argument>
|
2501 |
-
<argument line="
|
2502 |
<name>$post</name>
|
2503 |
<default><![CDATA[NULL]]></default>
|
2504 |
<type/>
|
2505 |
</argument>
|
2506 |
</method>
|
2507 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
2508 |
<name>mla_edit_add_help_tab</name>
|
2509 |
<full_name>mla_edit_add_help_tab</full_name>
|
2510 |
-
<docblock line="
|
2511 |
<description><![CDATA[Add contextual help tabs to the WordPress Edit Media page]]></description>
|
2512 |
<long-description><![CDATA[]]></long-description>
|
2513 |
-
<tag line="
|
2514 |
-
<tag line="
|
2515 |
<type by_reference="false">string</type>
|
2516 |
</tag>
|
2517 |
-
<tag line="
|
2518 |
<type by_reference="false">string</type>
|
2519 |
</tag>
|
2520 |
-
<tag line="
|
2521 |
<type by_reference="false">void</type>
|
2522 |
</tag>
|
2523 |
</docblock>
|
2524 |
-
<argument line="
|
2525 |
<name>$admin_title</name>
|
2526 |
<default><![CDATA[]]></default>
|
2527 |
<type/>
|
2528 |
</argument>
|
2529 |
-
<argument line="
|
2530 |
<name>$title</name>
|
2531 |
<default><![CDATA[]]></default>
|
2532 |
<type/>
|
2533 |
</argument>
|
2534 |
</method>
|
2535 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
2536 |
<name>mla_parent_info_handler</name>
|
2537 |
<full_name>mla_parent_info_handler</full_name>
|
2538 |
-
<docblock line="
|
2539 |
<description><![CDATA[Renders the Parent Info meta box on the Edit Media page.]]></description>
|
2540 |
<long-description><![CDATA[<p>Declared public because it is a callback function.</p>]]></long-description>
|
2541 |
-
<tag line="
|
2542 |
-
<tag line="
|
2543 |
<type by_reference="false">object</type>
|
2544 |
</tag>
|
2545 |
-
<tag line="
|
2546 |
<type by_reference="false">void</type>
|
2547 |
</tag>
|
2548 |
</docblock>
|
2549 |
-
<argument line="
|
2550 |
<name>$post</name>
|
2551 |
<default><![CDATA[]]></default>
|
2552 |
<type/>
|
2553 |
</argument>
|
2554 |
</method>
|
2555 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
2556 |
<name>mla_menu_order_handler</name>
|
2557 |
<full_name>mla_menu_order_handler</full_name>
|
2558 |
-
<docblock line="
|
2559 |
<description><![CDATA[Renders the Menu Order meta box on the Edit Media page.]]></description>
|
2560 |
<long-description><![CDATA[<p>Declared public because it is a callback function.</p>]]></long-description>
|
2561 |
-
<tag line="
|
2562 |
-
<tag line="
|
2563 |
<type by_reference="false">object</type>
|
2564 |
</tag>
|
2565 |
-
<tag line="
|
2566 |
<type by_reference="false">void</type>
|
2567 |
</tag>
|
2568 |
</docblock>
|
2569 |
-
<argument line="
|
2570 |
<name>$post</name>
|
2571 |
<default><![CDATA[]]></default>
|
2572 |
<type/>
|
2573 |
</argument>
|
2574 |
</method>
|
2575 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
2576 |
<name>mla_image_metadata_handler</name>
|
2577 |
<full_name>mla_image_metadata_handler</full_name>
|
2578 |
-
<docblock line="
|
2579 |
<description><![CDATA[Renders the Image Metadata meta box on the Edit Media page.]]></description>
|
2580 |
<long-description><![CDATA[<p>Declared public because it is a callback function.</p>]]></long-description>
|
2581 |
-
<tag line="
|
2582 |
-
<tag line="
|
2583 |
<type by_reference="false">object</type>
|
2584 |
</tag>
|
2585 |
-
<tag line="
|
2586 |
<type by_reference="false">void</type>
|
2587 |
</tag>
|
2588 |
</docblock>
|
2589 |
-
<argument line="
|
2590 |
<name>$post</name>
|
2591 |
<default><![CDATA[]]></default>
|
2592 |
<type/>
|
2593 |
</argument>
|
2594 |
</method>
|
2595 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
2596 |
<name>mla_featured_in_handler</name>
|
2597 |
<full_name>mla_featured_in_handler</full_name>
|
2598 |
-
<docblock line="
|
2599 |
<description><![CDATA[Renders the Featured in meta box on the Edit Media page.]]></description>
|
2600 |
<long-description><![CDATA[<p>Declared public because it is a callback function.</p>]]></long-description>
|
2601 |
-
<tag line="
|
2602 |
-
<tag line="
|
2603 |
<type by_reference="false">object</type>
|
2604 |
</tag>
|
2605 |
-
<tag line="
|
2606 |
<type by_reference="false">void</type>
|
2607 |
</tag>
|
2608 |
</docblock>
|
2609 |
-
<argument line="
|
2610 |
<name>$post</name>
|
2611 |
<default><![CDATA[]]></default>
|
2612 |
<type/>
|
2613 |
</argument>
|
2614 |
</method>
|
2615 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
2616 |
<name>mla_inserted_in_handler</name>
|
2617 |
<full_name>mla_inserted_in_handler</full_name>
|
2618 |
-
<docblock line="
|
2619 |
<description><![CDATA[Renders the Inserted in meta box on the Edit Media page.]]></description>
|
2620 |
<long-description><![CDATA[<p>Declared public because it is a callback function.</p>]]></long-description>
|
2621 |
-
<tag line="
|
2622 |
-
<tag line="
|
2623 |
<type by_reference="false">object</type>
|
2624 |
</tag>
|
2625 |
-
<tag line="
|
2626 |
<type by_reference="false">void</type>
|
2627 |
</tag>
|
2628 |
</docblock>
|
2629 |
-
<argument line="
|
2630 |
<name>$post</name>
|
2631 |
<default><![CDATA[]]></default>
|
2632 |
<type/>
|
2633 |
</argument>
|
2634 |
</method>
|
2635 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
2636 |
<name>mla_gallery_in_handler</name>
|
2637 |
<full_name>mla_gallery_in_handler</full_name>
|
2638 |
-
<docblock line="
|
2639 |
<description><![CDATA[Renders the Gallery in meta box on the Edit Media page.]]></description>
|
2640 |
<long-description><![CDATA[<p>Declared public because it is a callback function.</p>]]></long-description>
|
2641 |
-
<tag line="
|
2642 |
-
<tag line="
|
2643 |
<type by_reference="false">object</type>
|
2644 |
</tag>
|
2645 |
-
<tag line="
|
2646 |
<type by_reference="false">void</type>
|
2647 |
</tag>
|
2648 |
</docblock>
|
2649 |
-
<argument line="
|
2650 |
<name>$post</name>
|
2651 |
<default><![CDATA[]]></default>
|
2652 |
<type/>
|
2653 |
</argument>
|
2654 |
</method>
|
2655 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
2656 |
<name>mla_mla_gallery_in_handler</name>
|
2657 |
<full_name>mla_mla_gallery_in_handler</full_name>
|
2658 |
-
<docblock line="
|
2659 |
<description><![CDATA[Renders the Gallery in meta box on the Edit Media page.]]></description>
|
2660 |
<long-description><![CDATA[<p>Declared public because it is a callback function.</p>]]></long-description>
|
2661 |
-
<tag line="
|
2662 |
-
<tag line="
|
2663 |
<type by_reference="false">object</type>
|
2664 |
</tag>
|
2665 |
-
<tag line="
|
2666 |
<type by_reference="false">void</type>
|
2667 |
</tag>
|
2668 |
</docblock>
|
2669 |
-
<argument line="
|
2670 |
<name>$post</name>
|
2671 |
<default><![CDATA[]]></default>
|
2672 |
<type/>
|
2673 |
</argument>
|
2674 |
</method>
|
2675 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
2676 |
<name>mla_edit_attachment_action</name>
|
2677 |
<full_name>mla_edit_attachment_action</full_name>
|
2678 |
-
<docblock line="
|
2679 |
<description><![CDATA[Saves updates from the Edit Media screen.]]></description>
|
2680 |
<long-description><![CDATA[<p>Declared public because it is an action.</p>]]></long-description>
|
2681 |
-
<tag line="
|
2682 |
-
<tag line="
|
2683 |
<type by_reference="false">integer</type>
|
2684 |
</tag>
|
2685 |
-
<tag line="
|
2686 |
<type by_reference="false">void</type>
|
2687 |
</tag>
|
2688 |
</docblock>
|
2689 |
-
<argument line="
|
2690 |
<name>$post_ID</name>
|
2691 |
<default><![CDATA[]]></default>
|
2692 |
<type/>
|
2693 |
</argument>
|
2694 |
</method>
|
2695 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
2696 |
<name>_mla_ajax_add_flat_term</name>
|
2697 |
<full_name>_mla_ajax_add_flat_term</full_name>
|
2698 |
-
<docblock line="
|
2699 |
<description><![CDATA[Add flat taxonomy term from "checklist" meta box on the Media Manager Modal Window]]></description>
|
2700 |
<long-description><![CDATA[<p>Adapted from the WordPress post_categories_meta_box() in /wp-admin/includes/meta-boxes.php.</p>]]></long-description>
|
2701 |
-
<tag line="
|
2702 |
-
<tag line="
|
2703 |
<type by_reference="false">string</type>
|
2704 |
</tag>
|
2705 |
-
<tag line="
|
2706 |
<type by_reference="false">void</type>
|
2707 |
</tag>
|
2708 |
</docblock>
|
2709 |
-
<argument line="
|
2710 |
<name>$key</name>
|
2711 |
<default><![CDATA[]]></default>
|
2712 |
<type/>
|
2713 |
</argument>
|
2714 |
</method>
|
2715 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
2716 |
<name>mla_checklist_meta_box</name>
|
2717 |
<full_name>mla_checklist_meta_box</full_name>
|
2718 |
-
<docblock line="
|
2719 |
<description><![CDATA[Display taxonomy "checklist" form fields]]></description>
|
2720 |
<long-description><![CDATA[<p>Adapted from /wp-admin/includes/ajax-actions.php function _wp_ajax_add_hierarchical_term().
|
2721 |
Includes the "? Search" area to filter the term checklist by entering part
|
2722 |
or all of a word/phrase in the term label.
|
2723 |
Output to the Media/Edit Media screen and to the Media Manager Modal Window.</p>]]></long-description>
|
2724 |
-
<tag line="
|
2725 |
-
<tag line="
|
2726 |
<type by_reference="false">object</type>
|
2727 |
</tag>
|
2728 |
-
<tag line="
|
2729 |
<type by_reference="false">array</type>
|
2730 |
</tag>
|
2731 |
-
<tag line="
|
2732 |
<type by_reference="false">void</type>
|
2733 |
</tag>
|
2734 |
</docblock>
|
2735 |
-
<argument line="
|
2736 |
<name>$target_post</name>
|
2737 |
<default><![CDATA[]]></default>
|
2738 |
<type/>
|
2739 |
</argument>
|
2740 |
-
<argument line="
|
2741 |
<name>$box</name>
|
2742 |
<default><![CDATA[]]></default>
|
2743 |
<type/>
|
2744 |
</argument>
|
2745 |
</method>
|
2746 |
</class>
|
2747 |
-
<class final="false" abstract="false" namespace="global" line="
|
2748 |
<extends>\Walker_Category</extends>
|
2749 |
<name>MLA_Checklist_Walker</name>
|
2750 |
<full_name>\MLA_Checklist_Walker</full_name>
|
2751 |
-
<docblock line="
|
2752 |
<description><![CDATA[Class MLA (Media Library Assistant) Checklist Walker replaces term_id with slug in checklist output]]></description>
|
2753 |
<long-description><![CDATA[<p>This walker is used to build the meta boxes for flat taxonomies, e.g., Tags, Att. Tags.
|
2754 |
Class Walker_Category is defined in /wp-includes/category-template.php.
|
2755 |
Class Walker is defined in /wp-includes/class-wp-walker.php.</p>]]></long-description>
|
2756 |
-
<tag line="
|
2757 |
-
<tag line="
|
2758 |
</docblock>
|
2759 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
2760 |
<name>start_el</name>
|
2761 |
<full_name>start_el</full_name>
|
2762 |
-
<docblock line="
|
2763 |
<description><![CDATA[Start the element output.]]></description>
|
2764 |
<long-description><![CDATA[]]></long-description>
|
2765 |
-
<tag line="
|
2766 |
-
<tag line="
|
2767 |
-
<tag line="
|
2768 |
<type by_reference="false">string</type>
|
2769 |
</tag>
|
2770 |
-
<tag line="
|
2771 |
<type by_reference="false">object</type>
|
2772 |
</tag>
|
2773 |
-
<tag line="
|
2774 |
<type by_reference="false">int</type>
|
2775 |
</tag>
|
2776 |
-
<tag line="
|
2777 |
<type by_reference="false">array</type>
|
2778 |
</tag>
|
2779 |
-
<tag line="
|
2780 |
<type by_reference="false">int</type>
|
2781 |
</tag>
|
2782 |
</docblock>
|
2783 |
-
<argument line="
|
2784 |
<name>$output</name>
|
2785 |
<default><![CDATA[]]></default>
|
2786 |
<type/>
|
2787 |
</argument>
|
2788 |
-
<argument line="
|
2789 |
<name>$taxonomy_object</name>
|
2790 |
<default><![CDATA[]]></default>
|
2791 |
<type/>
|
2792 |
</argument>
|
2793 |
-
<argument line="
|
2794 |
<name>$depth</name>
|
2795 |
<default><![CDATA[0]]></default>
|
2796 |
<type/>
|
2797 |
</argument>
|
2798 |
-
<argument line="
|
2799 |
<name>$args</name>
|
2800 |
<default><![CDATA[array()]]></default>
|
2801 |
<type/>
|
2802 |
</argument>
|
2803 |
-
<argument line="
|
2804 |
<name>$id</name>
|
2805 |
<default><![CDATA[0]]></default>
|
2806 |
<type/>
|
2807 |
</argument>
|
2808 |
</method>
|
2809 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
2810 |
<name>end_el</name>
|
2811 |
<full_name>end_el</full_name>
|
2812 |
-
<docblock line="
|
2813 |
<description><![CDATA[Ends the element output, if needed.]]></description>
|
2814 |
<long-description><![CDATA[]]></long-description>
|
2815 |
-
<tag line="
|
2816 |
-
<tag line="
|
2817 |
-
<tag line="
|
2818 |
<type by_reference="false">string</type>
|
2819 |
</tag>
|
2820 |
-
<tag line="
|
2821 |
<type by_reference="false">object</type>
|
2822 |
</tag>
|
2823 |
-
<tag line="
|
2824 |
<type by_reference="false">int</type>
|
2825 |
</tag>
|
2826 |
-
<tag line="
|
2827 |
<type by_reference="false">array</type>
|
2828 |
</tag>
|
2829 |
</docblock>
|
2830 |
-
<argument line="
|
2831 |
<name>$output</name>
|
2832 |
<default><![CDATA[]]></default>
|
2833 |
<type/>
|
2834 |
</argument>
|
2835 |
-
<argument line="
|
2836 |
<name>$category</name>
|
2837 |
<default><![CDATA[]]></default>
|
2838 |
<type/>
|
2839 |
</argument>
|
2840 |
-
<argument line="
|
2841 |
<name>$depth</name>
|
2842 |
<default><![CDATA[0]]></default>
|
2843 |
<type/>
|
2844 |
</argument>
|
2845 |
-
<argument line="
|
2846 |
<name>$args</name>
|
2847 |
<default><![CDATA[array()]]></default>
|
2848 |
<type/>
|
@@ -2850,7 +2871,7 @@ Class Walker is defined in /wp-includes/class-wp-walker.php.</p>]]></long-descri
|
|
2850 |
</method>
|
2851 |
</class>
|
2852 |
</file>
|
2853 |
-
<file path="includes\class-mla-list-table.php" hash="
|
2854 |
<docblock line="2">
|
2855 |
<description><![CDATA[Media Library Assistant extended List Table class]]></description>
|
2856 |
<long-description><![CDATA[]]></long-description>
|
@@ -3071,7 +3092,7 @@ to affect the "screen options" setup.</p>]]></long-description>
|
|
3071 |
</tag>
|
3072 |
</docblock>
|
3073 |
</method>
|
3074 |
-
<method final="false" abstract="false" static="
|
3075 |
<name>mla_views_media_page_mla_menu_filter</name>
|
3076 |
<full_name>mla_views_media_page_mla_menu_filter</full_name>
|
3077 |
<docblock line="297">
|
@@ -3093,764 +3114,838 @@ to affect the "screen options" setup.</p>]]></long-description>
|
|
3093 |
<type/>
|
3094 |
</argument>
|
3095 |
</method>
|
3096 |
-
<method final="false" abstract="false" static="
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3097 |
<name>mla_localize_default_columns_array</name>
|
3098 |
<full_name>mla_localize_default_columns_array</full_name>
|
3099 |
-
<docblock line="
|
3100 |
<description><![CDATA[Builds the $default_columns array with translated source texts.]]></description>
|
3101 |
<long-description><![CDATA[<p>Called from MLA:mla_plugins_loaded_action because the $default_columns information might be
|
3102 |
accessed from "front end" posts/pages.</p>]]></long-description>
|
3103 |
-
<tag line="
|
3104 |
-
<tag line="
|
3105 |
<type by_reference="false">void</type>
|
3106 |
</tag>
|
3107 |
</docblock>
|
3108 |
</method>
|
3109 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
3110 |
<name>mla_admin_init_action</name>
|
3111 |
<full_name>mla_admin_init_action</full_name>
|
3112 |
-
<docblock line="
|
3113 |
<description><![CDATA[Adds support for taxonomy and custom field columns]]></description>
|
3114 |
<long-description><![CDATA[<p>Called in the admin_init action because the list_table object isn't
|
3115 |
created in time to affect the "screen options" setup.</p>]]></long-description>
|
3116 |
-
<tag line="
|
3117 |
-
<tag line="
|
3118 |
<type by_reference="false">void</type>
|
3119 |
</tag>
|
3120 |
</docblock>
|
3121 |
</method>
|
3122 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3123 |
<name>__construct</name>
|
3124 |
<full_name>__construct</full_name>
|
3125 |
-
<docblock line="
|
3126 |
<description><![CDATA[Initializes some properties from $_REQUEST variables, then
|
3127 |
calls the parent constructor to set some default configs.]]></description>
|
3128 |
<long-description><![CDATA[]]></long-description>
|
3129 |
-
<tag line="
|
3130 |
-
<tag line="
|
3131 |
<type by_reference="false">void</type>
|
3132 |
</tag>
|
3133 |
</docblock>
|
3134 |
</method>
|
3135 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3136 |
<name>column_default</name>
|
3137 |
<full_name>column_default</full_name>
|
3138 |
-
<docblock line="
|
3139 |
<description><![CDATA[Supply a column value if no column-specific function has been defined]]></description>
|
3140 |
<long-description><![CDATA[<p>Called when the parent class can't find a method specifically built for a given column.
|
3141 |
The taxonomy and custom field columns are handled here. All other columns should have
|
3142 |
a specific method, so this function returns a troubleshooting message.</p>]]></long-description>
|
3143 |
-
<tag line="
|
3144 |
-
<tag line="
|
3145 |
<type by_reference="false">array</type>
|
3146 |
</tag>
|
3147 |
-
<tag line="
|
3148 |
<type by_reference="false">array</type>
|
3149 |
</tag>
|
3150 |
-
<tag line="
|
3151 |
<type by_reference="false">string</type>
|
3152 |
</tag>
|
3153 |
</docblock>
|
3154 |
-
<argument line="
|
3155 |
<name>$item</name>
|
3156 |
<default><![CDATA[]]></default>
|
3157 |
<type/>
|
3158 |
</argument>
|
3159 |
-
<argument line="
|
3160 |
<name>$column_name</name>
|
3161 |
<default><![CDATA[]]></default>
|
3162 |
<type/>
|
3163 |
</argument>
|
3164 |
</method>
|
3165 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3166 |
<name>column_cb</name>
|
3167 |
<full_name>column_cb</full_name>
|
3168 |
-
<docblock line="
|
3169 |
<description><![CDATA[Displays checkboxes for using bulk actions.]]></description>
|
3170 |
<long-description><![CDATA[<p>The 'cb' column
|
3171 |
is given special treatment when columns are processed.</p>]]></long-description>
|
3172 |
-
<tag line="
|
3173 |
-
<tag line="
|
3174 |
<type by_reference="false">array</type>
|
3175 |
</tag>
|
3176 |
-
<tag line="
|
3177 |
<type by_reference="false">string</type>
|
3178 |
</tag>
|
3179 |
</docblock>
|
3180 |
-
<argument line="
|
3181 |
<name>$item</name>
|
3182 |
<default><![CDATA[]]></default>
|
3183 |
<type/>
|
3184 |
</argument>
|
3185 |
</method>
|
3186 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3187 |
<name>column_icon</name>
|
3188 |
<full_name>column_icon</full_name>
|
3189 |
-
<docblock line="
|
3190 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3191 |
<long-description><![CDATA[]]></long-description>
|
3192 |
-
<tag line="
|
3193 |
-
<tag line="
|
3194 |
<type by_reference="false">array</type>
|
3195 |
</tag>
|
3196 |
-
<tag line="
|
3197 |
<type by_reference="false">string</type>
|
3198 |
</tag>
|
3199 |
</docblock>
|
3200 |
-
<argument line="
|
3201 |
<name>$item</name>
|
3202 |
<default><![CDATA[]]></default>
|
3203 |
<type/>
|
3204 |
</argument>
|
3205 |
</method>
|
3206 |
-
<method final="false" abstract="false" static="false" visibility="private" namespace="global" line="
|
3207 |
<name>_build_rollover_actions</name>
|
3208 |
<full_name>_build_rollover_actions</full_name>
|
3209 |
-
<docblock line="
|
3210 |
<description><![CDATA[Add rollover actions to exactly one of the following displayed columns:
|
3211 |
'ID_parent', 'title_name', 'post_title', 'post_name']]></description>
|
3212 |
<long-description><![CDATA[]]></long-description>
|
3213 |
-
<tag line="
|
3214 |
-
<tag line="
|
3215 |
<type by_reference="false">object</type>
|
3216 |
</tag>
|
3217 |
-
<tag line="
|
3218 |
<type by_reference="false">string</type>
|
3219 |
</tag>
|
3220 |
-
<tag line="
|
3221 |
<type by_reference="false">array</type>
|
3222 |
</tag>
|
3223 |
</docblock>
|
3224 |
-
<argument line="
|
3225 |
<name>$item</name>
|
3226 |
<default><![CDATA[]]></default>
|
3227 |
<type/>
|
3228 |
</argument>
|
3229 |
-
<argument line="
|
3230 |
<name>$column</name>
|
3231 |
<default><![CDATA[]]></default>
|
3232 |
<type/>
|
3233 |
</argument>
|
3234 |
</method>
|
3235 |
-
<method final="false" abstract="false" static="false" visibility="private" namespace="global" line="
|
3236 |
<name>_build_inline_data</name>
|
3237 |
<full_name>_build_inline_data</full_name>
|
3238 |
-
<docblock line="
|
3239 |
<description><![CDATA[Add hidden fields with the data for use in the inline editor]]></description>
|
3240 |
<long-description><![CDATA[]]></long-description>
|
3241 |
-
<tag line="
|
3242 |
-
<tag line="
|
3243 |
<type by_reference="false">object</type>
|
3244 |
</tag>
|
3245 |
-
<tag line="
|
3246 |
<type by_reference="false">string</type>
|
3247 |
</tag>
|
3248 |
</docblock>
|
3249 |
-
<argument line="
|
3250 |
<name>$item</name>
|
3251 |
<default><![CDATA[]]></default>
|
3252 |
<type/>
|
3253 |
</argument>
|
3254 |
</method>
|
3255 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3256 |
<name>column_ID_parent</name>
|
3257 |
<full_name>column_ID_parent</full_name>
|
3258 |
-
<docblock line="
|
3259 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3260 |
<long-description><![CDATA[]]></long-description>
|
3261 |
-
<tag line="
|
3262 |
-
<tag line="
|
3263 |
<type by_reference="false">array</type>
|
3264 |
</tag>
|
3265 |
-
<tag line="
|
3266 |
<type by_reference="false">string</type>
|
3267 |
</tag>
|
3268 |
</docblock>
|
3269 |
-
<argument line="
|
3270 |
<name>$item</name>
|
3271 |
<default><![CDATA[]]></default>
|
3272 |
<type/>
|
3273 |
</argument>
|
3274 |
</method>
|
3275 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3276 |
<name>column_title_name</name>
|
3277 |
<full_name>column_title_name</full_name>
|
3278 |
-
<docblock line="
|
3279 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3280 |
<long-description><![CDATA[]]></long-description>
|
3281 |
-
<tag line="
|
3282 |
-
<tag line="
|
3283 |
<type by_reference="false">array</type>
|
3284 |
</tag>
|
3285 |
-
<tag line="
|
3286 |
<type by_reference="false">string</type>
|
3287 |
</tag>
|
3288 |
</docblock>
|
3289 |
-
<argument line="
|
3290 |
<name>$item</name>
|
3291 |
<default><![CDATA[]]></default>
|
3292 |
<type/>
|
3293 |
</argument>
|
3294 |
</method>
|
3295 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3296 |
<name>column_post_title</name>
|
3297 |
<full_name>column_post_title</full_name>
|
3298 |
-
<docblock line="
|
3299 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3300 |
<long-description><![CDATA[]]></long-description>
|
3301 |
-
<tag line="
|
3302 |
-
<tag line="
|
3303 |
<type by_reference="false">array</type>
|
3304 |
</tag>
|
3305 |
-
<tag line="
|
3306 |
<type by_reference="false">string</type>
|
3307 |
</tag>
|
3308 |
</docblock>
|
3309 |
-
<argument line="
|
3310 |
<name>$item</name>
|
3311 |
<default><![CDATA[]]></default>
|
3312 |
<type/>
|
3313 |
</argument>
|
3314 |
</method>
|
3315 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3316 |
<name>column_post_name</name>
|
3317 |
<full_name>column_post_name</full_name>
|
3318 |
-
<docblock line="
|
3319 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3320 |
<long-description><![CDATA[]]></long-description>
|
3321 |
-
<tag line="
|
3322 |
-
<tag line="
|
3323 |
<type by_reference="false">array</type>
|
3324 |
</tag>
|
3325 |
-
<tag line="
|
3326 |
<type by_reference="false">string</type>
|
3327 |
</tag>
|
3328 |
</docblock>
|
3329 |
-
<argument line="
|
3330 |
<name>$item</name>
|
3331 |
<default><![CDATA[]]></default>
|
3332 |
<type/>
|
3333 |
</argument>
|
3334 |
</method>
|
3335 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3336 |
<name>column_parent</name>
|
3337 |
<full_name>column_parent</full_name>
|
3338 |
-
<docblock line="
|
3339 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3340 |
<long-description><![CDATA[]]></long-description>
|
3341 |
-
<tag line="
|
3342 |
-
<tag line="
|
3343 |
<type by_reference="false">array</type>
|
3344 |
</tag>
|
3345 |
-
<tag line="
|
3346 |
<type by_reference="false">string</type>
|
3347 |
</tag>
|
3348 |
</docblock>
|
3349 |
-
<argument line="
|
3350 |
<name>$item</name>
|
3351 |
<default><![CDATA[]]></default>
|
3352 |
<type/>
|
3353 |
</argument>
|
3354 |
</method>
|
3355 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3356 |
<name>column_menu_order</name>
|
3357 |
<full_name>column_menu_order</full_name>
|
3358 |
-
<docblock line="
|
3359 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3360 |
<long-description><![CDATA[]]></long-description>
|
3361 |
-
<tag line="
|
3362 |
-
<tag line="
|
3363 |
<type by_reference="false">array</type>
|
3364 |
</tag>
|
3365 |
-
<tag line="
|
3366 |
<type by_reference="false">string</type>
|
3367 |
</tag>
|
3368 |
</docblock>
|
3369 |
-
<argument line="
|
3370 |
<name>$item</name>
|
3371 |
<default><![CDATA[]]></default>
|
3372 |
<type/>
|
3373 |
</argument>
|
3374 |
</method>
|
3375 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3376 |
<name>column_featured</name>
|
3377 |
<full_name>column_featured</full_name>
|
3378 |
-
<docblock line="
|
3379 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3380 |
<long-description><![CDATA[]]></long-description>
|
3381 |
-
<tag line="
|
3382 |
-
<tag line="
|
3383 |
<type by_reference="false">array</type>
|
3384 |
</tag>
|
3385 |
-
<tag line="
|
3386 |
<type by_reference="false">string</type>
|
3387 |
</tag>
|
3388 |
</docblock>
|
3389 |
-
<argument line="
|
3390 |
<name>$item</name>
|
3391 |
<default><![CDATA[]]></default>
|
3392 |
<type/>
|
3393 |
</argument>
|
3394 |
</method>
|
3395 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3396 |
<name>column_inserted</name>
|
3397 |
<full_name>column_inserted</full_name>
|
3398 |
-
<docblock line="
|
3399 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3400 |
<long-description><![CDATA[]]></long-description>
|
3401 |
-
<tag line="
|
3402 |
-
<tag line="
|
3403 |
<type by_reference="false">array</type>
|
3404 |
</tag>
|
3405 |
-
<tag line="
|
3406 |
<type by_reference="false">string</type>
|
3407 |
</tag>
|
3408 |
</docblock>
|
3409 |
-
<argument line="
|
3410 |
<name>$item</name>
|
3411 |
<default><![CDATA[]]></default>
|
3412 |
<type/>
|
3413 |
</argument>
|
3414 |
</method>
|
3415 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3416 |
<name>column_galleries</name>
|
3417 |
<full_name>column_galleries</full_name>
|
3418 |
-
<docblock line="
|
3419 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3420 |
<long-description><![CDATA[]]></long-description>
|
3421 |
-
<tag line="
|
3422 |
-
<tag line="
|
3423 |
<type by_reference="false">array</type>
|
3424 |
</tag>
|
3425 |
-
<tag line="
|
3426 |
<type by_reference="false">string</type>
|
3427 |
</tag>
|
3428 |
</docblock>
|
3429 |
-
<argument line="
|
3430 |
<name>$item</name>
|
3431 |
<default><![CDATA[]]></default>
|
3432 |
<type/>
|
3433 |
</argument>
|
3434 |
</method>
|
3435 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3436 |
<name>column_mla_galleries</name>
|
3437 |
<full_name>column_mla_galleries</full_name>
|
3438 |
-
<docblock line="
|
3439 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3440 |
<long-description><![CDATA[]]></long-description>
|
3441 |
-
<tag line="
|
3442 |
-
<tag line="
|
3443 |
<type by_reference="false">array</type>
|
3444 |
</tag>
|
3445 |
-
<tag line="
|
3446 |
<type by_reference="false">string</type>
|
3447 |
</tag>
|
3448 |
</docblock>
|
3449 |
-
<argument line="
|
3450 |
<name>$item</name>
|
3451 |
<default><![CDATA[]]></default>
|
3452 |
<type/>
|
3453 |
</argument>
|
3454 |
</method>
|
3455 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3456 |
<name>column_alt_text</name>
|
3457 |
<full_name>column_alt_text</full_name>
|
3458 |
-
<docblock line="
|
3459 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3460 |
<long-description><![CDATA[]]></long-description>
|
3461 |
-
<tag line="
|
3462 |
-
<tag line="
|
3463 |
<type by_reference="false">array</type>
|
3464 |
</tag>
|
3465 |
-
<tag line="
|
3466 |
<type by_reference="false">string</type>
|
3467 |
</tag>
|
3468 |
</docblock>
|
3469 |
-
<argument line="
|
3470 |
<name>$item</name>
|
3471 |
<default><![CDATA[]]></default>
|
3472 |
<type/>
|
3473 |
</argument>
|
3474 |
</method>
|
3475 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3476 |
<name>column_caption</name>
|
3477 |
<full_name>column_caption</full_name>
|
3478 |
-
<docblock line="
|
3479 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3480 |
<long-description><![CDATA[]]></long-description>
|
3481 |
-
<tag line="
|
3482 |
-
<tag line="
|
3483 |
<type by_reference="false">array</type>
|
3484 |
</tag>
|
3485 |
-
<tag line="
|
3486 |
<type by_reference="false">string</type>
|
3487 |
</tag>
|
3488 |
</docblock>
|
3489 |
-
<argument line="
|
3490 |
<name>$item</name>
|
3491 |
<default><![CDATA[]]></default>
|
3492 |
<type/>
|
3493 |
</argument>
|
3494 |
</method>
|
3495 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3496 |
<name>column_description</name>
|
3497 |
<full_name>column_description</full_name>
|
3498 |
-
<docblock line="
|
3499 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3500 |
<long-description><![CDATA[]]></long-description>
|
3501 |
-
<tag line="
|
3502 |
-
<tag line="
|
3503 |
<type by_reference="false">array</type>
|
3504 |
</tag>
|
3505 |
-
<tag line="
|
3506 |
<type by_reference="false">string</type>
|
3507 |
</tag>
|
3508 |
</docblock>
|
3509 |
-
<argument line="
|
3510 |
<name>$item</name>
|
3511 |
<default><![CDATA[]]></default>
|
3512 |
<type/>
|
3513 |
</argument>
|
3514 |
</method>
|
3515 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3516 |
<name>column_post_mime_type</name>
|
3517 |
<full_name>column_post_mime_type</full_name>
|
3518 |
-
<docblock line="
|
3519 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3520 |
<long-description><![CDATA[]]></long-description>
|
3521 |
-
<tag line="
|
3522 |
-
<tag line="
|
3523 |
<type by_reference="false">array</type>
|
3524 |
</tag>
|
3525 |
-
<tag line="
|
3526 |
<type by_reference="false">string</type>
|
3527 |
</tag>
|
3528 |
</docblock>
|
3529 |
-
<argument line="
|
3530 |
<name>$item</name>
|
3531 |
<default><![CDATA[]]></default>
|
3532 |
<type/>
|
3533 |
</argument>
|
3534 |
</method>
|
3535 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3536 |
<name>column_file_url</name>
|
3537 |
<full_name>column_file_url</full_name>
|
3538 |
-
<docblock line="
|
3539 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3540 |
<long-description><![CDATA[]]></long-description>
|
3541 |
-
<tag line="
|
3542 |
-
<tag line="
|
3543 |
<type by_reference="false">array</type>
|
3544 |
</tag>
|
3545 |
-
<tag line="
|
3546 |
<type by_reference="false">string</type>
|
3547 |
</tag>
|
3548 |
</docblock>
|
3549 |
-
<argument line="
|
3550 |
<name>$item</name>
|
3551 |
<default><![CDATA[]]></default>
|
3552 |
<type/>
|
3553 |
</argument>
|
3554 |
</method>
|
3555 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3556 |
<name>column_base_file</name>
|
3557 |
<full_name>column_base_file</full_name>
|
3558 |
-
<docblock line="
|
3559 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3560 |
<long-description><![CDATA[]]></long-description>
|
3561 |
-
<tag line="
|
3562 |
-
<tag line="
|
3563 |
<type by_reference="false">array</type>
|
3564 |
</tag>
|
3565 |
-
<tag line="
|
3566 |
<type by_reference="false">string</type>
|
3567 |
</tag>
|
3568 |
</docblock>
|
3569 |
-
<argument line="
|
3570 |
<name>$item</name>
|
3571 |
<default><![CDATA[]]></default>
|
3572 |
<type/>
|
3573 |
</argument>
|
3574 |
</method>
|
3575 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3576 |
<name>column_date</name>
|
3577 |
<full_name>column_date</full_name>
|
3578 |
-
<docblock line="
|
3579 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3580 |
<long-description><![CDATA[]]></long-description>
|
3581 |
-
<tag line="
|
3582 |
-
<tag line="
|
3583 |
<type by_reference="false">array</type>
|
3584 |
</tag>
|
3585 |
-
<tag line="
|
3586 |
<type by_reference="false">string</type>
|
3587 |
</tag>
|
3588 |
</docblock>
|
3589 |
-
<argument line="
|
3590 |
<name>$item</name>
|
3591 |
<default><![CDATA[]]></default>
|
3592 |
<type/>
|
3593 |
</argument>
|
3594 |
</method>
|
3595 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3596 |
<name>column_modified</name>
|
3597 |
<full_name>column_modified</full_name>
|
3598 |
-
<docblock line="
|
3599 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3600 |
<long-description><![CDATA[]]></long-description>
|
3601 |
-
<tag line="
|
3602 |
-
<tag line="
|
3603 |
<type by_reference="false">array</type>
|
3604 |
</tag>
|
3605 |
-
<tag line="
|
3606 |
<type by_reference="false">string</type>
|
3607 |
</tag>
|
3608 |
</docblock>
|
3609 |
-
<argument line="
|
3610 |
<name>$item</name>
|
3611 |
<default><![CDATA[]]></default>
|
3612 |
<type/>
|
3613 |
</argument>
|
3614 |
</method>
|
3615 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3616 |
<name>column_author</name>
|
3617 |
<full_name>column_author</full_name>
|
3618 |
-
<docblock line="
|
3619 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3620 |
<long-description><![CDATA[]]></long-description>
|
3621 |
-
<tag line="
|
3622 |
-
<tag line="
|
3623 |
<type by_reference="false">array</type>
|
3624 |
</tag>
|
3625 |
-
<tag line="
|
3626 |
<type by_reference="false">string</type>
|
3627 |
</tag>
|
3628 |
</docblock>
|
3629 |
-
<argument line="
|
3630 |
<name>$item</name>
|
3631 |
<default><![CDATA[]]></default>
|
3632 |
<type/>
|
3633 |
</argument>
|
3634 |
</method>
|
3635 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3636 |
<name>column_attached_to</name>
|
3637 |
<full_name>column_attached_to</full_name>
|
3638 |
-
<docblock line="
|
3639 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3640 |
<long-description><![CDATA[]]></long-description>
|
3641 |
-
<tag line="
|
3642 |
-
<tag line="
|
3643 |
<type by_reference="false">array</type>
|
3644 |
</tag>
|
3645 |
-
<tag line="
|
3646 |
<type by_reference="false">string</type>
|
3647 |
</tag>
|
3648 |
</docblock>
|
3649 |
-
<argument line="
|
3650 |
<name>$item</name>
|
3651 |
<default><![CDATA[]]></default>
|
3652 |
<type/>
|
3653 |
</argument>
|
3654 |
</method>
|
3655 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
3656 |
<name>mla_submenu_arguments</name>
|
3657 |
<full_name>mla_submenu_arguments</full_name>
|
3658 |
-
<docblock line="
|
3659 |
<description><![CDATA[Process $_REQUEST, building $submenu_arguments]]></description>
|
3660 |
<long-description><![CDATA[]]></long-description>
|
3661 |
-
<tag line="
|
3662 |
-
<tag line="
|
3663 |
<type by_reference="false">boolean</type>
|
3664 |
</tag>
|
3665 |
-
<tag line="
|
3666 |
<type by_reference="false">array</type>
|
3667 |
</tag>
|
3668 |
</docblock>
|
3669 |
-
<argument line="
|
3670 |
<name>$include_filters</name>
|
3671 |
<default><![CDATA[true]]></default>
|
3672 |
<type/>
|
3673 |
</argument>
|
3674 |
</method>
|
3675 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3676 |
<name>pagination</name>
|
3677 |
<full_name>pagination</full_name>
|
3678 |
-
<docblock line="
|
3679 |
<description><![CDATA[Display the pagination, adding view, search and filter arguments]]></description>
|
3680 |
<long-description><![CDATA[]]></long-description>
|
3681 |
-
<tag line="
|
3682 |
-
<tag line="
|
3683 |
<type by_reference="false">string</type>
|
3684 |
</tag>
|
3685 |
-
<tag line="
|
3686 |
<type by_reference="false">void</type>
|
3687 |
</tag>
|
3688 |
</docblock>
|
3689 |
-
<argument line="
|
3690 |
<name>$which</name>
|
3691 |
<default><![CDATA[]]></default>
|
3692 |
<type/>
|
3693 |
</argument>
|
3694 |
</method>
|
3695 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3696 |
<name>get_columns</name>
|
3697 |
<full_name>get_columns</full_name>
|
3698 |
-
<docblock line="
|
3699 |
<description><![CDATA[This method dictates the table's columns and titles]]></description>
|
3700 |
<long-description><![CDATA[]]></long-description>
|
3701 |
-
<tag line="
|
3702 |
-
<tag line="
|
3703 |
<type by_reference="false">array</type>
|
3704 |
</tag>
|
3705 |
</docblock>
|
3706 |
</method>
|
3707 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3708 |
<name>get_hidden_columns</name>
|
3709 |
<full_name>get_hidden_columns</full_name>
|
3710 |
-
<docblock line="
|
3711 |
<description><![CDATA[Returns the list of currently hidden columns from a user option or
|
3712 |
from default values if the option is not set]]></description>
|
3713 |
<long-description><![CDATA[]]></long-description>
|
3714 |
-
<tag line="
|
3715 |
-
<tag line="
|
3716 |
<type by_reference="false">array</type>
|
3717 |
</tag>
|
3718 |
</docblock>
|
3719 |
</method>
|
3720 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3721 |
<name>get_sortable_columns</name>
|
3722 |
<full_name>get_sortable_columns</full_name>
|
3723 |
-
<docblock line="
|
3724 |
<description><![CDATA[Returns an array where the key is the column that needs to be sortable
|
3725 |
and the value is db column to sort by.]]></description>
|
3726 |
<long-description><![CDATA[<p>Also notes the current sort column,
|
3727 |
if set.</p>]]></long-description>
|
3728 |
-
<tag line="
|
3729 |
-
<tag line="
|
3730 |
<type by_reference="false">array</type>
|
3731 |
</tag>
|
3732 |
</docblock>
|
3733 |
</method>
|
3734 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3735 |
<name>print_column_headers</name>
|
3736 |
<full_name>print_column_headers</full_name>
|
3737 |
-
<docblock line="
|
3738 |
<description><![CDATA[Print column headers, adding view, search and filter arguments]]></description>
|
3739 |
<long-description><![CDATA[]]></long-description>
|
3740 |
-
<tag line="
|
3741 |
-
<tag line="
|
3742 |
<type by_reference="false">bool</type>
|
3743 |
</tag>
|
3744 |
</docblock>
|
3745 |
-
<argument line="
|
3746 |
<name>$with_id</name>
|
3747 |
<default><![CDATA[true]]></default>
|
3748 |
<type/>
|
3749 |
</argument>
|
3750 |
</method>
|
3751 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3752 |
<name>_get_view</name>
|
3753 |
<full_name>_get_view</full_name>
|
3754 |
-
<docblock line="
|
3755 |
<description><![CDATA[Returns HTML markup for one view that can be used with this table]]></description>
|
3756 |
<long-description><![CDATA[]]></long-description>
|
3757 |
-
<tag line="
|
3758 |
-
<tag line="
|
3759 |
<type by_reference="false">string</type>
|
3760 |
</tag>
|
3761 |
-
<tag line="
|
3762 |
<type by_reference="false">string</type>
|
3763 |
</tag>
|
3764 |
-
<tag line="
|
3765 |
<type by_reference="false">string</type>
|
3766 |
</tag>
|
3767 |
</docblock>
|
3768 |
-
<argument line="
|
3769 |
<name>$view_slug</name>
|
3770 |
<default><![CDATA[]]></default>
|
3771 |
<type/>
|
3772 |
</argument>
|
3773 |
-
<argument line="
|
3774 |
<name>$current_view</name>
|
3775 |
<default><![CDATA[]]></default>
|
3776 |
<type/>
|
3777 |
</argument>
|
3778 |
</method>
|
3779 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3780 |
<name>get_views</name>
|
3781 |
<full_name>get_views</full_name>
|
3782 |
-
<docblock line="
|
3783 |
<description><![CDATA[Returns an associative array listing all the views that can be used with this table.]]></description>
|
3784 |
<long-description><![CDATA[<p>These are listed across the top of the page and managed by WordPress.</p>]]></long-description>
|
3785 |
-
<tag line="
|
3786 |
-
<tag line="
|
3787 |
<type by_reference="false">array</type>
|
3788 |
</tag>
|
3789 |
</docblock>
|
3790 |
</method>
|
3791 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3792 |
<name>get_bulk_actions</name>
|
3793 |
<full_name>get_bulk_actions</full_name>
|
3794 |
-
<docblock line="
|
3795 |
<description><![CDATA[Get an associative array ( option_name => option_title ) with the list
|
3796 |
of bulk actions available on this table.]]></description>
|
3797 |
<long-description><![CDATA[]]></long-description>
|
3798 |
-
<tag line="
|
3799 |
-
<tag line="
|
3800 |
<type by_reference="false">array</type>
|
3801 |
</tag>
|
3802 |
</docblock>
|
3803 |
</method>
|
3804 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3805 |
<name>extra_tablenav</name>
|
3806 |
<full_name>extra_tablenav</full_name>
|
3807 |
-
<docblock line="
|
3808 |
<description><![CDATA[Extra controls to be displayed between bulk actions and pagination]]></description>
|
3809 |
<long-description><![CDATA[<p>Modeled after class-wp-posts-list-table.php in wp-admin/includes.</p>]]></long-description>
|
3810 |
-
<tag line="
|
3811 |
-
<tag line="
|
3812 |
<type by_reference="false">string</type>
|
3813 |
</tag>
|
3814 |
-
<tag line="
|
3815 |
<type by_reference="false">array</type>
|
3816 |
</tag>
|
3817 |
</docblock>
|
3818 |
-
<argument line="
|
3819 |
<name>$which</name>
|
3820 |
<default><![CDATA[]]></default>
|
3821 |
<type/>
|
3822 |
</argument>
|
3823 |
</method>
|
3824 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3825 |
<name>prepare_items</name>
|
3826 |
<full_name>prepare_items</full_name>
|
3827 |
-
<docblock line="
|
3828 |
<description><![CDATA[Prepares the list of items for displaying]]></description>
|
3829 |
<long-description><![CDATA[<p>This is where you prepare your data for display. This method will usually
|
3830 |
be used to query the database, sort and filter the data, and generally
|
3831 |
get it ready to be displayed. At a minimum, we should set $this->items and
|
3832 |
$this->set_pagination_args().</p>]]></long-description>
|
3833 |
-
<tag line="
|
3834 |
-
<tag line="
|
3835 |
<type by_reference="false">void</type>
|
3836 |
</tag>
|
3837 |
</docblock>
|
3838 |
</method>
|
3839 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
3840 |
<name>single_row</name>
|
3841 |
<full_name>single_row</full_name>
|
3842 |
-
<docblock line="
|
3843 |
<description><![CDATA[Generates (echoes) content for a single row of the table]]></description>
|
3844 |
<long-description><![CDATA[]]></long-description>
|
3845 |
-
<tag line="
|
3846 |
-
<tag line="
|
3847 |
<type by_reference="false">object</type>
|
3848 |
</tag>
|
3849 |
-
<tag line="
|
3850 |
<type by_reference="false">void</type>
|
3851 |
</tag>
|
3852 |
</docblock>
|
3853 |
-
<argument line="
|
3854 |
<name>$item</name>
|
3855 |
<default><![CDATA[]]></default>
|
3856 |
<type/>
|
@@ -3858,7 +3953,7 @@ $this->set_pagination_args().</p>]]></long-description>
|
|
3858 |
</method>
|
3859 |
</class>
|
3860 |
</file>
|
3861 |
-
<file path="includes\class-mla-main.php" hash="
|
3862 |
<docblock line="2">
|
3863 |
<description><![CDATA[Top-level functions for the Media Library Assistant]]></description>
|
3864 |
<long-description><![CDATA[]]></long-description>
|
@@ -3868,6 +3963,9 @@ $this->set_pagination_args().</p>]]></long-description>
|
|
3868 |
<include line="13" type="Require Once" package="Media Library Assistant">
|
3869 |
<name/>
|
3870 |
</include>
|
|
|
|
|
|
|
3871 |
<class final="false" abstract="false" namespace="global" line="23" package="Media Library Assistant">
|
3872 |
<extends/>
|
3873 |
<name>MLA</name>
|
@@ -3882,7 +3980,7 @@ of images and files held in the WordPress Media Library.]]></description>
|
|
3882 |
<constant namespace="global" line="32" package="Media Library Assistant">
|
3883 |
<name>CURRENT_MLA_VERSION</name>
|
3884 |
<full_name>CURRENT_MLA_VERSION</full_name>
|
3885 |
-
<value><![CDATA['1.
|
3886 |
<docblock line="25">
|
3887 |
<description><![CDATA[Current version number]]></description>
|
3888 |
<long-description><![CDATA[]]></long-description>
|
@@ -4087,82 +4185,95 @@ of images and files held in the WordPress Media Library.]]></description>
|
|
4087 |
</tag>
|
4088 |
</docblock>
|
4089 |
</constant>
|
4090 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4091 |
<name>$page_hooks</name>
|
4092 |
<default><![CDATA[array()]]></default>
|
4093 |
-
<docblock line="
|
4094 |
<description><![CDATA[Holds screen ids to match help text to corresponding screen]]></description>
|
4095 |
<long-description><![CDATA[]]></long-description>
|
4096 |
-
<tag line="
|
4097 |
-
<tag line="
|
4098 |
<type by_reference="false">array</type>
|
4099 |
</tag>
|
4100 |
</docblock>
|
4101 |
</property>
|
4102 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
4103 |
<name>initialize</name>
|
4104 |
<full_name>initialize</full_name>
|
4105 |
-
<docblock line="
|
4106 |
<description><![CDATA[Initialization function, similar to __construct()]]></description>
|
4107 |
<long-description><![CDATA[<p>This function contains add_action and add_filter calls
|
4108 |
to set up the Ajax handlers, enqueue JavaScript and CSS files, and
|
4109 |
set up the Assistant submenu.</p>]]></long-description>
|
4110 |
-
<tag line="
|
4111 |
-
<tag line="
|
4112 |
<type by_reference="false">void</type>
|
4113 |
</tag>
|
4114 |
</docblock>
|
4115 |
</method>
|
4116 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
4117 |
<name>mla_plugins_loaded_action</name>
|
4118 |
<full_name>mla_plugins_loaded_action</full_name>
|
4119 |
-
<docblock line="
|
4120 |
<description><![CDATA[Load a plugin text domain]]></description>
|
4121 |
<long-description><![CDATA[<p>The "add_action" for this function is in mla-plugin-loader.php, because the "initialize"
|
4122 |
function above doesn't run in time.
|
4123 |
Defined as public because it's an action.</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="true" visibility="public" namespace="global" line="
|
4131 |
<name>mla_admin_init_action</name>
|
4132 |
<full_name>mla_admin_init_action</full_name>
|
4133 |
-
<docblock line="
|
4134 |
<description><![CDATA[Load the plugin's Ajax handler or process Edit Media update actions]]></description>
|
4135 |
<long-description><![CDATA[]]></long-description>
|
4136 |
-
<tag line="
|
4137 |
-
<tag line="
|
4138 |
<type by_reference="false">void</type>
|
4139 |
</tag>
|
4140 |
</docblock>
|
4141 |
</method>
|
4142 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
4143 |
<name>mla_admin_enqueue_scripts_action</name>
|
4144 |
<full_name>mla_admin_enqueue_scripts_action</full_name>
|
4145 |
-
<docblock line="
|
4146 |
<description><![CDATA[Load the plugin's Style Sheet and Javascript files]]></description>
|
4147 |
<long-description><![CDATA[]]></long-description>
|
4148 |
-
<tag line="
|
4149 |
-
<tag line="
|
4150 |
<type by_reference="false">string</type>
|
4151 |
</tag>
|
4152 |
-
<tag line="
|
4153 |
<type by_reference="false">void</type>
|
4154 |
</tag>
|
4155 |
</docblock>
|
4156 |
-
<argument line="
|
4157 |
<name>$page_hook</name>
|
4158 |
<default><![CDATA[]]></default>
|
4159 |
<type/>
|
4160 |
</argument>
|
4161 |
</method>
|
4162 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
4163 |
<name>mla_admin_menu_action</name>
|
4164 |
<full_name>mla_admin_menu_action</full_name>
|
4165 |
-
<docblock line="
|
4166 |
<description><![CDATA[Add the submenu pages]]></description>
|
4167 |
<long-description><![CDATA[<p>Add a submenu page in the "Media" section,
|
4168 |
add settings page in the "Settings" section.
|
@@ -4171,131 +4282,131 @@ add settings link in the Plugins section entry for MLA.</p>
|
|
4171 |
<p>For WordPress versions before 3.5,
|
4172 |
add submenu page(s) for attachment taxonomies,
|
4173 |
add filter to clean up taxonomy submenu labels.</p>]]></long-description>
|
4174 |
-
<tag line="
|
4175 |
-
<tag line="
|
4176 |
<type by_reference="false">void</type>
|
4177 |
</tag>
|
4178 |
</docblock>
|
4179 |
</method>
|
4180 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
4181 |
<name>mla_load_media_action</name>
|
4182 |
<full_name>mla_load_media_action</full_name>
|
4183 |
-
<docblock line="
|
4184 |
<description><![CDATA[Redirect to Media/Assistant if Media/Library is hidden]]></description>
|
4185 |
<long-description><![CDATA[]]></long-description>
|
4186 |
-
<tag line="
|
4187 |
-
<tag line="
|
4188 |
<type by_reference="false">void</type>
|
4189 |
</tag>
|
4190 |
</docblock>
|
4191 |
</method>
|
4192 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
4193 |
<name>mla_add_menu_options</name>
|
4194 |
<full_name>mla_add_menu_options</full_name>
|
4195 |
-
<docblock line="
|
4196 |
<description><![CDATA[Add the "XX Entries per page" filter to the Screen Options tab]]></description>
|
4197 |
<long-description><![CDATA[]]></long-description>
|
4198 |
-
<tag line="
|
4199 |
-
<tag line="
|
4200 |
<type by_reference="false">void</type>
|
4201 |
</tag>
|
4202 |
</docblock>
|
4203 |
</method>
|
4204 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
4205 |
<name>mla_add_help_tab</name>
|
4206 |
<full_name>mla_add_help_tab</full_name>
|
4207 |
-
<docblock line="
|
4208 |
<description><![CDATA[Add contextual help tabs to all the MLA pages]]></description>
|
4209 |
<long-description><![CDATA[]]></long-description>
|
4210 |
-
<tag line="
|
4211 |
-
<tag line="
|
4212 |
<type by_reference="false">void</type>
|
4213 |
</tag>
|
4214 |
</docblock>
|
4215 |
</method>
|
4216 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
4217 |
<name>mla_screen_options_show_screen_filter</name>
|
4218 |
<full_name>mla_screen_options_show_screen_filter</full_name>
|
4219 |
-
<docblock line="
|
4220 |
<description><![CDATA[Only show screen options on the table-list screen]]></description>
|
4221 |
<long-description><![CDATA[]]></long-description>
|
4222 |
-
<tag line="
|
4223 |
-
<tag line="
|
4224 |
<type by_reference="false">boolean</type>
|
4225 |
</tag>
|
4226 |
-
<tag line="
|
4227 |
<type by_reference="false">string</type>
|
4228 |
</tag>
|
4229 |
-
<tag line="
|
4230 |
<type by_reference="false">boolean</type>
|
4231 |
</tag>
|
4232 |
</docblock>
|
4233 |
-
<argument line="
|
4234 |
<name>$show_screen</name>
|
4235 |
<default><![CDATA[]]></default>
|
4236 |
<type/>
|
4237 |
</argument>
|
4238 |
-
<argument line="
|
4239 |
<name>$this_screen</name>
|
4240 |
<default><![CDATA[]]></default>
|
4241 |
<type/>
|
4242 |
</argument>
|
4243 |
</method>
|
4244 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
4245 |
<name>mla_set_screen_option_filter</name>
|
4246 |
<full_name>mla_set_screen_option_filter</full_name>
|
4247 |
-
<docblock line="
|
4248 |
<description><![CDATA[Save the "Entries per page" option set by this user]]></description>
|
4249 |
<long-description><![CDATA[]]></long-description>
|
4250 |
-
<tag line="
|
4251 |
-
<tag line="
|
4252 |
<type by_reference="false">mixed</type>
|
4253 |
</tag>
|
4254 |
-
<tag line="
|
4255 |
<type by_reference="false">string</type>
|
4256 |
</tag>
|
4257 |
-
<tag line="
|
4258 |
<type by_reference="false">string</type>
|
4259 |
</tag>
|
4260 |
-
<tag line="
|
4261 |
<type by_reference="false">string</type>
|
4262 |
<type by_reference="false">void</type>
|
4263 |
</tag>
|
4264 |
</docblock>
|
4265 |
-
<argument line="
|
4266 |
<name>$status</name>
|
4267 |
<default><![CDATA[]]></default>
|
4268 |
<type/>
|
4269 |
</argument>
|
4270 |
-
<argument line="
|
4271 |
<name>$option</name>
|
4272 |
<default><![CDATA[]]></default>
|
4273 |
<type/>
|
4274 |
</argument>
|
4275 |
-
<argument line="
|
4276 |
<name>$value</name>
|
4277 |
<default><![CDATA[]]></default>
|
4278 |
<type/>
|
4279 |
</argument>
|
4280 |
</method>
|
4281 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
4282 |
<name>mla_edit_tax_redirect</name>
|
4283 |
<full_name>mla_edit_tax_redirect</full_name>
|
4284 |
-
<docblock line="
|
4285 |
<description><![CDATA[Redirect to the Edit Tags/Categories page]]></description>
|
4286 |
<long-description><![CDATA[<p>The custom taxonomy add/edit submenu entries go to "upload.php" by default.
|
4287 |
This filter is the only way to redirect them to the correct WordPress page.
|
4288 |
The filter is not required for WordPress 3.5 and later.</p>]]></long-description>
|
4289 |
-
<tag line="
|
4290 |
-
<tag line="
|
4291 |
<type by_reference="false">void</type>
|
4292 |
</tag>
|
4293 |
</docblock>
|
4294 |
</method>
|
4295 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
4296 |
<name>mla_parent_file_filter</name>
|
4297 |
<full_name>mla_parent_file_filter</full_name>
|
4298 |
-
<docblock line="
|
4299 |
<description><![CDATA[Cleanup menus for Edit Tags/Categories page]]></description>
|
4300 |
<long-description><![CDATA[<p>For WordPress before 3.5, the submenu entries for custom taxonomies
|
4301 |
under the "Media" menu are not set up correctly by WordPress, so this
|
@@ -4303,230 +4414,292 @@ function cleans them up, redirecting the request to the right WordPress
|
|
4303 |
page for editing/adding taxonomy terms.
|
4304 |
For WordPress 3.5 and later, the function fixes the submenu bolding when
|
4305 |
going to the Edit Media screen.</p>]]></long-description>
|
4306 |
-
<tag line="
|
4307 |
-
<tag line="
|
4308 |
<type by_reference="false">array</type>
|
4309 |
</tag>
|
4310 |
-
<tag line="
|
4311 |
<type by_reference="false">string</type>
|
4312 |
</tag>
|
4313 |
</docblock>
|
4314 |
-
<argument line="
|
4315 |
<name>$parent_file</name>
|
4316 |
<default><![CDATA[]]></default>
|
4317 |
<type/>
|
4318 |
</argument>
|
4319 |
</method>
|
4320 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
4321 |
<name>_process_bulk_value</name>
|
4322 |
<full_name>_process_bulk_value</full_name>
|
4323 |
-
<docblock line="
|
4324 |
<description><![CDATA[Process bulk edit area fields, which may contain a Content Template]]></description>
|
4325 |
<long-description><![CDATA[]]></long-description>
|
4326 |
-
<tag line="
|
4327 |
-
<tag line="
|
4328 |
<type by_reference="false">integer</type>
|
4329 |
</tag>
|
4330 |
-
<tag line="
|
4331 |
<type by_reference="false">string</type>
|
4332 |
</tag>
|
4333 |
-
<tag line="
|
4334 |
<type by_reference="false">string</type>
|
4335 |
</tag>
|
4336 |
</docblock>
|
4337 |
-
<argument line="
|
4338 |
<name>$post_id</name>
|
4339 |
<default><![CDATA[]]></default>
|
4340 |
<type/>
|
4341 |
</argument>
|
4342 |
-
<argument line="
|
4343 |
<name>$bulk_value</name>
|
4344 |
<default><![CDATA[]]></default>
|
4345 |
<type/>
|
4346 |
</argument>
|
4347 |
</method>
|
4348 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
4349 |
<name>mla_render_admin_page</name>
|
4350 |
<full_name>mla_render_admin_page</full_name>
|
4351 |
-
<docblock line="
|
4352 |
<description><![CDATA[Render the "Assistant" subpage in the Media section, using the list_table package]]></description>
|
4353 |
<long-description><![CDATA[]]></long-description>
|
4354 |
-
<tag line="
|
4355 |
-
<tag line="
|
4356 |
<type by_reference="false">void</type>
|
4357 |
</tag>
|
4358 |
</docblock>
|
4359 |
</method>
|
4360 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4361 |
<name>mla_set_parent_ajax_action</name>
|
4362 |
<full_name>mla_set_parent_ajax_action</full_name>
|
4363 |
-
<docblock line="
|
4364 |
<description><![CDATA[Ajax handler to set post_parent for a single attachment]]></description>
|
4365 |
<long-description><![CDATA[<p>Adapted from wp_ajax_inline_save in /wp-admin/includes/ajax-actions.php</p>]]></long-description>
|
4366 |
-
<tag line="
|
4367 |
-
<tag line="
|
4368 |
<type by_reference="false">void</type>
|
4369 |
</tag>
|
4370 |
</docblock>
|
4371 |
</method>
|
4372 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
4373 |
<name>mla_inline_edit_ajax_action</name>
|
4374 |
<full_name>mla_inline_edit_ajax_action</full_name>
|
4375 |
-
<docblock line="
|
4376 |
<description><![CDATA[Ajax handler for inline editing (quick and bulk edit)]]></description>
|
4377 |
<long-description><![CDATA[<p>Adapted from wp_ajax_inline_save in /wp-admin/includes/ajax-actions.php</p>]]></long-description>
|
4378 |
-
<tag line="
|
4379 |
-
<tag line="
|
4380 |
<type by_reference="false">void</type>
|
4381 |
</tag>
|
4382 |
</docblock>
|
4383 |
</method>
|
4384 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4385 |
<name>_build_inline_edit_form</name>
|
4386 |
<full_name>_build_inline_edit_form</full_name>
|
4387 |
-
<docblock line="
|
4388 |
<description><![CDATA[Build the hidden row templates for inline editing (quick and bulk edit)]]></description>
|
4389 |
<long-description><![CDATA[<p>inspired by inline_edit() in wp-admin\includes\class-wp-posts-list-table.php.</p>]]></long-description>
|
4390 |
-
<tag line="
|
4391 |
-
<tag line="
|
4392 |
<type by_reference="false">object</type>
|
4393 |
</tag>
|
4394 |
-
<tag line="
|
4395 |
<type by_reference="false">string</type>
|
4396 |
</tag>
|
4397 |
</docblock>
|
4398 |
-
<argument line="
|
4399 |
<name>$MLAListTable</name>
|
4400 |
<default><![CDATA[]]></default>
|
4401 |
<type/>
|
4402 |
</argument>
|
4403 |
</method>
|
4404 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
4405 |
<name>_authors_dropdown</name>
|
4406 |
<full_name>_authors_dropdown</full_name>
|
4407 |
-
<docblock line="
|
4408 |
<description><![CDATA[Get the edit Authors dropdown box, if user has suitable permissions]]></description>
|
4409 |
<long-description><![CDATA[]]></long-description>
|
4410 |
-
<tag line="
|
4411 |
-
<tag line="
|
4412 |
<type by_reference="false">integer</type>
|
4413 |
</tag>
|
4414 |
-
<tag line="
|
4415 |
<type by_reference="false">string</type>
|
4416 |
</tag>
|
4417 |
-
<tag line="
|
4418 |
<type by_reference="false">string</type>
|
4419 |
</tag>
|
4420 |
-
<tag line="
|
4421 |
<type by_reference="false">string</type>
|
4422 |
<type by_reference="false">false</type>
|
4423 |
</tag>
|
4424 |
</docblock>
|
4425 |
-
<argument line="
|
4426 |
<name>$author</name>
|
4427 |
<default><![CDATA[0]]></default>
|
4428 |
<type/>
|
4429 |
</argument>
|
4430 |
-
<argument line="
|
4431 |
<name>$name</name>
|
4432 |
<default><![CDATA['post_author']]></default>
|
4433 |
<type/>
|
4434 |
</argument>
|
4435 |
-
<argument line="
|
4436 |
<name>$class</name>
|
4437 |
<default><![CDATA['authors']]></default>
|
4438 |
<type/>
|
4439 |
</argument>
|
4440 |
</method>
|
4441 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
4442 |
<name>_current_bulk_action</name>
|
4443 |
<full_name>_current_bulk_action</full_name>
|
4444 |
-
<docblock line="
|
4445 |
<description><![CDATA[Get the current action selected from the bulk actions dropdown]]></description>
|
4446 |
<long-description><![CDATA[]]></long-description>
|
4447 |
-
<tag line="
|
4448 |
-
<tag line="
|
4449 |
<type by_reference="false">string</type>
|
4450 |
<type by_reference="false">false</type>
|
4451 |
</tag>
|
4452 |
</docblock>
|
4453 |
</method>
|
4454 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
4455 |
<name>_delete_single_item</name>
|
4456 |
<full_name>_delete_single_item</full_name>
|
4457 |
-
<docblock line="
|
4458 |
<description><![CDATA[Delete a single item permanently]]></description>
|
4459 |
<long-description><![CDATA[]]></long-description>
|
4460 |
-
<tag line="
|
4461 |
-
<tag line="
|
4462 |
<type by_reference="false">array</type>
|
4463 |
</tag>
|
4464 |
-
<tag line="
|
4465 |
<type by_reference="false">array</type>
|
4466 |
</tag>
|
4467 |
</docblock>
|
4468 |
-
<argument line="
|
4469 |
<name>$post_id</name>
|
4470 |
<default><![CDATA[]]></default>
|
4471 |
<type/>
|
4472 |
</argument>
|
4473 |
</method>
|
4474 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
4475 |
<name>_display_single_item</name>
|
4476 |
<full_name>_display_single_item</full_name>
|
4477 |
-
<docblock line="
|
4478 |
<description><![CDATA[Display a single item sub page; prepare the form to
|
4479 |
change the meta data for a single attachment.]]></description>
|
4480 |
<long-description><![CDATA[<p>This function is not used in WordPress 3.5 and later.</p>]]></long-description>
|
4481 |
-
<tag line="
|
4482 |
-
<tag line="
|
4483 |
<type by_reference="false">int</type>
|
4484 |
</tag>
|
4485 |
-
<tag line="
|
4486 |
<type by_reference="false">array</type>
|
4487 |
</tag>
|
4488 |
</docblock>
|
4489 |
-
<argument line="
|
4490 |
<name>$post_id</name>
|
4491 |
<default><![CDATA[]]></default>
|
4492 |
<type/>
|
4493 |
</argument>
|
4494 |
</method>
|
4495 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
4496 |
<name>_restore_single_item</name>
|
4497 |
<full_name>_restore_single_item</full_name>
|
4498 |
-
<docblock line="
|
4499 |
<description><![CDATA[Restore a single item from the Trash]]></description>
|
4500 |
<long-description><![CDATA[]]></long-description>
|
4501 |
-
<tag line="
|
4502 |
-
<tag line="
|
4503 |
<type by_reference="false">array</type>
|
4504 |
</tag>
|
4505 |
-
<tag line="
|
4506 |
<type by_reference="false">array</type>
|
4507 |
</tag>
|
4508 |
</docblock>
|
4509 |
-
<argument line="
|
4510 |
<name>$post_id</name>
|
4511 |
<default><![CDATA[]]></default>
|
4512 |
<type/>
|
4513 |
</argument>
|
4514 |
</method>
|
4515 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
4516 |
<name>_trash_single_item</name>
|
4517 |
<full_name>_trash_single_item</full_name>
|
4518 |
-
<docblock line="
|
4519 |
<description><![CDATA[Move a single item to Trash]]></description>
|
4520 |
<long-description><![CDATA[]]></long-description>
|
4521 |
-
<tag line="
|
4522 |
-
<tag line="
|
4523 |
<type by_reference="false">array</type>
|
4524 |
</tag>
|
4525 |
-
<tag line="
|
4526 |
<type by_reference="false">array</type>
|
4527 |
</tag>
|
4528 |
</docblock>
|
4529 |
-
<argument line="
|
4530 |
<name>$post_id</name>
|
4531 |
<default><![CDATA[]]></default>
|
4532 |
<type/>
|
@@ -4534,14 +4707,14 @@ change the meta data for a single attachment.]]></description>
|
|
4534 |
</method>
|
4535 |
</class>
|
4536 |
</file>
|
4537 |
-
<file path="includes\class-mla-media-modal.php" hash="
|
4538 |
<docblock line="2">
|
4539 |
<description><![CDATA[Media Library Assistant Media Manager enhancements]]></description>
|
4540 |
<long-description><![CDATA[]]></long-description>
|
4541 |
<tag line="2" name="package" description="Media Library Assistant"/>
|
4542 |
<tag line="2" name="since" description="1.20"/>
|
4543 |
</docblock>
|
4544 |
-
<include line="
|
4545 |
<name/>
|
4546 |
</include>
|
4547 |
<class final="false" abstract="false" namespace="global" line="15" package="Media Library Assistant">
|
@@ -4594,105 +4767,118 @@ change the meta data for a single attachment.]]></description>
|
|
4594 |
</docblock>
|
4595 |
</constant>
|
4596 |
<constant namespace="global" line="50" package="Media Library Assistant">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4597 |
<name>JAVASCRIPT_QUERY_ATTACHMENTS_ACTION</name>
|
4598 |
<full_name>JAVASCRIPT_QUERY_ATTACHMENTS_ACTION</full_name>
|
4599 |
<value><![CDATA['mla-query-attachments']]></value>
|
4600 |
-
<docblock line="
|
4601 |
<description><![CDATA[Slug for the "query attachments" action - Add Media and related dialogs]]></description>
|
4602 |
<long-description><![CDATA[]]></long-description>
|
4603 |
-
<tag line="
|
4604 |
-
<tag line="
|
4605 |
<type by_reference="false">string</type>
|
4606 |
</tag>
|
4607 |
</docblock>
|
4608 |
</constant>
|
4609 |
-
<constant namespace="global" line="
|
4610 |
<name>JAVASCRIPT_FILL_COMPAT_ACTION</name>
|
4611 |
<full_name>JAVASCRIPT_FILL_COMPAT_ACTION</full_name>
|
4612 |
<value><![CDATA['mla-fill-compat-fields']]></value>
|
4613 |
-
<docblock line="
|
4614 |
<description><![CDATA[Slug for the "fill compat-attachment-fields" action - Add Media and related dialogs]]></description>
|
4615 |
<long-description><![CDATA[]]></long-description>
|
4616 |
-
<tag line="
|
4617 |
-
<tag line="
|
4618 |
<type by_reference="false">string</type>
|
4619 |
</tag>
|
4620 |
</docblock>
|
4621 |
</constant>
|
4622 |
-
<constant namespace="global" line="
|
4623 |
<name>JAVASCRIPT_UPDATE_COMPAT_ACTION</name>
|
4624 |
<full_name>JAVASCRIPT_UPDATE_COMPAT_ACTION</full_name>
|
4625 |
<value><![CDATA['mla-update-compat-fields']]></value>
|
4626 |
-
<docblock line="
|
4627 |
<description><![CDATA[Slug for the "update compat-attachment-fields" action - Add Media and related dialogs]]></description>
|
4628 |
<long-description><![CDATA[]]></long-description>
|
4629 |
-
<tag line="
|
4630 |
-
<tag line="
|
4631 |
<type by_reference="false">string</type>
|
4632 |
</tag>
|
4633 |
</docblock>
|
4634 |
</constant>
|
4635 |
-
<property final="false" static="true" visibility="private" line="
|
4636 |
<name>$media_item_args</name>
|
4637 |
<default><![CDATA[array('errors' => null, 'in_modal' => false)]]></default>
|
4638 |
-
<docblock line="
|
4639 |
<description><![CDATA[The get_media_item_args array]]></description>
|
4640 |
<long-description><![CDATA[]]></long-description>
|
4641 |
-
<tag line="
|
4642 |
-
<tag line="
|
4643 |
<type by_reference="false">array</type>
|
4644 |
</tag>
|
4645 |
</docblock>
|
4646 |
</property>
|
4647 |
-
<property final="false" static="true" visibility="private" line="
|
4648 |
<name>$mla_media_modal_settings</name>
|
4649 |
-
<default><![CDATA[array('
|
4650 |
-
<docblock line="
|
4651 |
<description><![CDATA[Share the settings values between mla_media_view_settings_filter
|
4652 |
and mla_print_media_templates_action]]></description>
|
4653 |
<long-description><![CDATA[]]></long-description>
|
4654 |
-
<tag line="
|
4655 |
-
<tag line="
|
4656 |
<type by_reference="false">array</type>
|
4657 |
</tag>
|
4658 |
</docblock>
|
4659 |
</property>
|
4660 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
4661 |
<name>initialize</name>
|
4662 |
<full_name>initialize</full_name>
|
4663 |
-
<docblock line="
|
4664 |
<description><![CDATA[Initialization function, similar to __construct()]]></description>
|
4665 |
<long-description><![CDATA[]]></long-description>
|
4666 |
-
<tag line="
|
4667 |
-
<tag line="
|
4668 |
<type by_reference="false">void</type>
|
4669 |
</tag>
|
4670 |
</docblock>
|
4671 |
</method>
|
4672 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
4673 |
<name>mla_get_media_item_args_filter</name>
|
4674 |
<full_name>mla_get_media_item_args_filter</full_name>
|
4675 |
-
<docblock line="
|
4676 |
<description><![CDATA[Saves the get_media_item_args array for the attachment_fields_to_edit filter]]></description>
|
4677 |
<long-description><![CDATA[<p>Declared public because it is a filter.</p>]]></long-description>
|
4678 |
-
<tag line="
|
4679 |
-
<tag line="
|
4680 |
<type by_reference="false">array</type>
|
4681 |
</tag>
|
4682 |
-
<tag line="
|
4683 |
<type by_reference="false">array</type>
|
4684 |
</tag>
|
4685 |
</docblock>
|
4686 |
-
<argument line="
|
4687 |
<name>$args</name>
|
4688 |
<default><![CDATA[]]></default>
|
4689 |
<type/>
|
4690 |
</argument>
|
4691 |
</method>
|
4692 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
4693 |
<name>mla_attachment_fields_to_edit_filter</name>
|
4694 |
<full_name>mla_attachment_fields_to_edit_filter</full_name>
|
4695 |
-
<docblock line="
|
4696 |
<description><![CDATA[Add/change custom fields to the Edit Media screen and Modal Window]]></description>
|
4697 |
<long-description><![CDATA[<p>Called from /wp-admin/includes/media.php, function get_compat_media_markup();
|
4698 |
If "get_media_item_args"['in_modal'] => false ) its the Edit Media screen.
|
@@ -4700,197 +4886,247 @@ If "get_media_item_args"['in_modal'] => true ) its the Media Manager Modal Windo
|
|
4700 |
For the Modal Window, $form_fields contains all the "compat-attachment-fields"
|
4701 |
including the taxonomies, which we want to enhance.
|
4702 |
Declared public because it is a filter.</p>]]></long-description>
|
4703 |
-
<tag line="
|
4704 |
-
<tag line="
|
4705 |
<type by_reference="false">array</type>
|
4706 |
</tag>
|
4707 |
-
<tag line="
|
4708 |
<type by_reference="false">object</type>
|
4709 |
</tag>
|
4710 |
-
<tag line="
|
4711 |
<type by_reference="false">array</type>
|
4712 |
</tag>
|
4713 |
</docblock>
|
4714 |
-
<argument line="
|
4715 |
<name>$form_fields</name>
|
4716 |
<default><![CDATA[]]></default>
|
4717 |
<type/>
|
4718 |
</argument>
|
4719 |
-
<argument line="
|
4720 |
<name>$post</name>
|
4721 |
<default><![CDATA[]]></default>
|
4722 |
<type/>
|
4723 |
</argument>
|
4724 |
</method>
|
4725 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
4726 |
<name>_months_dropdown</name>
|
4727 |
<full_name>_months_dropdown</full_name>
|
4728 |
-
<docblock line="
|
4729 |
<description><![CDATA[Display a monthly dropdown for filtering items]]></description>
|
4730 |
<long-description><![CDATA[<p>Adapted from /wp-admin/includes/class-wp-list-table.php function months_dropdown()</p>]]></long-description>
|
4731 |
-
<tag line="
|
4732 |
-
<tag line="
|
4733 |
<type by_reference="false">string</type>
|
4734 |
</tag>
|
4735 |
-
<tag line="
|
4736 |
<type by_reference="false">array</type>
|
4737 |
</tag>
|
4738 |
</docblock>
|
4739 |
-
<argument line="
|
4740 |
<name>$post_type</name>
|
4741 |
<default><![CDATA[]]></default>
|
4742 |
<type/>
|
4743 |
</argument>
|
4744 |
</method>
|
4745 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
4746 |
<name>_terms_options</name>
|
4747 |
<full_name>_terms_options</full_name>
|
4748 |
-
<docblock line="
|
4749 |
<description><![CDATA[Extract value and text elements from Dropdown HTML option tags]]></description>
|
4750 |
<long-description><![CDATA[]]></long-description>
|
4751 |
-
<tag line="
|
4752 |
-
<tag line="
|
4753 |
<type by_reference="false">string</type>
|
4754 |
</tag>
|
4755 |
-
<tag line="
|
4756 |
<type by_reference="false">array</type>
|
4757 |
</tag>
|
4758 |
</docblock>
|
4759 |
-
<argument line="
|
4760 |
<name>$markup</name>
|
4761 |
<default><![CDATA[]]></default>
|
4762 |
<type/>
|
4763 |
</argument>
|
4764 |
</method>
|
4765 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
4766 |
<name>mla_media_view_settings_filter</name>
|
4767 |
<full_name>mla_media_view_settings_filter</full_name>
|
4768 |
-
<docblock line="
|
4769 |
<description><![CDATA[Adds settings values to be passed to the Media Manager in /wp-includes/js/media-views.js.]]></description>
|
4770 |
<long-description><![CDATA[<p>Declared public because it is a filter.</p>]]></long-description>
|
4771 |
-
<tag line="
|
4772 |
-
<tag line="
|
4773 |
<type by_reference="false">array</type>
|
4774 |
</tag>
|
4775 |
-
<tag line="
|
4776 |
<type by_reference="false">object</type>
|
4777 |
</tag>
|
4778 |
-
<tag line="
|
4779 |
<type by_reference="false">array</type>
|
4780 |
</tag>
|
4781 |
</docblock>
|
4782 |
-
<argument line="
|
4783 |
<name>$settings</name>
|
4784 |
<default><![CDATA[]]></default>
|
4785 |
<type/>
|
4786 |
</argument>
|
4787 |
-
<argument line="
|
4788 |
<name>$post</name>
|
4789 |
<default><![CDATA[]]></default>
|
4790 |
<type/>
|
4791 |
</argument>
|
4792 |
</method>
|
4793 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
4794 |
<name>mla_media_view_strings_filter</name>
|
4795 |
<full_name>mla_media_view_strings_filter</full_name>
|
4796 |
-
<docblock line="
|
4797 |
<description><![CDATA[Adds strings values to be passed to the Media Manager in /wp-includes/js/media-views.js.]]></description>
|
4798 |
<long-description><![CDATA[<p>Declared public because it is a filter.</p>]]></long-description>
|
4799 |
-
<tag line="
|
4800 |
-
<tag line="
|
4801 |
<type by_reference="false">array</type>
|
4802 |
</tag>
|
4803 |
-
<tag line="
|
4804 |
<type by_reference="false">object</type>
|
4805 |
</tag>
|
4806 |
-
<tag line="
|
4807 |
<type by_reference="false">array</type>
|
4808 |
</tag>
|
4809 |
</docblock>
|
4810 |
-
<argument line="
|
4811 |
<name>$strings</name>
|
4812 |
<default><![CDATA[]]></default>
|
4813 |
<type/>
|
4814 |
</argument>
|
4815 |
-
<argument line="
|
4816 |
<name>$post</name>
|
4817 |
<default><![CDATA[]]></default>
|
4818 |
<type/>
|
4819 |
</argument>
|
4820 |
</method>
|
4821 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
4822 |
<name>mla_wp_enqueue_media_action</name>
|
4823 |
<full_name>mla_wp_enqueue_media_action</full_name>
|
4824 |
-
<docblock line="
|
4825 |
<description><![CDATA[Enqueues the mla-media-modal-scripts.js file, adding it to the Media Manager scripts.]]></description>
|
4826 |
<long-description><![CDATA[<p>Declared public because it is an action.</p>]]></long-description>
|
4827 |
-
<tag line="
|
4828 |
-
<tag line="
|
4829 |
<type by_reference="false">void</type>
|
4830 |
</tag>
|
4831 |
</docblock>
|
4832 |
</method>
|
4833 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
4834 |
<name>mla_print_media_templates_action</name>
|
4835 |
<full_name>mla_print_media_templates_action</full_name>
|
4836 |
-
<docblock line="
|
4837 |
<description><![CDATA[Prints the templates used in the MLA Media Manager enhancements.]]></description>
|
4838 |
<long-description><![CDATA[<p>Declared public because it is an action.</p>]]></long-description>
|
4839 |
-
<tag line="
|
4840 |
-
<tag line="
|
4841 |
<type by_reference="false">void</type>
|
4842 |
</tag>
|
4843 |
</docblock>
|
4844 |
</method>
|
4845 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
4846 |
<name>mla_admin_init_action</name>
|
4847 |
<full_name>mla_admin_init_action</full_name>
|
4848 |
-
<docblock line="
|
4849 |
<description><![CDATA[Adjust ajax handler for Media Manager queries]]></description>
|
4850 |
<long-description><![CDATA[<p>Replace 'query-attachments' with our own handler if the request is coming from the "Assistant" tab.
|
4851 |
Clean up the 'save-attachment-compat' values, removing the taxonomy updates MLS already handled.</p>]]></long-description>
|
4852 |
-
<tag line="
|
4853 |
-
<tag line="
|
4854 |
<type by_reference="false">void</type>
|
4855 |
</tag>
|
4856 |
</docblock>
|
4857 |
</method>
|
4858 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
4859 |
<name>mla_fill_compat_fields_action</name>
|
4860 |
<full_name>mla_fill_compat_fields_action</full_name>
|
4861 |
-
<docblock line="
|
4862 |
<description><![CDATA[Ajax handler for Media Manager "fill compat-attachment-fields" queries]]></description>
|
4863 |
<long-description><![CDATA[<p>Prepares an array of (HTML) taxonomy meta boxes with attachment-specific values.</p>]]></long-description>
|
4864 |
-
<tag line="
|
4865 |
-
<tag line="
|
4866 |
<type by_reference="false">void</type>
|
4867 |
</tag>
|
4868 |
</docblock>
|
4869 |
</method>
|
4870 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
4871 |
<name>mla_update_compat_fields_action</name>
|
4872 |
<full_name>mla_update_compat_fields_action</full_name>
|
4873 |
-
<docblock line="
|
4874 |
<description><![CDATA[Ajax handler for Media Manager "update compat-attachment-fields" queries]]></description>
|
4875 |
<long-description><![CDATA[<p>Updates one (or more) supported taxonomy and returns updated checkbox or tag/term lists</p>]]></long-description>
|
4876 |
-
<tag line="
|
4877 |
-
<tag line="
|
4878 |
<type by_reference="false">void</type>
|
4879 |
</tag>
|
4880 |
</docblock>
|
4881 |
</method>
|
4882 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
4883 |
<name>mla_query_attachments_action</name>
|
4884 |
<full_name>mla_query_attachments_action</full_name>
|
4885 |
-
<docblock line="
|
4886 |
<description><![CDATA[Ajax handler for Media Manager "Query Attachments" queries]]></description>
|
4887 |
<long-description><![CDATA[<p>Adapted from wp_ajax_query_attachments in /wp-admin/includes/ajax-actions.php</p>]]></long-description>
|
4888 |
-
<tag line="
|
4889 |
-
<tag line="
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4890 |
<type by_reference="false">void</type>
|
4891 |
</tag>
|
4892 |
</docblock>
|
4893 |
</method>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4894 |
</class>
|
4895 |
</file>
|
4896 |
<file path="includes\class-mla-mime-types.php" hash="e8d3e45f05098910cd1ece032a7653f6" package="Media Library Assistant">
|
@@ -6139,7 +6375,7 @@ Defined as public because it's a filter.</p>]]></long-description>
|
|
6139 |
</method>
|
6140 |
</class>
|
6141 |
</file>
|
6142 |
-
<file path="includes\class-mla-objects.php" hash="
|
6143 |
<docblock line="2">
|
6144 |
<description><![CDATA[Media Library Assistant Custom Taxonomy and Widget objects]]></description>
|
6145 |
<long-description><![CDATA[]]></long-description>
|
@@ -6180,185 +6416,185 @@ Defined as public because it's a filter.</p>]]></long-description>
|
|
6180 |
</tag>
|
6181 |
</docblock>
|
6182 |
</method>
|
6183 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
6184 |
<name>mla_taxonomy_get_columns_filter</name>
|
6185 |
<full_name>mla_taxonomy_get_columns_filter</full_name>
|
6186 |
-
<docblock line="
|
6187 |
<description><![CDATA[WordPress Filter for edit taxonomy "Attachments" column,
|
6188 |
which replaces the "Posts" column with an equivalent "Attachments" column.]]></description>
|
6189 |
<long-description><![CDATA[]]></long-description>
|
6190 |
-
<tag line="
|
6191 |
-
<tag line="
|
6192 |
<type by_reference="false">array</type>
|
6193 |
</tag>
|
6194 |
-
<tag line="
|
6195 |
<type by_reference="false">array</type>
|
6196 |
</tag>
|
6197 |
</docblock>
|
6198 |
-
<argument line="
|
6199 |
<name>$columns</name>
|
6200 |
<default><![CDATA[]]></default>
|
6201 |
<type/>
|
6202 |
</argument>
|
6203 |
</method>
|
6204 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
6205 |
<name>mla_taxonomy_column_filter</name>
|
6206 |
<full_name>mla_taxonomy_column_filter</full_name>
|
6207 |
-
<docblock line="
|
6208 |
<description><![CDATA[WordPress Filter for edit taxonomy "Attachments" column,
|
6209 |
which returns a count of the attachments assigned a given term]]></description>
|
6210 |
<long-description><![CDATA[]]></long-description>
|
6211 |
-
<tag line="
|
6212 |
-
<tag line="
|
6213 |
<type by_reference="false">string</type>
|
6214 |
</tag>
|
6215 |
-
<tag line="
|
6216 |
<type by_reference="false">array</type>
|
6217 |
</tag>
|
6218 |
-
<tag line="
|
6219 |
<type by_reference="false">array</type>
|
6220 |
</tag>
|
6221 |
-
<tag line="
|
6222 |
<type by_reference="false">array</type>
|
6223 |
</tag>
|
6224 |
</docblock>
|
6225 |
-
<argument line="
|
6226 |
<name>$place_holder</name>
|
6227 |
<default><![CDATA[]]></default>
|
6228 |
<type/>
|
6229 |
</argument>
|
6230 |
-
<argument line="
|
6231 |
<name>$column_name</name>
|
6232 |
<default><![CDATA[]]></default>
|
6233 |
<type/>
|
6234 |
</argument>
|
6235 |
-
<argument line="
|
6236 |
<name>$term_id</name>
|
6237 |
<default><![CDATA[]]></default>
|
6238 |
<type/>
|
6239 |
</argument>
|
6240 |
</method>
|
6241 |
</class>
|
6242 |
-
<class final="false" abstract="false" namespace="global" line="
|
6243 |
<extends>\WP_Widget</extends>
|
6244 |
<name>MLATextWidget</name>
|
6245 |
<full_name>\MLATextWidget</full_name>
|
6246 |
-
<docblock line="
|
6247 |
<description><![CDATA[Class MLA (Media Library Assistant) Text Widget defines a shortcode-enabled version of the WordPress Text widget]]></description>
|
6248 |
<long-description><![CDATA[]]></long-description>
|
6249 |
-
<tag line="
|
6250 |
-
<tag line="
|
6251 |
</docblock>
|
6252 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
6253 |
<name>__construct</name>
|
6254 |
<full_name>__construct</full_name>
|
6255 |
-
<docblock line="
|
6256 |
<description><![CDATA[Calls the parent constructor to set some defaults.]]></description>
|
6257 |
<long-description><![CDATA[]]></long-description>
|
6258 |
-
<tag line="
|
6259 |
-
<tag line="
|
6260 |
<type by_reference="false">void</type>
|
6261 |
</tag>
|
6262 |
</docblock>
|
6263 |
</method>
|
6264 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
6265 |
<name>widget</name>
|
6266 |
<full_name>widget</full_name>
|
6267 |
-
<docblock line="
|
6268 |
<description><![CDATA[Display the widget content - called from the WordPress "front end"]]></description>
|
6269 |
<long-description><![CDATA[]]></long-description>
|
6270 |
-
<tag line="
|
6271 |
-
<tag line="
|
6272 |
<type by_reference="false">array</type>
|
6273 |
</tag>
|
6274 |
-
<tag line="
|
6275 |
<type by_reference="false">array</type>
|
6276 |
</tag>
|
6277 |
-
<tag line="
|
6278 |
<type by_reference="false">void</type>
|
6279 |
</tag>
|
6280 |
</docblock>
|
6281 |
-
<argument line="
|
6282 |
<name>$args</name>
|
6283 |
<default><![CDATA[]]></default>
|
6284 |
<type/>
|
6285 |
</argument>
|
6286 |
-
<argument line="
|
6287 |
<name>$instance</name>
|
6288 |
<default><![CDATA[]]></default>
|
6289 |
<type/>
|
6290 |
</argument>
|
6291 |
</method>
|
6292 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
6293 |
<name>form</name>
|
6294 |
<full_name>form</full_name>
|
6295 |
-
<docblock line="
|
6296 |
<description><![CDATA[Echo the "edit widget" form on the Appearance/Widgets admin screen]]></description>
|
6297 |
<long-description><![CDATA[]]></long-description>
|
6298 |
-
<tag line="
|
6299 |
-
<tag line="
|
6300 |
<type by_reference="false">array</type>
|
6301 |
</tag>
|
6302 |
-
<tag line="
|
6303 |
<type by_reference="false">void</type>
|
6304 |
</tag>
|
6305 |
</docblock>
|
6306 |
-
<argument line="
|
6307 |
<name>$instance</name>
|
6308 |
<default><![CDATA[]]></default>
|
6309 |
<type/>
|
6310 |
</argument>
|
6311 |
</method>
|
6312 |
-
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="
|
6313 |
<name>update</name>
|
6314 |
<full_name>update</full_name>
|
6315 |
-
<docblock line="
|
6316 |
<description><![CDATA[Sanitize widget definition as it is saved to the database]]></description>
|
6317 |
<long-description><![CDATA[]]></long-description>
|
6318 |
-
<tag line="
|
6319 |
-
<tag line="
|
6320 |
<type by_reference="false">array</type>
|
6321 |
</tag>
|
6322 |
-
<tag line="
|
6323 |
<type by_reference="false">array</type>
|
6324 |
</tag>
|
6325 |
-
<tag line="
|
6326 |
<type by_reference="false">array</type>
|
6327 |
</tag>
|
6328 |
</docblock>
|
6329 |
-
<argument line="
|
6330 |
<name>$new_instance</name>
|
6331 |
<default><![CDATA[]]></default>
|
6332 |
<type/>
|
6333 |
</argument>
|
6334 |
-
<argument line="
|
6335 |
<name>$old_instance</name>
|
6336 |
<default><![CDATA[]]></default>
|
6337 |
<type/>
|
6338 |
</argument>
|
6339 |
</method>
|
6340 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
6341 |
<name>mla_text_widget_widgets_init_action</name>
|
6342 |
<full_name>mla_text_widget_widgets_init_action</full_name>
|
6343 |
-
<docblock line="
|
6344 |
<description><![CDATA[Register the widget with WordPress]]></description>
|
6345 |
<long-description><![CDATA[<p>Defined as public because it's an action.</p>]]></long-description>
|
6346 |
-
<tag line="
|
6347 |
-
<tag line="
|
6348 |
<type by_reference="false">void</type>
|
6349 |
</tag>
|
6350 |
</docblock>
|
6351 |
</method>
|
6352 |
</class>
|
6353 |
</file>
|
6354 |
-
<file path="includes\class-mla-options.php" hash="
|
6355 |
<docblock line="2">
|
6356 |
<description><![CDATA[Manages the plugin option settings]]></description>
|
6357 |
<long-description><![CDATA[]]></long-description>
|
6358 |
<tag line="2" name="package" description="Media Library Assistant"/>
|
6359 |
<tag line="2" name="since" description="1.00"/>
|
6360 |
</docblock>
|
6361 |
-
<include line="
|
6362 |
<name/>
|
6363 |
</include>
|
6364 |
<class final="false" abstract="false" namespace="global" line="18" package="Media Library Assistant">
|
@@ -6535,231 +6771,267 @@ and provides functions to get and put them from/to WordPress option variables]]>
|
|
6535 |
</docblock>
|
6536 |
</constant>
|
6537 |
<constant namespace="global" line="112" package="Media Library Assistant">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6538 |
<name>MLA_EXIF_SIZE</name>
|
6539 |
<full_name>MLA_EXIF_SIZE</full_name>
|
6540 |
<value><![CDATA[30]]></value>
|
6541 |
-
<docblock line="
|
6542 |
<description><![CDATA[Provides a "size" attribute value for the EXIF/Template Value field]]></description>
|
6543 |
<long-description><![CDATA[]]></long-description>
|
6544 |
</docblock>
|
6545 |
</constant>
|
6546 |
-
<constant namespace="global" line="
|
6547 |
<name>MLA_NEW_CUSTOM_RULE</name>
|
6548 |
<full_name>MLA_NEW_CUSTOM_RULE</full_name>
|
6549 |
<value><![CDATA['__NEW RULE__']]></value>
|
6550 |
-
<docblock line="
|
6551 |
<description><![CDATA[Provides a unique name for the Custom Field "new rule" key]]></description>
|
6552 |
<long-description><![CDATA[]]></long-description>
|
6553 |
</docblock>
|
6554 |
</constant>
|
6555 |
-
<constant namespace="global" line="
|
6556 |
<name>MLA_NEW_CUSTOM_FIELD</name>
|
6557 |
<full_name>MLA_NEW_CUSTOM_FIELD</full_name>
|
6558 |
<value><![CDATA['__NEW FIELD__']]></value>
|
6559 |
-
<docblock line="
|
6560 |
<description><![CDATA[Provides a unique name for the Custom Field "new field" key]]></description>
|
6561 |
<long-description><![CDATA[]]></long-description>
|
6562 |
</docblock>
|
6563 |
</constant>
|
6564 |
-
<constant namespace="global" line="
|
6565 |
<name>MLA_EDIT_MEDIA_SEARCH_TAXONOMY</name>
|
6566 |
<full_name>MLA_EDIT_MEDIA_SEARCH_TAXONOMY</full_name>
|
6567 |
<value><![CDATA['edit_media_search_taxonomy']]></value>
|
6568 |
-
<docblock line="
|
6569 |
<description><![CDATA[Provides a unique name for the "searchable taxonomies" option]]></description>
|
6570 |
<long-description><![CDATA[]]></long-description>
|
6571 |
</docblock>
|
6572 |
</constant>
|
6573 |
-
<constant namespace="global" line="
|
6574 |
<name>MLA_EDIT_MEDIA_META_BOXES</name>
|
6575 |
<full_name>MLA_EDIT_MEDIA_META_BOXES</full_name>
|
6576 |
<value><![CDATA['edit_media_meta_boxes']]></value>
|
6577 |
-
<docblock line="
|
6578 |
<description><![CDATA[Provides a unique name for the Edit Media additional meta boxes option]]></description>
|
6579 |
<long-description><![CDATA[]]></long-description>
|
6580 |
</docblock>
|
6581 |
</constant>
|
6582 |
-
<constant namespace="global" line="
|
6583 |
<name>MLA_MEDIA_MODAL_TOOLBAR</name>
|
6584 |
<full_name>MLA_MEDIA_MODAL_TOOLBAR</full_name>
|
6585 |
<value><![CDATA['media_modal_toolbar']]></value>
|
6586 |
-
<docblock line="
|
6587 |
<description><![CDATA[Provides a unique name for the Media Manager toolbar option, which
|
6588 |
also controls the ATTACHMENT DETAILS enhancements]]></description>
|
6589 |
<long-description><![CDATA[]]></long-description>
|
6590 |
</docblock>
|
6591 |
</constant>
|
6592 |
-
<constant namespace="global" line="
|
6593 |
<name>MLA_MEDIA_MODAL_MIMETYPES</name>
|
6594 |
<full_name>MLA_MEDIA_MODAL_MIMETYPES</full_name>
|
6595 |
<value><![CDATA['media_modal_mimetypes']]></value>
|
6596 |
-
<docblock line="
|
6597 |
<description><![CDATA[Provides a unique name for the Media Manager toolbar MIME Types option]]></description>
|
6598 |
<long-description><![CDATA[]]></long-description>
|
6599 |
</docblock>
|
6600 |
</constant>
|
6601 |
-
<constant namespace="global" line="
|
6602 |
<name>MLA_MEDIA_MODAL_MONTHS</name>
|
6603 |
<full_name>MLA_MEDIA_MODAL_MONTHS</full_name>
|
6604 |
<value><![CDATA['media_modal_months']]></value>
|
6605 |
-
<docblock line="
|
6606 |
<description><![CDATA[Provides a unique name for the Media Manager toolbar Month and Year option]]></description>
|
6607 |
<long-description><![CDATA[]]></long-description>
|
6608 |
</docblock>
|
6609 |
</constant>
|
6610 |
-
<constant namespace="global" line="
|
6611 |
<name>MLA_MEDIA_MODAL_TERMS</name>
|
6612 |
<full_name>MLA_MEDIA_MODAL_TERMS</full_name>
|
6613 |
<value><![CDATA['media_modal_terms']]></value>
|
6614 |
-
<docblock line="
|
6615 |
<description><![CDATA[Provides a unique name for the Media Manager toolbar Taxonomy Terms option]]></description>
|
6616 |
<long-description><![CDATA[]]></long-description>
|
6617 |
</docblock>
|
6618 |
</constant>
|
6619 |
-
<constant namespace="global" line="
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6620 |
<name>MLA_MEDIA_MODAL_SEARCHBOX</name>
|
6621 |
<full_name>MLA_MEDIA_MODAL_SEARCHBOX</full_name>
|
6622 |
<value><![CDATA['media_modal_searchbox']]></value>
|
6623 |
-
<docblock line="
|
6624 |
<description><![CDATA[Provides a unique name for the Media Manager toolbar Search Box option]]></description>
|
6625 |
<long-description><![CDATA[]]></long-description>
|
6626 |
</docblock>
|
6627 |
</constant>
|
6628 |
-
<constant namespace="global" line="
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6629 |
<name>MLA_MEDIA_MODAL_DETAILS_CATEGORY_METABOX</name>
|
6630 |
<full_name>MLA_MEDIA_MODAL_DETAILS_CATEGORY_METABOX</full_name>
|
6631 |
<value><![CDATA['media_modal_details_category_metabox']]></value>
|
6632 |
-
<docblock line="
|
6633 |
<description><![CDATA[Provides a unique name for the Media Manager Attachment Details searchable taxonomy option
|
6634 |
This option is for hierarchical taxonomies, e.g., "Att.]]></description>
|
6635 |
<long-description><![CDATA[<p>Categories".</p>]]></long-description>
|
6636 |
</docblock>
|
6637 |
</constant>
|
6638 |
-
<constant namespace="global" line="
|
6639 |
<name>MLA_MEDIA_MODAL_DETAILS_TAG_METABOX</name>
|
6640 |
<full_name>MLA_MEDIA_MODAL_DETAILS_TAG_METABOX</full_name>
|
6641 |
<value><![CDATA['media_modal_details_tag_metabox']]></value>
|
6642 |
-
<docblock line="
|
6643 |
<description><![CDATA[Provides a unique name for the Media Manager Attachment Details searchable taxonomy option
|
6644 |
This option is for flat taxonomies, e.g., "Att.]]></description>
|
6645 |
<long-description><![CDATA[<p>Tags".</p>]]></long-description>
|
6646 |
</docblock>
|
6647 |
</constant>
|
6648 |
-
<constant namespace="global" line="
|
6649 |
<name>MLA_MEDIA_MODAL_ORDERBY</name>
|
6650 |
<full_name>MLA_MEDIA_MODAL_ORDERBY</full_name>
|
6651 |
<value><![CDATA['media_modal_orderby']]></value>
|
6652 |
-
<docblock line="
|
6653 |
<description><![CDATA[Provides a unique name for the Media Manager orderby option]]></description>
|
6654 |
<long-description><![CDATA[]]></long-description>
|
6655 |
</docblock>
|
6656 |
</constant>
|
6657 |
-
<constant namespace="global" line="
|
6658 |
<name>MLA_MEDIA_MODAL_ORDER</name>
|
6659 |
<full_name>MLA_MEDIA_MODAL_ORDER</full_name>
|
6660 |
<value><![CDATA['media_modal_order']]></value>
|
6661 |
-
<docblock line="
|
6662 |
<description><![CDATA[Provides a unique name for the Media Manager order option]]></description>
|
6663 |
<long-description><![CDATA[]]></long-description>
|
6664 |
</docblock>
|
6665 |
</constant>
|
6666 |
-
<constant namespace="global" line="
|
6667 |
<name>MLA_POST_MIME_TYPES</name>
|
6668 |
<full_name>MLA_POST_MIME_TYPES</full_name>
|
6669 |
<value><![CDATA['post_mime_types']]></value>
|
6670 |
-
<docblock line="
|
6671 |
<description><![CDATA[Provides a unique name for the Post MIME Types option]]></description>
|
6672 |
<long-description><![CDATA[]]></long-description>
|
6673 |
</docblock>
|
6674 |
</constant>
|
6675 |
-
<constant namespace="global" line="
|
6676 |
<name>MLA_ENABLE_POST_MIME_TYPES</name>
|
6677 |
<full_name>MLA_ENABLE_POST_MIME_TYPES</full_name>
|
6678 |
<value><![CDATA['enable_post_mime_types']]></value>
|
6679 |
-
<docblock line="
|
6680 |
<description><![CDATA[Provides a unique name for the Enable Post MIME Types option]]></description>
|
6681 |
<long-description><![CDATA[]]></long-description>
|
6682 |
</docblock>
|
6683 |
</constant>
|
6684 |
-
<constant namespace="global" line="
|
6685 |
<name>MLA_UPLOAD_MIMES</name>
|
6686 |
<full_name>MLA_UPLOAD_MIMES</full_name>
|
6687 |
<value><![CDATA['upload_mimes']]></value>
|
6688 |
-
<docblock line="
|
6689 |
<description><![CDATA[Provides a unique name for the Upload MIME Types option]]></description>
|
6690 |
<long-description><![CDATA[]]></long-description>
|
6691 |
</docblock>
|
6692 |
</constant>
|
6693 |
-
<constant namespace="global" line="
|
6694 |
<name>MLA_ENABLE_UPLOAD_MIMES</name>
|
6695 |
<full_name>MLA_ENABLE_UPLOAD_MIMES</full_name>
|
6696 |
<value><![CDATA['enable_upload_mimes']]></value>
|
6697 |
-
<docblock line="
|
6698 |
<description><![CDATA[Provides a unique name for the Enable Upload MIME Types option]]></description>
|
6699 |
<long-description><![CDATA[]]></long-description>
|
6700 |
</docblock>
|
6701 |
</constant>
|
6702 |
-
<constant namespace="global" line="
|
6703 |
<name>MLA_ENABLE_MLA_ICONS</name>
|
6704 |
<full_name>MLA_ENABLE_MLA_ICONS</full_name>
|
6705 |
<value><![CDATA['enable_mla_icons']]></value>
|
6706 |
-
<docblock line="
|
6707 |
<description><![CDATA[Provides a unique name for the Enable MLA Icons option]]></description>
|
6708 |
<long-description><![CDATA[]]></long-description>
|
6709 |
</docblock>
|
6710 |
</constant>
|
6711 |
-
<property final="false" static="true" visibility="public" line="
|
6712 |
<name>$process_featured_in</name>
|
6713 |
<default><![CDATA[true]]></default>
|
6714 |
-
<docblock line="
|
6715 |
<description><![CDATA[Option setting for "Featured in" reporting]]></description>
|
6716 |
<long-description><![CDATA[<p>This setting is false if the "Featured in" database access setting is "disabled", else true.</p>]]></long-description>
|
6717 |
-
<tag line="
|
6718 |
-
<tag line="
|
6719 |
<type by_reference="false">boolean</type>
|
6720 |
</tag>
|
6721 |
</docblock>
|
6722 |
</property>
|
6723 |
-
<property final="false" static="true" visibility="public" line="
|
6724 |
<name>$process_inserted_in</name>
|
6725 |
<default><![CDATA[true]]></default>
|
6726 |
-
<docblock line="
|
6727 |
<description><![CDATA[Option setting for "Inserted in" reporting]]></description>
|
6728 |
<long-description><![CDATA[<p>This setting is false if the "Inserted in" database access setting is "disabled", else true.</p>]]></long-description>
|
6729 |
-
<tag line="
|
6730 |
-
<tag line="
|
6731 |
<type by_reference="false">boolean</type>
|
6732 |
</tag>
|
6733 |
</docblock>
|
6734 |
</property>
|
6735 |
-
<property final="false" static="true" visibility="public" line="
|
6736 |
<name>$process_gallery_in</name>
|
6737 |
<default><![CDATA[true]]></default>
|
6738 |
-
<docblock line="
|
6739 |
<description><![CDATA[Option setting for "Gallery in" reporting]]></description>
|
6740 |
<long-description><![CDATA[<p>This setting is false if the "Gallery in" database access setting is "disabled", else true.</p>]]></long-description>
|
6741 |
-
<tag line="
|
6742 |
-
<tag line="
|
6743 |
<type by_reference="false">boolean</type>
|
6744 |
</tag>
|
6745 |
</docblock>
|
6746 |
</property>
|
6747 |
-
<property final="false" static="true" visibility="public" line="
|
6748 |
<name>$process_mla_gallery_in</name>
|
6749 |
<default><![CDATA[true]]></default>
|
6750 |
-
<docblock line="
|
6751 |
<description><![CDATA[Option setting for "MLA Gallery in" reporting]]></description>
|
6752 |
<long-description><![CDATA[<p>This setting is false if the "MLA Gallery in" database access setting is "disabled", else true.</p>]]></long-description>
|
6753 |
-
<tag line="
|
6754 |
-
<tag line="
|
6755 |
<type by_reference="false">boolean</type>
|
6756 |
</tag>
|
6757 |
</docblock>
|
6758 |
</property>
|
6759 |
-
<property final="false" static="true" visibility="public" line="
|
6760 |
<name>$mla_option_definitions</name>
|
6761 |
<default><![CDATA[array()]]></default>
|
6762 |
-
<docblock line="
|
6763 |
<description><![CDATA[$mla_option_definitions defines the database options and admin page areas for setting/updating them]]></description>
|
6764 |
<long-description><![CDATA[<p>The array must be populated at runtime in MLAOptions::mla_localize_option_definitions_array(),
|
6765 |
because Localization calls cannot be placed in the "public static" array definition itself.</p>
|
@@ -6788,1163 +7060,1228 @@ reset => reset function for 'custom' options; returns nothing. Usage:
|
|
6788 |
$message = ['reset']( 'reset', $key, $value, $_REQUEST );</p>]]></long-description>
|
6789 |
</docblock>
|
6790 |
</property>
|
6791 |
-
<property final="false" static="true" visibility="private" line="
|
6792 |
<name>$mla_option_templates</name>
|
6793 |
<default><![CDATA[null]]></default>
|
6794 |
-
<docblock line="
|
6795 |
<description><![CDATA[Style and Markup templates]]></description>
|
6796 |
<long-description><![CDATA[]]></long-description>
|
6797 |
-
<tag line="
|
6798 |
-
<tag line="
|
6799 |
<type by_reference="false">array</type>
|
6800 |
</tag>
|
6801 |
</docblock>
|
6802 |
</property>
|
6803 |
-
<property final="false" static="true" visibility="private" line="
|
6804 |
<name>$add_attachment_id</name>
|
6805 |
<default><![CDATA[0]]></default>
|
6806 |
-
<docblock line="
|
6807 |
<description><![CDATA[Attachment ID passed from mla_add_attachment_action to mla_update_attachment_metadata_filter]]></description>
|
6808 |
<long-description><![CDATA[<p>Ensures that IPTC/EXIF and Custom Field mapping is only performed when the attachment is first
|
6809 |
added to the Media Library.</p>]]></long-description>
|
6810 |
-
<tag line="
|
6811 |
-
<tag line="
|
6812 |
<type by_reference="false">integer</type>
|
6813 |
</tag>
|
6814 |
</docblock>
|
6815 |
</property>
|
6816 |
-
<property final="false" static="true" visibility="private" line="
|
6817 |
<name>$custom_field_data_sources</name>
|
6818 |
-
<default><![CDATA[array('absolute_path', 'absolute_file_name', 'base_file', 'path', 'file_name', 'name_only', 'extension', 'file_size', 'upload_date', '
|
6819 |
-
<docblock line="
|
6820 |
<description><![CDATA[Array of Data Source names for custom field mapping]]></description>
|
6821 |
<long-description><![CDATA[]]></long-description>
|
6822 |
-
<tag line="
|
6823 |
-
<tag line="
|
6824 |
<type by_reference="false">array</type>
|
6825 |
</tag>
|
6826 |
</docblock>
|
6827 |
</property>
|
6828 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
6829 |
<name>initialize</name>
|
6830 |
<full_name>initialize</full_name>
|
6831 |
-
<docblock line="
|
6832 |
<description><![CDATA[Initialization function, similar to __construct()]]></description>
|
6833 |
<long-description><![CDATA[]]></long-description>
|
6834 |
-
<tag line="
|
6835 |
-
<tag line="
|
6836 |
<type by_reference="false">void</type>
|
6837 |
</tag>
|
6838 |
</docblock>
|
6839 |
</method>
|
6840 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
6841 |
<name>_load_option_templates</name>
|
6842 |
<full_name>_load_option_templates</full_name>
|
6843 |
-
<docblock line="
|
6844 |
<description><![CDATA[Load style and markup templates to $mla_templates]]></description>
|
6845 |
<long-description><![CDATA[]]></long-description>
|
6846 |
-
<tag line="
|
6847 |
-
<tag line="
|
6848 |
<type by_reference="false">void</type>
|
6849 |
</tag>
|
6850 |
</docblock>
|
6851 |
</method>
|
6852 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
6853 |
<name>mla_localize_option_definitions_array</name>
|
6854 |
<full_name>mla_localize_option_definitions_array</full_name>
|
6855 |
-
<docblock line="
|
6856 |
<description><![CDATA[Localize $mla_option_definitions array]]></description>
|
6857 |
<long-description><![CDATA[<p>Localization must be done at runtime, and these calls cannot be placed
|
6858 |
in the "public static" array definition itself.</p>]]></long-description>
|
6859 |
-
<tag line="
|
6860 |
-
<tag line="
|
6861 |
<type by_reference="false">void</type>
|
6862 |
</tag>
|
6863 |
</docblock>
|
6864 |
</method>
|
6865 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
6866 |
<name>mla_fetch_gallery_template</name>
|
6867 |
<full_name>mla_fetch_gallery_template</full_name>
|
6868 |
-
<docblock line="
|
6869 |
<description><![CDATA[Fetch style or markup template from $mla_templates]]></description>
|
6870 |
<long-description><![CDATA[]]></long-description>
|
6871 |
-
<tag line="
|
6872 |
-
<tag line="
|
6873 |
<type by_reference="false">string</type>
|
6874 |
</tag>
|
6875 |
-
<tag line="
|
6876 |
<type by_reference="false">string</type>
|
6877 |
</tag>
|
6878 |
-
<tag line="
|
6879 |
<type by_reference="false">string</type>
|
6880 |
<type by_reference="false">boolean</type>
|
6881 |
<type by_reference="false">null</type>
|
6882 |
</tag>
|
6883 |
</docblock>
|
6884 |
-
<argument line="
|
6885 |
<name>$key</name>
|
6886 |
<default><![CDATA[]]></default>
|
6887 |
<type/>
|
6888 |
</argument>
|
6889 |
-
<argument line="
|
6890 |
<name>$type</name>
|
6891 |
<default><![CDATA['style']]></default>
|
6892 |
<type/>
|
6893 |
</argument>
|
6894 |
</method>
|
6895 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
6896 |
<name>mla_get_style_templates</name>
|
6897 |
<full_name>mla_get_style_templates</full_name>
|
6898 |
-
<docblock line="
|
6899 |
<description><![CDATA[Get ALL style templates from $mla_templates, including 'default']]></description>
|
6900 |
<long-description><![CDATA[]]></long-description>
|
6901 |
-
<tag line="
|
6902 |
-
<tag line="
|
6903 |
<type by_reference="false">array</type>
|
6904 |
<type by_reference="false">null</type>
|
6905 |
</tag>
|
6906 |
</docblock>
|
6907 |
</method>
|
6908 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
6909 |
<name>mla_put_style_templates</name>
|
6910 |
<full_name>mla_put_style_templates</full_name>
|
6911 |
-
<docblock line="
|
6912 |
<description><![CDATA[Put user-defined style templates to $mla_templates and database]]></description>
|
6913 |
<long-description><![CDATA[]]></long-description>
|
6914 |
-
<tag line="
|
6915 |
-
<tag line="
|
6916 |
<type by_reference="false">array</type>
|
6917 |
</tag>
|
6918 |
-
<tag line="
|
6919 |
<type by_reference="false">boolean</type>
|
6920 |
</tag>
|
6921 |
</docblock>
|
6922 |
-
<argument line="
|
6923 |
<name>$templates</name>
|
6924 |
<default><![CDATA[]]></default>
|
6925 |
<type/>
|
6926 |
</argument>
|
6927 |
</method>
|
6928 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
6929 |
<name>mla_get_markup_templates</name>
|
6930 |
<full_name>mla_get_markup_templates</full_name>
|
6931 |
-
<docblock line="
|
6932 |
<description><![CDATA[Get ALL markup templates from $mla_templates, including 'default']]></description>
|
6933 |
<long-description><![CDATA[]]></long-description>
|
6934 |
-
<tag line="
|
6935 |
-
<tag line="
|
6936 |
<type by_reference="false">array</type>
|
6937 |
<type by_reference="false">null</type>
|
6938 |
</tag>
|
6939 |
</docblock>
|
6940 |
</method>
|
6941 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
6942 |
<name>mla_put_markup_templates</name>
|
6943 |
<full_name>mla_put_markup_templates</full_name>
|
6944 |
-
<docblock line="
|
6945 |
<description><![CDATA[Put user-defined markup templates to $mla_templates and database]]></description>
|
6946 |
<long-description><![CDATA[]]></long-description>
|
6947 |
-
<tag line="
|
6948 |
-
<tag line="
|
6949 |
<type by_reference="false">array</type>
|
6950 |
</tag>
|
6951 |
-
<tag line="
|
6952 |
<type by_reference="false">boolean</type>
|
6953 |
</tag>
|
6954 |
</docblock>
|
6955 |
-
<argument line="
|
6956 |
<name>$templates</name>
|
6957 |
<default><![CDATA[]]></default>
|
6958 |
<type/>
|
6959 |
</argument>
|
6960 |
</method>
|
6961 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
6962 |
<name>mla_get_option</name>
|
6963 |
<full_name>mla_get_option</full_name>
|
6964 |
-
<docblock line="
|
6965 |
<description><![CDATA[Return the stored value or default value of a defined MLA option]]></description>
|
6966 |
<long-description><![CDATA[]]></long-description>
|
6967 |
-
<tag line="
|
6968 |
-
<tag line="
|
6969 |
<type by_reference="false">string</type>
|
6970 |
</tag>
|
6971 |
-
<tag line="
|
6972 |
<type by_reference="false">boolean</type>
|
6973 |
</tag>
|
6974 |
-
<tag line="
|
6975 |
<type by_reference="false">boolean</type>
|
6976 |
</tag>
|
6977 |
-
<tag line="
|
6978 |
<type by_reference="false">mixed</type>
|
6979 |
</tag>
|
6980 |
</docblock>
|
6981 |
-
<argument line="
|
6982 |
<name>$option</name>
|
6983 |
<default><![CDATA[]]></default>
|
6984 |
<type/>
|
6985 |
</argument>
|
6986 |
-
<argument line="
|
6987 |
<name>$get_default</name>
|
6988 |
<default><![CDATA[false]]></default>
|
6989 |
<type/>
|
6990 |
</argument>
|
6991 |
-
<argument line="
|
6992 |
<name>$get_stored</name>
|
6993 |
<default><![CDATA[false]]></default>
|
6994 |
<type/>
|
6995 |
</argument>
|
6996 |
</method>
|
6997 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
6998 |
<name>mla_update_option</name>
|
6999 |
<full_name>mla_update_option</full_name>
|
7000 |
-
<docblock line="
|
7001 |
<description><![CDATA[Add or update the stored value of a defined MLA option]]></description>
|
7002 |
<long-description><![CDATA[]]></long-description>
|
7003 |
-
<tag line="
|
7004 |
-
<tag line="
|
7005 |
<type by_reference="false">string</type>
|
7006 |
</tag>
|
7007 |
-
<tag line="
|
7008 |
<type by_reference="false">mixed</type>
|
7009 |
</tag>
|
7010 |
-
<tag line="
|
7011 |
<type by_reference="false">boolean</type>
|
7012 |
</tag>
|
7013 |
</docblock>
|
7014 |
-
<argument line="
|
7015 |
<name>$option</name>
|
7016 |
<default><![CDATA[]]></default>
|
7017 |
<type/>
|
7018 |
</argument>
|
7019 |
-
<argument line="
|
7020 |
<name>$newvalue</name>
|
7021 |
<default><![CDATA[]]></default>
|
7022 |
<type/>
|
7023 |
</argument>
|
7024 |
</method>
|
7025 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
7026 |
<name>mla_delete_option</name>
|
7027 |
<full_name>mla_delete_option</full_name>
|
7028 |
-
<docblock line="
|
7029 |
<description><![CDATA[Delete the stored value of a defined MLA option]]></description>
|
7030 |
<long-description><![CDATA[]]></long-description>
|
7031 |
-
<tag line="
|
7032 |
-
<tag line="
|
7033 |
<type by_reference="false">string</type>
|
7034 |
</tag>
|
7035 |
-
<tag line="
|
7036 |
<type by_reference="false">boolean</type>
|
7037 |
</tag>
|
7038 |
</docblock>
|
7039 |
-
<argument line="
|
7040 |
<name>$option</name>
|
7041 |
<default><![CDATA[]]></default>
|
7042 |
<type/>
|
7043 |
</argument>
|
7044 |
</method>
|
7045 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
7046 |
<name>mla_taxonomy_support</name>
|
7047 |
<full_name>mla_taxonomy_support</full_name>
|
7048 |
-
<docblock line="
|
7049 |
<description><![CDATA[Determine MLA support for a taxonomy, handling the special case where the
|
7050 |
settings are being updated or reset.]]></description>
|
7051 |
<long-description><![CDATA[]]></long-description>
|
7052 |
-
<tag line="
|
7053 |
-
<tag line="
|
7054 |
<type by_reference="false">string</type>
|
7055 |
</tag>
|
7056 |
-
<tag line="
|
7057 |
<type by_reference="false">string</type>
|
7058 |
</tag>
|
7059 |
-
<tag line="
|
7060 |
<type by_reference="false">boolean</type>
|
7061 |
<type by_reference="false">string</type>
|
7062 |
</tag>
|
7063 |
</docblock>
|
7064 |
-
<argument line="
|
7065 |
<name>$tax_name</name>
|
7066 |
<default><![CDATA[]]></default>
|
7067 |
<type/>
|
7068 |
</argument>
|
7069 |
-
<argument line="
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7070 |
<name>$support_type</name>
|
7071 |
<default><![CDATA['support']]></default>
|
7072 |
<type/>
|
7073 |
</argument>
|
7074 |
</method>
|
7075 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
7076 |
<name>mla_attachment_display_settings_option_handler</name>
|
7077 |
<full_name>mla_attachment_display_settings_option_handler</full_name>
|
7078 |
-
<docblock line="
|
7079 |
<description><![CDATA[Render and manage Attachment Display Settings options; alignment, link type and size]]></description>
|
7080 |
<long-description><![CDATA[]]></long-description>
|
7081 |
-
<tag line="
|
7082 |
-
<tag line="
|
7083 |
-
<tag line="
|
7084 |
<type by_reference="false">string</type>
|
7085 |
</tag>
|
7086 |
-
<tag line="
|
7087 |
<type by_reference="false">string</type>
|
7088 |
</tag>
|
7089 |
-
<tag line="
|
7090 |
<type by_reference="false">array</type>
|
7091 |
</tag>
|
7092 |
-
<tag line="
|
7093 |
<type by_reference="false">array</type>
|
7094 |
</tag>
|
7095 |
-
<tag line="
|
7096 |
<type by_reference="false">string</type>
|
7097 |
</tag>
|
7098 |
</docblock>
|
7099 |
-
<argument line="
|
7100 |
<name>$action</name>
|
7101 |
<default><![CDATA[]]></default>
|
7102 |
<type/>
|
7103 |
</argument>
|
7104 |
-
<argument line="
|
7105 |
<name>$key</name>
|
7106 |
<default><![CDATA[]]></default>
|
7107 |
<type/>
|
7108 |
</argument>
|
7109 |
-
<argument line="
|
7110 |
<name>$value</name>
|
7111 |
<default><![CDATA[]]></default>
|
7112 |
<type/>
|
7113 |
</argument>
|
7114 |
-
<argument line="
|
7115 |
<name>$args</name>
|
7116 |
<default><![CDATA[null]]></default>
|
7117 |
<type/>
|
7118 |
</argument>
|
7119 |
</method>
|
7120 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
7121 |
<name>mla_taxonomy_option_handler</name>
|
7122 |
<full_name>mla_taxonomy_option_handler</full_name>
|
7123 |
-
<docblock line="
|
7124 |
<description><![CDATA[Render and manage taxonomy support options, e.g., Categories and Post Tags]]></description>
|
7125 |
<long-description><![CDATA[]]></long-description>
|
7126 |
-
<tag line="
|
7127 |
-
<tag line="
|
7128 |
-
<tag line="
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7129 |
<type by_reference="false">string</type>
|
7130 |
</tag>
|
7131 |
-
<tag line="
|
7132 |
<type by_reference="false">string</type>
|
7133 |
</tag>
|
7134 |
-
<tag line="
|
7135 |
<type by_reference="false">array</type>
|
7136 |
</tag>
|
7137 |
-
<tag line="
|
7138 |
<type by_reference="false">array</type>
|
7139 |
</tag>
|
7140 |
-
<tag line="
|
7141 |
<type by_reference="false">string</type>
|
7142 |
</tag>
|
7143 |
</docblock>
|
7144 |
-
<argument line="
|
7145 |
<name>$action</name>
|
7146 |
<default><![CDATA[]]></default>
|
7147 |
<type/>
|
7148 |
</argument>
|
7149 |
-
<argument line="
|
7150 |
<name>$key</name>
|
7151 |
<default><![CDATA[]]></default>
|
7152 |
<type/>
|
7153 |
</argument>
|
7154 |
-
<argument line="
|
7155 |
<name>$value</name>
|
7156 |
<default><![CDATA[]]></default>
|
7157 |
<type/>
|
7158 |
</argument>
|
7159 |
-
<argument line="
|
7160 |
<name>$args</name>
|
7161 |
<default><![CDATA[null]]></default>
|
7162 |
<type/>
|
7163 |
</argument>
|
7164 |
</method>
|
7165 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
7166 |
<name>mla_wp_handle_upload_prefilter_filter</name>
|
7167 |
<full_name>mla_wp_handle_upload_prefilter_filter</full_name>
|
7168 |
-
<docblock line="
|
7169 |
<description><![CDATA[Examine or alter the filename before the file is made permanent]]></description>
|
7170 |
<long-description><![CDATA[]]></long-description>
|
7171 |
-
<tag line="
|
7172 |
-
<tag line="
|
7173 |
<type by_reference="false">array</type>
|
7174 |
</tag>
|
7175 |
-
<tag line="
|
7176 |
<type by_reference="false">array</type>
|
7177 |
</tag>
|
7178 |
</docblock>
|
7179 |
-
<argument line="
|
7180 |
<name>$file</name>
|
7181 |
<default><![CDATA[]]></default>
|
7182 |
<type/>
|
7183 |
</argument>
|
7184 |
</method>
|
7185 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
7186 |
<name>mla_wp_handle_upload_filter</name>
|
7187 |
<full_name>mla_wp_handle_upload_filter</full_name>
|
7188 |
-
<docblock line="
|
7189 |
<description><![CDATA[Called once for each file uploaded]]></description>
|
7190 |
<long-description><![CDATA[]]></long-description>
|
7191 |
-
<tag line="
|
7192 |
-
<tag line="
|
7193 |
<type by_reference="false">array</type>
|
7194 |
</tag>
|
7195 |
-
<tag line="
|
7196 |
<type by_reference="false">array</type>
|
7197 |
</tag>
|
7198 |
</docblock>
|
7199 |
-
<argument line="
|
7200 |
<name>$file</name>
|
7201 |
<default><![CDATA[]]></default>
|
7202 |
<type/>
|
7203 |
</argument>
|
7204 |
</method>
|
7205 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
7206 |
<name>mla_add_attachment_action</name>
|
7207 |
<full_name>mla_add_attachment_action</full_name>
|
7208 |
-
<docblock line="
|
7209 |
<description><![CDATA[Set $add_attachment_id to just-inserted attachment]]></description>
|
7210 |
<long-description><![CDATA[<p>All of the actual processing is done later, in mla_update_attachment_metadata_filter.</p>]]></long-description>
|
7211 |
-
<tag line="
|
7212 |
-
<tag line="
|
7213 |
<type by_reference="false">integer</type>
|
7214 |
</tag>
|
7215 |
-
<tag line="
|
7216 |
<type by_reference="false">void</type>
|
7217 |
</tag>
|
7218 |
</docblock>
|
7219 |
-
<argument line="
|
7220 |
<name>$post_ID</name>
|
7221 |
<default><![CDATA[]]></default>
|
7222 |
<type/>
|
7223 |
</argument>
|
7224 |
</method>
|
7225 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
7226 |
<name>_update_attachment_metadata</name>
|
7227 |
<full_name>_update_attachment_metadata</full_name>
|
7228 |
-
<docblock line="
|
7229 |
<description><![CDATA[Update _wp_attachment_metadata for just-inserted attachment]]></description>
|
7230 |
<long-description><![CDATA[]]></long-description>
|
7231 |
-
<tag line="
|
7232 |
-
<tag line="
|
7233 |
<type by_reference="false">array</type>
|
7234 |
</tag>
|
7235 |
-
<tag line="
|
7236 |
<type by_reference="false">array</type>
|
7237 |
</tag>
|
7238 |
-
<tag line="
|
7239 |
<type by_reference="false">array</type>
|
7240 |
</tag>
|
7241 |
</docblock>
|
7242 |
-
<argument line="
|
7243 |
<name>$updates</name>
|
7244 |
<default><![CDATA[]]></default>
|
7245 |
<type/>
|
7246 |
</argument>
|
7247 |
-
<argument line="
|
7248 |
<name>$data</name>
|
7249 |
<default><![CDATA[]]></default>
|
7250 |
<type/>
|
7251 |
</argument>
|
7252 |
</method>
|
7253 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
7254 |
<name>mla_update_attachment_metadata_filter</name>
|
7255 |
<full_name>mla_update_attachment_metadata_filter</full_name>
|
7256 |
-
<docblock line="
|
7257 |
<description><![CDATA[Perform IPTC/EXIF and Custom Field mapping on just-inserted attachment]]></description>
|
7258 |
<long-description><![CDATA[<p>This filter tests the $add_attachment_id variable set by the mla_add_attachment_action
|
7259 |
to ensure that mapping is only performed for new additions, not metadata updates.</p>]]></long-description>
|
7260 |
-
<tag line="
|
7261 |
-
<tag line="
|
7262 |
<type by_reference="false">array</type>
|
7263 |
</tag>
|
7264 |
-
<tag line="
|
7265 |
<type by_reference="false">integer</type>
|
7266 |
</tag>
|
7267 |
-
<tag line="
|
7268 |
<type by_reference="false">void</type>
|
7269 |
</tag>
|
7270 |
</docblock>
|
7271 |
-
<argument line="
|
7272 |
<name>$data</name>
|
7273 |
<default><![CDATA[]]></default>
|
7274 |
<type/>
|
7275 |
</argument>
|
7276 |
-
<argument line="
|
7277 |
<name>$post_id</name>
|
7278 |
<default><![CDATA[]]></default>
|
7279 |
<type/>
|
7280 |
</argument>
|
7281 |
</method>
|
7282 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
7283 |
<name>mla_custom_field_option_value</name>
|
7284 |
<full_name>mla_custom_field_option_value</full_name>
|
7285 |
-
<docblock line="
|
7286 |
<description><![CDATA[Fetch custom field option value given a slug]]></description>
|
7287 |
<long-description><![CDATA[]]></long-description>
|
7288 |
-
<tag line="
|
7289 |
-
<tag line="
|
7290 |
<type by_reference="false">string</type>
|
7291 |
</tag>
|
7292 |
-
<tag line="
|
7293 |
<type by_reference="false">array</type>
|
7294 |
</tag>
|
7295 |
</docblock>
|
7296 |
-
<argument line="
|
7297 |
<name>$slug</name>
|
7298 |
<default><![CDATA[]]></default>
|
7299 |
<type/>
|
7300 |
</argument>
|
7301 |
</method>
|
7302 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
7303 |
<name>mla_custom_field_support</name>
|
7304 |
<full_name>mla_custom_field_support</full_name>
|
7305 |
-
<docblock line="
|
7306 |
<description><![CDATA[Evaluate file information for custom field mapping]]></description>
|
7307 |
<long-description><![CDATA[]]></long-description>
|
7308 |
-
<tag line="
|
7309 |
-
<tag line="
|
7310 |
<type by_reference="false">string</type>
|
7311 |
</tag>
|
7312 |
-
<tag line="
|
7313 |
<type by_reference="false">array</type>
|
7314 |
</tag>
|
7315 |
</docblock>
|
7316 |
-
<argument line="
|
7317 |
<name>$support_type</name>
|
7318 |
<default><![CDATA['default_columns']]></default>
|
7319 |
<type/>
|
7320 |
</argument>
|
7321 |
</method>
|
7322 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
7323 |
<name>_evaluate_file_information</name>
|
7324 |
<full_name>_evaluate_file_information</full_name>
|
7325 |
-
<docblock line="
|
7326 |
<description><![CDATA[Evaluate file information for custom field mapping]]></description>
|
7327 |
<long-description><![CDATA[]]></long-description>
|
7328 |
-
<tag line="
|
7329 |
-
<tag line="
|
7330 |
<type by_reference="false">string</type>
|
7331 |
</tag>
|
7332 |
-
<tag line="
|
7333 |
<type by_reference="false">array</type>
|
7334 |
</tag>
|
7335 |
-
<tag line="
|
7336 |
<type by_reference="false">array</type>
|
7337 |
</tag>
|
7338 |
-
<tag line="
|
7339 |
<type by_reference="false">integer</type>
|
7340 |
</tag>
|
7341 |
-
<tag line="
|
7342 |
<type by_reference="false">array</type>
|
7343 |
</tag>
|
7344 |
</docblock>
|
7345 |
-
<argument line="
|
7346 |
<name>$upload_dir</name>
|
7347 |
<default><![CDATA[]]></default>
|
7348 |
<type/>
|
7349 |
</argument>
|
7350 |
-
<argument line="
|
7351 |
<name>$wp_attached_files</name>
|
7352 |
<default><![CDATA[]]></default>
|
7353 |
<type/>
|
7354 |
</argument>
|
7355 |
-
<argument line="
|
7356 |
<name>$wp_attachment_metadata</name>
|
7357 |
<default><![CDATA[]]></default>
|
7358 |
<type/>
|
7359 |
</argument>
|
7360 |
-
<argument line="
|
7361 |
<name>$post_id</name>
|
7362 |
<default><![CDATA[]]></default>
|
7363 |
<type/>
|
7364 |
</argument>
|
7365 |
</method>
|
7366 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
7367 |
<name>_evaluate_post_information</name>
|
7368 |
<full_name>_evaluate_post_information</full_name>
|
7369 |
-
<docblock line="
|
7370 |
<description><![CDATA[Evaluate post information for custom field mapping]]></description>
|
7371 |
<long-description><![CDATA[]]></long-description>
|
7372 |
-
<tag line="
|
7373 |
-
<tag line="
|
7374 |
<type by_reference="false">integer</type>
|
7375 |
</tag>
|
7376 |
-
<tag line="
|
7377 |
<type by_reference="false">string</type>
|
7378 |
</tag>
|
7379 |
-
<tag line="
|
7380 |
<type by_reference="false">string</type>
|
7381 |
</tag>
|
7382 |
-
<tag line="
|
7383 |
<type by_reference="false">mixed</type>
|
7384 |
</tag>
|
7385 |
</docblock>
|
7386 |
-
<argument line="
|
7387 |
<name>$post_id</name>
|
7388 |
<default><![CDATA[]]></default>
|
7389 |
<type/>
|
7390 |
</argument>
|
7391 |
-
<argument line="
|
7392 |
<name>$category</name>
|
7393 |
<default><![CDATA[]]></default>
|
7394 |
<type/>
|
7395 |
</argument>
|
7396 |
-
<argument line="
|
7397 |
<name>$data_source</name>
|
7398 |
<default><![CDATA[]]></default>
|
7399 |
<type/>
|
7400 |
</argument>
|
7401 |
</method>
|
7402 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
7403 |
<name>_evaluate_array_result</name>
|
7404 |
<full_name>_evaluate_array_result</full_name>
|
7405 |
-
<docblock line="
|
7406 |
<description><![CDATA[Evaluate post information for custom field mapping]]></description>
|
7407 |
<long-description><![CDATA[]]></long-description>
|
7408 |
-
<tag line="
|
7409 |
-
<tag line="
|
7410 |
<type by_reference="false">array</type>
|
7411 |
</tag>
|
7412 |
-
<tag line="
|
7413 |
<type by_reference="false">string</type>
|
7414 |
</tag>
|
7415 |
-
<tag line="
|
7416 |
<type by_reference="false">boolean</type>
|
7417 |
</tag>
|
7418 |
-
<tag line="
|
7419 |
<type by_reference="false">mixed</type>
|
7420 |
</tag>
|
7421 |
</docblock>
|
7422 |
-
<argument line="
|
7423 |
<name>$value</name>
|
7424 |
<default><![CDATA[]]></default>
|
7425 |
<type/>
|
7426 |
</argument>
|
7427 |
-
<argument line="
|
7428 |
<name>$option</name>
|
7429 |
<default><![CDATA[]]></default>
|
7430 |
<type/>
|
7431 |
</argument>
|
7432 |
-
<argument line="
|
7433 |
<name>$keep_existing</name>
|
7434 |
<default><![CDATA[]]></default>
|
7435 |
<type/>
|
7436 |
</argument>
|
7437 |
</method>
|
7438 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
7439 |
<name>mla_get_data_source</name>
|
7440 |
<full_name>mla_get_data_source</full_name>
|
7441 |
-
<docblock line="
|
7442 |
<description><![CDATA[Get IPTC/EXIF or custom field mapping data source]]></description>
|
7443 |
<long-description><![CDATA[<p>Defined as public so MLA Mapping Hooks clients can call it.
|
7444 |
Isolates clients from changes to _evaluate_data_source().</p>]]></long-description>
|
7445 |
-
<tag line="
|
7446 |
-
<tag line="
|
7447 |
<type by_reference="false">integer</type>
|
7448 |
</tag>
|
7449 |
-
<tag line="
|
7450 |
<type by_reference="false">string</type>
|
7451 |
</tag>
|
7452 |
-
<tag line="
|
7453 |
<type by_reference="false">array</type>
|
7454 |
</tag>
|
7455 |
-
<tag line="
|
7456 |
<type by_reference="false">array</type>
|
7457 |
</tag>
|
7458 |
-
<tag line="
|
7459 |
<type by_reference="false">string</type>
|
7460 |
<type by_reference="false">array</type>
|
7461 |
</tag>
|
7462 |
</docblock>
|
7463 |
-
<argument line="
|
7464 |
<name>$post_id</name>
|
7465 |
<default><![CDATA[]]></default>
|
7466 |
<type/>
|
7467 |
</argument>
|
7468 |
-
<argument line="
|
7469 |
<name>$category</name>
|
7470 |
<default><![CDATA[]]></default>
|
7471 |
<type/>
|
7472 |
</argument>
|
7473 |
-
<argument line="
|
7474 |
<name>$data_value</name>
|
7475 |
<default><![CDATA[]]></default>
|
7476 |
<type/>
|
7477 |
</argument>
|
7478 |
-
<argument line="
|
7479 |
<name>$attachment_metadata</name>
|
7480 |
<default><![CDATA[NULL]]></default>
|
7481 |
<type/>
|
7482 |
</argument>
|
7483 |
</method>
|
7484 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
7485 |
<name>mla_is_data_source</name>
|
7486 |
<full_name>mla_is_data_source</full_name>
|
7487 |
-
<docblock line="
|
7488 |
<description><![CDATA[Identify custom field mapping data source]]></description>
|
7489 |
<long-description><![CDATA[<p>Determines whether a name matches any of the element-level data source dropdown options, i.e.,
|
7490 |
excludes "template:" and "meta:" values.</p>]]></long-description>
|
7491 |
-
<tag line="
|
7492 |
-
<tag line="
|
7493 |
<type by_reference="false">string</type>
|
7494 |
</tag>
|
7495 |
-
<tag line="
|
7496 |
<type by_reference="false">boolean</type>
|
7497 |
</tag>
|
7498 |
</docblock>
|
7499 |
-
<argument line="
|
7500 |
<name>$candidate_name</name>
|
7501 |
<default><![CDATA[]]></default>
|
7502 |
<type/>
|
7503 |
</argument>
|
7504 |
</method>
|
7505 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
7506 |
<name>_evaluate_data_source</name>
|
7507 |
<full_name>_evaluate_data_source</full_name>
|
7508 |
-
<docblock line="
|
7509 |
<description><![CDATA[Evaluate custom field mapping data source]]></description>
|
7510 |
<long-description><![CDATA[]]></long-description>
|
7511 |
-
<tag line="
|
7512 |
-
<tag line="
|
7513 |
<type by_reference="false">integer</type>
|
7514 |
</tag>
|
7515 |
-
<tag line="
|
7516 |
<type by_reference="false">string</type>
|
7517 |
</tag>
|
7518 |
-
<tag line="
|
7519 |
<type by_reference="false">array</type>
|
7520 |
</tag>
|
7521 |
-
<tag line="
|
7522 |
<type by_reference="false">array</type>
|
7523 |
</tag>
|
7524 |
-
<tag line="
|
7525 |
<type by_reference="false">string</type>
|
7526 |
<type by_reference="false">array</type>
|
7527 |
</tag>
|
7528 |
</docblock>
|
7529 |
-
<argument line="
|
7530 |
<name>$post_id</name>
|
7531 |
<default><![CDATA[]]></default>
|
7532 |
<type/>
|
7533 |
</argument>
|
7534 |
-
<argument line="
|
7535 |
<name>$category</name>
|
7536 |
<default><![CDATA[]]></default>
|
7537 |
<type/>
|
7538 |
</argument>
|
7539 |
-
<argument line="
|
7540 |
<name>$data_value</name>
|
7541 |
<default><![CDATA[]]></default>
|
7542 |
<type/>
|
7543 |
</argument>
|
7544 |
-
<argument line="
|
7545 |
<name>$attachment_metadata</name>
|
7546 |
<default><![CDATA[NULL]]></default>
|
7547 |
<type/>
|
7548 |
</argument>
|
7549 |
</method>
|
7550 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
7551 |
<name>mla_evaluate_custom_field_mapping</name>
|
7552 |
<full_name>mla_evaluate_custom_field_mapping</full_name>
|
7553 |
-
<docblock line="
|
7554 |
<description><![CDATA[Evaluate custom field mapping updates for a post]]></description>
|
7555 |
<long-description><![CDATA[]]></long-description>
|
7556 |
-
<tag line="
|
7557 |
-
<tag line="
|
7558 |
<type by_reference="false">integer</type>
|
7559 |
</tag>
|
7560 |
-
<tag line="
|
7561 |
<type by_reference="false">string</type>
|
7562 |
</tag>
|
7563 |
-
<tag line="
|
7564 |
<type by_reference="false">array</type>
|
7565 |
</tag>
|
7566 |
-
<tag line="
|
7567 |
<type by_reference="false">array</type>
|
7568 |
</tag>
|
7569 |
-
<tag line="
|
7570 |
<type by_reference="false">array</type>
|
7571 |
</tag>
|
7572 |
</docblock>
|
7573 |
-
<argument line="
|
7574 |
<name>$post_id</name>
|
7575 |
<default><![CDATA[]]></default>
|
7576 |
<type/>
|
7577 |
</argument>
|
7578 |
-
<argument line="
|
7579 |
<name>$category</name>
|
7580 |
<default><![CDATA[]]></default>
|
7581 |
<type/>
|
7582 |
</argument>
|
7583 |
-
<argument line="
|
7584 |
<name>$settings</name>
|
7585 |
<default><![CDATA[NULL]]></default>
|
7586 |
<type/>
|
7587 |
</argument>
|
7588 |
-
<argument line="
|
7589 |
<name>$attachment_metadata</name>
|
7590 |
<default><![CDATA[NULL]]></default>
|
7591 |
<type/>
|
7592 |
</argument>
|
7593 |
</method>
|
7594 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
7595 |
<name>_compose_custom_field_option_list</name>
|
7596 |
<full_name>_compose_custom_field_option_list</full_name>
|
7597 |
-
<docblock line="
|
7598 |
<description><![CDATA[Compose a Custom Field Options list with current selection]]></description>
|
7599 |
<long-description><![CDATA[]]></long-description>
|
7600 |
-
<tag line="
|
7601 |
-
<tag line="
|
7602 |
-
<tag line="
|
7603 |
<type by_reference="false">string</type>
|
7604 |
</tag>
|
7605 |
-
<tag line="
|
7606 |
<type by_reference="false">array</type>
|
7607 |
</tag>
|
7608 |
-
<tag line="
|
7609 |
<type by_reference="false">string</type>
|
7610 |
</tag>
|
7611 |
</docblock>
|
7612 |
-
<argument line="
|
7613 |
<name>$selection</name>
|
7614 |
<default><![CDATA['none']]></default>
|
7615 |
<type/>
|
7616 |
</argument>
|
7617 |
-
<argument line="
|
7618 |
<name>$blacklist</name>
|
7619 |
<default><![CDATA[array()]]></default>
|
7620 |
<type/>
|
7621 |
</argument>
|
7622 |
</method>
|
7623 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
7624 |
<name>_compose_data_source_option_list</name>
|
7625 |
<full_name>_compose_data_source_option_list</full_name>
|
7626 |
-
<docblock line="
|
7627 |
<description><![CDATA[Compose a (Custom Field) Data Source Options list with current selection]]></description>
|
7628 |
<long-description><![CDATA[]]></long-description>
|
7629 |
-
<tag line="
|
7630 |
-
<tag line="
|
7631 |
-
<tag line="
|
7632 |
<type by_reference="false">string</type>
|
7633 |
</tag>
|
7634 |
-
<tag line="
|
7635 |
<type by_reference="false">string</type>
|
7636 |
</tag>
|
7637 |
</docblock>
|
7638 |
-
<argument line="
|
7639 |
<name>$selection</name>
|
7640 |
<default><![CDATA['none']]></default>
|
7641 |
<type/>
|
7642 |
</argument>
|
7643 |
</method>
|
7644 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
7645 |
<name>_update_custom_field_mapping</name>
|
7646 |
<full_name>_update_custom_field_mapping</full_name>
|
7647 |
-
<docblock line="
|
7648 |
<description><![CDATA[Update custom field mappings]]></description>
|
7649 |
<long-description><![CDATA[]]></long-description>
|
7650 |
-
<tag line="
|
7651 |
-
<tag line="
|
7652 |
<type by_reference="false">array</type>
|
7653 |
</tag>
|
7654 |
-
<tag line="
|
7655 |
<type by_reference="false">array</type>
|
7656 |
</tag>
|
7657 |
-
<tag line="
|
7658 |
<type by_reference="false">array</type>
|
7659 |
</tag>
|
7660 |
</docblock>
|
7661 |
-
<argument line="
|
7662 |
<name>$current_values</name>
|
7663 |
<default><![CDATA[]]></default>
|
7664 |
<type/>
|
7665 |
</argument>
|
7666 |
-
<argument line="
|
7667 |
<name>$new_values</name>
|
7668 |
<default><![CDATA[]]></default>
|
7669 |
<type/>
|
7670 |
</argument>
|
7671 |
</method>
|
7672 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
7673 |
<name>mla_custom_field_option_handler</name>
|
7674 |
<full_name>mla_custom_field_option_handler</full_name>
|
7675 |
-
<docblock line="
|
7676 |
<description><![CDATA[Render and manage custom field mapping options]]></description>
|
7677 |
<long-description><![CDATA[]]></long-description>
|
7678 |
-
<tag line="
|
7679 |
-
<tag line="
|
7680 |
-
<tag line="
|
7681 |
<type by_reference="false">string</type>
|
7682 |
</tag>
|
7683 |
-
<tag line="
|
7684 |
<type by_reference="false">string</type>
|
7685 |
</tag>
|
7686 |
-
<tag line="
|
7687 |
<type by_reference="false">array</type>
|
7688 |
</tag>
|
7689 |
-
<tag line="
|
7690 |
<type by_reference="false">array</type>
|
7691 |
</tag>
|
7692 |
-
<tag line="
|
7693 |
<type by_reference="false">string</type>
|
7694 |
</tag>
|
7695 |
</docblock>
|
7696 |
-
<argument line="
|
7697 |
<name>$action</name>
|
7698 |
<default><![CDATA[]]></default>
|
7699 |
<type/>
|
7700 |
</argument>
|
7701 |
-
<argument line="
|
7702 |
<name>$key</name>
|
7703 |
<default><![CDATA[]]></default>
|
7704 |
<type/>
|
7705 |
</argument>
|
7706 |
-
<argument line="
|
7707 |
<name>$value</name>
|
7708 |
<default><![CDATA[]]></default>
|
7709 |
<type/>
|
7710 |
</argument>
|
7711 |
-
<argument line="
|
7712 |
<name>$args</name>
|
7713 |
<default><![CDATA[null]]></default>
|
7714 |
<type/>
|
7715 |
</argument>
|
7716 |
</method>
|
7717 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
7718 |
<name>mla_evaluate_iptc_exif_mapping</name>
|
7719 |
<full_name>mla_evaluate_iptc_exif_mapping</full_name>
|
7720 |
-
<docblock line="
|
7721 |
<description><![CDATA[Evaluate IPTC/EXIF mapping updates for a post]]></description>
|
7722 |
<long-description><![CDATA[]]></long-description>
|
7723 |
-
<tag line="
|
7724 |
-
<tag line="
|
7725 |
<type by_reference="false">object</type>
|
7726 |
</tag>
|
7727 |
-
<tag line="
|
7728 |
<type by_reference="false">string</type>
|
7729 |
</tag>
|
7730 |
-
<tag line="
|
7731 |
<type by_reference="false">array</type>
|
7732 |
</tag>
|
7733 |
-
<tag line="
|
7734 |
<type by_reference="false">array</type>
|
7735 |
</tag>
|
7736 |
-
<tag line="
|
7737 |
<type by_reference="false">array</type>
|
7738 |
</tag>
|
7739 |
</docblock>
|
7740 |
-
<argument line="
|
7741 |
<name>$post</name>
|
7742 |
<default><![CDATA[]]></default>
|
7743 |
<type/>
|
7744 |
</argument>
|
7745 |
-
<argument line="
|
7746 |
<name>$category</name>
|
7747 |
<default><![CDATA[]]></default>
|
7748 |
<type/>
|
7749 |
</argument>
|
7750 |
-
<argument line="
|
7751 |
<name>$settings</name>
|
7752 |
<default><![CDATA[NULL]]></default>
|
7753 |
<type/>
|
7754 |
</argument>
|
7755 |
-
<argument line="
|
7756 |
<name>$attachment_metadata</name>
|
7757 |
<default><![CDATA[NULL]]></default>
|
7758 |
<type/>
|
7759 |
</argument>
|
7760 |
</method>
|
7761 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
7762 |
<name>_compose_iptc_option_list</name>
|
7763 |
<full_name>_compose_iptc_option_list</full_name>
|
7764 |
-
<docblock line="
|
7765 |
<description><![CDATA[Compose an IPTC Options list with current selection]]></description>
|
7766 |
<long-description><![CDATA[]]></long-description>
|
7767 |
-
<tag line="
|
7768 |
-
<tag line="
|
7769 |
-
<tag line="
|
7770 |
<type by_reference="false">string</type>
|
7771 |
</tag>
|
7772 |
-
<tag line="
|
7773 |
<type by_reference="false">string</type>
|
7774 |
</tag>
|
7775 |
</docblock>
|
7776 |
-
<argument line="
|
7777 |
<name>$selection</name>
|
7778 |
<default><![CDATA['none']]></default>
|
7779 |
<type/>
|
7780 |
</argument>
|
7781 |
</method>
|
7782 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
7783 |
<name>_compose_parent_option_list</name>
|
7784 |
<full_name>_compose_parent_option_list</full_name>
|
7785 |
-
<docblock line="
|
7786 |
<description><![CDATA[Compose an hierarchical taxonomy Parent options list with current selection]]></description>
|
7787 |
<long-description><![CDATA[]]></long-description>
|
7788 |
-
<tag line="
|
7789 |
-
<tag line="
|
7790 |
-
<tag line="
|
7791 |
<type by_reference="false">string</type>
|
7792 |
</tag>
|
7793 |
-
<tag line="
|
7794 |
<type by_reference="false">integer</type>
|
7795 |
</tag>
|
7796 |
-
<tag line="
|
7797 |
<type by_reference="false">string</type>
|
7798 |
</tag>
|
7799 |
</docblock>
|
7800 |
-
<argument line="
|
7801 |
<name>$taxonomy</name>
|
7802 |
<default><![CDATA[]]></default>
|
7803 |
<type/>
|
7804 |
</argument>
|
7805 |
-
<argument line="
|
7806 |
<name>$selection</name>
|
7807 |
<default><![CDATA[0]]></default>
|
7808 |
<type/>
|
7809 |
</argument>
|
7810 |
</method>
|
7811 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
7812 |
<name>_update_iptc_exif_standard_mapping</name>
|
7813 |
<full_name>_update_iptc_exif_standard_mapping</full_name>
|
7814 |
-
<docblock line="
|
7815 |
<description><![CDATA[Update Standard field portion of IPTC/EXIF mappings]]></description>
|
7816 |
<long-description><![CDATA[]]></long-description>
|
7817 |
-
<tag line="
|
7818 |
-
<tag line="
|
7819 |
<type by_reference="false">array</type>
|
7820 |
</tag>
|
7821 |
-
<tag line="
|
7822 |
<type by_reference="false">array</type>
|
7823 |
</tag>
|
7824 |
-
<tag line="
|
7825 |
<type by_reference="false">array</type>
|
7826 |
</tag>
|
7827 |
</docblock>
|
7828 |
-
<argument line="
|
7829 |
<name>$current_values</name>
|
7830 |
<default><![CDATA[]]></default>
|
7831 |
<type/>
|
7832 |
</argument>
|
7833 |
-
<argument line="
|
7834 |
<name>$new_values</name>
|
7835 |
<default><![CDATA[]]></default>
|
7836 |
<type/>
|
7837 |
</argument>
|
7838 |
</method>
|
7839 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
7840 |
<name>_update_iptc_exif_taxonomy_mapping</name>
|
7841 |
<full_name>_update_iptc_exif_taxonomy_mapping</full_name>
|
7842 |
-
<docblock line="
|
7843 |
<description><![CDATA[Update Taxonomy term portion of IPTC/EXIF mappings]]></description>
|
7844 |
<long-description><![CDATA[]]></long-description>
|
7845 |
-
<tag line="
|
7846 |
-
<tag line="
|
7847 |
<type by_reference="false">array</type>
|
7848 |
</tag>
|
7849 |
-
<tag line="
|
7850 |
<type by_reference="false">array</type>
|
7851 |
</tag>
|
7852 |
-
<tag line="
|
7853 |
<type by_reference="false">array</type>
|
7854 |
</tag>
|
7855 |
</docblock>
|
7856 |
-
<argument line="
|
7857 |
<name>$current_values</name>
|
7858 |
<default><![CDATA[]]></default>
|
7859 |
<type/>
|
7860 |
</argument>
|
7861 |
-
<argument line="
|
7862 |
<name>$new_values</name>
|
7863 |
<default><![CDATA[]]></default>
|
7864 |
<type/>
|
7865 |
</argument>
|
7866 |
</method>
|
7867 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
7868 |
<name>_update_iptc_exif_custom_mapping</name>
|
7869 |
<full_name>_update_iptc_exif_custom_mapping</full_name>
|
7870 |
-
<docblock line="
|
7871 |
<description><![CDATA[Update Custom field portion of IPTC/EXIF mappings]]></description>
|
7872 |
<long-description><![CDATA[]]></long-description>
|
7873 |
-
<tag line="
|
7874 |
-
<tag line="
|
7875 |
<type by_reference="false">array</type>
|
7876 |
</tag>
|
7877 |
-
<tag line="
|
7878 |
<type by_reference="false">array</type>
|
7879 |
</tag>
|
7880 |
-
<tag line="
|
7881 |
<type by_reference="false">array</type>
|
7882 |
</tag>
|
7883 |
</docblock>
|
7884 |
-
<argument line="
|
7885 |
<name>$current_values</name>
|
7886 |
<default><![CDATA[]]></default>
|
7887 |
<type/>
|
7888 |
</argument>
|
7889 |
-
<argument line="
|
7890 |
<name>$new_values</name>
|
7891 |
<default><![CDATA[]]></default>
|
7892 |
<type/>
|
7893 |
</argument>
|
7894 |
</method>
|
7895 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
7896 |
<name>_get_custom_field_names</name>
|
7897 |
<full_name>_get_custom_field_names</full_name>
|
7898 |
-
<docblock line="
|
7899 |
<description><![CDATA[Generate a list of all (post) Custom Field names]]></description>
|
7900 |
<long-description><![CDATA[<p>The list will include any Custom Field and IPTC/EXIF rules that
|
7901 |
haven't been mapped to any attachments, yet.</p>]]></long-description>
|
7902 |
-
<tag line="
|
7903 |
-
<tag line="
|
7904 |
<type by_reference="false">array</type>
|
7905 |
</tag>
|
7906 |
</docblock>
|
7907 |
</method>
|
7908 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
7909 |
<name>mla_iptc_exif_option_handler</name>
|
7910 |
<full_name>mla_iptc_exif_option_handler</full_name>
|
7911 |
-
<docblock line="
|
7912 |
<description><![CDATA[Render and manage iptc/exif support options]]></description>
|
7913 |
<long-description><![CDATA[]]></long-description>
|
7914 |
-
<tag line="
|
7915 |
-
<tag line="
|
7916 |
-
<tag line="
|
7917 |
<type by_reference="false">string</type>
|
7918 |
</tag>
|
7919 |
-
<tag line="
|
7920 |
<type by_reference="false">string</type>
|
7921 |
</tag>
|
7922 |
-
<tag line="
|
7923 |
<type by_reference="false">array</type>
|
7924 |
</tag>
|
7925 |
-
<tag line="
|
7926 |
<type by_reference="false">array</type>
|
7927 |
</tag>
|
7928 |
-
<tag line="
|
7929 |
<type by_reference="false">string</type>
|
7930 |
</tag>
|
7931 |
</docblock>
|
7932 |
-
<argument line="
|
7933 |
<name>$action</name>
|
7934 |
<default><![CDATA[]]></default>
|
7935 |
<type/>
|
7936 |
</argument>
|
7937 |
-
<argument line="
|
7938 |
<name>$key</name>
|
7939 |
<default><![CDATA[]]></default>
|
7940 |
<type/>
|
7941 |
</argument>
|
7942 |
-
<argument line="
|
7943 |
<name>$value</name>
|
7944 |
<default><![CDATA[]]></default>
|
7945 |
<type/>
|
7946 |
</argument>
|
7947 |
-
<argument line="
|
7948 |
<name>$args</name>
|
7949 |
<default><![CDATA[null]]></default>
|
7950 |
<type/>
|
@@ -7952,7 +8289,7 @@ haven't been mapped to any attachments, yet.</p>]]></long-description>
|
|
7952 |
</method>
|
7953 |
</class>
|
7954 |
</file>
|
7955 |
-
<file path="includes\class-mla-settings.php" hash="
|
7956 |
<docblock line="2">
|
7957 |
<description><![CDATA[Manages the settings page to edit the plugin option settings]]></description>
|
7958 |
<long-description><![CDATA[]]></long-description>
|
@@ -8868,57 +9205,57 @@ without saving the settings to the mla_option]]></description>
|
|
8868 |
</tag>
|
8869 |
</docblock>
|
8870 |
</method>
|
8871 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
8872 |
<name>_reset_general_settings</name>
|
8873 |
<full_name>_reset_general_settings</full_name>
|
8874 |
-
<docblock line="
|
8875 |
<description><![CDATA[Delete saved settings, restoring default values]]></description>
|
8876 |
<long-description><![CDATA[]]></long-description>
|
8877 |
-
<tag line="
|
8878 |
-
<tag line="
|
8879 |
<type by_reference="false">array</type>
|
8880 |
</tag>
|
8881 |
</docblock>
|
8882 |
</method>
|
8883 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
8884 |
<name>_compose_import_settings</name>
|
8885 |
<full_name>_compose_import_settings</full_name>
|
8886 |
-
<docblock line="
|
8887 |
<description><![CDATA[Compose HTML markup for the import settings if any settings files exist]]></description>
|
8888 |
<long-description><![CDATA[]]></long-description>
|
8889 |
-
<tag line="
|
8890 |
-
<tag line="
|
8891 |
<type by_reference="false">string</type>
|
8892 |
</tag>
|
8893 |
</docblock>
|
8894 |
</method>
|
8895 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
8896 |
<name>_export_settings</name>
|
8897 |
<full_name>_export_settings</full_name>
|
8898 |
-
<docblock line="
|
8899 |
<description><![CDATA[Serialize option settings and write them to a file]]></description>
|
8900 |
<long-description><![CDATA[<p>Options with a default value, i.e., not stored in the database are NOT written to the file.</p>]]></long-description>
|
8901 |
-
<tag line="
|
8902 |
-
<tag line="
|
8903 |
<type by_reference="false">array</type>
|
8904 |
</tag>
|
8905 |
</docblock>
|
8906 |
</method>
|
8907 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
8908 |
<name>_import_settings</name>
|
8909 |
<full_name>_import_settings</full_name>
|
8910 |
-
<docblock line="
|
8911 |
<description><![CDATA[Read a serialized file of option settings and write them to the database]]></description>
|
8912 |
<long-description><![CDATA[]]></long-description>
|
8913 |
-
<tag line="
|
8914 |
-
<tag line="
|
8915 |
<type by_reference="false">array</type>
|
8916 |
</tag>
|
8917 |
</docblock>
|
8918 |
</method>
|
8919 |
</class>
|
8920 |
</file>
|
8921 |
-
<file path="includes\class-mla-shortcodes.php" hash="
|
8922 |
<docblock line="2">
|
8923 |
<description><![CDATA[Media Library Assistant Shortcode handler(s)]]></description>
|
8924 |
<long-description><![CDATA[]]></long-description>
|
@@ -8959,55 +9296,55 @@ without saving the settings to the mla_option]]></description>
|
|
8959 |
</tag>
|
8960 |
</docblock>
|
8961 |
</property>
|
8962 |
-
<property final="false" static="true" visibility="private" line="
|
8963 |
<name>$query_parameters</name>
|
8964 |
<default><![CDATA[array()]]></default>
|
8965 |
-
<docblock line="
|
8966 |
<description><![CDATA[WP_Query filter "parameters"]]></description>
|
8967 |
<long-description><![CDATA[<p>This array defines parameters for the query's join, where and orderby filters.
|
8968 |
The parameters are set up in the mla_get_shortcode_attachments function, and
|
8969 |
any further logic required to translate those values is contained in the filter.</p>
|
8970 |
|
8971 |
<p>Array index values are: orderby, post_parent</p>]]></long-description>
|
8972 |
-
<tag line="
|
8973 |
-
<tag line="
|
8974 |
<type by_reference="false">array</type>
|
8975 |
</tag>
|
8976 |
</docblock>
|
8977 |
</property>
|
8978 |
-
<property final="false" static="true" visibility="private" line="
|
8979 |
<name>$mla_get_shortcode_attachments_parameters</name>
|
8980 |
<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>
|
8981 |
-
<docblock line="
|
8982 |
<description><![CDATA[Data selection parameters for the WP_Query in [mla_gallery]]]></description>
|
8983 |
<long-description><![CDATA[]]></long-description>
|
8984 |
-
<tag line="
|
8985 |
-
<tag line="
|
8986 |
<type by_reference="false">array</type>
|
8987 |
</tag>
|
8988 |
</docblock>
|
8989 |
</property>
|
8990 |
-
<property final="false" static="true" visibility="public" line="
|
8991 |
<name>$mla_gallery_wp_query_object</name>
|
8992 |
<default><![CDATA[NULL]]></default>
|
8993 |
-
<docblock line="
|
8994 |
<description><![CDATA[The WP_Query object used to select items for the gallery.]]></description>
|
8995 |
<long-description><![CDATA[<p>Defined as a public, static variable so it can be inspected from the
|
8996 |
"mla_gallery_wp_query_object" action. Set to NULL at all other times.</p>]]></long-description>
|
8997 |
-
<tag line="
|
8998 |
-
<tag line="
|
8999 |
<type by_reference="false">object</type>
|
9000 |
</tag>
|
9001 |
</docblock>
|
9002 |
</property>
|
9003 |
-
<property final="false" static="true" visibility="private" line="
|
9004 |
<name>$mla_get_terms_parameters</name>
|
9005 |
-
<default><![CDATA[array('taxonomy' => 'post_tag', 'post_mime_type' => 'all', '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' =>
|
9006 |
-
<docblock line="
|
9007 |
<description><![CDATA[Data selection parameters for [mla_tag_cloud]]]></description>
|
9008 |
<long-description><![CDATA[]]></long-description>
|
9009 |
-
<tag line="
|
9010 |
-
<tag line="
|
9011 |
<type by_reference="false">array</type>
|
9012 |
</tag>
|
9013 |
</docblock>
|
@@ -9066,393 +9403,401 @@ Enhancements include many additional selection parameters and full taxonomy supp
|
|
9066 |
<type/>
|
9067 |
</argument>
|
9068 |
</method>
|
9069 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
9070 |
<name>mla_tag_cloud</name>
|
9071 |
<full_name>mla_tag_cloud</full_name>
|
9072 |
-
<docblock line="
|
9073 |
<description><![CDATA[The MLA Tag Cloud support function.]]></description>
|
9074 |
<long-description><![CDATA[<p>This is an alternative to the WordPress wp_tag_cloud function, with additional
|
9075 |
options to customize the hyperlink behind each term.</p>]]></long-description>
|
9076 |
-
<tag line="
|
9077 |
-
<tag line="
|
9078 |
<type by_reference="false">array</type>
|
9079 |
</tag>
|
9080 |
-
<tag line="
|
9081 |
<type by_reference="false">string</type>
|
9082 |
</tag>
|
9083 |
</docblock>
|
9084 |
-
<argument line="
|
9085 |
<name>$attr</name>
|
9086 |
<default><![CDATA[]]></default>
|
9087 |
<type/>
|
9088 |
</argument>
|
9089 |
</method>
|
9090 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
9091 |
<name>mla_tag_cloud_shortcode</name>
|
9092 |
<full_name>mla_tag_cloud_shortcode</full_name>
|
9093 |
-
<docblock line="
|
9094 |
<description><![CDATA[The MLA Tag Cloud shortcode.]]></description>
|
9095 |
<long-description><![CDATA[<p>This is an interface to the mla_tag_cloud function.</p>]]></long-description>
|
9096 |
-
<tag line="
|
9097 |
-
<tag line="
|
9098 |
<type by_reference="false">array</type>
|
9099 |
</tag>
|
9100 |
-
<tag line="
|
9101 |
<type by_reference="false">string</type>
|
9102 |
</tag>
|
9103 |
</docblock>
|
9104 |
-
<argument line="
|
9105 |
<name>$attr</name>
|
9106 |
<default><![CDATA[]]></default>
|
9107 |
<type/>
|
9108 |
</argument>
|
9109 |
</method>
|
9110 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
9111 |
<name>_registered_dimensions</name>
|
9112 |
<full_name>_registered_dimensions</full_name>
|
9113 |
-
<docblock line="
|
9114 |
<description><![CDATA[Computes image dimensions for scalable graphics, e.g., SVG]]></description>
|
9115 |
<long-description><![CDATA[]]></long-description>
|
9116 |
-
<tag line="
|
9117 |
-
<tag line="
|
9118 |
<type by_reference="false">array</type>
|
9119 |
</tag>
|
9120 |
</docblock>
|
9121 |
</method>
|
9122 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
9123 |
<name>_process_shortcode_parameter</name>
|
9124 |
<full_name>_process_shortcode_parameter</full_name>
|
9125 |
-
<docblock line="
|
9126 |
<description><![CDATA[Handles brace/bracket escaping and parses template for a shortcode parameter]]></description>
|
9127 |
<long-description><![CDATA[]]></long-description>
|
9128 |
-
<tag line="
|
9129 |
-
<tag line="
|
9130 |
<type by_reference="false">string</type>
|
9131 |
</tag>
|
9132 |
-
<tag line="
|
9133 |
<type by_reference="false">string</type>
|
9134 |
</tag>
|
9135 |
-
<tag line="
|
9136 |
<type by_reference="false">string</type>
|
9137 |
</tag>
|
9138 |
</docblock>
|
9139 |
-
<argument line="
|
9140 |
<name>$text</name>
|
9141 |
<default><![CDATA[]]></default>
|
9142 |
<type/>
|
9143 |
</argument>
|
9144 |
-
<argument line="
|
9145 |
<name>$markup_values</name>
|
9146 |
<default><![CDATA[]]></default>
|
9147 |
<type/>
|
9148 |
</argument>
|
9149 |
</method>
|
9150 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
9151 |
<name>_paginate_links</name>
|
9152 |
<full_name>_paginate_links</full_name>
|
9153 |
-
<docblock line="
|
9154 |
<description><![CDATA[Handles pagnation output types 'previous_page', 'next_page', and 'paginate_links']]></description>
|
9155 |
<long-description><![CDATA[]]></long-description>
|
9156 |
-
<tag line="
|
9157 |
-
<tag line="
|
9158 |
<type by_reference="false">array</type>
|
9159 |
</tag>
|
9160 |
-
<tag line="
|
9161 |
<type by_reference="false">string</type>
|
9162 |
</tag>
|
9163 |
-
<tag line="
|
9164 |
<type by_reference="false">string</type>
|
9165 |
</tag>
|
9166 |
-
<tag line="
|
9167 |
<type by_reference="false">integer</type>
|
9168 |
</tag>
|
9169 |
-
<tag line="
|
9170 |
<type by_reference="false">string</type>
|
9171 |
</tag>
|
9172 |
-
<tag line="
|
9173 |
<type by_reference="false">mixed</type>
|
9174 |
</tag>
|
9175 |
</docblock>
|
9176 |
-
<argument line="
|
9177 |
<name>$output_parameters</name>
|
9178 |
<default><![CDATA[]]></default>
|
9179 |
<type/>
|
9180 |
</argument>
|
9181 |
-
<argument line="
|
9182 |
<name>$markup_values</name>
|
9183 |
<default><![CDATA[]]></default>
|
9184 |
<type/>
|
9185 |
</argument>
|
9186 |
-
<argument line="
|
9187 |
<name>$arguments</name>
|
9188 |
<default><![CDATA[]]></default>
|
9189 |
<type/>
|
9190 |
</argument>
|
9191 |
-
<argument line="
|
9192 |
<name>$found_rows</name>
|
9193 |
<default><![CDATA[]]></default>
|
9194 |
<type/>
|
9195 |
</argument>
|
9196 |
-
<argument line="
|
9197 |
<name>$output</name>
|
9198 |
<default><![CDATA['']]></default>
|
9199 |
<type/>
|
9200 |
</argument>
|
9201 |
</method>
|
9202 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
9203 |
<name>_process_pagination_output_types</name>
|
9204 |
<full_name>_process_pagination_output_types</full_name>
|
9205 |
-
<docblock line="
|
9206 |
<description><![CDATA[Handles pagnation output types 'previous_page', 'next_page', and 'paginate_links']]></description>
|
9207 |
<long-description><![CDATA[]]></long-description>
|
9208 |
-
<tag line="
|
9209 |
-
<tag line="
|
9210 |
<type by_reference="false">array</type>
|
9211 |
</tag>
|
9212 |
-
<tag line="
|
9213 |
<type by_reference="false">string</type>
|
9214 |
</tag>
|
9215 |
-
<tag line="
|
9216 |
<type by_reference="false">string</type>
|
9217 |
</tag>
|
9218 |
-
<tag line="
|
9219 |
<type by_reference="false">string</type>
|
9220 |
</tag>
|
9221 |
-
<tag line="
|
9222 |
<type by_reference="false">integer</type>
|
9223 |
</tag>
|
9224 |
-
<tag line="
|
9225 |
<type by_reference="false">string</type>
|
9226 |
</tag>
|
9227 |
-
<tag line="
|
9228 |
<type by_reference="false">mixed</type>
|
9229 |
</tag>
|
9230 |
</docblock>
|
9231 |
-
<argument line="
|
9232 |
<name>$output_parameters</name>
|
9233 |
<default><![CDATA[]]></default>
|
9234 |
<type/>
|
9235 |
</argument>
|
9236 |
-
<argument line="
|
9237 |
<name>$markup_values</name>
|
9238 |
<default><![CDATA[]]></default>
|
9239 |
<type/>
|
9240 |
</argument>
|
9241 |
-
<argument line="
|
9242 |
<name>$arguments</name>
|
9243 |
<default><![CDATA[]]></default>
|
9244 |
<type/>
|
9245 |
</argument>
|
9246 |
-
<argument line="
|
9247 |
<name>$attr</name>
|
9248 |
<default><![CDATA[]]></default>
|
9249 |
<type/>
|
9250 |
</argument>
|
9251 |
-
<argument line="
|
9252 |
<name>$found_rows</name>
|
9253 |
<default><![CDATA[]]></default>
|
9254 |
<type/>
|
9255 |
</argument>
|
9256 |
-
<argument line="
|
9257 |
<name>$output</name>
|
9258 |
<default><![CDATA['']]></default>
|
9259 |
<type/>
|
9260 |
</argument>
|
9261 |
</method>
|
9262 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
9263 |
<name>_sanitize_query_specification</name>
|
9264 |
<full_name>_sanitize_query_specification</full_name>
|
9265 |
-
<docblock line="
|
9266 |
<description><![CDATA[Cleans up damage caused by the Visual Editor to the tax_query and meta_query specifications]]></description>
|
9267 |
<long-description><![CDATA[]]></long-description>
|
9268 |
-
<tag line="
|
9269 |
-
<tag line="
|
9270 |
<type by_reference="false">string</type>
|
9271 |
</tag>
|
9272 |
-
<tag line="
|
9273 |
<type by_reference="false">string</type>
|
9274 |
</tag>
|
9275 |
</docblock>
|
9276 |
-
<argument line="
|
9277 |
<name>$specification</name>
|
9278 |
<default><![CDATA[]]></default>
|
9279 |
<type/>
|
9280 |
</argument>
|
9281 |
</method>
|
9282 |
-
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="
|
9283 |
<name>_validate_sql_orderby</name>
|
9284 |
<full_name>_validate_sql_orderby</full_name>
|
9285 |
-
<docblock line="
|
9286 |
<description><![CDATA[Translates query parameters to a valid SQL order by clause.]]></description>
|
9287 |
<long-description><![CDATA[<p>Accepts one or more valid columns, with or without ASC/DESC.
|
9288 |
Enhanced version of /wp-includes/formatting.php function sanitize_sql_orderby().</p>]]></long-description>
|
9289 |
-
<tag line="
|
9290 |
-
<tag line="
|
9291 |
<type by_reference="false">array</type>
|
9292 |
</tag>
|
9293 |
-
<tag line="
|
9294 |
<type by_reference="false">string</type>
|
9295 |
<type by_reference="false">bool</type>
|
9296 |
</tag>
|
9297 |
</docblock>
|
9298 |
-
<argument line="
|
9299 |
<name>$query_parameters</name>
|
9300 |
<default><![CDATA[]]></default>
|
9301 |
<type/>
|
9302 |
</argument>
|
9303 |
</method>
|
9304 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
9305 |
<name>mla_get_shortcode_attachments</name>
|
9306 |
<full_name>mla_get_shortcode_attachments</full_name>
|
9307 |
-
<docblock line="
|
9308 |
<description><![CDATA[Parses shortcode parameters and returns the gallery objects]]></description>
|
9309 |
<long-description><![CDATA[]]></long-description>
|
9310 |
-
<tag line="
|
9311 |
-
<tag line="
|
9312 |
<type by_reference="false">int</type>
|
9313 |
</tag>
|
9314 |
-
<tag line="
|
9315 |
<type by_reference="false">array</type>
|
9316 |
</tag>
|
9317 |
-
<tag line="
|
9318 |
<type by_reference="false">boolean</type>
|
9319 |
</tag>
|
9320 |
-
<tag line="
|
9321 |
<type by_reference="false">array</type>
|
9322 |
</tag>
|
9323 |
</docblock>
|
9324 |
-
<argument line="
|
9325 |
<name>$post_parent</name>
|
9326 |
<default><![CDATA[]]></default>
|
9327 |
<type/>
|
9328 |
</argument>
|
9329 |
-
<argument line="
|
9330 |
<name>$attr</name>
|
9331 |
<default><![CDATA[]]></default>
|
9332 |
<type/>
|
9333 |
</argument>
|
9334 |
-
<argument line="
|
9335 |
<name>$return_found_rows</name>
|
9336 |
<default><![CDATA[NULL]]></default>
|
9337 |
<type/>
|
9338 |
</argument>
|
9339 |
</method>
|
9340 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
9341 |
<name>mla_shortcode_query_posts_join_filter</name>
|
9342 |
<full_name>mla_shortcode_query_posts_join_filter</full_name>
|
9343 |
-
<docblock line="
|
9344 |
<description><![CDATA[Filters the JOIN clause for shortcode queries]]></description>
|
9345 |
<long-description><![CDATA[<p>Defined as public because it's a filter.</p>]]></long-description>
|
9346 |
-
<tag line="
|
9347 |
-
<tag line="
|
9348 |
<type by_reference="false">string</type>
|
9349 |
</tag>
|
9350 |
-
<tag line="
|
9351 |
<type by_reference="false">string</type>
|
9352 |
</tag>
|
9353 |
</docblock>
|
9354 |
-
<argument line="
|
9355 |
<name>$join_clause</name>
|
9356 |
<default><![CDATA[]]></default>
|
9357 |
<type/>
|
9358 |
</argument>
|
9359 |
</method>
|
9360 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
9361 |
<name>mla_shortcode_query_posts_where_filter</name>
|
9362 |
<full_name>mla_shortcode_query_posts_where_filter</full_name>
|
9363 |
-
<docblock line="
|
9364 |
<description><![CDATA[Filters the WHERE clause for shortcode queries]]></description>
|
9365 |
<long-description><![CDATA[<p>Captures debug information. Adds whitespace to the post_type = 'attachment'
|
9366 |
phrase to circumvent subsequent Role Scoper modification of the clause.
|
9367 |
Handles post_parent "any" and "none" cases.
|
9368 |
Defined as public because it's a filter.</p>]]></long-description>
|
9369 |
-
<tag line="
|
9370 |
-
<tag line="
|
9371 |
<type by_reference="false">string</type>
|
9372 |
</tag>
|
9373 |
-
<tag line="
|
9374 |
<type by_reference="false">string</type>
|
9375 |
</tag>
|
9376 |
</docblock>
|
9377 |
-
<argument line="
|
9378 |
<name>$where_clause</name>
|
9379 |
<default><![CDATA[]]></default>
|
9380 |
<type/>
|
9381 |
</argument>
|
9382 |
</method>
|
9383 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
9384 |
<name>mla_shortcode_query_posts_orderby_filter</name>
|
9385 |
<full_name>mla_shortcode_query_posts_orderby_filter</full_name>
|
9386 |
-
<docblock line="
|
9387 |
<description><![CDATA[Filters the ORDERBY clause for shortcode queries]]></description>
|
9388 |
<long-description><![CDATA[<p>This is an enhanced version of the code found in wp-includes/query.php, function get_posts.
|
9389 |
Defined as public because it's a filter.</p>]]></long-description>
|
9390 |
-
<tag line="
|
9391 |
-
<tag line="
|
9392 |
<type by_reference="false">string</type>
|
9393 |
</tag>
|
9394 |
-
<tag line="
|
9395 |
<type by_reference="false">string</type>
|
9396 |
</tag>
|
9397 |
</docblock>
|
9398 |
-
<argument line="
|
9399 |
<name>$orderby_clause</name>
|
9400 |
<default><![CDATA[]]></default>
|
9401 |
<type/>
|
9402 |
</argument>
|
9403 |
</method>
|
9404 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
9405 |
<name>mla_shortcode_query_posts_clauses_filter</name>
|
9406 |
<full_name>mla_shortcode_query_posts_clauses_filter</full_name>
|
9407 |
-
<docblock line="
|
9408 |
<description><![CDATA[Filters all clauses for shortcode queries, pre caching plugins]]></description>
|
9409 |
<long-description><![CDATA[<p>This is for debug purposes only.
|
9410 |
Defined as public because it's a filter.</p>]]></long-description>
|
9411 |
-
<tag line="
|
9412 |
-
<tag line="
|
9413 |
<type by_reference="false">array</type>
|
9414 |
</tag>
|
9415 |
-
<tag line="
|
9416 |
<type by_reference="false">array</type>
|
9417 |
</tag>
|
9418 |
</docblock>
|
9419 |
-
<argument line="
|
9420 |
<name>$pieces</name>
|
9421 |
<default><![CDATA[]]></default>
|
9422 |
<type/>
|
9423 |
</argument>
|
9424 |
</method>
|
9425 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
9426 |
<name>mla_shortcode_query_posts_clauses_request_filter</name>
|
9427 |
<full_name>mla_shortcode_query_posts_clauses_request_filter</full_name>
|
9428 |
-
<docblock line="
|
9429 |
<description><![CDATA[Filters all clauses for shortcode queries, post caching plugins]]></description>
|
9430 |
<long-description><![CDATA[<p>This is for debug purposes only.
|
9431 |
Defined as public because it's a filter.</p>]]></long-description>
|
9432 |
-
<tag line="
|
9433 |
-
<tag line="
|
9434 |
<type by_reference="false">array</type>
|
9435 |
</tag>
|
9436 |
-
<tag line="
|
9437 |
<type by_reference="false">array</type>
|
9438 |
</tag>
|
9439 |
</docblock>
|
9440 |
-
<argument line="
|
9441 |
<name>$pieces</name>
|
9442 |
<default><![CDATA[]]></default>
|
9443 |
<type/>
|
9444 |
</argument>
|
9445 |
</method>
|
9446 |
-
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="
|
9447 |
<name>mla_get_terms</name>
|
9448 |
<full_name>mla_get_terms</full_name>
|
9449 |
-
<docblock line="
|
9450 |
<description><![CDATA[Retrieve the terms in one or more taxonomies.]]></description>
|
9451 |
<long-description><![CDATA[<p>Alternative to WordPress get_terms() function that provides
|
9452 |
an accurate count of attachments associated with each term.</p>
|
9453 |
|
9454 |
<p>taxonomy - string containing one or more (comma-delimited) taxonomy names
|
9455 |
-
or an array of taxonomy names.</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9456 |
|
9457 |
<p>include - An array, comma- or space-delimited string of term ids to include
|
9458 |
in the return array.</p>
|
@@ -9462,38 +9807,85 @@ from the return array. If 'include' is non-empty, 'exclude' is ignored.</p>
|
|
9462 |
|
9463 |
<p>parent - term_id of the terms' immediate parent; 0 for top-level terms.</p>
|
9464 |
|
9465 |
-
<p>minimum - minimum number of attachments a term must have to be included.</p>
|
9466 |
|
9467 |
-
<p>no_count - true
|
9468 |
|
9469 |
<p>number - maximum number of term objects to return. Terms are ordered by count,
|
9470 |
-
descending and then by term_id before this value is applied.</p>
|
|
|
|
|
9471 |
|
9472 |
-
<p>
|
9473 |
|
9474 |
-
<p>
|
9475 |
|
9476 |
-
<p>
|
9477 |
|
9478 |
-
<p>
|
9479 |
|
9480 |
-
<p>limit - final number of term objects to return, for pagination.</p>
|
9481 |
|
9482 |
-
<p>offset - number of term objects to skip, for pagination.</p>]]></long-description>
|
9483 |
-
<tag line="
|
9484 |
-
<tag line="
|
9485 |
<type by_reference="false">array</type>
|
9486 |
</tag>
|
9487 |
-
<tag line="
|
9488 |
<type by_reference="false">array</type>
|
9489 |
</tag>
|
9490 |
</docblock>
|
9491 |
-
<argument line="
|
9492 |
<name>$attr</name>
|
9493 |
<default><![CDATA[]]></default>
|
9494 |
<type/>
|
9495 |
</argument>
|
9496 |
</method>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
316 |
<tag line="2" name="since" description="MLA 1.80"/>
|
317 |
</docblock>
|
318 |
</file>
|
319 |
+
<file path="includes\class-mla-data.php" hash="39f8defcc730710c304d07f923c8c8b9" package="Media Library Assistant">
|
320 |
<docblock line="2">
|
321 |
<description><![CDATA[Database and template file access for MLA needs]]></description>
|
322 |
<long-description><![CDATA[]]></long-description>
|
385 |
</tag>
|
386 |
</docblock>
|
387 |
</property>
|
388 |
+
<property final="false" static="true" visibility="private" line="2886" namespace="global" package="Media Library Assistant">
|
389 |
<name>$galleries</name>
|
390 |
<default><![CDATA[null]]></default>
|
391 |
+
<docblock line="2867">
|
392 |
<description><![CDATA[Objects containing [gallery] shortcodes]]></description>
|
393 |
<long-description><![CDATA[<p>This array contains all of the objects containing one or more [gallery] shortcodes
|
394 |
and array(s) of which attachments each [gallery] contains. The arrays are built once
|
401 |
['galleries'] array of [gallery] entries numbered from one (1), containing:
|
402 |
galleries[X]['query'] contains a string with the arguments of the [gallery],
|
403 |
galleries[X]['results'] contains an array ( ID ) of post_ids for the objects in the gallery.</p>]]></long-description>
|
404 |
+
<tag line="2867" name="since" description="0.70"/>
|
405 |
+
<tag line="2867" name="var" description="" type="array">
|
406 |
<type by_reference="false">array</type>
|
407 |
</tag>
|
408 |
</docblock>
|
409 |
</property>
|
410 |
+
<property final="false" static="true" visibility="private" line="2899" namespace="global" package="Media Library Assistant">
|
411 |
<name>$mla_galleries</name>
|
412 |
<default><![CDATA[null]]></default>
|
413 |
+
<docblock line="2888">
|
414 |
<description><![CDATA[Objects containing [mla_gallery] shortcodes]]></description>
|
415 |
<long-description><![CDATA[<p>This array contains all of the objects containing one or more [mla_gallery] shortcodes
|
416 |
and array(s) of which attachments each [mla_gallery] contains. The arrays are built once
|
417 |
each page load and cached for subsequent calls.</p>]]></long-description>
|
418 |
+
<tag line="2888" name="since" description="0.70"/>
|
419 |
+
<tag line="2888" name="var" description="" type="array">
|
420 |
<type by_reference="false">array</type>
|
421 |
</tag>
|
422 |
</docblock>
|
423 |
</property>
|
424 |
+
<property final="false" static="true" visibility="private" line="3089" namespace="global" package="Media Library Assistant">
|
425 |
<name>$pdf_indirect_objects</name>
|
426 |
<default><![CDATA[NULL]]></default>
|
427 |
+
<docblock line="3078">
|
428 |
<description><![CDATA[Array of PDF indirect objects]]></description>
|
429 |
<long-description><![CDATA[<p>This array contains all of the indirect object offsets and lengths.
|
430 |
The array key is ( object ID * 1000 ) + object generation.
|
431 |
The array value is array( number, generation, start, optional /length )</p>]]></long-description>
|
432 |
+
<tag line="3078" name="since" description="1.50"/>
|
433 |
+
<tag line="3078" name="var" description="" type="array">
|
434 |
<type by_reference="false">array</type>
|
435 |
</tag>
|
436 |
</docblock>
|
437 |
</property>
|
438 |
+
<property final="false" static="true" visibility="private" line="4200" namespace="global" package="Media Library Assistant">
|
439 |
<name>$utf8_chars</name>
|
440 |
<default><![CDATA[array("\xC2\x80", "\xC2\x81", "\xC2\x82", "\xC2\x83", "\xC2\x84", "\xC2\x85", "\xC2\x86", "\xC2\x87", "\xC2\x88", "\xC2\x89", "\xC2\x8A", "\xC2\x8B", "\xC2\x8C", "\xC2\x8D", "\xC2\x8E", "\xC2\x8F", "\xC2\x90", "\xC2\x91", "\xC2\x92", "\xC2\x93", "\xC2\x94", "\xC2\x95", "\xC2\x96", "\xC2\x97", "\xC2\x98", "\xC2\x99", "\xC2\x9A", "\xC2\x9B", "\xC2\x9C", "\xC2\x9D", "\xC2\x9E", "\xC2\x9F", "\xC2\xA0", "\xC2\xA1", "\xC2\xA2", "\xC2\xA3", "\xC2\xA4", "\xC2\xA5", "\xC2\xA6", "\xC2\xA7", "\xC2\xA8", "\xC2\xA9", "\xC2\xAA", "\xC2\xAB", "\xC2\xAC", "\xC2\xAD", "\xC2\xAE", "\xC2\xAF", "\xC2\xB0", "\xC2\xB1", "\xC2\xB2", "\xC2\xB3", "\xC2\xB4", "\xC2\xB5", "\xC2\xB6", "\xC2\xB7", "\xC2\xB8", "\xC2\xB9", "\xC2\xBA", "\xC2\xBB", "\xC2\xBC", "\xC2\xBD", "\xC2\xBE", "\xC2\xBF", "\xC3\x80", "\xC3\x81", "\xC3\x82", "\xC3\x83", "\xC3\x84", "\xC3\x85", "\xC3\x86", "\xC3\x87", "\xC3\x88", "\xC3\x89", "\xC3\x8A", "\xC3\x8B", "\xC3\x8C", "\xC3\x8D", "\xC3\x8E", "\xC3\x8F", "\xC3\x90", "\xC3\x91", "\xC3\x92", "\xC3\x93", "\xC3\x94", "\xC3\x95", "\xC3\x96", "\xC3\x97", "\xC3\x98", "\xC3\x99", "\xC3\x9A", "\xC3\x9B", "\xC3\x9C", "\xC3\x9D", "\xC3\x9E", "\xC3\x9F", "\xC3\xA0", "\xC3\xA1", "\xC3\xA2", "\xC3\xA3", "\xC3\xA4", "\xC3\xA5", "\xC3\xA6", "\xC3\xA7", "\xC3\xA8", "\xC3\xA9", "\xC3\xAA", "\xC3\xAB", "\xC3\xAC", "\xC3\xAD", "\xC3\xAE", "\xC3\xAF", "\xC3\xB0", "\xC3\xB1", "\xC3\xB2", "\xC3\xB3", "\xC3\xB4", "\xC3\xB5", "\xC3\xB6", "\xC3\xB7", "\xC3\xB8", "\xC3\xB9", "\xC3\xBA", "\xC3\xBB", "\xC3\xBC", "\xC3\xBD", "\xC3\xBE", "\xC3\xBF")]]></default>
|
441 |
+
<docblock line="4193">
|
442 |
<description><![CDATA[UTF-8 replacements for invalid SQL characters]]></description>
|
443 |
<long-description><![CDATA[]]></long-description>
|
444 |
+
<tag line="4193" name="since" description="1.41"/>
|
445 |
+
<tag line="4193" name="var" description="" type="array">
|
446 |
<type by_reference="false">array</type>
|
447 |
</tag>
|
448 |
</docblock>
|
449 |
</property>
|
450 |
+
<property final="false" static="true" visibility="private" line="4260" namespace="global" package="Media Library Assistant">
|
451 |
<name>$mla_iptc_records</name>
|
452 |
<default><![CDATA[array("1#000" => "Model Version", "1#005" => "Destination", "1#020" => "File Format", "1#022" => "File Format Version", "1#030" => "Service Identifier", "1#040" => "Envelope Number", "1#050" => "Product ID", "1#060" => "Envelope Priority", "1#070" => "Date Sent", "1#080" => "Time Sent", "1#090" => "Coded Character Set", "1#100" => "UNO", "1#120" => "ARM Identifier", "1#122" => "ARM Version", "2#000" => "Record Version", "2#003" => "Object Type Reference", "2#004" => "Object Attribute Reference", "2#005" => "Object Name", "2#007" => "Edit Status", "2#008" => "Editorial Update", "2#010" => "Urgency", "2#012" => "Subject Reference", "2#015" => "Category", "2#020" => "Supplemental Category", "2#022" => "Fixture Identifier", "2#025" => "Keywords", "2#026" => "Content Location Code", "2#027" => "Content Location Name", "2#030" => "Release Date", "2#035" => "Release Time", "2#037" => "Expiration Date", "2#038" => "Expiration Time", "2#040" => "Special Instructions", "2#042" => "Action Advised", "2#045" => "Reference Service", "2#047" => "Reference Date", "2#050" => "Reference Number", "2#055" => "Date Created", "2#060" => "Time Created", "2#062" => "Digital Creation Date", "2#063" => "Digital Creation Time", "2#065" => "Originating Program", "2#070" => "Program Version", "2#075" => "Object Cycle", "2#080" => "By-line", "2#085" => "By-line Title", "2#090" => "City", "2#092" => "Sub-location", "2#095" => "Province or State", "2#100" => "Country or Primary Location Code", "2#101" => "Country or Primary Location Name", "2#103" => "Original Transmission Reference", "2#105" => "Headline", "2#110" => "Credit", "2#115" => "Source", "2#116" => "Copyright Notice", "2#118" => "Contact", "2#120" => "Caption or Abstract", "2#122" => "Caption Writer or Editor", "2#125" => "Rasterized Caption", "2#130" => "Image Type", "2#131" => "Image Orientation", "2#135" => "Language Identifier", "2#150" => "Audio Type", "2#151" => "Audio Sampling Rate", "2#152" => "Audio Sampling Resolution", "2#153" => "Audio Duration", "2#154" => "Audio Outcue", "2#200" => "ObjectData Preview File Format", "2#201" => "ObjectData Preview File Format Version", "2#202" => "ObjectData Preview Data", "7#010" => "Size Mode", "7#020" => "Max Subfile Size", "7#090" => "ObjectData Size Announced", "7#095" => "Maximum ObjectData Size", "8#010" => "Subfile", "9#010" => "Confirmed ObjectData Size")]]></default>
|
453 |
+
<docblock line="4250">
|
454 |
<description><![CDATA[IPTC Dataset identifiers and names]]></description>
|
455 |
<long-description><![CDATA[<p>This array contains the identifiers and names of Datasets defined in
|
456 |
the "IPTC-NAA Information Interchange Model Version No. 4.1".</p>]]></long-description>
|
457 |
+
<tag line="4250" name="since" description="0.90"/>
|
458 |
+
<tag line="4250" name="var" description="" type="array">
|
459 |
<type by_reference="false">array</type>
|
460 |
</tag>
|
461 |
</docblock>
|
462 |
</property>
|
463 |
+
<property final="false" static="true" visibility="public" line="4359" namespace="global" package="Media Library Assistant">
|
464 |
<name>$mla_iptc_keys</name>
|
465 |
<default><![CDATA[array('model-version' => '1#000', 'destination' => '1#005', 'file-format' => '1#020', 'file-format-version' => '1#022', 'service-identifier' => '1#030', 'envelope-number' => '1#040', 'product-id' => '1#050', 'envelope-priority' => '1#060', 'date-sent' => '1#070', 'time-sent' => '1#080', 'coded-character-set' => '1#090', 'uno' => '1#100', 'arm-identifier' => '1#120', 'arm-version' => '1#122', 'record-version' => '2#000', 'object-type-reference' => '2#003', 'object-attribute-reference' => '2#004', 'object-name' => '2#005', 'edit-status' => '2#007', 'editorial-update' => '2#008', 'urgency' => '2#010', 'subject-reference' => '2#012', 'category' => '2#015', 'supplemental-category' => '2#020', 'fixture-identifier' => '2#022', 'keywords' => '2#025', 'content-location-code' => '2#026', 'content-location-name' => '2#027', 'release-date' => '2#030', 'release-time' => '2#035', 'expiration-date' => '2#037', 'expiration-time' => '2#038', 'special-instructions' => '2#040', 'action-advised' => '2#042', 'reference-service' => '2#045', 'reference-date' => '2#047', 'reference-number' => '2#050', 'date-created' => '2#055', 'time-created' => '2#060', 'digital-creation-date' => '2#062', 'digital-creation-time' => '2#063', 'originating-program' => '2#065', 'program-version' => '2#070', 'object-cycle' => '2#075', 'by-line' => '2#080', 'by-line-title' => '2#085', 'city' => '2#090', 'sub-location' => '2#092', 'province-or-state' => '2#095', 'country-or-primary-location-code' => '2#100', 'country-or-primary-location-name' => '2#101', 'original-transmission-reference' => '2#103', 'headline' => '2#105', 'credit' => '2#110', 'source' => '2#115', 'copyright-notice' => '2#116', 'contact' => '2#118', 'caption-or-abstract' => '2#120', 'caption-writer-or-editor' => '2#122', 'rasterized-caption' => '2#125', 'image-type' => '2#130', 'image-orientation' => '2#131', 'language-identifier' => '2#135', 'audio-type' => '2#150', 'audio-sampling-rate' => '2#151', 'audio-sampling-resolution' => '2#152', 'audio-duration' => '2#153', 'audio-outcue' => '2#154', 'objectdata-preview-file-format' => '2#200', 'objectdata-preview-file-format-version' => '2#201', 'objectdata-preview-data' => '2#202', 'size-mode' => '7#010', 'max-subfile-size' => '7#020', 'objectdata-size-announced' => '7#090', 'maximum-objectdata-size' => '7#095', 'subfile' => '8#010', 'confirmed-objectdata-size' => '9#010')]]></default>
|
466 |
+
<docblock line="4349">
|
467 |
<description><![CDATA[IPTC Dataset friendly name/slug and identifiers]]></description>
|
468 |
<long-description><![CDATA[<p>This array contains the sanitized names and identifiers of Datasets defined in
|
469 |
the "IPTC-NAA Information Interchange Model Version No. 4.1".</p>]]></long-description>
|
470 |
+
<tag line="4349" name="since" description="0.90"/>
|
471 |
+
<tag line="4349" name="var" description="" type="array">
|
472 |
<type by_reference="false">array</type>
|
473 |
</tag>
|
474 |
</docblock>
|
475 |
</property>
|
476 |
+
<property final="false" static="true" visibility="private" line="4458" namespace="global" package="Media Library Assistant">
|
477 |
<name>$mla_iptc_descriptions</name>
|
478 |
<default><![CDATA[array("1#000" => "2 octet binary IIM version number", "1#005" => "Max 1024 characters of Destination (ISO routing information); repeatable", "1#020" => "2 octet binary file format number, see IPTC-NAA V4 Appendix A", "1#022" => "2 octet binary file format version number", "1#030" => "Max 10 characters of Service Identifier and product", "1#040" => "8 Character Envelope Number", "1#050" => "Max 32 characters subset of provider's overall service; repeatable", "1#060" => "1 numeric character of envelope handling priority (not urgency)", "1#070" => "8 numeric characters of Date Sent by service - CCYYMMDD", "1#080" => "11 characters of Time Sent by service - HHMMSS±HHMM", "1#090" => "Max 32 characters of control functions, etc.", "1#100" => "14 to 80 characters of eternal, globally unique identification for objects", "1#120" => "2 octet binary Abstract Relationship Model Identifier", "1#122" => "2 octet binary Abstract Relationship Model Version", "2#000" => "2 octet binary Information Interchange Model, Part II version number", "2#003" => "3 to 67 Characters of Object Type Reference number and optional text", "2#004" => "3 to 67 Characters of Object Attribute Reference number and optional text; repeatable", "2#005" => "Max 64 characters of the object name or shorthand reference", "2#007" => "Max 64 characters of the status of the objectdata", "2#008" => "2 numeric characters of the type of update this object provides", "2#010" => "1 numeric character of the editorial urgency of content", "2#012" => "13 to 236 characters of a structured definition of the subject matter; repeatable", "2#015" => "Max 3 characters of the subject of the objectdata, DEPRECATED", "2#020" => "Max 32 characters (each) of further refinement of subject, DEPRECATED; repeatable", "2#022" => "Max 32 characters identifying recurring, predictable content", "2#025" => "Max 64 characters (each) of tags; repeatable", "2#026" => "3 characters of ISO3166 country code or IPTC-assigned code; repeatable", "2#027" => "Max 64 characters of publishable country/geographical location name; repeatable", "2#030" => "8 numeric characters of Release Date - CCYYMMDD", "2#035" => "11 characters of Release Time (earliest use) - HHMMSS±HHMM", "2#037" => "8 numeric characters of Expiration Date (latest use) - CCYYMDD", "2#038" => "11 characters of Expiration Time (latest use) - HHMMSS±HHMM", "2#040" => "Max 256 Characters of editorial instructions, e.g., embargoes and warnings", "2#042" => "2 numeric characters of type of action this object provides to a previous object", "2#045" => "Max 10 characters of the Service ID (1#030) of a prior envelope; repeatable", "2#047" => "8 numeric characters of prior envelope Reference Date (1#070) - CCYYMMDD; repeatable", "2#050" => "8 characters of prior envelope Reference Number (1#040); repeatable", "2#055" => "8 numeric characters of intellectual content Date Created - CCYYMMDD", "2#060" => "11 characters of intellectual content Time Created - HHMMSS±HHMM", "2#062" => "8 numeric characters of digital representation creation date - CCYYMMDD", "2#063" => "11 characters of digital representation creation time - HHMMSS±HHMM", "2#065" => "Max 32 characters of the program used to create the objectdata", "2#070" => "Program Version - Max 10 characters of the version of the program used to create the objectdata", "2#075" => "1 character where a=morning, p=evening, b=both", "2#080" => "Max 32 Characters of the name of the objectdata creator, e.g., the writer, photographer; repeatable", "2#085" => "Max 32 characters of the title of the objectdata creator; repeatable", "2#090" => "Max 32 Characters of the city of objectdata origin", "2#092" => "Max 32 Characters of the location within the city of objectdata origin", "2#095" => "Max 32 Characters of the objectdata origin Province or State", "2#100" => "3 characters of ISO3166 or IPTC-assigned code for Country of objectdata origin", "2#101" => "Max 64 characters of publishable country/geographical location name of objectdata origin", "2#103" => "Max 32 characters of a code representing the location of original transmission", "2#105" => "Max 256 Characters of a publishable entry providing a synopsis of the contents of the objectdata", "2#110" => "Max 32 Characters that identifies the provider of the objectdata (Vs the owner/creator)", "2#115" => "Max 32 Characters that identifies the original owner of the intellectual content", "2#116" => "Max 128 Characters that contains any necessary copyright notice", "2#118" => "Max 128 characters that identifies the person or organisation which can provide further background information; repeatable", "2#120" => "Max 2000 Characters of a textual description of the objectdata", "2#122" => "Max 32 Characters that the identifies the person involved in the writing, editing or correcting the objectdata or caption/abstract; repeatable", "2#125" => "7360 binary octets of the rasterized caption - 1 bit per pixel, 460x128-pixel image", "2#130" => "2 characters of color composition type and information", "2#131" => "1 alphabetic character indicating the image area layout - P=portrait, L=landscape, S=square", "2#135" => "2 or 3 aphabetic characters containing the major national language of the object, according to the ISO 639:1988 codes", "2#150" => "2 characters identifying monaural/stereo and exact type of audio content", "2#151" => "6 numeric characters representing the audio sampling rate in hertz (Hz)", "2#152" => "2 numeric characters representing the number of bits in each audio sample", "2#153" => "6 numeric characters of the Audio Duration - HHMMSS", "2#154" => "Max 64 characters of the content of the end of an audio objectdata", "2#200" => "2 octet binary file format of the ObjectData Preview", "2#201" => "2 octet binary particular version of the ObjectData Preview File Format", "2#202" => "Max 256000 binary octets containing the ObjectData Preview data", "7#010" => "1 numeric character - 0=objectdata size not known, 1=objectdata size known at beginning of transfer", "7#020" => "4 octet binary maximum subfile dataset(s) size", "7#090" => "4 octet binary objectdata size if known at beginning of transfer", "7#095" => "4 octet binary largest possible objectdata size", "8#010" => "Subfile DataSet containing the objectdata itself; repeatable", "9#010" => "4 octet binary total objectdata size")]]></default>
|
479 |
+
<docblock line="4448">
|
480 |
<description><![CDATA[IPTC Dataset descriptions]]></description>
|
481 |
<long-description><![CDATA[<p>This array contains the descriptions of Datasets defined in
|
482 |
the "IPTC-NAA Information Interchange Model Version No. 4.1".</p>]]></long-description>
|
483 |
+
<tag line="4448" name="since" description="0.90"/>
|
484 |
+
<tag line="4448" name="var" description="" type="array">
|
485 |
<type by_reference="false">array</type>
|
486 |
</tag>
|
487 |
</docblock>
|
488 |
</property>
|
489 |
+
<property final="false" static="true" visibility="private" line="4557" namespace="global" package="Media Library Assistant">
|
490 |
<name>$mla_iptc_formats</name>
|
491 |
<default><![CDATA[array(0 => "No ObjectData", 1 => "IPTC-NAA Digital Newsphoto Parameter Record", 2 => "IPTC7901 Recommended Message Format", 3 => "Tagged Image File Format (Adobe/Aldus Image data)", 4 => "Illustrator (Adobe Graphics data)", 5 => "AppleSingle (Apple Computer Inc)", 6 => "NAA 89-3 (ANPA 1312)", 7 => "MacBinary II", 0 => "IPTC Unstructured Character Oriented File Format (UCOFF)", 0 => "United Press International ANPA 1312 variant", 10 => "United Press International Down-Load Message", 11 => "JPEG File Interchange (JFIF)", 12 => "Photo-CD Image-Pac (Eastman Kodak)", 13 => "Microsoft Bit Mapped Graphics File [*.BMP]", 14 => "Digital Audio File [*.WAV] (Microsoft & Creative Labs)", 15 => "Audio plus Moving Video [*.AVI] (Microsoft)", 16 => "PC DOS/Windows Executable Files [*.COM][*.EXE]", 17 => "Compressed Binary File [*.ZIP] (PKWare Inc)", 18 => "Audio Interchange File Format AIFF (Apple Computer Inc)", 19 => "RIFF Wave (Microsoft Corporation)", 20 => "Freehand (Macromedia/Aldus)", 21 => "Hypertext Markup Language - HTML (The Internet Society)", 22 => "MPEG 2 Audio Layer 2 (Musicom), ISO/IEC", 23 => "MPEG 2 Audio Layer 3, ISO/IEC", 24 => "Portable Document File (*.PDF) Adobe", 25 => "News Industry Text Format (NITF)", 26 => "Tape Archive (*.TAR)", 27 => "Tidningarnas Telegrambyrå NITF version (TTNITF DTD)", 28 => "Ritzaus Bureau NITF version (RBNITF DTD)", 29 => "Corel Draw [*.CDR]")]]></default>
|
492 |
+
<docblock line="4547">
|
493 |
<description><![CDATA[IPTC file format identifiers and descriptions]]></description>
|
494 |
<long-description><![CDATA[<p>This array contains the file format identifiers and descriptions defined in
|
495 |
the "IPTC-NAA Information Interchange Model Version No. 4.1" for dataset 1#020.</p>]]></long-description>
|
496 |
+
<tag line="4547" name="since" description="0.90"/>
|
497 |
+
<tag line="4547" name="var" description="" type="array">
|
498 |
<type by_reference="false">array</type>
|
499 |
</tag>
|
500 |
</docblock>
|
501 |
</property>
|
502 |
+
<property final="false" static="true" visibility="private" line="4600" namespace="global" package="Media Library Assistant">
|
503 |
<name>$mla_iptc_image_types</name>
|
504 |
<default><![CDATA[array("M" => "Monochrome", "Y" => "Yellow Component", "M" => "Magenta Component", "C" => "Cyan Component", "K" => "Black Component", "R" => "Red Component", "G" => "Green Component", "B" => "Blue Component", "T" => "Text Only", "F" => "Full colour composite, frame sequential", "L" => "Full colour composite, line sequential", "P" => "Full colour composite, pixel sequential", "S" => "Full colour composite, special interleaving")]]></default>
|
505 |
+
<docblock line="4590">
|
506 |
<description><![CDATA[IPTC image type identifiers and descriptions]]></description>
|
507 |
<long-description><![CDATA[<p>This array contains the image type identifiers and descriptions defined in
|
508 |
the "IPTC-NAA Information Interchange Model Version No. 4.1" for dataset 2#130, octet 2.</p>]]></long-description>
|
509 |
+
<tag line="4590" name="since" description="0.90"/>
|
510 |
+
<tag line="4590" name="var" description="" type="array">
|
511 |
<type by_reference="false">array</type>
|
512 |
</tag>
|
513 |
</docblock>
|
514 |
</property>
|
515 |
+
<property final="false" static="true" visibility="private" line="4774" namespace="global" package="Media Library Assistant">
|
516 |
<name>$mla_IPTC_EXIF_errors</name>
|
517 |
<default><![CDATA[array()]]></default>
|
518 |
+
<docblock line="4766">
|
519 |
<description><![CDATA[Passes IPTC/EXIF parse errors between mla_IPTC_EXIF_error_handler
|
520 |
and mla_fetch_attachment_image_metadata]]></description>
|
521 |
<long-description><![CDATA[]]></long-description>
|
522 |
+
<tag line="4766" name="since" description="1.81"/>
|
523 |
+
<tag line="4766" name="var" description="" type="array">
|
524 |
<type by_reference="false">array</type>
|
525 |
</tag>
|
526 |
</docblock>
|
1047 |
<type/>
|
1048 |
</argument>
|
1049 |
</method>
|
1050 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1615" package="Media Library Assistant">
|
1051 |
<name>_execute_list_table_query</name>
|
1052 |
<full_name>_execute_list_table_query</full_name>
|
1053 |
+
<docblock line="1606">
|
1054 |
<description><![CDATA[Add filters, run query, remove filters]]></description>
|
1055 |
<long-description><![CDATA[]]></long-description>
|
1056 |
+
<tag line="1606" name="since" description="0.30"/>
|
1057 |
+
<tag line="1606" name="param" description="query parameters from web page, usually found in $_REQUEST" type="array" variable="$request">
|
1058 |
<type by_reference="false">array</type>
|
1059 |
</tag>
|
1060 |
+
<tag line="1606" name="return" description="WP_Query object with query results" type="object">
|
1061 |
<type by_reference="false">object</type>
|
1062 |
</tag>
|
1063 |
</docblock>
|
1064 |
+
<argument line="1615">
|
1065 |
<name>$request</name>
|
1066 |
<default><![CDATA[]]></default>
|
1067 |
<type/>
|
1068 |
</argument>
|
1069 |
</method>
|
1070 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1718" package="Media Library Assistant">
|
1071 |
<name>mla_search_terms_tidy</name>
|
1072 |
<full_name>mla_search_terms_tidy</full_name>
|
1073 |
+
<docblock line="1707">
|
1074 |
<description><![CDATA[Replaces a WordPress function deprecated in v3.7]]></description>
|
1075 |
<long-description><![CDATA[<p>Defined as public because it's a callback from array_map().</p>]]></long-description>
|
1076 |
+
<tag line="1707" name="since" description="1.51"/>
|
1077 |
+
<tag line="1707" name="param" description="search term before modification" type="string" variable="$term">
|
1078 |
<type by_reference="false">string</type>
|
1079 |
</tag>
|
1080 |
+
<tag line="1707" name="return" description="cleaned up search term" type="string">
|
1081 |
<type by_reference="false">string</type>
|
1082 |
</tag>
|
1083 |
</docblock>
|
1084 |
+
<argument line="1718">
|
1085 |
<name>$term</name>
|
1086 |
<default><![CDATA[]]></default>
|
1087 |
<type/>
|
1088 |
</argument>
|
1089 |
</method>
|
1090 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1734" package="Media Library Assistant">
|
1091 |
<name>mla_query_posts_search_filter</name>
|
1092 |
<full_name>mla_query_posts_search_filter</full_name>
|
1093 |
+
<docblock line="1722">
|
1094 |
<description><![CDATA[Adds a keyword search to the WHERE clause, if required]]></description>
|
1095 |
<long-description><![CDATA[<p>Defined as public because it's a filter.</p>]]></long-description>
|
1096 |
+
<tag line="1722" name="since" description="0.60"/>
|
1097 |
+
<tag line="1722" name="param" description="query clause before modification" type="string" variable="$search_string">
|
1098 |
<type by_reference="false">string</type>
|
1099 |
</tag>
|
1100 |
+
<tag line="1722" name="param" description="WP_Query object" type="object" variable="$query_object">
|
1101 |
<type by_reference="false">object</type>
|
1102 |
</tag>
|
1103 |
+
<tag line="1722" name="return" description="query clause after keyword search addition" type="string">
|
1104 |
<type by_reference="false">string</type>
|
1105 |
</tag>
|
1106 |
</docblock>
|
1107 |
+
<argument line="1734">
|
1108 |
<name>$search_string</name>
|
1109 |
<default><![CDATA[]]></default>
|
1110 |
<type/>
|
1111 |
</argument>
|
1112 |
+
<argument line="1734">
|
1113 |
<name>$query_object</name>
|
1114 |
<default><![CDATA[]]></default>
|
1115 |
<type/>
|
1116 |
</argument>
|
1117 |
</method>
|
1118 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1990" package="Media Library Assistant">
|
1119 |
+
<name>mla_query_posts_where_filter</name>
|
1120 |
+
<full_name>mla_query_posts_where_filter</full_name>
|
1121 |
+
<docblock line="1978">
|
1122 |
+
<description><![CDATA[Adds a WHERE clause for detached items]]></description>
|
1123 |
+
<long-description><![CDATA[<p>Modeled after _edit_attachments_query_helper in wp-admin/post.php.
|
1124 |
+
Defined as public because it's a filter.</p>]]></long-description>
|
1125 |
+
<tag line="1978" name="since" description="0.1"/>
|
1126 |
+
<tag line="1978" name="param" description="query clause before modification" type="string" variable="$where_clause">
|
1127 |
+
<type by_reference="false">string</type>
|
1128 |
+
</tag>
|
1129 |
+
<tag line="1978" name="return" description="query clause after "detached" item modification" type="string">
|
1130 |
+
<type by_reference="false">string</type>
|
1131 |
+
</tag>
|
1132 |
+
</docblock>
|
1133 |
+
<argument line="1990">
|
1134 |
+
<name>$where_clause</name>
|
1135 |
+
<default><![CDATA[]]></default>
|
1136 |
+
<type/>
|
1137 |
+
</argument>
|
1138 |
+
</method>
|
1139 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2054" package="Media Library Assistant">
|
1140 |
<name>mla_query_posts_join_filter</name>
|
1141 |
<full_name>mla_query_posts_join_filter</full_name>
|
1142 |
+
<docblock line="2043">
|
1143 |
<description><![CDATA[Adds a JOIN clause, if required, to handle sorting/searching on custom fields or ALT Text]]></description>
|
1144 |
<long-description><![CDATA[<p>Defined as public because it's a filter.</p>]]></long-description>
|
1145 |
+
<tag line="2043" name="since" description="0.30"/>
|
1146 |
+
<tag line="2043" name="param" description="query clause before modification" type="string" variable="$join_clause">
|
1147 |
<type by_reference="false">string</type>
|
1148 |
</tag>
|
1149 |
+
<tag line="2043" name="return" description="query clause after "LEFT JOIN view ON post_id" item modification" type="string">
|
1150 |
<type by_reference="false">string</type>
|
1151 |
</tag>
|
1152 |
</docblock>
|
1153 |
+
<argument line="2054">
|
1154 |
<name>$join_clause</name>
|
1155 |
<default><![CDATA[]]></default>
|
1156 |
<type/>
|
1157 |
</argument>
|
1158 |
</method>
|
1159 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2109" package="Media Library Assistant">
|
1160 |
+
<name>mla_query_posts_groupby_filter</name>
|
1161 |
+
<full_name>mla_query_posts_groupby_filter</full_name>
|
1162 |
+
<docblock line="2097">
|
1163 |
+
<description><![CDATA[Adds a GROUPBY clause, if required]]></description>
|
1164 |
+
<long-description><![CDATA[<p>Taxonomy text queries require a GROUPBY clause.
|
1165 |
Defined as public because it's a filter.</p>]]></long-description>
|
1166 |
+
<tag line="2097" name="since" description="1.90"/>
|
1167 |
+
<tag line="2097" name="param" description="query clause before modification" type="string" variable="$groupby_clause">
|
1168 |
<type by_reference="false">string</type>
|
1169 |
</tag>
|
1170 |
+
<tag line="2097" name="return" description="updated query clause" type="string">
|
1171 |
<type by_reference="false">string</type>
|
1172 |
</tag>
|
1173 |
</docblock>
|
1174 |
+
<argument line="2109">
|
1175 |
+
<name>$groupby_clause</name>
|
1176 |
<default><![CDATA[]]></default>
|
1177 |
<type/>
|
1178 |
</argument>
|
1179 |
</method>
|
1180 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2131" package="Media Library Assistant">
|
1181 |
<name>mla_query_posts_orderby_filter</name>
|
1182 |
<full_name>mla_query_posts_orderby_filter</full_name>
|
1183 |
+
<docblock line="2119">
|
1184 |
<description><![CDATA[Adds a ORDERBY clause, if required]]></description>
|
1185 |
<long-description><![CDATA[<p>Expands the range of sort options because the logic in WP_Query is limited.
|
1186 |
Defined as public because it's a filter.</p>]]></long-description>
|
1187 |
+
<tag line="2119" name="since" description="0.30"/>
|
1188 |
+
<tag line="2119" name="param" description="query clause before modification" type="string" variable="$orderby_clause">
|
1189 |
<type by_reference="false">string</type>
|
1190 |
</tag>
|
1191 |
+
<tag line="2119" name="return" description="updated query clause" type="string">
|
1192 |
<type by_reference="false">string</type>
|
1193 |
</tag>
|
1194 |
</docblock>
|
1195 |
+
<argument line="2131">
|
1196 |
<name>$orderby_clause</name>
|
1197 |
<default><![CDATA[]]></default>
|
1198 |
<type/>
|
1199 |
</argument>
|
1200 |
</method>
|
1201 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2209" package="Media Library Assistant">
|
1202 |
<name>mla_query_relevanssi_admin_search_ok_filter</name>
|
1203 |
<full_name>mla_query_relevanssi_admin_search_ok_filter</full_name>
|
1204 |
+
<docblock line="2199">
|
1205 |
<description><![CDATA[Disable Relevanssi - A Better Search, v3.2 by Mikko Saari
|
1206 |
Defined as public because it's a filter.]]></description>
|
1207 |
<long-description><![CDATA[]]></long-description>
|
1208 |
+
<tag line="2199" name="since" description="1.80"/>
|
1209 |
+
<tag line="2199" name="param" description="Default setting" type="boolean" variable="$admin_search_ok">
|
1210 |
<type by_reference="false">boolean</type>
|
1211 |
</tag>
|
1212 |
+
<tag line="2199" name="return" description="Updated setting" type="boolean">
|
1213 |
<type by_reference="false">boolean</type>
|
1214 |
</tag>
|
1215 |
</docblock>
|
1216 |
+
<argument line="2209">
|
1217 |
<name>$admin_search_ok</name>
|
1218 |
<default><![CDATA[]]></default>
|
1219 |
<type/>
|
1220 |
</argument>
|
1221 |
</method>
|
1222 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2225" package="Media Library Assistant">
|
1223 |
<name>mla_query_posts_clauses_filter</name>
|
1224 |
<full_name>mla_query_posts_clauses_filter</full_name>
|
1225 |
+
<docblock line="2213">
|
1226 |
<description><![CDATA[Filters all clauses for shortcode queries, pre caching plugins]]></description>
|
1227 |
<long-description><![CDATA[<p>This is for debug purposes only.
|
1228 |
Defined as public because it's a filter.</p>]]></long-description>
|
1229 |
+
<tag line="2213" name="since" description="1.80"/>
|
1230 |
+
<tag line="2213" name="param" description="query clauses before modification" type="array" variable="$pieces">
|
1231 |
<type by_reference="false">array</type>
|
1232 |
</tag>
|
1233 |
+
<tag line="2213" name="return" description="query clauses after modification (none)" type="array">
|
1234 |
<type by_reference="false">array</type>
|
1235 |
</tag>
|
1236 |
</docblock>
|
1237 |
+
<argument line="2225">
|
1238 |
<name>$pieces</name>
|
1239 |
<default><![CDATA[]]></default>
|
1240 |
<type/>
|
1241 |
</argument>
|
1242 |
</method>
|
1243 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2249" package="Media Library Assistant">
|
1244 |
<name>mla_query_posts_clauses_request_filter</name>
|
1245 |
<full_name>mla_query_posts_clauses_request_filter</full_name>
|
1246 |
+
<docblock line="2237">
|
1247 |
<description><![CDATA[Filters all clauses for shortcode queries, post caching plugins]]></description>
|
1248 |
<long-description><![CDATA[<p>This is for debug purposes only.
|
1249 |
Defined as public because it's a filter.</p>]]></long-description>
|
1250 |
+
<tag line="2237" name="since" description="1.80"/>
|
1251 |
+
<tag line="2237" name="param" description="query clauses before modification" type="array" variable="$pieces">
|
1252 |
<type by_reference="false">array</type>
|
1253 |
</tag>
|
1254 |
+
<tag line="2237" name="return" description="query clauses after modification (none)" type="array">
|
1255 |
<type by_reference="false">array</type>
|
1256 |
</tag>
|
1257 |
</docblock>
|
1258 |
+
<argument line="2249">
|
1259 |
<name>$pieces</name>
|
1260 |
<default><![CDATA[]]></default>
|
1261 |
<type/>
|
1262 |
</argument>
|
1263 |
</method>
|
1264 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2273" package="Media Library Assistant">
|
1265 |
<name>mla_get_attachment_by_id</name>
|
1266 |
<full_name>mla_get_attachment_by_id</full_name>
|
1267 |
+
<docblock line="2261">
|
1268 |
<description><![CDATA[Retrieve an Attachment array given a $post_id]]></description>
|
1269 |
<long-description><![CDATA[<p>The (associative) array will contain every field that can be found in
|
1270 |
the posts and postmeta tables, and all references to the attachment.</p>]]></long-description>
|
1271 |
+
<tag line="2261" name="since" description="0.1"/>
|
1272 |
+
<tag line="2261" name="uses" description="\global\$post" refers="\global\$post"/>
|
1273 |
+
<tag line="2261" name="param" description="The ID of the attachment post" type="int" variable="$post_id">
|
1274 |
<type by_reference="false">int</type>
|
1275 |
</tag>
|
1276 |
+
<tag line="2261" name="return" description="NULL on failure else associative array" type="NULL|array">
|
1277 |
<type by_reference="false">NULL</type>
|
1278 |
<type by_reference="false">array</type>
|
1279 |
</tag>
|
1280 |
</docblock>
|
1281 |
+
<argument line="2273">
|
1282 |
<name>$post_id</name>
|
1283 |
<default><![CDATA[]]></default>
|
1284 |
<type/>
|
1285 |
</argument>
|
1286 |
</method>
|
1287 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2329" package="Media Library Assistant">
|
1288 |
<name>mla_fetch_attachment_parent_data</name>
|
1289 |
<full_name>mla_fetch_attachment_parent_data</full_name>
|
1290 |
+
<docblock line="2320">
|
1291 |
<description><![CDATA[Returns information about an attachment's parent, if found]]></description>
|
1292 |
<long-description><![CDATA[]]></long-description>
|
1293 |
+
<tag line="2320" name="since" description="0.1"/>
|
1294 |
+
<tag line="2320" name="param" description="post ID of attachment's parent, if any" type="int" variable="$parent_id">
|
1295 |
<type by_reference="false">int</type>
|
1296 |
</tag>
|
1297 |
+
<tag line="2320" name="return" description="Parent information; post_date, post_title and post_type" type="array">
|
1298 |
<type by_reference="false">array</type>
|
1299 |
</tag>
|
1300 |
</docblock>
|
1301 |
+
<argument line="2329">
|
1302 |
<name>$parent_id</name>
|
1303 |
<default><![CDATA[]]></default>
|
1304 |
<type/>
|
1305 |
</argument>
|
1306 |
</method>
|
1307 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2371" package="Media Library Assistant">
|
1308 |
<name>_set_array_element</name>
|
1309 |
<full_name>_set_array_element</full_name>
|
1310 |
+
<docblock line="2360">
|
1311 |
<description><![CDATA[Adds or replaces the value of a key in a possibly nested array structure]]></description>
|
1312 |
<long-description><![CDATA[]]></long-description>
|
1313 |
+
<tag line="2360" name="since" description="1.51"/>
|
1314 |
+
<tag line="2360" name="param" description="key value, e.g. array1.array2.element" type="string" variable="$needle">
|
1315 |
<type by_reference="false">string</type>
|
1316 |
</tag>
|
1317 |
+
<tag line="2360" name="param" description="replacement value, string or array, by reference" type="mixed" variable="$value">
|
1318 |
<type by_reference="false">mixed</type>
|
1319 |
</tag>
|
1320 |
+
<tag line="2360" name="param" description="PHP nested arrays, by reference" type="array" variable="$haystack">
|
1321 |
<type by_reference="false">array</type>
|
1322 |
</tag>
|
1323 |
+
<tag line="2360" name="return" description="true if $needle element set, false if not" type="boolean">
|
1324 |
<type by_reference="false">boolean</type>
|
1325 |
</tag>
|
1326 |
</docblock>
|
1327 |
+
<argument line="2371">
|
1328 |
<name>$needle</name>
|
1329 |
<default><![CDATA[]]></default>
|
1330 |
<type/>
|
1331 |
</argument>
|
1332 |
+
<argument line="2371">
|
1333 |
<name>$value</name>
|
1334 |
<default><![CDATA[]]></default>
|
1335 |
<type/>
|
1336 |
</argument>
|
1337 |
+
<argument line="2371">
|
1338 |
<name>$haystack</name>
|
1339 |
<default><![CDATA[]]></default>
|
1340 |
<type/>
|
1341 |
</argument>
|
1342 |
</method>
|
1343 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2405" package="Media Library Assistant">
|
1344 |
<name>_unset_array_element</name>
|
1345 |
<full_name>_unset_array_element</full_name>
|
1346 |
+
<docblock line="2395">
|
1347 |
<description><![CDATA[Deletes the value of a key in a possibly nested array structure]]></description>
|
1348 |
<long-description><![CDATA[]]></long-description>
|
1349 |
+
<tag line="2395" name="since" description="1.51"/>
|
1350 |
+
<tag line="2395" name="param" description="key value, e.g. array1.array2.element" type="string" variable="$needle">
|
1351 |
<type by_reference="false">string</type>
|
1352 |
</tag>
|
1353 |
+
<tag line="2395" name="param" description="PHP nested arrays, by reference" type="array" variable="$haystack">
|
1354 |
<type by_reference="false">array</type>
|
1355 |
</tag>
|
1356 |
+
<tag line="2395" name="return" description="true if $needle element found, false if not" type="boolean">
|
1357 |
<type by_reference="false">boolean</type>
|
1358 |
</tag>
|
1359 |
</docblock>
|
1360 |
+
<argument line="2405">
|
1361 |
<name>$needle</name>
|
1362 |
<default><![CDATA[]]></default>
|
1363 |
<type/>
|
1364 |
</argument>
|
1365 |
+
<argument line="2405">
|
1366 |
<name>$haystack</name>
|
1367 |
<default><![CDATA[]]></default>
|
1368 |
<type/>
|
1369 |
</argument>
|
1370 |
</method>
|
1371 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2440" package="Media Library Assistant">
|
1372 |
<name>mla_find_array_element</name>
|
1373 |
<full_name>mla_find_array_element</full_name>
|
1374 |
+
<docblock line="2425">
|
1375 |
<description><![CDATA[Finds the value of a key in a possibly nested array structure]]></description>
|
1376 |
<long-description><![CDATA[<p>Used primarily to extract fields from the _wp_attachment_metadata custom field.
|
1377 |
Could also be used with the ID3 metadata exposed in WordPress 3.6 and later.</p>]]></long-description>
|
1378 |
+
<tag line="2425" name="since" description="1.30"/>
|
1379 |
+
<tag line="2425" name="param" description="key value, e.g. array1.array2.element" type="string" variable="$needle">
|
1380 |
<type by_reference="false">string</type>
|
1381 |
</tag>
|
1382 |
+
<tag line="2425" name="param" description="PHP nested arrays" type="array" variable="$haystack">
|
1383 |
<type by_reference="false">array</type>
|
1384 |
</tag>
|
1385 |
+
<tag line="2425" name="param" description="data option 'text'|'single'|'export'|'array'|'multi'" type="string" variable="$option">
|
1386 |
<type by_reference="false">string</type>
|
1387 |
</tag>
|
1388 |
+
<tag line="2425" name="param" description="keep existing values - for 'multi' option" type="boolean" variable="$keep_existing">
|
1389 |
<type by_reference="false">boolean</type>
|
1390 |
</tag>
|
1391 |
+
<tag line="2425" name="return" description="string or array value matching key(.key ...) or ''" type="mixed">
|
1392 |
<type by_reference="false">mixed</type>
|
1393 |
</tag>
|
1394 |
</docblock>
|
1395 |
+
<argument line="2440">
|
1396 |
<name>$needle</name>
|
1397 |
<default><![CDATA[]]></default>
|
1398 |
<type/>
|
1399 |
</argument>
|
1400 |
+
<argument line="2440">
|
1401 |
<name>$haystack</name>
|
1402 |
<default><![CDATA[]]></default>
|
1403 |
<type/>
|
1404 |
</argument>
|
1405 |
+
<argument line="2440">
|
1406 |
<name>$option</name>
|
1407 |
<default><![CDATA[]]></default>
|
1408 |
<type/>
|
1409 |
</argument>
|
1410 |
+
<argument line="2440">
|
1411 |
<name>$keep_existing</name>
|
1412 |
<default><![CDATA[false]]></default>
|
1413 |
<type/>
|
1414 |
</argument>
|
1415 |
</method>
|
1416 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2493" package="Media Library Assistant">
|
1417 |
<name>mla_fetch_attachment_metadata</name>
|
1418 |
<full_name>mla_fetch_attachment_metadata</full_name>
|
1419 |
+
<docblock line="2481">
|
1420 |
<description><![CDATA[Fetch and filter meta data for an attachment]]></description>
|
1421 |
<long-description><![CDATA[<p>Returns a filtered array of a post's meta data. Internal values beginning with '<em>'
|
1422 |
are stripped out or converted to an 'mla</em>' equivalent.</p>]]></long-description>
|
1423 |
+
<tag line="2481" name="since" description="0.1"/>
|
1424 |
+
<tag line="2481" name="param" description="post ID of attachment" type="int" variable="$post_id">
|
1425 |
<type by_reference="false">int</type>
|
1426 |
</tag>
|
1427 |
+
<tag line="2481" name="return" description="Meta data variables" type="array">
|
1428 |
<type by_reference="false">array</type>
|
1429 |
</tag>
|
1430 |
</docblock>
|
1431 |
+
<argument line="2493">
|
1432 |
<name>$post_id</name>
|
1433 |
<default><![CDATA[]]></default>
|
1434 |
<type/>
|
1435 |
</argument>
|
1436 |
</method>
|
1437 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2578" package="Media Library Assistant">
|
1438 |
<name>mla_fetch_attachment_references</name>
|
1439 |
<full_name>mla_fetch_attachment_references</full_name>
|
1440 |
+
<docblock line="2565">
|
1441 |
<description><![CDATA[Find Featured Image and inserted image/link references to an attachment]]></description>
|
1442 |
<long-description><![CDATA[<p>Searches all post and page content to see if the attachment is used
|
1443 |
as a Featured Image or inserted in the post as an image or link.</p>]]></long-description>
|
1444 |
+
<tag line="2565" name="since" description="0.1"/>
|
1445 |
+
<tag line="2565" name="param" description="post ID of attachment" type="int" variable="$ID">
|
1446 |
<type by_reference="false">int</type>
|
1447 |
</tag>
|
1448 |
+
<tag line="2565" name="param" description="post ID of attachment's parent, if any" type="int" variable="$parent">
|
1449 |
<type by_reference="false">int</type>
|
1450 |
</tag>
|
1451 |
+
<tag line="2565" name="return" description="Reference information; see $references array comments" type="array">
|
1452 |
<type by_reference="false">array</type>
|
1453 |
</tag>
|
1454 |
</docblock>
|
1455 |
+
<argument line="2578">
|
1456 |
<name>$ID</name>
|
1457 |
<default><![CDATA[]]></default>
|
1458 |
<type/>
|
1459 |
</argument>
|
1460 |
+
<argument line="2578">
|
1461 |
<name>$parent</name>
|
1462 |
<default><![CDATA[]]></default>
|
1463 |
<type/>
|
1464 |
</argument>
|
1465 |
</method>
|
1466 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2910" package="Media Library Assistant">
|
1467 |
<name>mla_flush_mla_galleries</name>
|
1468 |
<full_name>mla_flush_mla_galleries</full_name>
|
1469 |
+
<docblock line="2901">
|
1470 |
<description><![CDATA[Invalidates the $mla_galleries or $galleries array and cached values]]></description>
|
1471 |
<long-description><![CDATA[]]></long-description>
|
1472 |
+
<tag line="2901" name="since" description="1.00"/>
|
1473 |
+
<tag line="2901" name="param" description="name of the gallery's cache/option variable" type="string" variable="$option_name">
|
1474 |
<type by_reference="false">string</type>
|
1475 |
</tag>
|
1476 |
+
<tag line="2901" name="return" description="" type="void">
|
1477 |
<type by_reference="false">void</type>
|
1478 |
</tag>
|
1479 |
</docblock>
|
1480 |
+
<argument line="2910">
|
1481 |
<name>$option_name</name>
|
1482 |
<default><![CDATA[]]></default>
|
1483 |
<type/>
|
1484 |
</argument>
|
1485 |
</method>
|
1486 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2934" package="Media Library Assistant">
|
1487 |
<name>mla_save_post_action</name>
|
1488 |
<full_name>mla_save_post_action</full_name>
|
1489 |
+
<docblock line="2925">
|
1490 |
<description><![CDATA[Invalidates $mla_galleries and $galleries arrays and cached values after post, page or attachment updates]]></description>
|
1491 |
<long-description><![CDATA[]]></long-description>
|
1492 |
+
<tag line="2925" name="since" description="1.00"/>
|
1493 |
+
<tag line="2925" name="param" description="ID of post/page/attachment; not used at this time" type="integer" variable="$post_id">
|
1494 |
<type by_reference="false">integer</type>
|
1495 |
</tag>
|
1496 |
+
<tag line="2925" name="return" description="" type="void">
|
1497 |
<type by_reference="false">void</type>
|
1498 |
</tag>
|
1499 |
</docblock>
|
1500 |
+
<argument line="2934">
|
1501 |
<name>$post_id</name>
|
1502 |
<default><![CDATA[]]></default>
|
1503 |
<type/>
|
1504 |
</argument>
|
1505 |
</method>
|
1506 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2951" package="Media Library Assistant">
|
1507 |
<name>_build_mla_galleries</name>
|
1508 |
<full_name>_build_mla_galleries</full_name>
|
1509 |
+
<docblock line="2939">
|
1510 |
<description><![CDATA[Builds the $mla_galleries or $galleries array]]></description>
|
1511 |
<long-description><![CDATA[]]></long-description>
|
1512 |
+
<tag line="2939" name="since" description="0.70"/>
|
1513 |
+
<tag line="2939" name="param" description="name of the gallery's cache/option variable" type="string" variable="$option_name">
|
1514 |
<type by_reference="false">string</type>
|
1515 |
</tag>
|
1516 |
+
<tag line="2939" name="param" description="by reference to the private static galleries array variable" type="array" variable="$galleries_array">
|
1517 |
<type by_reference="false">array</type>
|
1518 |
</tag>
|
1519 |
+
<tag line="2939" name="param" description="the shortcode to be searched for and processed" type="string" variable="$shortcode">
|
1520 |
<type by_reference="false">string</type>
|
1521 |
</tag>
|
1522 |
+
<tag line="2939" name="param" description="true to exclude revisions from the search" type="boolean" variable="$exclude_revisions">
|
1523 |
<type by_reference="false">boolean</type>
|
1524 |
</tag>
|
1525 |
+
<tag line="2939" name="return" description="true if the galleries array is not empty" type="boolean">
|
1526 |
<type by_reference="false">boolean</type>
|
1527 |
</tag>
|
1528 |
</docblock>
|
1529 |
+
<argument line="2951">
|
1530 |
<name>$option_name</name>
|
1531 |
<default><![CDATA[]]></default>
|
1532 |
<type/>
|
1533 |
</argument>
|
1534 |
+
<argument line="2951">
|
1535 |
<name>$galleries_array</name>
|
1536 |
<default><![CDATA[]]></default>
|
1537 |
<type/>
|
1538 |
</argument>
|
1539 |
+
<argument line="2951">
|
1540 |
<name>$shortcode</name>
|
1541 |
<default><![CDATA[]]></default>
|
1542 |
<type/>
|
1543 |
</argument>
|
1544 |
+
<argument line="2951">
|
1545 |
<name>$exclude_revisions</name>
|
1546 |
<default><![CDATA[]]></default>
|
1547 |
<type/>
|
1548 |
</argument>
|
1549 |
</method>
|
1550 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3065" package="Media Library Assistant">
|
1551 |
<name>_search_mla_galleries</name>
|
1552 |
<full_name>_search_mla_galleries</full_name>
|
1553 |
+
<docblock line="3054">
|
1554 |
<description><![CDATA[Search the $mla_galleries or $galleries array]]></description>
|
1555 |
<long-description><![CDATA[]]></long-description>
|
1556 |
+
<tag line="3054" name="since" description="0.70"/>
|
1557 |
+
<tag line="3054" name="param" description="by reference to the private static galleries array variable" type="array" variable="$galleries_array">
|
1558 |
<type by_reference="false">array</type>
|
1559 |
</tag>
|
1560 |
+
<tag line="3054" name="param" description="the attachment ID to be searched for and processed" type="int" variable="$attachment_id">
|
1561 |
<type by_reference="false">int</type>
|
1562 |
</tag>
|
1563 |
+
<tag line="3054" 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">
|
1564 |
<type by_reference="false">array</type>
|
1565 |
</tag>
|
1566 |
</docblock>
|
1567 |
+
<argument line="3065">
|
1568 |
<name>$galleries_array</name>
|
1569 |
<default><![CDATA[]]></default>
|
1570 |
<type/>
|
1571 |
</argument>
|
1572 |
+
<argument line="3065">
|
1573 |
<name>$attachment_id</name>
|
1574 |
<default><![CDATA[]]></default>
|
1575 |
<type/>
|
1576 |
</argument>
|
1577 |
</method>
|
1578 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3104" package="Media Library Assistant">
|
1579 |
<name>_parse_pdf_xref_subsection</name>
|
1580 |
<full_name>_parse_pdf_xref_subsection</full_name>
|
1581 |
+
<docblock line="3091">
|
1582 |
<description><![CDATA[Parse a cross-reference table subsection into the array of indirect object definitions]]></description>
|
1583 |
<long-description><![CDATA[<p>A cross-reference subsection is a sequence of 20-byte entries, each with offset and generation values.</p>]]></long-description>
|
1584 |
+
<tag line="3091" name="since" description="1.50"/>
|
1585 |
+
<tag line="3091" name="param" description="buffer containing the subsection" type="string" variable="$xref_section">
|
1586 |
<type by_reference="false">string</type>
|
1587 |
</tag>
|
1588 |
+
<tag line="3091" name="param" description="offset within the buffer of the first entry" type="integer" variable="$offset">
|
1589 |
<type by_reference="false">integer</type>
|
1590 |
</tag>
|
1591 |
+
<tag line="3091" name="param" description="number of the first object in the subsection" type="integer" variable="$object_id">
|
1592 |
<type by_reference="false">integer</type>
|
1593 |
</tag>
|
1594 |
+
<tag line="3091" name="param" description="number of entries in the subsection" type="integer" variable="$count">
|
1595 |
<type by_reference="false">integer</type>
|
1596 |
</tag>
|
1597 |
+
<tag line="3091" name="return" description="" type="void">
|
1598 |
<type by_reference="false">void</type>
|
1599 |
</tag>
|
1600 |
</docblock>
|
1601 |
+
<argument line="3104">
|
1602 |
<name>$xref_section</name>
|
1603 |
<default><![CDATA[]]></default>
|
1604 |
<type/>
|
1605 |
</argument>
|
1606 |
+
<argument line="3104">
|
1607 |
<name>$offset</name>
|
1608 |
<default><![CDATA[]]></default>
|
1609 |
<type/>
|
1610 |
</argument>
|
1611 |
+
<argument line="3104">
|
1612 |
<name>$object_id</name>
|
1613 |
<default><![CDATA[]]></default>
|
1614 |
<type/>
|
1615 |
</argument>
|
1616 |
+
<argument line="3104">
|
1617 |
<name>$count</name>
|
1618 |
<default><![CDATA[]]></default>
|
1619 |
<type/>
|
1620 |
</argument>
|
1621 |
</method>
|
1622 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3136" package="Media Library Assistant">
|
1623 |
<name>_parse_pdf_xref_section</name>
|
1624 |
<full_name>_parse_pdf_xref_section</full_name>
|
1625 |
+
<docblock line="3125">
|
1626 |
<description><![CDATA[Parse a cross-reference table section into the array of indirect object definitions]]></description>
|
1627 |
<long-description><![CDATA[<p>Creates the array of indirect object offsets and lengths</p>]]></long-description>
|
1628 |
+
<tag line="3125" name="since" description="1.50"/>
|
1629 |
+
<tag line="3125" name="param" description="full path and file name" type="string" variable="$file_name">
|
1630 |
<type by_reference="false">string</type>
|
1631 |
</tag>
|
1632 |
+
<tag line="3125" name="param" description="offset within the file of the xref id and count entry" type="integer" variable="$file_offset">
|
1633 |
<type by_reference="false">integer</type>
|
1634 |
</tag>
|
1635 |
+
<tag line="3125" name="return" description="length of the section" type="integer">
|
1636 |
<type by_reference="false">integer</type>
|
1637 |
</tag>
|
1638 |
</docblock>
|
1639 |
+
<argument line="3136">
|
1640 |
<name>$file_name</name>
|
1641 |
<default><![CDATA[]]></default>
|
1642 |
<type/>
|
1643 |
</argument>
|
1644 |
+
<argument line="3136">
|
1645 |
<name>$file_offset</name>
|
1646 |
<default><![CDATA[]]></default>
|
1647 |
<type/>
|
1648 |
</argument>
|
1649 |
</method>
|
1650 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3170" package="Media Library Assistant">
|
1651 |
<name>_parse_pdf_xref_stream</name>
|
1652 |
<full_name>_parse_pdf_xref_stream</full_name>
|
1653 |
+
<docblock line="3158">
|
1654 |
<description><![CDATA[Parse a cross-reference steam into the array of indirect object definitions]]></description>
|
1655 |
<long-description><![CDATA[<p>Creates the array of indirect object offsets and lengths</p>]]></long-description>
|
1656 |
+
<tag line="3158" name="since" description="1.50"/>
|
1657 |
+
<tag line="3158" name="param" description="full path and file name" type="string" variable="$file_name">
|
1658 |
<type by_reference="false">string</type>
|
1659 |
</tag>
|
1660 |
+
<tag line="3158" name="param" description="offset within the file of the xref id and count entry" type="integer" variable="$file_offset">
|
1661 |
<type by_reference="false">integer</type>
|
1662 |
</tag>
|
1663 |
+
<tag line="3158" name="param" description=""/W" entry, representing the size of the fields in a single entry" type="string" variable="$entry_parms_string">
|
1664 |
<type by_reference="false">string</type>
|
1665 |
</tag>
|
1666 |
+
<tag line="3158" name="return" description="length of the stream" type="integer">
|
1667 |
<type by_reference="false">integer</type>
|
1668 |
</tag>
|
1669 |
</docblock>
|
1670 |
+
<argument line="3170">
|
1671 |
<name>$file_name</name>
|
1672 |
<default><![CDATA[]]></default>
|
1673 |
<type/>
|
1674 |
</argument>
|
1675 |
+
<argument line="3170">
|
1676 |
<name>$file_offset</name>
|
1677 |
<default><![CDATA[]]></default>
|
1678 |
<type/>
|
1679 |
</argument>
|
1680 |
+
<argument line="3170">
|
1681 |
<name>$entry_parms_string</name>
|
1682 |
<default><![CDATA[]]></default>
|
1683 |
<type/>
|
1684 |
</argument>
|
1685 |
</method>
|
1686 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3249" package="Media Library Assistant">
|
1687 |
<name>_build_pdf_indirect_objects</name>
|
1688 |
<full_name>_build_pdf_indirect_objects</full_name>
|
1689 |
+
<docblock line="3239">
|
1690 |
<description><![CDATA[Build an array of indirect object definitions]]></description>
|
1691 |
<long-description><![CDATA[<p>Creates the array of indirect object offsets and lengths</p>]]></long-description>
|
1692 |
+
<tag line="3239" name="since" description="1.50"/>
|
1693 |
+
<tag line="3239" name="param" description="The entire PDF document, passsed by reference" type="string" variable="$string">
|
1694 |
<type by_reference="false">string</type>
|
1695 |
</tag>
|
1696 |
+
<tag line="3239" name="return" description="" type="void">
|
1697 |
<type by_reference="false">void</type>
|
1698 |
</tag>
|
1699 |
</docblock>
|
1700 |
+
<argument line="3249">
|
1701 |
<name>$string</name>
|
1702 |
<default><![CDATA[]]></default>
|
1703 |
<type/>
|
1704 |
</argument>
|
1705 |
</method>
|
1706 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3297" package="Media Library Assistant">
|
1707 |
<name>_find_pdf_indirect_dictionary</name>
|
1708 |
<full_name>_find_pdf_indirect_dictionary</full_name>
|
1709 |
+
<docblock line="3283">
|
1710 |
<description><![CDATA[Find the offset, length and contents of an indirect object containing a dictionary]]></description>
|
1711 |
<long-description><![CDATA[<p>The function searches the entire file, if necessary, to find the last/most recent copy of the object.
|
1712 |
This is required because Adobe Acrobat does NOT increment the generation number when it reuses an object.</p>]]></long-description>
|
1713 |
+
<tag line="3283" name="since" description="1.50"/>
|
1714 |
+
<tag line="3283" name="param" description="full path and file name" type="string" variable="$file_name">
|
1715 |
<type by_reference="false">string</type>
|
1716 |
</tag>
|
1717 |
+
<tag line="3283" name="param" description="The object number" type="integer" variable="$object">
|
1718 |
<type by_reference="false">integer</type>
|
1719 |
</tag>
|
1720 |
+
<tag line="3283" name="param" description="The object generation number; default zero (0)" type="integer" variable="$generation">
|
1721 |
<type by_reference="false">integer</type>
|
1722 |
</tag>
|
1723 |
+
<tag line="3283" name="return" description="NULL on failure else array( 'start' => offset in the file, 'length' => object length, 'content' => dictionary contents )" type="mixed">
|
1724 |
<type by_reference="false">mixed</type>
|
1725 |
</tag>
|
1726 |
</docblock>
|
1727 |
+
<argument line="3297">
|
1728 |
<name>$file_name</name>
|
1729 |
<default><![CDATA[]]></default>
|
1730 |
<type/>
|
1731 |
</argument>
|
1732 |
+
<argument line="3297">
|
1733 |
<name>$object</name>
|
1734 |
<default><![CDATA[]]></default>
|
1735 |
<type/>
|
1736 |
</argument>
|
1737 |
+
<argument line="3297">
|
1738 |
<name>$generation</name>
|
1739 |
<default><![CDATA[0]]></default>
|
1740 |
<type/>
|
1741 |
</argument>
|
1742 |
</method>
|
1743 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3394" package="Media Library Assistant">
|
1744 |
<name>_parse_iso8601_date</name>
|
1745 |
<full_name>_parse_iso8601_date</full_name>
|
1746 |
+
<docblock line="3385">
|
1747 |
<description><![CDATA[Parse a ISO 8601 Timestamp]]></description>
|
1748 |
<long-description><![CDATA[]]></long-description>
|
1749 |
+
<tag line="3385" name="since" description="1.50"/>
|
1750 |
+
<tag line="3385" name="param" description="ISO string of the form YYYY-MM-DDTHH:MM:SS-HH:MM (inc time zone)" type="string" variable="$source_string">
|
1751 |
<type by_reference="false">string</type>
|
1752 |
</tag>
|
1753 |
+
<tag line="3385" name="return" description="formatted date string YYYY-MM-DD HH:mm:SS" type="string">
|
1754 |
<type by_reference="false">string</type>
|
1755 |
</tag>
|
1756 |
</docblock>
|
1757 |
+
<argument line="3394">
|
1758 |
<name>$source_string</name>
|
1759 |
<default><![CDATA[]]></default>
|
1760 |
<type/>
|
1761 |
</argument>
|
1762 |
</method>
|
1763 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3417" package="Media Library Assistant">
|
1764 |
<name>_parse_pdf_date</name>
|
1765 |
<full_name>_parse_pdf_date</full_name>
|
1766 |
+
<docblock line="3408">
|
1767 |
<description><![CDATA[Parse a PDF date string]]></description>
|
1768 |
<long-description><![CDATA[]]></long-description>
|
1769 |
+
<tag line="3408" name="since" description="1.50"/>
|
1770 |
+
<tag line="3408" name="param" description="PDF date string of the form D:YYYYMMDDHHmmSSOHH'mm" type="string" variable="$source_string">
|
1771 |
<type by_reference="false">string</type>
|
1772 |
</tag>
|
1773 |
+
<tag line="3408" name="return" description="formatted date string YYYY-MM-DD HH:mm:SS" type="string">
|
1774 |
<type by_reference="false">string</type>
|
1775 |
</tag>
|
1776 |
</docblock>
|
1777 |
+
<argument line="3417">
|
1778 |
<name>$source_string</name>
|
1779 |
<default><![CDATA[]]></default>
|
1780 |
<type/>
|
1781 |
</argument>
|
1782 |
</method>
|
1783 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3440" package="Media Library Assistant">
|
1784 |
<name>_parse_pdf_UTF16BE</name>
|
1785 |
<full_name>_parse_pdf_UTF16BE</full_name>
|
1786 |
+
<docblock line="3431">
|
1787 |
<description><![CDATA[Parse a PDF Unicode (16-bit Big Endian) object]]></description>
|
1788 |
<long-description><![CDATA[]]></long-description>
|
1789 |
+
<tag line="3431" name="since" description="1.50"/>
|
1790 |
+
<tag line="3431" name="param" description="PDF string of 16-bit characters" type="string" variable="$source_string">
|
1791 |
<type by_reference="false">string</type>
|
1792 |
</tag>
|
1793 |
+
<tag line="3431" name="return" description="UTF-8 encoded string" type="string">
|
1794 |
<type by_reference="false">string</type>
|
1795 |
</tag>
|
1796 |
</docblock>
|
1797 |
+
<argument line="3440">
|
1798 |
<name>$source_string</name>
|
1799 |
<default><![CDATA[]]></default>
|
1800 |
<type/>
|
1801 |
</argument>
|
1802 |
</method>
|
1803 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3469" package="Media Library Assistant">
|
1804 |
<name>_parse_pdf_string</name>
|
1805 |
<full_name>_parse_pdf_string</full_name>
|
1806 |
+
<docblock line="3456">
|
1807 |
<description><![CDATA[Parse a PDF string object]]></description>
|
1808 |
<long-description><![CDATA[<p>Returns an array with one dictionary entry. The array also has a '/length' element containing
|
1809 |
the number of bytes occupied by the string in the source string, including the enclosing parentheses.</p>]]></long-description>
|
1810 |
+
<tag line="3456" name="since" description="1.50"/>
|
1811 |
+
<tag line="3456" name="param" description="data within which the string occurs" type="string" variable="$source_string">
|
1812 |
<type by_reference="false">string</type>
|
1813 |
</tag>
|
1814 |
+
<tag line="3456" name="param" description="offset within the source string of the opening '(' character." type="integer" variable="$offset">
|
1815 |
<type by_reference="false">integer</type>
|
1816 |
</tag>
|
1817 |
+
<tag line="3456" name="return" description="( key => array( 'type' => type, 'value' => value, '/length' => length ) ) for the string" type="array">
|
1818 |
<type by_reference="false">array</type>
|
1819 |
</tag>
|
1820 |
</docblock>
|
1821 |
+
<argument line="3469">
|
1822 |
<name>$source_string</name>
|
1823 |
<default><![CDATA[]]></default>
|
1824 |
<type/>
|
1825 |
</argument>
|
1826 |
+
<argument line="3469">
|
1827 |
<name>$offset</name>
|
1828 |
<default><![CDATA[]]></default>
|
1829 |
<type/>
|
1830 |
</argument>
|
1831 |
</method>
|
1832 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3563" package="Media Library Assistant">
|
1833 |
<name>_parse_pdf_LPD_dictionary</name>
|
1834 |
<full_name>_parse_pdf_LPD_dictionary</full_name>
|
1835 |
+
<docblock line="3549">
|
1836 |
<description><![CDATA[Parse a PDF Linearization Parameter Dictionary object]]></description>
|
1837 |
<long-description><![CDATA[<p>Returns an array of dictionary contents, classified by object type: boolean, numeric, string, hex (string),
|
1838 |
indirect (object), name, array, dictionary, stream, and null.
|
1839 |
The array also has a '/length' element containing the number of bytes occupied by the
|
1840 |
dictionary in the source string, excluding the enclosing delimiters, if passed in.</p>]]></long-description>
|
1841 |
+
<tag line="3549" name="since" description="1.50"/>
|
1842 |
+
<tag line="3549" name="param" description="data within which the object occurs, typically the start of a PDF document" type="string" variable="$source_string">
|
1843 |
<type by_reference="false">string</type>
|
1844 |
</tag>
|
1845 |
+
<tag line="3549" name="param" description="filesize of the PDF document, for validation purposes, or zero (0) to ignore filesize" type="integer" variable="$filesize">
|
1846 |
<type by_reference="false">integer</type>
|
1847 |
</tag>
|
1848 |
+
<tag line="3549" name="return" description="array of dictionary objects on success, false on failure" type="mixed">
|
1849 |
<type by_reference="false">mixed</type>
|
1850 |
</tag>
|
1851 |
</docblock>
|
1852 |
+
<argument line="3563">
|
1853 |
<name>$source_string</name>
|
1854 |
<default><![CDATA[]]></default>
|
1855 |
<type/>
|
1856 |
</argument>
|
1857 |
+
<argument line="3563">
|
1858 |
<name>$filesize</name>
|
1859 |
<default><![CDATA[]]></default>
|
1860 |
<type/>
|
1861 |
</argument>
|
1862 |
</method>
|
1863 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3588" package="Media Library Assistant">
|
1864 |
<name>_parse_pdf_dictionary</name>
|
1865 |
<full_name>_parse_pdf_dictionary</full_name>
|
1866 |
+
<docblock line="3574">
|
1867 |
<description><![CDATA[Parse a PDF dictionary object]]></description>
|
1868 |
<long-description><![CDATA[<p>Returns an array of dictionary contents, classified by object type: boolean, numeric, string, hex (string),
|
1869 |
indirect (object), name, array, dictionary, stream, and null.
|
1870 |
The array also has a '/length' element containing the number of bytes occupied by the
|
1871 |
dictionary in the source string, excluding the enclosing delimiters.</p>]]></long-description>
|
1872 |
+
<tag line="3574" name="since" description="1.50"/>
|
1873 |
+
<tag line="3574" name="param" description="data within which the string occurs" type="string" variable="$source_string">
|
1874 |
<type by_reference="false">string</type>
|
1875 |
</tag>
|
1876 |
+
<tag line="3574" name="param" description="offset within the source string of the opening '<<' characters or the first content character." type="integer" variable="$offset">
|
1877 |
<type by_reference="false">integer</type>
|
1878 |
</tag>
|
1879 |
+
<tag line="3574" name="return" description="( '/length' => length, key => array( 'type' => type, 'value' => value ) ) for each dictionary field" type="array">
|
1880 |
<type by_reference="false">array</type>
|
1881 |
</tag>
|
1882 |
</docblock>
|
1883 |
+
<argument line="3588">
|
1884 |
<name>$source_string</name>
|
1885 |
<default><![CDATA[]]></default>
|
1886 |
<type/>
|
1887 |
</argument>
|
1888 |
+
<argument line="3588">
|
1889 |
<name>$offset</name>
|
1890 |
<default><![CDATA[]]></default>
|
1891 |
<type/>
|
1892 |
</argument>
|
1893 |
</method>
|
1894 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3720" package="Media Library Assistant">
|
1895 |
<name>_parse_xmp_metadata</name>
|
1896 |
<full_name>_parse_xmp_metadata</full_name>
|
1897 |
+
<docblock line="3706">
|
1898 |
<description><![CDATA[Parse an XMP object]]></description>
|
1899 |
<long-description><![CDATA[<p>Returns an array of dictionary contents, classified by object type: boolean, numeric, string, hex (string),
|
1900 |
indirect (object), name, array, dictionary, stream, and null.
|
1901 |
The array also has a '/length' element containing the number of bytes occupied by the
|
1902 |
dictionary in the source string, excluding the enclosing delimiters, if passed in.</p>]]></long-description>
|
1903 |
+
<tag line="3706" name="since" description="1.50"/>
|
1904 |
+
<tag line="3706" name="param" description="full path and file name" type="string" variable="$file_name">
|
1905 |
<type by_reference="false">string</type>
|
1906 |
</tag>
|
1907 |
+
<tag line="3706" name="param" description="offset within the file of the search start point" type="integer" variable="$file_offset">
|
1908 |
<type by_reference="false">integer</type>
|
1909 |
</tag>
|
1910 |
+
<tag line="3706" name="return" description="array of metadata values or NULL on failure" type="mixed">
|
1911 |
<type by_reference="false">mixed</type>
|
1912 |
</tag>
|
1913 |
</docblock>
|
1914 |
+
<argument line="3720">
|
1915 |
<name>$file_name</name>
|
1916 |
<default><![CDATA[]]></default>
|
1917 |
<type/>
|
1918 |
</argument>
|
1919 |
+
<argument line="3720">
|
1920 |
<name>$file_offset</name>
|
1921 |
<default><![CDATA[]]></default>
|
1922 |
<type/>
|
1923 |
</argument>
|
1924 |
</method>
|
1925 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="4009" package="Media Library Assistant">
|
1926 |
<name>_extract_pdf_trailer</name>
|
1927 |
<full_name>_extract_pdf_trailer</full_name>
|
1928 |
+
<docblock line="3999">
|
1929 |
<description><![CDATA[Extract dictionary from traditional cross-reference + trailer documents]]></description>
|
1930 |
<long-description><![CDATA[]]></long-description>
|
1931 |
+
<tag line="3999" name="since" description="1.50"/>
|
1932 |
+
<tag line="3999" name="param" description="full path to the desired file" type="string" variable="$file_name">
|
1933 |
<type by_reference="false">string</type>
|
1934 |
</tag>
|
1935 |
+
<tag line="3999" name="param" description="offset within file of the cross-reference table" type="integer" variable="$file_offset">
|
1936 |
<type by_reference="false">integer</type>
|
1937 |
</tag>
|
1938 |
+
<tag line="3999" name="return" description="array of "PDF dictionary arrays", newest first, or NULL on failure" type="mixed">
|
1939 |
<type by_reference="false">mixed</type>
|
1940 |
</tag>
|
1941 |
</docblock>
|
1942 |
+
<argument line="4009">
|
1943 |
<name>$file_name</name>
|
1944 |
<default><![CDATA[]]></default>
|
1945 |
<type/>
|
1946 |
</argument>
|
1947 |
+
<argument line="4009">
|
1948 |
<name>$file_offset</name>
|
1949 |
<default><![CDATA[]]></default>
|
1950 |
<type/>
|
1951 |
</argument>
|
1952 |
</method>
|
1953 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="4095" package="Media Library Assistant">
|
1954 |
<name>_extract_pdf_metadata</name>
|
1955 |
<full_name>_extract_pdf_metadata</full_name>
|
1956 |
+
<docblock line="4086">
|
1957 |
<description><![CDATA[Extract Metadata from a PDF file]]></description>
|
1958 |
<long-description><![CDATA[]]></long-description>
|
1959 |
+
<tag line="4086" name="since" description="1.50"/>
|
1960 |
+
<tag line="4086" name="param" description="full path to the desired file" type="string" variable="$file_name">
|
1961 |
<type by_reference="false">string</type>
|
1962 |
</tag>
|
1963 |
+
<tag line="4086" name="return" description="( key => value ) for each metadata field, in string format" type="array">
|
1964 |
<type by_reference="false">array</type>
|
1965 |
</tag>
|
1966 |
</docblock>
|
1967 |
+
<argument line="4095">
|
1968 |
<name>$file_name</name>
|
1969 |
<default><![CDATA[]]></default>
|
1970 |
<type/>
|
1971 |
</argument>
|
1972 |
</method>
|
1973 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="4228" package="Media Library Assistant">
|
1974 |
<name>_bin_to_utf8</name>
|
1975 |
<full_name>_bin_to_utf8</full_name>
|
1976 |
+
<docblock line="4219">
|
1977 |
<description><![CDATA[Replace SQL incorrect characters (0x80 - 0xFF) with their UTF-8 equivalents]]></description>
|
1978 |
<long-description><![CDATA[]]></long-description>
|
1979 |
+
<tag line="4219" name="since" description="1.41"/>
|
1980 |
+
<tag line="4219" name="param" description="unencoded string" type="string" variable="$string">
|
1981 |
<type by_reference="false">string</type>
|
1982 |
</tag>
|
1983 |
+
<tag line="4219" name="return" description="UTF-8 encoded string" type="string">
|
1984 |
<type by_reference="false">string</type>
|
1985 |
</tag>
|
1986 |
</docblock>
|
1987 |
+
<argument line="4228">
|
1988 |
<name>$string</name>
|
1989 |
<default><![CDATA[]]></default>
|
1990 |
<type/>
|
1991 |
</argument>
|
1992 |
</method>
|
1993 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="4626" package="Media Library Assistant">
|
1994 |
<name>mla_iptc_metadata_value</name>
|
1995 |
<full_name>mla_iptc_metadata_value</full_name>
|
1996 |
+
<docblock line="4616">
|
1997 |
<description><![CDATA[Parse one IPTC metadata field]]></description>
|
1998 |
<long-description><![CDATA[]]></long-description>
|
1999 |
+
<tag line="4616" name="since" description="1.41"/>
|
2000 |
+
<tag line="4616" name="param" description="field name - IPTC Identifier or friendly name/slug" type="string" variable="$iptc_key">
|
2001 |
<type by_reference="false">string</type>
|
2002 |
</tag>
|
2003 |
+
<tag line="4616" name="param" description="metadata array containing iptc, exif, and pdf metadata arrays" type="string" variable="$item_metadata">
|
2004 |
<type by_reference="false">string</type>
|
2005 |
</tag>
|
2006 |
+
<tag line="4616" name="return" description="string/array representation of metadata value or an empty string" type="mixed">
|
2007 |
<type by_reference="false">mixed</type>
|
2008 |
</tag>
|
2009 |
</docblock>
|
2010 |
+
<argument line="4626">
|
2011 |
<name>$iptc_key</name>
|
2012 |
<default><![CDATA[]]></default>
|
2013 |
<type/>
|
2014 |
</argument>
|
2015 |
+
<argument line="4626">
|
2016 |
<name>$item_metadata</name>
|
2017 |
<default><![CDATA[]]></default>
|
2018 |
<type/>
|
2019 |
</argument>
|
2020 |
</method>
|
2021 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="4658" package="Media Library Assistant">
|
2022 |
<name>mla_exif_metadata_value</name>
|
2023 |
<full_name>mla_exif_metadata_value</full_name>
|
2024 |
+
<docblock line="4646">
|
2025 |
<description><![CDATA[Parse one EXIF metadata field]]></description>
|
2026 |
<long-description><![CDATA[<p>Also handles the special pseudo-values 'ALL_EXIF' and 'ALL_IPTC'.</p>]]></long-description>
|
2027 |
+
<tag line="4646" name="since" description="1.13"/>
|
2028 |
+
<tag line="4646" name="param" description="field name" type="string" variable="$exif_key">
|
2029 |
<type by_reference="false">string</type>
|
2030 |
</tag>
|
2031 |
+
<tag line="4646" name="param" description="metadata array containing iptc, exif, and pdf metadata arrays" type="string" variable="$item_metadata">
|
2032 |
<type by_reference="false">string</type>
|
2033 |
</tag>
|
2034 |
+
<tag line="4646" name="return" description="string/array representation of metadata value or an empty string" type="mixed">
|
2035 |
<type by_reference="false">mixed</type>
|
2036 |
</tag>
|
2037 |
</docblock>
|
2038 |
+
<argument line="4658">
|
2039 |
<name>$exif_key</name>
|
2040 |
<default><![CDATA[]]></default>
|
2041 |
<type/>
|
2042 |
</argument>
|
2043 |
+
<argument line="4658">
|
2044 |
<name>$item_metadata</name>
|
2045 |
<default><![CDATA[]]></default>
|
2046 |
<type/>
|
2047 |
</argument>
|
2048 |
</method>
|
2049 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="4719" package="Media Library Assistant">
|
2050 |
<name>mla_pdf_metadata_value</name>
|
2051 |
<full_name>mla_pdf_metadata_value</full_name>
|
2052 |
+
<docblock line="4707">
|
2053 |
<description><![CDATA[Parse one PDF metadata field]]></description>
|
2054 |
<long-description><![CDATA[<p>Also handles the special pseudo-value 'ALL_PDF'.</p>]]></long-description>
|
2055 |
+
<tag line="4707" name="since" description="1.50"/>
|
2056 |
+
<tag line="4707" name="param" description="field name" type="string" variable="$pdf_key">
|
2057 |
<type by_reference="false">string</type>
|
2058 |
</tag>
|
2059 |
+
<tag line="4707" name="param" description="metadata array containing iptc, exif, and pdf metadata arrays" type="string" variable="$item_metadata">
|
2060 |
<type by_reference="false">string</type>
|
2061 |
</tag>
|
2062 |
+
<tag line="4707" name="return" description="string/array representation of metadata value or an empty string" type="mixed">
|
2063 |
<type by_reference="false">mixed</type>
|
2064 |
</tag>
|
2065 |
</docblock>
|
2066 |
+
<argument line="4719">
|
2067 |
<name>$pdf_key</name>
|
2068 |
<default><![CDATA[]]></default>
|
2069 |
<type/>
|
2070 |
</argument>
|
2071 |
+
<argument line="4719">
|
2072 |
<name>$item_metadata</name>
|
2073 |
<default><![CDATA[]]></default>
|
2074 |
<type/>
|
2075 |
</argument>
|
2076 |
</method>
|
2077 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="4761" package="Media Library Assistant">
|
2078 |
<name>_rational_to_decimal</name>
|
2079 |
<full_name>_rational_to_decimal</full_name>
|
2080 |
+
<docblock line="4752">
|
2081 |
<description><![CDATA[Convert an EXIF GPS rational value to a PHP float value]]></description>
|
2082 |
<long-description><![CDATA[]]></long-description>
|
2083 |
+
<tag line="4752" name="since" description="1.50"/>
|
2084 |
+
<tag line="4752" name="param" description="array( 0 => numerator, 1 => denominator )" type="array" variable="$rational">
|
2085 |
<type by_reference="false">array</type>
|
2086 |
</tag>
|
2087 |
+
<tag line="4752" name="return" description="numerator/denominator" type="float">
|
2088 |
<type by_reference="false">float</type>
|
2089 |
</tag>
|
2090 |
</docblock>
|
2091 |
+
<argument line="4761">
|
2092 |
<name>$rational</name>
|
2093 |
<default><![CDATA[]]></default>
|
2094 |
<type/>
|
2095 |
</argument>
|
2096 |
</method>
|
2097 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="4788" package="Media Library Assistant">
|
2098 |
<name>mla_IPTC_EXIF_error_handler</name>
|
2099 |
<full_name>mla_IPTC_EXIF_error_handler</full_name>
|
2100 |
+
<docblock line="4776">
|
2101 |
<description><![CDATA[Intercept IPTC and EXIF parse errors]]></description>
|
2102 |
<long-description><![CDATA[]]></long-description>
|
2103 |
+
<tag line="4776" name="since" description="1.81"/>
|
2104 |
+
<tag line="4776" name="param" description="the level of the error raised" type="int" variable="$type">
|
2105 |
<type by_reference="false">int</type>
|
2106 |
</tag>
|
2107 |
+
<tag line="4776" name="param" description="the error message" type="string" variable="$string">
|
2108 |
<type by_reference="false">string</type>
|
2109 |
</tag>
|
2110 |
+
<tag line="4776" name="param" description="the filename that the error was raised in" type="string" variable="$file">
|
2111 |
<type by_reference="false">string</type>
|
2112 |
</tag>
|
2113 |
+
<tag line="4776" name="param" description="the line number the error was raised at" type="int" variable="$line">
|
2114 |
<type by_reference="false">int</type>
|
2115 |
</tag>
|
2116 |
+
<tag line="4776" name="return" description="true, to bypass PHP error handler" type="boolean">
|
2117 |
<type by_reference="false">boolean</type>
|
2118 |
</tag>
|
2119 |
</docblock>
|
2120 |
+
<argument line="4788">
|
2121 |
<name>$type</name>
|
2122 |
<default><![CDATA[]]></default>
|
2123 |
<type/>
|
2124 |
</argument>
|
2125 |
+
<argument line="4788">
|
2126 |
<name>$string</name>
|
2127 |
<default><![CDATA[]]></default>
|
2128 |
<type/>
|
2129 |
</argument>
|
2130 |
+
<argument line="4788">
|
2131 |
<name>$file</name>
|
2132 |
<default><![CDATA[]]></default>
|
2133 |
<type/>
|
2134 |
</argument>
|
2135 |
+
<argument line="4788">
|
2136 |
<name>$line</name>
|
2137 |
<default><![CDATA[]]></default>
|
2138 |
<type/>
|
2139 |
</argument>
|
2140 |
</method>
|
2141 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="4826" package="Media Library Assistant">
|
2142 |
<name>mla_fetch_attachment_image_metadata</name>
|
2143 |
<full_name>mla_fetch_attachment_image_metadata</full_name>
|
2144 |
+
<docblock line="4816">
|
2145 |
<description><![CDATA[Fetch and filter IPTC and EXIF or PDF metadata for an image attachment]]></description>
|
2146 |
<long-description><![CDATA[]]></long-description>
|
2147 |
+
<tag line="4816" name="since" description="0.90"/>
|
2148 |
+
<tag line="4816" name="param" description="post ID of attachment" type="int" variable="$post_id">
|
2149 |
<type by_reference="false">int</type>
|
2150 |
</tag>
|
2151 |
+
<tag line="4816" name="param" description="optional; if $post_id is zero, path to the image file." type="string" variable="$path">
|
2152 |
<type by_reference="false">string</type>
|
2153 |
</tag>
|
2154 |
+
<tag line="4816" name="return" description="Meta data variables, IPTC and EXIF or PDF" type="array">
|
2155 |
<type by_reference="false">array</type>
|
2156 |
</tag>
|
2157 |
</docblock>
|
2158 |
+
<argument line="4826">
|
2159 |
<name>$post_id</name>
|
2160 |
<default><![CDATA[]]></default>
|
2161 |
<type/>
|
2162 |
</argument>
|
2163 |
+
<argument line="4826">
|
2164 |
<name>$path</name>
|
2165 |
<default><![CDATA['']]></default>
|
2166 |
<type/>
|
2167 |
</argument>
|
2168 |
</method>
|
2169 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="5015" package="Media Library Assistant">
|
2170 |
<name>mla_update_wp_attachment_metadata</name>
|
2171 |
<full_name>mla_update_wp_attachment_metadata</full_name>
|
2172 |
+
<docblock line="5005">
|
2173 |
<description><![CDATA[Update "meta:" data for a single attachment]]></description>
|
2174 |
<long-description><![CDATA[]]></long-description>
|
2175 |
+
<tag line="5005" name="since" description="1.51"/>
|
2176 |
+
<tag line="5005" name="param" description="The current wp_attachment_metadata value" type="array" variable="$current_values">
|
2177 |
<type by_reference="false">array</type>
|
2178 |
</tag>
|
2179 |
+
<tag line="5005" name="param" description="Field name => value pairs" type="array" variable="$new_meta">
|
2180 |
<type by_reference="false">array</type>
|
2181 |
</tag>
|
2182 |
+
<tag line="5005" name="return" description="success/failure message(s); empty string if no changes." type="string">
|
2183 |
<type by_reference="false">string</type>
|
2184 |
</tag>
|
2185 |
</docblock>
|
2186 |
+
<argument line="5015">
|
2187 |
<name>$current_values</name>
|
2188 |
<default><![CDATA[]]></default>
|
2189 |
<type/>
|
2190 |
</argument>
|
2191 |
+
<argument line="5015">
|
2192 |
<name>$new_meta</name>
|
2193 |
<default><![CDATA[]]></default>
|
2194 |
<type/>
|
2195 |
</argument>
|
2196 |
</method>
|
2197 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="5098" package="Media Library Assistant">
|
2198 |
<name>mla_update_item_postmeta</name>
|
2199 |
<full_name>mla_update_item_postmeta</full_name>
|
2200 |
+
<docblock line="5088">
|
2201 |
<description><![CDATA[Update custom field and "meta:" data for a single attachment]]></description>
|
2202 |
<long-description><![CDATA[]]></long-description>
|
2203 |
+
<tag line="5088" name="since" description="1.40"/>
|
2204 |
+
<tag line="5088" name="param" description="The ID of the attachment to be updated" type="int" variable="$post_id">
|
2205 |
<type by_reference="false">int</type>
|
2206 |
</tag>
|
2207 |
+
<tag line="5088" name="param" description="Field name => value pairs" type="array" variable="$new_meta">
|
2208 |
<type by_reference="false">array</type>
|
2209 |
</tag>
|
2210 |
+
<tag line="5088" name="return" description="success/failure message(s)" type="string">
|
2211 |
<type by_reference="false">string</type>
|
2212 |
</tag>
|
2213 |
</docblock>
|
2214 |
+
<argument line="5098">
|
2215 |
<name>$post_id</name>
|
2216 |
<default><![CDATA[]]></default>
|
2217 |
<type/>
|
2218 |
</argument>
|
2219 |
+
<argument line="5098">
|
2220 |
<name>$new_meta</name>
|
2221 |
<default><![CDATA[]]></default>
|
2222 |
<type/>
|
2223 |
</argument>
|
2224 |
</method>
|
2225 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="5265" package="Media Library Assistant">
|
2226 |
<name>mla_update_single_item</name>
|
2227 |
<full_name>mla_update_single_item</full_name>
|
2228 |
+
<docblock line="5252">
|
2229 |
<description><![CDATA[Update a single item; change the "post" data, taxonomy terms
|
2230 |
and meta data for a single attachment]]></description>
|
2231 |
<long-description><![CDATA[]]></long-description>
|
2232 |
+
<tag line="5252" name="since" description="0.1"/>
|
2233 |
+
<tag line="5252" name="param" description="The ID of the attachment to be updated" type="int" variable="$post_id">
|
2234 |
<type by_reference="false">int</type>
|
2235 |
</tag>
|
2236 |
+
<tag line="5252" name="param" description="Field name => value pairs" type="array" variable="$new_data">
|
2237 |
<type by_reference="false">array</type>
|
2238 |
</tag>
|
2239 |
+
<tag line="5252" name="param" description="Optional taxonomy term values, default null" type="array" variable="$tax_input">
|
2240 |
<type by_reference="false">array</type>
|
2241 |
</tag>
|
2242 |
+
<tag line="5252" name="param" description="Optional taxonomy actions (add, remove, replace), default null" type="array" variable="$tax_actions">
|
2243 |
<type by_reference="false">array</type>
|
2244 |
</tag>
|
2245 |
+
<tag line="5252" name="return" description="success/failure message and NULL content" type="array">
|
2246 |
<type by_reference="false">array</type>
|
2247 |
</tag>
|
2248 |
</docblock>
|
2249 |
+
<argument line="5265">
|
2250 |
<name>$post_id</name>
|
2251 |
<default><![CDATA[]]></default>
|
2252 |
<type/>
|
2253 |
</argument>
|
2254 |
+
<argument line="5265">
|
2255 |
<name>$new_data</name>
|
2256 |
<default><![CDATA[]]></default>
|
2257 |
<type/>
|
2258 |
</argument>
|
2259 |
+
<argument line="5265">
|
2260 |
<name>$tax_input</name>
|
2261 |
<default><![CDATA[NULL]]></default>
|
2262 |
<type/>
|
2263 |
</argument>
|
2264 |
+
<argument line="5265">
|
2265 |
<name>$tax_actions</name>
|
2266 |
<default><![CDATA[NULL]]></default>
|
2267 |
<type/>
|
2268 |
</argument>
|
2269 |
</method>
|
2270 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="5541" package="Media Library Assistant">
|
2271 |
<name>_remove_tags</name>
|
2272 |
<full_name>_remove_tags</full_name>
|
2273 |
+
<docblock line="5530">
|
2274 |
<description><![CDATA[Remove tags from a term ids list]]></description>
|
2275 |
<long-description><![CDATA[]]></long-description>
|
2276 |
+
<tag line="5530" name="since" description="0.40"/>
|
2277 |
+
<tag line="5530" name="param" description="The term ids currently assigned" type="array" variable="$terms_before">
|
2278 |
<type by_reference="false">array</type>
|
2279 |
</tag>
|
2280 |
+
<tag line="5530" name="param" description="| string The term ids (array) or names (string) to remove" type="array" variable="$tags">
|
2281 |
<type by_reference="false">array</type>
|
2282 |
</tag>
|
2283 |
+
<tag line="5530" name="param" description="The taxonomy object" type="object" variable="$taxonomy_obj">
|
2284 |
<type by_reference="false">object</type>
|
2285 |
</tag>
|
2286 |
+
<tag line="5530" name="return" description="Term ids of the surviving tags" type="array">
|
2287 |
<type by_reference="false">array</type>
|
2288 |
</tag>
|
2289 |
</docblock>
|
2290 |
+
<argument line="5541">
|
2291 |
<name>$terms_before</name>
|
2292 |
<default><![CDATA[]]></default>
|
2293 |
<type/>
|
2294 |
</argument>
|
2295 |
+
<argument line="5541">
|
2296 |
<name>$tags</name>
|
2297 |
<default><![CDATA[]]></default>
|
2298 |
<type/>
|
2299 |
</argument>
|
2300 |
+
<argument line="5541">
|
2301 |
<name>$taxonomy_obj</name>
|
2302 |
<default><![CDATA[]]></default>
|
2303 |
<type/>
|
2304 |
</argument>
|
2305 |
</method>
|
2306 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="5590" package="Media Library Assistant">
|
2307 |
<name>_hex_dump</name>
|
2308 |
<full_name>_hex_dump</full_name>
|
2309 |
+
<docblock line="5578">
|
2310 |
<description><![CDATA[Format printable version of binary data]]></description>
|
2311 |
<long-description><![CDATA[]]></long-description>
|
2312 |
+
<tag line="5578" name="since" description="0.90"/>
|
2313 |
+
<tag line="5578" name="param" description="Binary data" type="string" variable="$data">
|
2314 |
<type by_reference="false">string</type>
|
2315 |
</tag>
|
2316 |
+
<tag line="5578" name="param" description="Bytes to format, default = 0 (all bytes)" type="integer" variable="$limit">
|
2317 |
<type by_reference="false">integer</type>
|
2318 |
</tag>
|
2319 |
+
<tag line="5578" name="param" description="Bytes to format on each line" type="\intger" variable="$bytes_per_row">
|
2320 |
<type by_reference="false">\intger</type>
|
2321 |
</tag>
|
2322 |
+
<tag line="5578" name="param" description="offset of initial byte, or -1 to suppress printing offset information" type="integer" variable="$offset">
|
2323 |
<type by_reference="false">integer</type>
|
2324 |
</tag>
|
2325 |
+
<tag line="5578" name="return" description="Printable representation of $data" type="string">
|
2326 |
<type by_reference="false">string</type>
|
2327 |
</tag>
|
2328 |
</docblock>
|
2329 |
+
<argument line="5590">
|
2330 |
<name>$data</name>
|
2331 |
<default><![CDATA[]]></default>
|
2332 |
<type/>
|
2333 |
</argument>
|
2334 |
+
<argument line="5590">
|
2335 |
<name>$limit</name>
|
2336 |
<default><![CDATA[0]]></default>
|
2337 |
<type/>
|
2338 |
</argument>
|
2339 |
+
<argument line="5590">
|
2340 |
<name>$bytes_per_row</name>
|
2341 |
<default><![CDATA[16]]></default>
|
2342 |
<type/>
|
2343 |
</argument>
|
2344 |
+
<argument line="5590">
|
2345 |
<name>$offset</name>
|
2346 |
<default><![CDATA[-1]]></default>
|
2347 |
<type/>
|
2349 |
</method>
|
2350 |
</class>
|
2351 |
<markers>
|
2352 |
+
<todo line="3449">encode the rest</todo>
|
2353 |
</markers>
|
2354 |
</file>
|
2355 |
+
<file path="includes\class-mla-edit-media.php" hash="dcffecc1a55b007d06285b31920fcae6" package="Media Library Assistant">
|
2356 |
<docblock line="2">
|
2357 |
<description><![CDATA[Media Library Assistant Edit Media screen enhancements]]></description>
|
2358 |
<long-description><![CDATA[]]></long-description>
|
2408 |
</tag>
|
2409 |
</docblock>
|
2410 |
</constant>
|
2411 |
+
<property final="false" static="true" visibility="private" line="392" namespace="global" package="Media Library Assistant">
|
2412 |
<name>$mla_references</name>
|
2413 |
<default><![CDATA[null]]></default>
|
2414 |
+
<docblock line="382">
|
2415 |
<description><![CDATA[Where-used values for the current item]]></description>
|
2416 |
<long-description><![CDATA[<p>This array contains the Featured/Inserted/Gallery/MLA Gallery references for the item.
|
2417 |
The array is built once each page load and cached for subsequent calls.</p>]]></long-description>
|
2418 |
+
<tag line="382" name="since" description="0.80"/>
|
2419 |
+
<tag line="382" name="var" description="" type="array">
|
2420 |
<type by_reference="false">array</type>
|
2421 |
</tag>
|
2422 |
</docblock>
|
2465 |
<type/>
|
2466 |
</argument>
|
2467 |
</method>
|
2468 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="202" package="Media Library Assistant">
|
2469 |
<name>mla_post_updated_messages_filter</name>
|
2470 |
<full_name>mla_post_updated_messages_filter</full_name>
|
2471 |
+
<docblock line="192">
|
2472 |
<description><![CDATA[Adds mapping update messages for display at the top of the Edit Media screen.]]></description>
|
2473 |
<long-description><![CDATA[<p>Declared public because it is a filter.</p>]]></long-description>
|
2474 |
+
<tag line="192" name="since" description="1.10"/>
|
2475 |
+
<tag line="192" name="param" description="messages for the Edit screen" type="array" variable="$messages">
|
2476 |
<type by_reference="false">array</type>
|
2477 |
</tag>
|
2478 |
+
<tag line="192" name="return" description="updated messages" type="array">
|
2479 |
<type by_reference="false">array</type>
|
2480 |
</tag>
|
2481 |
</docblock>
|
2482 |
+
<argument line="202">
|
2483 |
<name>$messages</name>
|
2484 |
<default><![CDATA[]]></default>
|
2485 |
<type/>
|
2486 |
</argument>
|
2487 |
</method>
|
2488 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="219" package="Media Library Assistant">
|
2489 |
<name>mla_attachment_submitbox_action</name>
|
2490 |
<full_name>mla_attachment_submitbox_action</full_name>
|
2491 |
+
<docblock line="211">
|
2492 |
<description><![CDATA[Adds Last Modified date to the Submit box on the Edit Media screen.]]></description>
|
2493 |
<long-description><![CDATA[<p>Declared public because it is an action.</p>]]></long-description>
|
2494 |
+
<tag line="211" name="since" description="0.80"/>
|
2495 |
+
<tag line="211" name="return" description="echoes the HTML markup for the label and value" type="void">
|
2496 |
<type by_reference="false">void</type>
|
2497 |
</tag>
|
2498 |
</docblock>
|
2499 |
</method>
|
2500 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="255" package="Media Library Assistant">
|
2501 |
<name>mla_add_meta_boxes_action</name>
|
2502 |
<full_name>mla_add_meta_boxes_action</full_name>
|
2503 |
+
<docblock line="244">
|
2504 |
<description><![CDATA[Registers meta boxes for the Edit Media screen.]]></description>
|
2505 |
<long-description><![CDATA[<p>Declared public because it is an action.</p>]]></long-description>
|
2506 |
+
<tag line="244" name="since" description="0.80"/>
|
2507 |
+
<tag line="244" name="param" description="type of the current post, e.g., 'attachment' (optional, default 'unknown')" type="string" variable="$post_type">
|
2508 |
<type by_reference="false">string</type>
|
2509 |
</tag>
|
2510 |
+
<tag line="244" name="param" description="current post (optional, default (object) array ( 'ID' => 0 ))" type="object" variable="$post">
|
2511 |
<type by_reference="false">object</type>
|
2512 |
</tag>
|
2513 |
+
<tag line="244" name="return" description="" type="void">
|
2514 |
<type by_reference="false">void</type>
|
2515 |
</tag>
|
2516 |
</docblock>
|
2517 |
+
<argument line="255">
|
2518 |
<name>$post_type</name>
|
2519 |
<default><![CDATA['unknown']]></default>
|
2520 |
<type/>
|
2521 |
</argument>
|
2522 |
+
<argument line="255">
|
2523 |
<name>$post</name>
|
2524 |
<default><![CDATA[NULL]]></default>
|
2525 |
<type/>
|
2526 |
</argument>
|
2527 |
</method>
|
2528 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="342" package="Media Library Assistant">
|
2529 |
<name>mla_edit_add_help_tab</name>
|
2530 |
<full_name>mla_edit_add_help_tab</full_name>
|
2531 |
+
<docblock line="332">
|
2532 |
<description><![CDATA[Add contextual help tabs to the WordPress Edit Media page]]></description>
|
2533 |
<long-description><![CDATA[]]></long-description>
|
2534 |
+
<tag line="332" name="since" description="0.90"/>
|
2535 |
+
<tag line="332" name="param" description="title as shown on the screen" type="string" variable="$admin_title">
|
2536 |
<type by_reference="false">string</type>
|
2537 |
</tag>
|
2538 |
+
<tag line="332" name="param" description="title as shown in the HTML header" type="string" variable="$title">
|
2539 |
<type by_reference="false">string</type>
|
2540 |
</tag>
|
2541 |
+
<tag line="332" name="return" description="" type="void">
|
2542 |
<type by_reference="false">void</type>
|
2543 |
</tag>
|
2544 |
</docblock>
|
2545 |
+
<argument line="342">
|
2546 |
<name>$admin_title</name>
|
2547 |
<default><![CDATA[]]></default>
|
2548 |
<type/>
|
2549 |
</argument>
|
2550 |
+
<argument line="342">
|
2551 |
<name>$title</name>
|
2552 |
<default><![CDATA[]]></default>
|
2553 |
<type/>
|
2554 |
</argument>
|
2555 |
</method>
|
2556 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="404" package="Media Library Assistant">
|
2557 |
<name>mla_parent_info_handler</name>
|
2558 |
<full_name>mla_parent_info_handler</full_name>
|
2559 |
+
<docblock line="394">
|
2560 |
<description><![CDATA[Renders the Parent Info meta box on the Edit Media page.]]></description>
|
2561 |
<long-description><![CDATA[<p>Declared public because it is a callback function.</p>]]></long-description>
|
2562 |
+
<tag line="394" name="since" description="0.80"/>
|
2563 |
+
<tag line="394" name="param" description="current post" type="object" variable="$post">
|
2564 |
<type by_reference="false">object</type>
|
2565 |
</tag>
|
2566 |
+
<tag line="394" name="return" description="echoes the HTML markup for the meta box content" type="void">
|
2567 |
<type by_reference="false">void</type>
|
2568 |
</tag>
|
2569 |
</docblock>
|
2570 |
+
<argument line="404">
|
2571 |
<name>$post</name>
|
2572 |
<default><![CDATA[]]></default>
|
2573 |
<type/>
|
2574 |
</argument>
|
2575 |
</method>
|
2576 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="436" package="Media Library Assistant">
|
2577 |
<name>mla_menu_order_handler</name>
|
2578 |
<full_name>mla_menu_order_handler</full_name>
|
2579 |
+
<docblock line="426">
|
2580 |
<description><![CDATA[Renders the Menu Order meta box on the Edit Media page.]]></description>
|
2581 |
<long-description><![CDATA[<p>Declared public because it is a callback function.</p>]]></long-description>
|
2582 |
+
<tag line="426" name="since" description="0.80"/>
|
2583 |
+
<tag line="426" name="param" description="current post" type="object" variable="$post">
|
2584 |
<type by_reference="false">object</type>
|
2585 |
</tag>
|
2586 |
+
<tag line="426" name="return" description="echoes the HTML markup for the meta box content" type="void">
|
2587 |
<type by_reference="false">void</type>
|
2588 |
</tag>
|
2589 |
</docblock>
|
2590 |
+
<argument line="436">
|
2591 |
<name>$post</name>
|
2592 |
<default><![CDATA[]]></default>
|
2593 |
<type/>
|
2594 |
</argument>
|
2595 |
</method>
|
2596 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="451" package="Media Library Assistant">
|
2597 |
<name>mla_image_metadata_handler</name>
|
2598 |
<full_name>mla_image_metadata_handler</full_name>
|
2599 |
+
<docblock line="441">
|
2600 |
<description><![CDATA[Renders the Image Metadata meta box on the Edit Media page.]]></description>
|
2601 |
<long-description><![CDATA[<p>Declared public because it is a callback function.</p>]]></long-description>
|
2602 |
+
<tag line="441" name="since" description="0.80"/>
|
2603 |
+
<tag line="441" name="param" description="current post" type="object" variable="$post">
|
2604 |
<type by_reference="false">object</type>
|
2605 |
</tag>
|
2606 |
+
<tag line="441" name="return" description="echoes the HTML markup for the meta box content" type="void">
|
2607 |
<type by_reference="false">void</type>
|
2608 |
</tag>
|
2609 |
</docblock>
|
2610 |
+
<argument line="451">
|
2611 |
<name>$post</name>
|
2612 |
<default><![CDATA[]]></default>
|
2613 |
<type/>
|
2614 |
</argument>
|
2615 |
</method>
|
2616 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="473" package="Media Library Assistant">
|
2617 |
<name>mla_featured_in_handler</name>
|
2618 |
<full_name>mla_featured_in_handler</full_name>
|
2619 |
+
<docblock line="463">
|
2620 |
<description><![CDATA[Renders the Featured in meta box on the Edit Media page.]]></description>
|
2621 |
<long-description><![CDATA[<p>Declared public because it is a callback function.</p>]]></long-description>
|
2622 |
+
<tag line="463" name="since" description="0.80"/>
|
2623 |
+
<tag line="463" name="param" description="current post" type="object" variable="$post">
|
2624 |
<type by_reference="false">object</type>
|
2625 |
</tag>
|
2626 |
+
<tag line="463" name="return" description="echoes the HTML markup for the meta box content" type="void">
|
2627 |
<type by_reference="false">void</type>
|
2628 |
</tag>
|
2629 |
</docblock>
|
2630 |
+
<argument line="473">
|
2631 |
<name>$post</name>
|
2632 |
<default><![CDATA[]]></default>
|
2633 |
<type/>
|
2634 |
</argument>
|
2635 |
</method>
|
2636 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="505" package="Media Library Assistant">
|
2637 |
<name>mla_inserted_in_handler</name>
|
2638 |
<full_name>mla_inserted_in_handler</full_name>
|
2639 |
+
<docblock line="495">
|
2640 |
<description><![CDATA[Renders the Inserted in meta box on the Edit Media page.]]></description>
|
2641 |
<long-description><![CDATA[<p>Declared public because it is a callback function.</p>]]></long-description>
|
2642 |
+
<tag line="495" name="since" description="0.80"/>
|
2643 |
+
<tag line="495" name="param" description="current post" type="object" variable="$post">
|
2644 |
<type by_reference="false">object</type>
|
2645 |
</tag>
|
2646 |
+
<tag line="495" name="return" description="echoes the HTML markup for the meta box content" type="void">
|
2647 |
<type by_reference="false">void</type>
|
2648 |
</tag>
|
2649 |
</docblock>
|
2650 |
+
<argument line="505">
|
2651 |
<name>$post</name>
|
2652 |
<default><![CDATA[]]></default>
|
2653 |
<type/>
|
2654 |
</argument>
|
2655 |
</method>
|
2656 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="541" package="Media Library Assistant">
|
2657 |
<name>mla_gallery_in_handler</name>
|
2658 |
<full_name>mla_gallery_in_handler</full_name>
|
2659 |
+
<docblock line="531">
|
2660 |
<description><![CDATA[Renders the Gallery in meta box on the Edit Media page.]]></description>
|
2661 |
<long-description><![CDATA[<p>Declared public because it is a callback function.</p>]]></long-description>
|
2662 |
+
<tag line="531" name="since" description="0.80"/>
|
2663 |
+
<tag line="531" name="param" description="current post" type="object" variable="$post">
|
2664 |
<type by_reference="false">object</type>
|
2665 |
</tag>
|
2666 |
+
<tag line="531" name="return" description="echoes the HTML markup for the meta box content" type="void">
|
2667 |
<type by_reference="false">void</type>
|
2668 |
</tag>
|
2669 |
</docblock>
|
2670 |
+
<argument line="541">
|
2671 |
<name>$post</name>
|
2672 |
<default><![CDATA[]]></default>
|
2673 |
<type/>
|
2674 |
</argument>
|
2675 |
</method>
|
2676 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="573" package="Media Library Assistant">
|
2677 |
<name>mla_mla_gallery_in_handler</name>
|
2678 |
<full_name>mla_mla_gallery_in_handler</full_name>
|
2679 |
+
<docblock line="563">
|
2680 |
<description><![CDATA[Renders the Gallery in meta box on the Edit Media page.]]></description>
|
2681 |
<long-description><![CDATA[<p>Declared public because it is a callback function.</p>]]></long-description>
|
2682 |
+
<tag line="563" name="since" description="0.80"/>
|
2683 |
+
<tag line="563" name="param" description="current post" type="object" variable="$post">
|
2684 |
<type by_reference="false">object</type>
|
2685 |
</tag>
|
2686 |
+
<tag line="563" name="return" description="echoes the HTML markup for the meta box content" type="void">
|
2687 |
<type by_reference="false">void</type>
|
2688 |
</tag>
|
2689 |
</docblock>
|
2690 |
+
<argument line="573">
|
2691 |
<name>$post</name>
|
2692 |
<default><![CDATA[]]></default>
|
2693 |
<type/>
|
2694 |
</argument>
|
2695 |
</method>
|
2696 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="605" package="Media Library Assistant">
|
2697 |
<name>mla_edit_attachment_action</name>
|
2698 |
<full_name>mla_edit_attachment_action</full_name>
|
2699 |
+
<docblock line="595">
|
2700 |
<description><![CDATA[Saves updates from the Edit Media screen.]]></description>
|
2701 |
<long-description><![CDATA[<p>Declared public because it is an action.</p>]]></long-description>
|
2702 |
+
<tag line="595" name="since" description="0.80"/>
|
2703 |
+
<tag line="595" name="param" description="ID of the current post" type="integer" variable="$post_ID">
|
2704 |
<type by_reference="false">integer</type>
|
2705 |
</tag>
|
2706 |
+
<tag line="595" name="return" description="" type="void">
|
2707 |
<type by_reference="false">void</type>
|
2708 |
</tag>
|
2709 |
</docblock>
|
2710 |
+
<argument line="605">
|
2711 |
<name>$post_ID</name>
|
2712 |
<default><![CDATA[]]></default>
|
2713 |
<type/>
|
2714 |
</argument>
|
2715 |
</method>
|
2716 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="631" package="Media Library Assistant">
|
2717 |
<name>_mla_ajax_add_flat_term</name>
|
2718 |
<full_name>_mla_ajax_add_flat_term</full_name>
|
2719 |
+
<docblock line="620">
|
2720 |
<description><![CDATA[Add flat taxonomy term from "checklist" meta box on the Media Manager Modal Window]]></description>
|
2721 |
<long-description><![CDATA[<p>Adapted from the WordPress post_categories_meta_box() in /wp-admin/includes/meta-boxes.php.</p>]]></long-description>
|
2722 |
+
<tag line="620" name="since" description="1.80"/>
|
2723 |
+
<tag line="620" name="param" description="The taxonomy name, from $_POST['action']" type="string" variable="$key">
|
2724 |
<type by_reference="false">string</type>
|
2725 |
</tag>
|
2726 |
+
<tag line="620" name="return" description="Sends JSON response with updated HTML for the checklist" type="void">
|
2727 |
<type by_reference="false">void</type>
|
2728 |
</tag>
|
2729 |
</docblock>
|
2730 |
+
<argument line="631">
|
2731 |
<name>$key</name>
|
2732 |
<default><![CDATA[]]></default>
|
2733 |
<type/>
|
2734 |
</argument>
|
2735 |
</method>
|
2736 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="694" package="Media Library Assistant">
|
2737 |
<name>mla_checklist_meta_box</name>
|
2738 |
<full_name>mla_checklist_meta_box</full_name>
|
2739 |
+
<docblock line="679">
|
2740 |
<description><![CDATA[Display taxonomy "checklist" form fields]]></description>
|
2741 |
<long-description><![CDATA[<p>Adapted from /wp-admin/includes/ajax-actions.php function _wp_ajax_add_hierarchical_term().
|
2742 |
Includes the "? Search" area to filter the term checklist by entering part
|
2743 |
or all of a word/phrase in the term label.
|
2744 |
Output to the Media/Edit Media screen and to the Media Manager Modal Window.</p>]]></long-description>
|
2745 |
+
<tag line="679" name="since" description="1.71"/>
|
2746 |
+
<tag line="679" name="param" description="The current post" type="object" variable="$target_post">
|
2747 |
<type by_reference="false">object</type>
|
2748 |
</tag>
|
2749 |
+
<tag line="679" name="param" description="The meta box parameters" type="array" variable="$box">
|
2750 |
<type by_reference="false">array</type>
|
2751 |
</tag>
|
2752 |
+
<tag line="679" name="return" description="Echoes HTML for the form fields" type="void">
|
2753 |
<type by_reference="false">void</type>
|
2754 |
</tag>
|
2755 |
</docblock>
|
2756 |
+
<argument line="694">
|
2757 |
<name>$target_post</name>
|
2758 |
<default><![CDATA[]]></default>
|
2759 |
<type/>
|
2760 |
</argument>
|
2761 |
+
<argument line="694">
|
2762 |
<name>$box</name>
|
2763 |
<default><![CDATA[]]></default>
|
2764 |
<type/>
|
2765 |
</argument>
|
2766 |
</method>
|
2767 |
</class>
|
2768 |
+
<class final="false" abstract="false" namespace="global" line="853" package="Media Library Assistant">
|
2769 |
<extends>\Walker_Category</extends>
|
2770 |
<name>MLA_Checklist_Walker</name>
|
2771 |
<full_name>\MLA_Checklist_Walker</full_name>
|
2772 |
+
<docblock line="843">
|
2773 |
<description><![CDATA[Class MLA (Media Library Assistant) Checklist Walker replaces term_id with slug in checklist output]]></description>
|
2774 |
<long-description><![CDATA[<p>This walker is used to build the meta boxes for flat taxonomies, e.g., Tags, Att. Tags.
|
2775 |
Class Walker_Category is defined in /wp-includes/category-template.php.
|
2776 |
Class Walker is defined in /wp-includes/class-wp-walker.php.</p>]]></long-description>
|
2777 |
+
<tag line="843" name="package" description="Media Library Assistant"/>
|
2778 |
+
<tag line="843" name="since" description="1.80"/>
|
2779 |
</docblock>
|
2780 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="867" package="Media Library Assistant">
|
2781 |
<name>start_el</name>
|
2782 |
<full_name>start_el</full_name>
|
2783 |
+
<docblock line="854">
|
2784 |
<description><![CDATA[Start the element output.]]></description>
|
2785 |
<long-description><![CDATA[]]></long-description>
|
2786 |
+
<tag line="854" name="see" description="\global\Walker::start_el()" refers="\global\Walker::start_el()"/>
|
2787 |
+
<tag line="854" name="since" description="1.80"/>
|
2788 |
+
<tag line="854" name="param" description="Passed by reference. Used to append additional content." type="string" variable="$output">
|
2789 |
<type by_reference="false">string</type>
|
2790 |
</tag>
|
2791 |
+
<tag line="854" name="param" description="Taxonomy data object." type="object" variable="$taxonomy_object">
|
2792 |
<type by_reference="false">object</type>
|
2793 |
</tag>
|
2794 |
+
<tag line="854" name="param" description="Depth of category in reference to parents. Default 0." type="int" variable="$depth">
|
2795 |
<type by_reference="false">int</type>
|
2796 |
</tag>
|
2797 |
+
<tag line="854" name="param" description="An array of arguments. @see wp_list_categories()" type="array" variable="$args">
|
2798 |
<type by_reference="false">array</type>
|
2799 |
</tag>
|
2800 |
+
<tag line="854" name="param" description="ID of the current category." type="int" variable="$id">
|
2801 |
<type by_reference="false">int</type>
|
2802 |
</tag>
|
2803 |
</docblock>
|
2804 |
+
<argument line="867">
|
2805 |
<name>$output</name>
|
2806 |
<default><![CDATA[]]></default>
|
2807 |
<type/>
|
2808 |
</argument>
|
2809 |
+
<argument line="867">
|
2810 |
<name>$taxonomy_object</name>
|
2811 |
<default><![CDATA[]]></default>
|
2812 |
<type/>
|
2813 |
</argument>
|
2814 |
+
<argument line="867">
|
2815 |
<name>$depth</name>
|
2816 |
<default><![CDATA[0]]></default>
|
2817 |
<type/>
|
2818 |
</argument>
|
2819 |
+
<argument line="867">
|
2820 |
<name>$args</name>
|
2821 |
<default><![CDATA[array()]]></default>
|
2822 |
<type/>
|
2823 |
</argument>
|
2824 |
+
<argument line="867">
|
2825 |
<name>$id</name>
|
2826 |
<default><![CDATA[0]]></default>
|
2827 |
<type/>
|
2828 |
</argument>
|
2829 |
</method>
|
2830 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="900" package="Media Library Assistant">
|
2831 |
<name>end_el</name>
|
2832 |
<full_name>end_el</full_name>
|
2833 |
+
<docblock line="888">
|
2834 |
<description><![CDATA[Ends the element output, if needed.]]></description>
|
2835 |
<long-description><![CDATA[]]></long-description>
|
2836 |
+
<tag line="888" name="see" description="\global\Walker::end_el()" refers="\global\Walker::end_el()"/>
|
2837 |
+
<tag line="888" name="since" description="1.80"/>
|
2838 |
+
<tag line="888" name="param" description="Passed by reference. Used to append additional content." type="string" variable="$output">
|
2839 |
<type by_reference="false">string</type>
|
2840 |
</tag>
|
2841 |
+
<tag line="888" name="param" description="The current term object." type="object" variable="$category">
|
2842 |
<type by_reference="false">object</type>
|
2843 |
</tag>
|
2844 |
+
<tag line="888" name="param" description="Depth of the term in reference to parents. Default 0." type="int" variable="$depth">
|
2845 |
<type by_reference="false">int</type>
|
2846 |
</tag>
|
2847 |
+
<tag line="888" name="param" description="An array of arguments. @see wp_terms_checklist()" type="array" variable="$args">
|
2848 |
<type by_reference="false">array</type>
|
2849 |
</tag>
|
2850 |
</docblock>
|
2851 |
+
<argument line="900">
|
2852 |
<name>$output</name>
|
2853 |
<default><![CDATA[]]></default>
|
2854 |
<type/>
|
2855 |
</argument>
|
2856 |
+
<argument line="900">
|
2857 |
<name>$category</name>
|
2858 |
<default><![CDATA[]]></default>
|
2859 |
<type/>
|
2860 |
</argument>
|
2861 |
+
<argument line="900">
|
2862 |
<name>$depth</name>
|
2863 |
<default><![CDATA[0]]></default>
|
2864 |
<type/>
|
2865 |
</argument>
|
2866 |
+
<argument line="900">
|
2867 |
<name>$args</name>
|
2868 |
<default><![CDATA[array()]]></default>
|
2869 |
<type/>
|
2871 |
</method>
|
2872 |
</class>
|
2873 |
</file>
|
2874 |
+
<file path="includes\class-mla-list-table.php" hash="b910c79352502810c3494dc7928313cc" package="Media Library Assistant">
|
2875 |
<docblock line="2">
|
2876 |
<description><![CDATA[Media Library Assistant extended List Table class]]></description>
|
2877 |
<long-description><![CDATA[]]></long-description>
|
3092 |
</tag>
|
3093 |
</docblock>
|
3094 |
</method>
|
3095 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="310" package="Media Library Assistant">
|
3096 |
<name>mla_views_media_page_mla_menu_filter</name>
|
3097 |
<full_name>mla_views_media_page_mla_menu_filter</full_name>
|
3098 |
<docblock line="297">
|
3114 |
<type/>
|
3115 |
</argument>
|
3116 |
</method>
|
3117 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="330" package="Media Library Assistant">
|
3118 |
+
<name>mla_wpml_media_view_upload_count_filter</name>
|
3119 |
+
<full_name>mla_wpml_media_view_upload_count_filter</full_name>
|
3120 |
+
<docblock line="315">
|
3121 |
+
<description><![CDATA[Handler for filter "wpml-media_view-upload-count" in /plugins/wpml-media/inc/wpml-media.class.php]]></description>
|
3122 |
+
<long-description><![CDATA[<p>Computes the number of attachments that satisfy a meta_query specification.
|
3123 |
+
The count is automatically made language-specific by WPML filters.</p>]]></long-description>
|
3124 |
+
<tag line="315" name="since" description="1.90"/>
|
3125 |
+
<tag line="315" name="param" description="default return value if not replacing count" type="NULL" variable="$count">
|
3126 |
+
<type by_reference="false">NULL</type>
|
3127 |
+
</tag>
|
3128 |
+
<tag line="315" name="param" description="key/slug value for the selected view" type="string" variable="$key">
|
3129 |
+
<type by_reference="false">string</type>
|
3130 |
+
</tag>
|
3131 |
+
<tag line="315" name="param" description="HTML <a></a> tag for the link to the selected view" type="string" variable="$view">
|
3132 |
+
<type by_reference="false">string</type>
|
3133 |
+
</tag>
|
3134 |
+
<tag line="315" name="param" description="language code, e.g., 'en', 'es'" type="string" variable="$lang">
|
3135 |
+
<type by_reference="false">string</type>
|
3136 |
+
</tag>
|
3137 |
+
<tag line="315" name="return" description="NULL to allow SQL query or replacement count value" type="mixed">
|
3138 |
+
<type by_reference="false">mixed</type>
|
3139 |
+
</tag>
|
3140 |
+
</docblock>
|
3141 |
+
<argument line="330">
|
3142 |
+
<name>$count</name>
|
3143 |
+
<default><![CDATA[]]></default>
|
3144 |
+
<type/>
|
3145 |
+
</argument>
|
3146 |
+
<argument line="330">
|
3147 |
+
<name>$key</name>
|
3148 |
+
<default><![CDATA[]]></default>
|
3149 |
+
<type/>
|
3150 |
+
</argument>
|
3151 |
+
<argument line="330">
|
3152 |
+
<name>$view</name>
|
3153 |
+
<default><![CDATA[]]></default>
|
3154 |
+
<type/>
|
3155 |
+
</argument>
|
3156 |
+
<argument line="330">
|
3157 |
+
<name>$lang</name>
|
3158 |
+
<default><![CDATA[]]></default>
|
3159 |
+
<type/>
|
3160 |
+
</argument>
|
3161 |
+
</method>
|
3162 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="362" package="Media Library Assistant">
|
3163 |
+
<name>mla_wpml_media_view_upload_page_count_filter</name>
|
3164 |
+
<full_name>mla_wpml_media_view_upload_page_count_filter</full_name>
|
3165 |
+
<docblock line="349">
|
3166 |
+
<description><![CDATA[Handler for filter "wpml-media_view-upload-page-count" in /plugins/wpml-media/inc/wpml-media.class.php]]></description>
|
3167 |
+
<long-description><![CDATA[<p>Computes the number of language-specific attachments that satisfy a meta_query specification.
|
3168 |
+
The count is made language-specific by WPML filters when the current_language is set.</p>]]></long-description>
|
3169 |
+
<tag line="349" name="since" description="1.90"/>
|
3170 |
+
<tag line="349" name="param" description="default return value if not replacing count" type="NULL" variable="$count">
|
3171 |
+
<type by_reference="false">NULL</type>
|
3172 |
+
</tag>
|
3173 |
+
<tag line="349" name="param" description="language code, e.g., 'en', 'es'" type="string" variable="$lang">
|
3174 |
+
<type by_reference="false">string</type>
|
3175 |
+
</tag>
|
3176 |
+
<tag line="349" name="return" description="NULL to allow SQL query or replacement count value" type="mixed">
|
3177 |
+
<type by_reference="false">mixed</type>
|
3178 |
+
</tag>
|
3179 |
+
</docblock>
|
3180 |
+
<argument line="362">
|
3181 |
+
<name>$count</name>
|
3182 |
+
<default><![CDATA[]]></default>
|
3183 |
+
<type/>
|
3184 |
+
</argument>
|
3185 |
+
<argument line="362">
|
3186 |
+
<name>$lang</name>
|
3187 |
+
<default><![CDATA[]]></default>
|
3188 |
+
<type/>
|
3189 |
+
</argument>
|
3190 |
+
</method>
|
3191 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="391" package="Media Library Assistant">
|
3192 |
<name>mla_localize_default_columns_array</name>
|
3193 |
<full_name>mla_localize_default_columns_array</full_name>
|
3194 |
+
<docblock line="381">
|
3195 |
<description><![CDATA[Builds the $default_columns array with translated source texts.]]></description>
|
3196 |
<long-description><![CDATA[<p>Called from MLA:mla_plugins_loaded_action because the $default_columns information might be
|
3197 |
accessed from "front end" posts/pages.</p>]]></long-description>
|
3198 |
+
<tag line="381" name="since" description="1.71"/>
|
3199 |
+
<tag line="381" name="return" description="" type="void">
|
3200 |
<type by_reference="false">void</type>
|
3201 |
</tag>
|
3202 |
</docblock>
|
3203 |
</method>
|
3204 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="432" package="Media Library Assistant">
|
3205 |
<name>mla_admin_init_action</name>
|
3206 |
<full_name>mla_admin_init_action</full_name>
|
3207 |
+
<docblock line="422">
|
3208 |
<description><![CDATA[Adds support for taxonomy and custom field columns]]></description>
|
3209 |
<long-description><![CDATA[<p>Called in the admin_init action because the list_table object isn't
|
3210 |
created in time to affect the "screen options" setup.</p>]]></long-description>
|
3211 |
+
<tag line="422" name="since" description="0.30"/>
|
3212 |
+
<tag line="422" name="return" description="" type="void">
|
3213 |
<type by_reference="false">void</type>
|
3214 |
</tag>
|
3215 |
</docblock>
|
3216 |
</method>
|
3217 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="457" package="Media Library Assistant">
|
3218 |
<name>__construct</name>
|
3219 |
<full_name>__construct</full_name>
|
3220 |
+
<docblock line="449">
|
3221 |
<description><![CDATA[Initializes some properties from $_REQUEST variables, then
|
3222 |
calls the parent constructor to set some default configs.]]></description>
|
3223 |
<long-description><![CDATA[]]></long-description>
|
3224 |
+
<tag line="449" name="since" description="0.1"/>
|
3225 |
+
<tag line="449" name="return" description="" type="void">
|
3226 |
<type by_reference="false">void</type>
|
3227 |
</tag>
|
3228 |
</docblock>
|
3229 |
</method>
|
3230 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="501" package="Media Library Assistant">
|
3231 |
<name>column_default</name>
|
3232 |
<full_name>column_default</full_name>
|
3233 |
+
<docblock line="488">
|
3234 |
<description><![CDATA[Supply a column value if no column-specific function has been defined]]></description>
|
3235 |
<long-description><![CDATA[<p>Called when the parent class can't find a method specifically built for a given column.
|
3236 |
The taxonomy and custom field columns are handled here. All other columns should have
|
3237 |
a specific method, so this function returns a troubleshooting message.</p>]]></long-description>
|
3238 |
+
<tag line="488" name="since" description="0.1"/>
|
3239 |
+
<tag line="488" name="param" description="A singular item (one full row's worth of data)" type="array" variable="$item">
|
3240 |
<type by_reference="false">array</type>
|
3241 |
</tag>
|
3242 |
+
<tag line="488" name="param" description="The name/slug of the column to be processed" type="array" variable="$column_name">
|
3243 |
<type by_reference="false">array</type>
|
3244 |
</tag>
|
3245 |
+
<tag line="488" name="return" description="Text or HTML to be placed inside the column" type="string">
|
3246 |
<type by_reference="false">string</type>
|
3247 |
</tag>
|
3248 |
</docblock>
|
3249 |
+
<argument line="501">
|
3250 |
<name>$item</name>
|
3251 |
<default><![CDATA[]]></default>
|
3252 |
<type/>
|
3253 |
</argument>
|
3254 |
+
<argument line="501">
|
3255 |
<name>$column_name</name>
|
3256 |
<default><![CDATA[]]></default>
|
3257 |
<type/>
|
3258 |
</argument>
|
3259 |
</method>
|
3260 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="577" package="Media Library Assistant">
|
3261 |
<name>column_cb</name>
|
3262 |
<full_name>column_cb</full_name>
|
3263 |
+
<docblock line="568">
|
3264 |
<description><![CDATA[Displays checkboxes for using bulk actions.]]></description>
|
3265 |
<long-description><![CDATA[<p>The 'cb' column
|
3266 |
is given special treatment when columns are processed.</p>]]></long-description>
|
3267 |
+
<tag line="568" name="since" description="0.1"/>
|
3268 |
+
<tag line="568" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
3269 |
<type by_reference="false">array</type>
|
3270 |
</tag>
|
3271 |
+
<tag line="568" name="return" description="HTML markup to be placed inside the column" type="string">
|
3272 |
<type by_reference="false">string</type>
|
3273 |
</tag>
|
3274 |
</docblock>
|
3275 |
+
<argument line="577">
|
3276 |
<name>$item</name>
|
3277 |
<default><![CDATA[]]></default>
|
3278 |
<type/>
|
3279 |
</argument>
|
3280 |
</method>
|
3281 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="592" package="Media Library Assistant">
|
3282 |
<name>column_icon</name>
|
3283 |
<full_name>column_icon</full_name>
|
3284 |
+
<docblock line="584">
|
3285 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3286 |
<long-description><![CDATA[]]></long-description>
|
3287 |
+
<tag line="584" name="since" description="0.1"/>
|
3288 |
+
<tag line="584" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
3289 |
<type by_reference="false">array</type>
|
3290 |
</tag>
|
3291 |
+
<tag line="584" name="return" description="HTML markup to be placed inside the column" type="string">
|
3292 |
<type by_reference="false">string</type>
|
3293 |
</tag>
|
3294 |
</docblock>
|
3295 |
+
<argument line="592">
|
3296 |
<name>$item</name>
|
3297 |
<default><![CDATA[]]></default>
|
3298 |
<type/>
|
3299 |
</argument>
|
3300 |
</method>
|
3301 |
+
<method final="false" abstract="false" static="false" visibility="private" namespace="global" line="624" package="Media Library Assistant">
|
3302 |
<name>_build_rollover_actions</name>
|
3303 |
<full_name>_build_rollover_actions</full_name>
|
3304 |
+
<docblock line="613">
|
3305 |
<description><![CDATA[Add rollover actions to exactly one of the following displayed columns:
|
3306 |
'ID_parent', 'title_name', 'post_title', 'post_name']]></description>
|
3307 |
<long-description><![CDATA[]]></long-description>
|
3308 |
+
<tag line="613" name="since" description="0.1"/>
|
3309 |
+
<tag line="613" name="param" description="A singular attachment (post) object" type="object" variable="$item">
|
3310 |
<type by_reference="false">object</type>
|
3311 |
</tag>
|
3312 |
+
<tag line="613" name="param" description="Current column name" type="string" variable="$column">
|
3313 |
<type by_reference="false">string</type>
|
3314 |
</tag>
|
3315 |
+
<tag line="613" name="return" description="Names and URLs of row-level actions" type="array">
|
3316 |
<type by_reference="false">array</type>
|
3317 |
</tag>
|
3318 |
</docblock>
|
3319 |
+
<argument line="624">
|
3320 |
<name>$item</name>
|
3321 |
<default><![CDATA[]]></default>
|
3322 |
<type/>
|
3323 |
</argument>
|
3324 |
+
<argument line="624">
|
3325 |
<name>$column</name>
|
3326 |
<default><![CDATA[]]></default>
|
3327 |
<type/>
|
3328 |
</argument>
|
3329 |
</method>
|
3330 |
+
<method final="false" abstract="false" static="false" visibility="private" namespace="global" line="682" package="Media Library Assistant">
|
3331 |
<name>_build_inline_data</name>
|
3332 |
<full_name>_build_inline_data</full_name>
|
3333 |
+
<docblock line="673">
|
3334 |
<description><![CDATA[Add hidden fields with the data for use in the inline editor]]></description>
|
3335 |
<long-description><![CDATA[]]></long-description>
|
3336 |
+
<tag line="673" name="since" description="0.20"/>
|
3337 |
+
<tag line="673" name="param" description="A singular attachment (post) object" type="object" variable="$item">
|
3338 |
<type by_reference="false">object</type>
|
3339 |
</tag>
|
3340 |
+
<tag line="673" name="return" description="HTML <div> with row data" type="string">
|
3341 |
<type by_reference="false">string</type>
|
3342 |
</tag>
|
3343 |
</docblock>
|
3344 |
+
<argument line="682">
|
3345 |
<name>$item</name>
|
3346 |
<default><![CDATA[]]></default>
|
3347 |
<type/>
|
3348 |
</argument>
|
3349 |
</method>
|
3350 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="765" package="Media Library Assistant">
|
3351 |
<name>column_ID_parent</name>
|
3352 |
<full_name>column_ID_parent</full_name>
|
3353 |
+
<docblock line="757">
|
3354 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3355 |
<long-description><![CDATA[]]></long-description>
|
3356 |
+
<tag line="757" name="since" description="0.1"/>
|
3357 |
+
<tag line="757" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
3358 |
<type by_reference="false">array</type>
|
3359 |
</tag>
|
3360 |
+
<tag line="757" name="return" description="HTML markup to be placed inside the column" type="string">
|
3361 |
<type by_reference="false">string</type>
|
3362 |
</tag>
|
3363 |
</docblock>
|
3364 |
+
<argument line="765">
|
3365 |
<name>$item</name>
|
3366 |
<default><![CDATA[]]></default>
|
3367 |
<type/>
|
3368 |
</argument>
|
3369 |
</method>
|
3370 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="798" package="Media Library Assistant">
|
3371 |
<name>column_title_name</name>
|
3372 |
<full_name>column_title_name</full_name>
|
3373 |
+
<docblock line="790">
|
3374 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3375 |
<long-description><![CDATA[]]></long-description>
|
3376 |
+
<tag line="790" name="since" description="0.1"/>
|
3377 |
+
<tag line="790" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
3378 |
<type by_reference="false">array</type>
|
3379 |
</tag>
|
3380 |
+
<tag line="790" name="return" description="HTML markup to be placed inside the column" type="string">
|
3381 |
<type by_reference="false">string</type>
|
3382 |
</tag>
|
3383 |
</docblock>
|
3384 |
+
<argument line="798">
|
3385 |
<name>$item</name>
|
3386 |
<default><![CDATA[]]></default>
|
3387 |
<type/>
|
3388 |
</argument>
|
3389 |
</method>
|
3390 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="822" package="Media Library Assistant">
|
3391 |
<name>column_post_title</name>
|
3392 |
<full_name>column_post_title</full_name>
|
3393 |
+
<docblock line="814">
|
3394 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3395 |
<long-description><![CDATA[]]></long-description>
|
3396 |
+
<tag line="814" name="since" description="0.1"/>
|
3397 |
+
<tag line="814" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
3398 |
<type by_reference="false">array</type>
|
3399 |
</tag>
|
3400 |
+
<tag line="814" name="return" description="HTML markup to be placed inside the column" type="string">
|
3401 |
<type by_reference="false">string</type>
|
3402 |
</tag>
|
3403 |
</docblock>
|
3404 |
+
<argument line="822">
|
3405 |
<name>$item</name>
|
3406 |
<default><![CDATA[]]></default>
|
3407 |
<type/>
|
3408 |
</argument>
|
3409 |
</method>
|
3410 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="840" package="Media Library Assistant">
|
3411 |
<name>column_post_name</name>
|
3412 |
<full_name>column_post_name</full_name>
|
3413 |
+
<docblock line="832">
|
3414 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3415 |
<long-description><![CDATA[]]></long-description>
|
3416 |
+
<tag line="832" name="since" description="0.1"/>
|
3417 |
+
<tag line="832" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
3418 |
<type by_reference="false">array</type>
|
3419 |
</tag>
|
3420 |
+
<tag line="832" name="return" description="HTML markup to be placed inside the column" type="string">
|
3421 |
<type by_reference="false">string</type>
|
3422 |
</tag>
|
3423 |
</docblock>
|
3424 |
+
<argument line="840">
|
3425 |
<name>$item</name>
|
3426 |
<default><![CDATA[]]></default>
|
3427 |
<type/>
|
3428 |
</argument>
|
3429 |
</method>
|
3430 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="858" package="Media Library Assistant">
|
3431 |
<name>column_parent</name>
|
3432 |
<full_name>column_parent</full_name>
|
3433 |
+
<docblock line="850">
|
3434 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3435 |
<long-description><![CDATA[]]></long-description>
|
3436 |
+
<tag line="850" name="since" description="0.1"/>
|
3437 |
+
<tag line="850" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
3438 |
<type by_reference="false">array</type>
|
3439 |
</tag>
|
3440 |
+
<tag line="850" name="return" description="HTML markup to be placed inside the column" type="string">
|
3441 |
<type by_reference="false">string</type>
|
3442 |
</tag>
|
3443 |
</docblock>
|
3444 |
+
<argument line="858">
|
3445 |
<name>$item</name>
|
3446 |
<default><![CDATA[]]></default>
|
3447 |
<type/>
|
3448 |
</argument>
|
3449 |
</method>
|
3450 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="884" package="Media Library Assistant">
|
3451 |
<name>column_menu_order</name>
|
3452 |
<full_name>column_menu_order</full_name>
|
3453 |
+
<docblock line="876">
|
3454 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3455 |
<long-description><![CDATA[]]></long-description>
|
3456 |
+
<tag line="876" name="since" description="0.60"/>
|
3457 |
+
<tag line="876" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
3458 |
<type by_reference="false">array</type>
|
3459 |
</tag>
|
3460 |
+
<tag line="876" name="return" description="HTML markup to be placed inside the column" type="string">
|
3461 |
<type by_reference="false">string</type>
|
3462 |
</tag>
|
3463 |
</docblock>
|
3464 |
+
<argument line="884">
|
3465 |
<name>$item</name>
|
3466 |
<default><![CDATA[]]></default>
|
3467 |
<type/>
|
3468 |
</argument>
|
3469 |
</method>
|
3470 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="896" package="Media Library Assistant">
|
3471 |
<name>column_featured</name>
|
3472 |
<full_name>column_featured</full_name>
|
3473 |
+
<docblock line="888">
|
3474 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3475 |
<long-description><![CDATA[]]></long-description>
|
3476 |
+
<tag line="888" name="since" description="0.1"/>
|
3477 |
+
<tag line="888" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
3478 |
<type by_reference="false">array</type>
|
3479 |
</tag>
|
3480 |
+
<tag line="888" name="return" description="HTML markup to be placed inside the column" type="string">
|
3481 |
<type by_reference="false">string</type>
|
3482 |
</tag>
|
3483 |
</docblock>
|
3484 |
+
<argument line="896">
|
3485 |
<name>$item</name>
|
3486 |
<default><![CDATA[]]></default>
|
3487 |
<type/>
|
3488 |
</argument>
|
3489 |
</method>
|
3490 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="930" package="Media Library Assistant">
|
3491 |
<name>column_inserted</name>
|
3492 |
<full_name>column_inserted</full_name>
|
3493 |
+
<docblock line="922">
|
3494 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3495 |
<long-description><![CDATA[]]></long-description>
|
3496 |
+
<tag line="922" name="since" description="0.1"/>
|
3497 |
+
<tag line="922" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
3498 |
<type by_reference="false">array</type>
|
3499 |
</tag>
|
3500 |
+
<tag line="922" name="return" description="HTML markup to be placed inside the column" type="string">
|
3501 |
<type by_reference="false">string</type>
|
3502 |
</tag>
|
3503 |
</docblock>
|
3504 |
+
<argument line="930">
|
3505 |
<name>$item</name>
|
3506 |
<default><![CDATA[]]></default>
|
3507 |
<type/>
|
3508 |
</argument>
|
3509 |
</method>
|
3510 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="968" package="Media Library Assistant">
|
3511 |
<name>column_galleries</name>
|
3512 |
<full_name>column_galleries</full_name>
|
3513 |
+
<docblock line="960">
|
3514 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3515 |
<long-description><![CDATA[]]></long-description>
|
3516 |
+
<tag line="960" name="since" description="0.70"/>
|
3517 |
+
<tag line="960" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
3518 |
<type by_reference="false">array</type>
|
3519 |
</tag>
|
3520 |
+
<tag line="960" name="return" description="HTML markup to be placed inside the column" type="string">
|
3521 |
<type by_reference="false">string</type>
|
3522 |
</tag>
|
3523 |
</docblock>
|
3524 |
+
<argument line="968">
|
3525 |
<name>$item</name>
|
3526 |
<default><![CDATA[]]></default>
|
3527 |
<type/>
|
3528 |
</argument>
|
3529 |
</method>
|
3530 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1002" package="Media Library Assistant">
|
3531 |
<name>column_mla_galleries</name>
|
3532 |
<full_name>column_mla_galleries</full_name>
|
3533 |
+
<docblock line="994">
|
3534 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3535 |
<long-description><![CDATA[]]></long-description>
|
3536 |
+
<tag line="994" name="since" description="0.70"/>
|
3537 |
+
<tag line="994" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
3538 |
<type by_reference="false">array</type>
|
3539 |
</tag>
|
3540 |
+
<tag line="994" name="return" description="HTML markup to be placed inside the column" type="string">
|
3541 |
<type by_reference="false">string</type>
|
3542 |
</tag>
|
3543 |
</docblock>
|
3544 |
+
<argument line="1002">
|
3545 |
<name>$item</name>
|
3546 |
<default><![CDATA[]]></default>
|
3547 |
<type/>
|
3548 |
</argument>
|
3549 |
</method>
|
3550 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1036" package="Media Library Assistant">
|
3551 |
<name>column_alt_text</name>
|
3552 |
<full_name>column_alt_text</full_name>
|
3553 |
+
<docblock line="1028">
|
3554 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3555 |
<long-description><![CDATA[]]></long-description>
|
3556 |
+
<tag line="1028" name="since" description="0.1"/>
|
3557 |
+
<tag line="1028" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
3558 |
<type by_reference="false">array</type>
|
3559 |
</tag>
|
3560 |
+
<tag line="1028" name="return" description="HTML markup to be placed inside the column" type="string">
|
3561 |
<type by_reference="false">string</type>
|
3562 |
</tag>
|
3563 |
</docblock>
|
3564 |
+
<argument line="1036">
|
3565 |
<name>$item</name>
|
3566 |
<default><![CDATA[]]></default>
|
3567 |
<type/>
|
3568 |
</argument>
|
3569 |
</method>
|
3570 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1057" package="Media Library Assistant">
|
3571 |
<name>column_caption</name>
|
3572 |
<full_name>column_caption</full_name>
|
3573 |
+
<docblock line="1049">
|
3574 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3575 |
<long-description><![CDATA[]]></long-description>
|
3576 |
+
<tag line="1049" name="since" description="0.1"/>
|
3577 |
+
<tag line="1049" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
3578 |
<type by_reference="false">array</type>
|
3579 |
</tag>
|
3580 |
+
<tag line="1049" name="return" description="HTML markup to be placed inside the column" type="string">
|
3581 |
<type by_reference="false">string</type>
|
3582 |
</tag>
|
3583 |
</docblock>
|
3584 |
+
<argument line="1057">
|
3585 |
<name>$item</name>
|
3586 |
<default><![CDATA[]]></default>
|
3587 |
<type/>
|
3588 |
</argument>
|
3589 |
</method>
|
3590 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1069" package="Media Library Assistant">
|
3591 |
<name>column_description</name>
|
3592 |
<full_name>column_description</full_name>
|
3593 |
+
<docblock line="1061">
|
3594 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3595 |
<long-description><![CDATA[]]></long-description>
|
3596 |
+
<tag line="1061" name="since" description="0.1"/>
|
3597 |
+
<tag line="1061" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
3598 |
<type by_reference="false">array</type>
|
3599 |
</tag>
|
3600 |
+
<tag line="1061" name="return" description="HTML markup to be placed inside the column" type="string">
|
3601 |
<type by_reference="false">string</type>
|
3602 |
</tag>
|
3603 |
</docblock>
|
3604 |
+
<argument line="1069">
|
3605 |
<name>$item</name>
|
3606 |
<default><![CDATA[]]></default>
|
3607 |
<type/>
|
3608 |
</argument>
|
3609 |
</method>
|
3610 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1081" package="Media Library Assistant">
|
3611 |
<name>column_post_mime_type</name>
|
3612 |
<full_name>column_post_mime_type</full_name>
|
3613 |
+
<docblock line="1073">
|
3614 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3615 |
<long-description><![CDATA[]]></long-description>
|
3616 |
+
<tag line="1073" name="since" description="0.30"/>
|
3617 |
+
<tag line="1073" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
3618 |
<type by_reference="false">array</type>
|
3619 |
</tag>
|
3620 |
+
<tag line="1073" name="return" description="HTML markup to be placed inside the column" type="string">
|
3621 |
<type by_reference="false">string</type>
|
3622 |
</tag>
|
3623 |
</docblock>
|
3624 |
+
<argument line="1081">
|
3625 |
<name>$item</name>
|
3626 |
<default><![CDATA[]]></default>
|
3627 |
<type/>
|
3628 |
</argument>
|
3629 |
</method>
|
3630 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1097" package="Media Library Assistant">
|
3631 |
<name>column_file_url</name>
|
3632 |
<full_name>column_file_url</full_name>
|
3633 |
+
<docblock line="1089">
|
3634 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3635 |
<long-description><![CDATA[]]></long-description>
|
3636 |
+
<tag line="1089" name="since" description="0.1"/>
|
3637 |
+
<tag line="1089" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
3638 |
<type by_reference="false">array</type>
|
3639 |
</tag>
|
3640 |
+
<tag line="1089" name="return" description="HTML markup to be placed inside the column" type="string">
|
3641 |
<type by_reference="false">string</type>
|
3642 |
</tag>
|
3643 |
</docblock>
|
3644 |
+
<argument line="1097">
|
3645 |
<name>$item</name>
|
3646 |
<default><![CDATA[]]></default>
|
3647 |
<type/>
|
3648 |
</argument>
|
3649 |
</method>
|
3650 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1111" package="Media Library Assistant">
|
3651 |
<name>column_base_file</name>
|
3652 |
<full_name>column_base_file</full_name>
|
3653 |
+
<docblock line="1103">
|
3654 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3655 |
<long-description><![CDATA[]]></long-description>
|
3656 |
+
<tag line="1103" name="since" description="0.1"/>
|
3657 |
+
<tag line="1103" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
3658 |
<type by_reference="false">array</type>
|
3659 |
</tag>
|
3660 |
+
<tag line="1103" name="return" description="HTML markup to be placed inside the column" type="string">
|
3661 |
<type by_reference="false">string</type>
|
3662 |
</tag>
|
3663 |
</docblock>
|
3664 |
+
<argument line="1111">
|
3665 |
<name>$item</name>
|
3666 |
<default><![CDATA[]]></default>
|
3667 |
<type/>
|
3668 |
</argument>
|
3669 |
</method>
|
3670 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1123" package="Media Library Assistant">
|
3671 |
<name>column_date</name>
|
3672 |
<full_name>column_date</full_name>
|
3673 |
+
<docblock line="1115">
|
3674 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3675 |
<long-description><![CDATA[]]></long-description>
|
3676 |
+
<tag line="1115" name="since" description="0.1"/>
|
3677 |
+
<tag line="1115" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
3678 |
<type by_reference="false">array</type>
|
3679 |
</tag>
|
3680 |
+
<tag line="1115" name="return" description="HTML markup to be placed inside the column" type="string">
|
3681 |
<type by_reference="false">string</type>
|
3682 |
</tag>
|
3683 |
</docblock>
|
3684 |
+
<argument line="1123">
|
3685 |
<name>$item</name>
|
3686 |
<default><![CDATA[]]></default>
|
3687 |
<type/>
|
3688 |
</argument>
|
3689 |
</method>
|
3690 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1155" package="Media Library Assistant">
|
3691 |
<name>column_modified</name>
|
3692 |
<full_name>column_modified</full_name>
|
3693 |
+
<docblock line="1147">
|
3694 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3695 |
<long-description><![CDATA[]]></long-description>
|
3696 |
+
<tag line="1147" name="since" description="0.30"/>
|
3697 |
+
<tag line="1147" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
3698 |
<type by_reference="false">array</type>
|
3699 |
</tag>
|
3700 |
+
<tag line="1147" name="return" description="HTML markup to be placed inside the column" type="string">
|
3701 |
<type by_reference="false">string</type>
|
3702 |
</tag>
|
3703 |
</docblock>
|
3704 |
+
<argument line="1155">
|
3705 |
<name>$item</name>
|
3706 |
<default><![CDATA[]]></default>
|
3707 |
<type/>
|
3708 |
</argument>
|
3709 |
</method>
|
3710 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1184" package="Media Library Assistant">
|
3711 |
<name>column_author</name>
|
3712 |
<full_name>column_author</full_name>
|
3713 |
+
<docblock line="1176">
|
3714 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3715 |
<long-description><![CDATA[]]></long-description>
|
3716 |
+
<tag line="1176" name="since" description="0.30"/>
|
3717 |
+
<tag line="1176" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
3718 |
<type by_reference="false">array</type>
|
3719 |
</tag>
|
3720 |
+
<tag line="1176" name="return" description="HTML markup to be placed inside the column" type="string">
|
3721 |
<type by_reference="false">string</type>
|
3722 |
</tag>
|
3723 |
</docblock>
|
3724 |
+
<argument line="1184">
|
3725 |
<name>$item</name>
|
3726 |
<default><![CDATA[]]></default>
|
3727 |
<type/>
|
3728 |
</argument>
|
3729 |
</method>
|
3730 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1206" package="Media Library Assistant">
|
3731 |
<name>column_attached_to</name>
|
3732 |
<full_name>column_attached_to</full_name>
|
3733 |
+
<docblock line="1198">
|
3734 |
<description><![CDATA[Supply the content for a custom column]]></description>
|
3735 |
<long-description><![CDATA[]]></long-description>
|
3736 |
+
<tag line="1198" name="since" description="0.1"/>
|
3737 |
+
<tag line="1198" name="param" description="A singular attachment (post) object" type="array" variable="$item">
|
3738 |
<type by_reference="false">array</type>
|
3739 |
</tag>
|
3740 |
+
<tag line="1198" name="return" description="HTML markup to be placed inside the column" type="string">
|
3741 |
<type by_reference="false">string</type>
|
3742 |
</tag>
|
3743 |
</docblock>
|
3744 |
+
<argument line="1206">
|
3745 |
<name>$item</name>
|
3746 |
<default><![CDATA[]]></default>
|
3747 |
<type/>
|
3748 |
</argument>
|
3749 |
</method>
|
3750 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1244" package="Media Library Assistant">
|
3751 |
<name>mla_submenu_arguments</name>
|
3752 |
<full_name>mla_submenu_arguments</full_name>
|
3753 |
+
<docblock line="1235">
|
3754 |
<description><![CDATA[Process $_REQUEST, building $submenu_arguments]]></description>
|
3755 |
<long-description><![CDATA[]]></long-description>
|
3756 |
+
<tag line="1235" name="since" description="1.42"/>
|
3757 |
+
<tag line="1235" name="param" description="Optional: Include the "click filter" values in the results" type="boolean" variable="$include_filters">
|
3758 |
<type by_reference="false">boolean</type>
|
3759 |
</tag>
|
3760 |
+
<tag line="1235" name="return" description="non-empty view, search, filter and sort arguments" type="array">
|
3761 |
<type by_reference="false">array</type>
|
3762 |
</tag>
|
3763 |
</docblock>
|
3764 |
+
<argument line="1244">
|
3765 |
<name>$include_filters</name>
|
3766 |
<default><![CDATA[true]]></default>
|
3767 |
<type/>
|
3768 |
</argument>
|
3769 |
</method>
|
3770 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1354" package="Media Library Assistant">
|
3771 |
<name>pagination</name>
|
3772 |
<full_name>pagination</full_name>
|
3773 |
+
<docblock line="1346">
|
3774 |
<description><![CDATA[Display the pagination, adding view, search and filter arguments]]></description>
|
3775 |
<long-description><![CDATA[]]></long-description>
|
3776 |
+
<tag line="1346" name="since" description="1.42"/>
|
3777 |
+
<tag line="1346" name="param" description="'top' | 'bottom'" type="string" variable="$which">
|
3778 |
<type by_reference="false">string</type>
|
3779 |
</tag>
|
3780 |
+
<tag line="1346" name="return" description="" type="void">
|
3781 |
<type by_reference="false">void</type>
|
3782 |
</tag>
|
3783 |
</docblock>
|
3784 |
+
<argument line="1354">
|
3785 |
<name>$which</name>
|
3786 |
<default><![CDATA[]]></default>
|
3787 |
<type/>
|
3788 |
</argument>
|
3789 |
</method>
|
3790 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1368" package="Media Library Assistant">
|
3791 |
<name>get_columns</name>
|
3792 |
<full_name>get_columns</full_name>
|
3793 |
+
<docblock line="1361">
|
3794 |
<description><![CDATA[This method dictates the table's columns and titles]]></description>
|
3795 |
<long-description><![CDATA[]]></long-description>
|
3796 |
+
<tag line="1361" name="since" description="0.1"/>
|
3797 |
+
<tag line="1361" name="return" description="Column information: 'slugs'=>'Visible Titles'" type="array">
|
3798 |
<type by_reference="false">array</type>
|
3799 |
</tag>
|
3800 |
</docblock>
|
3801 |
</method>
|
3802 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1380" package="Media Library Assistant">
|
3803 |
<name>get_hidden_columns</name>
|
3804 |
<full_name>get_hidden_columns</full_name>
|
3805 |
+
<docblock line="1372">
|
3806 |
<description><![CDATA[Returns the list of currently hidden columns from a user option or
|
3807 |
from default values if the option is not set]]></description>
|
3808 |
<long-description><![CDATA[]]></long-description>
|
3809 |
+
<tag line="1372" name="since" description="0.1"/>
|
3810 |
+
<tag line="1372" name="return" description="Column information,e.g., array(0 => 'ID_parent, 1 => 'title_name')" type="array">
|
3811 |
<type by_reference="false">array</type>
|
3812 |
</tag>
|
3813 |
</docblock>
|
3814 |
</method>
|
3815 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1400" package="Media Library Assistant">
|
3816 |
<name>get_sortable_columns</name>
|
3817 |
<full_name>get_sortable_columns</full_name>
|
3818 |
+
<docblock line="1390">
|
3819 |
<description><![CDATA[Returns an array where the key is the column that needs to be sortable
|
3820 |
and the value is db column to sort by.]]></description>
|
3821 |
<long-description><![CDATA[<p>Also notes the current sort column,
|
3822 |
if set.</p>]]></long-description>
|
3823 |
+
<tag line="1390" name="since" description="0.1"/>
|
3824 |
+
<tag line="1390" name="return" description="Sortable column information,e.g., 'slugs'=>array('data_values',boolean)" type="array">
|
3825 |
<type by_reference="false">array</type>
|
3826 |
</tag>
|
3827 |
</docblock>
|
3828 |
</method>
|
3829 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1426" package="Media Library Assistant">
|
3830 |
<name>print_column_headers</name>
|
3831 |
<full_name>print_column_headers</full_name>
|
3832 |
+
<docblock line="1419">
|
3833 |
<description><![CDATA[Print column headers, adding view, search and filter arguments]]></description>
|
3834 |
<long-description><![CDATA[]]></long-description>
|
3835 |
+
<tag line="1419" name="since" description="1.42"/>
|
3836 |
+
<tag line="1419" name="param" description="Whether to set the id attribute or not" type="bool" variable="$with_id">
|
3837 |
<type by_reference="false">bool</type>
|
3838 |
</tag>
|
3839 |
</docblock>
|
3840 |
+
<argument line="1426">
|
3841 |
<name>$with_id</name>
|
3842 |
<default><![CDATA[true]]></default>
|
3843 |
<type/>
|
3844 |
</argument>
|
3845 |
</method>
|
3846 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1443" package="Media Library Assistant">
|
3847 |
<name>_get_view</name>
|
3848 |
<full_name>_get_view</full_name>
|
3849 |
+
<docblock line="1433">
|
3850 |
<description><![CDATA[Returns HTML markup for one view that can be used with this table]]></description>
|
3851 |
<long-description><![CDATA[]]></long-description>
|
3852 |
+
<tag line="1433" name="since" description="1.40"/>
|
3853 |
+
<tag line="1433" name="param" description="View slug, key to MLA_POST_MIME_TYPES array" type="string" variable="$view_slug">
|
3854 |
<type by_reference="false">string</type>
|
3855 |
</tag>
|
3856 |
+
<tag line="1433" name="param" description="Slug for current view" type="string" variable="$current_view">
|
3857 |
<type by_reference="false">string</type>
|
3858 |
</tag>
|
3859 |
+
<tag line="1433" name="return" description="| false HTML for link to display the view, false if count = zero" type="string">
|
3860 |
<type by_reference="false">string</type>
|
3861 |
</tag>
|
3862 |
</docblock>
|
3863 |
+
<argument line="1443">
|
3864 |
<name>$view_slug</name>
|
3865 |
<default><![CDATA[]]></default>
|
3866 |
<type/>
|
3867 |
</argument>
|
3868 |
+
<argument line="1443">
|
3869 |
<name>$current_view</name>
|
3870 |
<default><![CDATA[]]></default>
|
3871 |
<type/>
|
3872 |
</argument>
|
3873 |
</method>
|
3874 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1570" package="Media Library Assistant">
|
3875 |
<name>get_views</name>
|
3876 |
<full_name>get_views</full_name>
|
3877 |
+
<docblock line="1562">
|
3878 |
<description><![CDATA[Returns an associative array listing all the views that can be used with this table.]]></description>
|
3879 |
<long-description><![CDATA[<p>These are listed across the top of the page and managed by WordPress.</p>]]></long-description>
|
3880 |
+
<tag line="1562" name="since" description="0.1"/>
|
3881 |
+
<tag line="1562" name="return" description="View information,e.g., array ( id => link )" type="array">
|
3882 |
<type by_reference="false">array</type>
|
3883 |
</tag>
|
3884 |
</docblock>
|
3885 |
</method>
|
3886 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1626" package="Media Library Assistant">
|
3887 |
<name>get_bulk_actions</name>
|
3888 |
<full_name>get_bulk_actions</full_name>
|
3889 |
+
<docblock line="1618">
|
3890 |
<description><![CDATA[Get an associative array ( option_name => option_title ) with the list
|
3891 |
of bulk actions available on this table.]]></description>
|
3892 |
<long-description><![CDATA[]]></long-description>
|
3893 |
+
<tag line="1618" name="since" description="0.1"/>
|
3894 |
+
<tag line="1618" name="return" description="Contains all the bulk actions: 'slugs'=>'Visible Titles'" type="array">
|
3895 |
<type by_reference="false">array</type>
|
3896 |
</tag>
|
3897 |
</docblock>
|
3898 |
</method>
|
3899 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1656" package="Media Library Assistant">
|
3900 |
<name>extra_tablenav</name>
|
3901 |
<full_name>extra_tablenav</full_name>
|
3902 |
+
<docblock line="1645">
|
3903 |
<description><![CDATA[Extra controls to be displayed between bulk actions and pagination]]></description>
|
3904 |
<long-description><![CDATA[<p>Modeled after class-wp-posts-list-table.php in wp-admin/includes.</p>]]></long-description>
|
3905 |
+
<tag line="1645" name="since" description="0.1"/>
|
3906 |
+
<tag line="1645" name="param" description="'top' or 'bottom', i.e., above or below the table rows" type="string" variable="$which">
|
3907 |
<type by_reference="false">string</type>
|
3908 |
</tag>
|
3909 |
+
<tag line="1645" name="return" description="Contains all the bulk actions: 'slugs'=>'Visible Titles'" type="array">
|
3910 |
<type by_reference="false">array</type>
|
3911 |
</tag>
|
3912 |
</docblock>
|
3913 |
+
<argument line="1656">
|
3914 |
<name>$which</name>
|
3915 |
<default><![CDATA[]]></default>
|
3916 |
<type/>
|
3917 |
</argument>
|
3918 |
</method>
|
3919 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1696" package="Media Library Assistant">
|
3920 |
<name>prepare_items</name>
|
3921 |
<full_name>prepare_items</full_name>
|
3922 |
+
<docblock line="1684">
|
3923 |
<description><![CDATA[Prepares the list of items for displaying]]></description>
|
3924 |
<long-description><![CDATA[<p>This is where you prepare your data for display. This method will usually
|
3925 |
be used to query the database, sort and filter the data, and generally
|
3926 |
get it ready to be displayed. At a minimum, we should set $this->items and
|
3927 |
$this->set_pagination_args().</p>]]></long-description>
|
3928 |
+
<tag line="1684" name="since" description="0.1"/>
|
3929 |
+
<tag line="1684" name="return" description="" type="void">
|
3930 |
<type by_reference="false">void</type>
|
3931 |
</tag>
|
3932 |
</docblock>
|
3933 |
</method>
|
3934 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1743" package="Media Library Assistant">
|
3935 |
<name>single_row</name>
|
3936 |
<full_name>single_row</full_name>
|
3937 |
+
<docblock line="1734">
|
3938 |
<description><![CDATA[Generates (echoes) content for a single row of the table]]></description>
|
3939 |
<long-description><![CDATA[]]></long-description>
|
3940 |
+
<tag line="1734" name="since" description=".20"/>
|
3941 |
+
<tag line="1734" name="param" description="the current item" type="object" variable="$item">
|
3942 |
<type by_reference="false">object</type>
|
3943 |
</tag>
|
3944 |
+
<tag line="1734" name="return" description="Echoes the row HTML" type="void">
|
3945 |
<type by_reference="false">void</type>
|
3946 |
</tag>
|
3947 |
</docblock>
|
3948 |
+
<argument line="1743">
|
3949 |
<name>$item</name>
|
3950 |
<default><![CDATA[]]></default>
|
3951 |
<type/>
|
3953 |
</method>
|
3954 |
</class>
|
3955 |
</file>
|
3956 |
+
<file path="includes\class-mla-main.php" hash="99a41aed8c53792250b598cd70f3c124" package="Media Library Assistant">
|
3957 |
<docblock line="2">
|
3958 |
<description><![CDATA[Top-level functions for the Media Library Assistant]]></description>
|
3959 |
<long-description><![CDATA[]]></long-description>
|
3963 |
<include line="13" type="Require Once" package="Media Library Assistant">
|
3964 |
<name/>
|
3965 |
</include>
|
3966 |
+
<include line="1202" type="Require Once" package="Media Library Assistant">
|
3967 |
+
<name/>
|
3968 |
+
</include>
|
3969 |
<class final="false" abstract="false" namespace="global" line="23" package="Media Library Assistant">
|
3970 |
<extends/>
|
3971 |
<name>MLA</name>
|
3980 |
<constant namespace="global" line="32" package="Media Library Assistant">
|
3981 |
<name>CURRENT_MLA_VERSION</name>
|
3982 |
<full_name>CURRENT_MLA_VERSION</full_name>
|
3983 |
+
<value><![CDATA['1.90']]></value>
|
3984 |
<docblock line="25">
|
3985 |
<description><![CDATA[Current version number]]></description>
|
3986 |
<long-description><![CDATA[]]></long-description>
|
4185 |
</tag>
|
4186 |
</docblock>
|
4187 |
</constant>
|
4188 |
+
<constant namespace="global" line="176" package="Media Library Assistant">
|
4189 |
+
<name>MLA_ADMIN_terms_search</name>
|
4190 |
+
<full_name>MLA_ADMIN_terms_search</full_name>
|
4191 |
+
<value><![CDATA['terms_search']]></value>
|
4192 |
+
<docblock line="169">
|
4193 |
+
<description><![CDATA[mla_admin_action value for searching taxonomy terms]]></description>
|
4194 |
+
<long-description><![CDATA[]]></long-description>
|
4195 |
+
<tag line="169" name="since" description="1.90"/>
|
4196 |
+
<tag line="169" name="var" description="" type="string">
|
4197 |
+
<type by_reference="false">string</type>
|
4198 |
+
</tag>
|
4199 |
+
</docblock>
|
4200 |
+
</constant>
|
4201 |
+
<property final="false" static="true" visibility="private" line="185" namespace="global" package="Media Library Assistant">
|
4202 |
<name>$page_hooks</name>
|
4203 |
<default><![CDATA[array()]]></default>
|
4204 |
+
<docblock line="178">
|
4205 |
<description><![CDATA[Holds screen ids to match help text to corresponding screen]]></description>
|
4206 |
<long-description><![CDATA[]]></long-description>
|
4207 |
+
<tag line="178" name="since" description="0.1"/>
|
4208 |
+
<tag line="178" name="var" description="" type="array">
|
4209 |
<type by_reference="false">array</type>
|
4210 |
</tag>
|
4211 |
</docblock>
|
4212 |
</property>
|
4213 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="198" package="Media Library Assistant">
|
4214 |
<name>initialize</name>
|
4215 |
<full_name>initialize</full_name>
|
4216 |
+
<docblock line="187">
|
4217 |
<description><![CDATA[Initialization function, similar to __construct()]]></description>
|
4218 |
<long-description><![CDATA[<p>This function contains add_action and add_filter calls
|
4219 |
to set up the Ajax handlers, enqueue JavaScript and CSS files, and
|
4220 |
set up the Assistant submenu.</p>]]></long-description>
|
4221 |
+
<tag line="187" name="since" description="0.1"/>
|
4222 |
+
<tag line="187" name="return" description="" type="void">
|
4223 |
<type by_reference="false">void</type>
|
4224 |
</tag>
|
4225 |
</docblock>
|
4226 |
</method>
|
4227 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="217" package="Media Library Assistant">
|
4228 |
<name>mla_plugins_loaded_action</name>
|
4229 |
<full_name>mla_plugins_loaded_action</full_name>
|
4230 |
+
<docblock line="206">
|
4231 |
<description><![CDATA[Load a plugin text domain]]></description>
|
4232 |
<long-description><![CDATA[<p>The "add_action" for this function is in mla-plugin-loader.php, because the "initialize"
|
4233 |
function above doesn't run in time.
|
4234 |
Defined as public because it's an action.</p>]]></long-description>
|
4235 |
+
<tag line="206" name="since" description="1.60"/>
|
4236 |
+
<tag line="206" name="return" description="" type="void">
|
4237 |
<type by_reference="false">void</type>
|
4238 |
</tag>
|
4239 |
</docblock>
|
4240 |
</method>
|
4241 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="247" package="Media Library Assistant">
|
4242 |
<name>mla_admin_init_action</name>
|
4243 |
<full_name>mla_admin_init_action</full_name>
|
4244 |
+
<docblock line="240">
|
4245 |
<description><![CDATA[Load the plugin's Ajax handler or process Edit Media update actions]]></description>
|
4246 |
<long-description><![CDATA[]]></long-description>
|
4247 |
+
<tag line="240" name="since" description="0.20"/>
|
4248 |
+
<tag line="240" name="return" description="" type="void">
|
4249 |
<type by_reference="false">void</type>
|
4250 |
</tag>
|
4251 |
</docblock>
|
4252 |
</method>
|
4253 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="298" package="Media Library Assistant">
|
4254 |
<name>mla_admin_enqueue_scripts_action</name>
|
4255 |
<full_name>mla_admin_enqueue_scripts_action</full_name>
|
4256 |
+
<docblock line="289">
|
4257 |
<description><![CDATA[Load the plugin's Style Sheet and Javascript files]]></description>
|
4258 |
<long-description><![CDATA[]]></long-description>
|
4259 |
+
<tag line="289" name="since" description="0.1"/>
|
4260 |
+
<tag line="289" name="param" description="Name of the page being loaded" type="string" variable="$page_hook">
|
4261 |
<type by_reference="false">string</type>
|
4262 |
</tag>
|
4263 |
+
<tag line="289" name="return" description="" type="void">
|
4264 |
<type by_reference="false">void</type>
|
4265 |
</tag>
|
4266 |
</docblock>
|
4267 |
+
<argument line="298">
|
4268 |
<name>$page_hook</name>
|
4269 |
<default><![CDATA[]]></default>
|
4270 |
<type/>
|
4271 |
</argument>
|
4272 |
</method>
|
4273 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="385" package="Media Library Assistant">
|
4274 |
<name>mla_admin_menu_action</name>
|
4275 |
<full_name>mla_admin_menu_action</full_name>
|
4276 |
+
<docblock line="370">
|
4277 |
<description><![CDATA[Add the submenu pages]]></description>
|
4278 |
<long-description><![CDATA[<p>Add a submenu page in the "Media" section,
|
4279 |
add settings page in the "Settings" section.
|
4282 |
<p>For WordPress versions before 3.5,
|
4283 |
add submenu page(s) for attachment taxonomies,
|
4284 |
add filter to clean up taxonomy submenu labels.</p>]]></long-description>
|
4285 |
+
<tag line="370" name="since" description="0.1"/>
|
4286 |
+
<tag line="370" name="return" description="" type="void">
|
4287 |
<type by_reference="false">void</type>
|
4288 |
</tag>
|
4289 |
</docblock>
|
4290 |
</method>
|
4291 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="463" package="Media Library Assistant">
|
4292 |
<name>mla_load_media_action</name>
|
4293 |
<full_name>mla_load_media_action</full_name>
|
4294 |
+
<docblock line="456">
|
4295 |
<description><![CDATA[Redirect to Media/Assistant if Media/Library is hidden]]></description>
|
4296 |
<long-description><![CDATA[]]></long-description>
|
4297 |
+
<tag line="456" name="since" description="1.60"/>
|
4298 |
+
<tag line="456" name="return" description="" type="void">
|
4299 |
<type by_reference="false">void</type>
|
4300 |
</tag>
|
4301 |
</docblock>
|
4302 |
</method>
|
4303 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="491" package="Media Library Assistant">
|
4304 |
<name>mla_add_menu_options</name>
|
4305 |
<full_name>mla_add_menu_options</full_name>
|
4306 |
+
<docblock line="484">
|
4307 |
<description><![CDATA[Add the "XX Entries per page" filter to the Screen Options tab]]></description>
|
4308 |
<long-description><![CDATA[]]></long-description>
|
4309 |
+
<tag line="484" name="since" description="0.1"/>
|
4310 |
+
<tag line="484" name="return" description="" type="void">
|
4311 |
<type by_reference="false">void</type>
|
4312 |
</tag>
|
4313 |
</docblock>
|
4314 |
</method>
|
4315 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="510" package="Media Library Assistant">
|
4316 |
<name>mla_add_help_tab</name>
|
4317 |
<full_name>mla_add_help_tab</full_name>
|
4318 |
+
<docblock line="503">
|
4319 |
<description><![CDATA[Add contextual help tabs to all the MLA pages]]></description>
|
4320 |
<long-description><![CDATA[]]></long-description>
|
4321 |
+
<tag line="503" name="since" description="0.1"/>
|
4322 |
+
<tag line="503" name="return" description="" type="void">
|
4323 |
<type by_reference="false">void</type>
|
4324 |
</tag>
|
4325 |
</docblock>
|
4326 |
</method>
|
4327 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="620" package="Media Library Assistant">
|
4328 |
<name>mla_screen_options_show_screen_filter</name>
|
4329 |
<full_name>mla_screen_options_show_screen_filter</full_name>
|
4330 |
+
<docblock line="610">
|
4331 |
<description><![CDATA[Only show screen options on the table-list screen]]></description>
|
4332 |
<long-description><![CDATA[]]></long-description>
|
4333 |
+
<tag line="610" name="since" description="0.1"/>
|
4334 |
+
<tag line="610" name="param" description="True to display "Screen Options", false to suppress them" type="boolean" variable="$show_screen">
|
4335 |
<type by_reference="false">boolean</type>
|
4336 |
</tag>
|
4337 |
+
<tag line="610" name="param" description="Name of the page being loaded" type="string" variable="$this_screen">
|
4338 |
<type by_reference="false">string</type>
|
4339 |
</tag>
|
4340 |
+
<tag line="610" name="return" description="True to display "Screen Options", false to suppress them" type="boolean">
|
4341 |
<type by_reference="false">boolean</type>
|
4342 |
</tag>
|
4343 |
</docblock>
|
4344 |
+
<argument line="620">
|
4345 |
<name>$show_screen</name>
|
4346 |
<default><![CDATA[]]></default>
|
4347 |
<type/>
|
4348 |
</argument>
|
4349 |
+
<argument line="620">
|
4350 |
<name>$this_screen</name>
|
4351 |
<default><![CDATA[]]></default>
|
4352 |
<type/>
|
4353 |
</argument>
|
4354 |
</method>
|
4355 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="639" package="Media Library Assistant">
|
4356 |
<name>mla_set_screen_option_filter</name>
|
4357 |
<full_name>mla_set_screen_option_filter</full_name>
|
4358 |
+
<docblock line="628">
|
4359 |
<description><![CDATA[Save the "Entries per page" option set by this user]]></description>
|
4360 |
<long-description><![CDATA[]]></long-description>
|
4361 |
+
<tag line="628" name="since" description="0.1"/>
|
4362 |
+
<tag line="628" name="param" description="false or value returned by previous filter" type="mixed" variable="$status">
|
4363 |
<type by_reference="false">mixed</type>
|
4364 |
</tag>
|
4365 |
+
<tag line="628" name="param" description="Name of the option being changed" type="string" variable="$option">
|
4366 |
<type by_reference="false">string</type>
|
4367 |
</tag>
|
4368 |
+
<tag line="628" name="param" description="New value of the option" type="string" variable="$value">
|
4369 |
<type by_reference="false">string</type>
|
4370 |
</tag>
|
4371 |
+
<tag line="628" name="return" description="New value if this is our option, otherwise nothing" type="string|void">
|
4372 |
<type by_reference="false">string</type>
|
4373 |
<type by_reference="false">void</type>
|
4374 |
</tag>
|
4375 |
</docblock>
|
4376 |
+
<argument line="639">
|
4377 |
<name>$status</name>
|
4378 |
<default><![CDATA[]]></default>
|
4379 |
<type/>
|
4380 |
</argument>
|
4381 |
+
<argument line="639">
|
4382 |
<name>$option</name>
|
4383 |
<default><![CDATA[]]></default>
|
4384 |
<type/>
|
4385 |
</argument>
|
4386 |
+
<argument line="639">
|
4387 |
<name>$value</name>
|
4388 |
<default><![CDATA[]]></default>
|
4389 |
<type/>
|
4390 |
</argument>
|
4391 |
</method>
|
4392 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="658" package="Media Library Assistant">
|
4393 |
<name>mla_edit_tax_redirect</name>
|
4394 |
<full_name>mla_edit_tax_redirect</full_name>
|
4395 |
+
<docblock line="647">
|
4396 |
<description><![CDATA[Redirect to the Edit Tags/Categories page]]></description>
|
4397 |
<long-description><![CDATA[<p>The custom taxonomy add/edit submenu entries go to "upload.php" by default.
|
4398 |
This filter is the only way to redirect them to the correct WordPress page.
|
4399 |
The filter is not required for WordPress 3.5 and later.</p>]]></long-description>
|
4400 |
+
<tag line="647" name="since" description="0.1"/>
|
4401 |
+
<tag line="647" name="return" description="" type="void">
|
4402 |
<type by_reference="false">void</type>
|
4403 |
</tag>
|
4404 |
</docblock>
|
4405 |
</method>
|
4406 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="691" package="Media Library Assistant">
|
4407 |
<name>mla_parent_file_filter</name>
|
4408 |
<full_name>mla_parent_file_filter</full_name>
|
4409 |
+
<docblock line="675">
|
4410 |
<description><![CDATA[Cleanup menus for Edit Tags/Categories page]]></description>
|
4411 |
<long-description><![CDATA[<p>For WordPress before 3.5, the submenu entries for custom taxonomies
|
4412 |
under the "Media" menu are not set up correctly by WordPress, so this
|
4414 |
page for editing/adding taxonomy terms.
|
4415 |
For WordPress 3.5 and later, the function fixes the submenu bolding when
|
4416 |
going to the Edit Media screen.</p>]]></long-description>
|
4417 |
+
<tag line="675" name="since" description="0.1"/>
|
4418 |
+
<tag line="675" name="param" description="The top-level menu page" type="array" variable="$parent_file">
|
4419 |
<type by_reference="false">array</type>
|
4420 |
</tag>
|
4421 |
+
<tag line="675" name="return" description="The updated top-level menu page" type="string">
|
4422 |
<type by_reference="false">string</type>
|
4423 |
</tag>
|
4424 |
</docblock>
|
4425 |
+
<argument line="691">
|
4426 |
<name>$parent_file</name>
|
4427 |
<default><![CDATA[]]></default>
|
4428 |
<type/>
|
4429 |
</argument>
|
4430 |
</method>
|
4431 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="754" package="Media Library Assistant">
|
4432 |
<name>_process_bulk_value</name>
|
4433 |
<full_name>_process_bulk_value</full_name>
|
4434 |
+
<docblock line="744">
|
4435 |
<description><![CDATA[Process bulk edit area fields, which may contain a Content Template]]></description>
|
4436 |
<long-description><![CDATA[]]></long-description>
|
4437 |
+
<tag line="744" name="since" description="1.80"/>
|
4438 |
+
<tag line="744" name="param" description="Current post ID" type="integer" variable="$post_id">
|
4439 |
<type by_reference="false">integer</type>
|
4440 |
</tag>
|
4441 |
+
<tag line="744" name="param" description="Field value as entered" type="string" variable="$bulk_value">
|
4442 |
<type by_reference="false">string</type>
|
4443 |
</tag>
|
4444 |
+
<tag line="744" name="return" description="Empty, or new value for the field" type="string">
|
4445 |
<type by_reference="false">string</type>
|
4446 |
</tag>
|
4447 |
</docblock>
|
4448 |
+
<argument line="754">
|
4449 |
<name>$post_id</name>
|
4450 |
<default><![CDATA[]]></default>
|
4451 |
<type/>
|
4452 |
</argument>
|
4453 |
+
<argument line="754">
|
4454 |
<name>$bulk_value</name>
|
4455 |
<default><![CDATA[]]></default>
|
4456 |
<type/>
|
4457 |
</argument>
|
4458 |
</method>
|
4459 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="785" package="Media Library Assistant">
|
4460 |
<name>mla_render_admin_page</name>
|
4461 |
<full_name>mla_render_admin_page</full_name>
|
4462 |
+
<docblock line="778">
|
4463 |
<description><![CDATA[Render the "Assistant" subpage in the Media section, using the list_table package]]></description>
|
4464 |
<long-description><![CDATA[]]></long-description>
|
4465 |
+
<tag line="778" name="since" description="0.1"/>
|
4466 |
+
<tag line="778" name="return" description="" type="void">
|
4467 |
<type by_reference="false">void</type>
|
4468 |
</tag>
|
4469 |
</docblock>
|
4470 |
</method>
|
4471 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1255" package="Media Library Assistant">
|
4472 |
+
<name>mla_find_posts_ajax_action</name>
|
4473 |
+
<full_name>mla_find_posts_ajax_action</full_name>
|
4474 |
+
<docblock line="1245">
|
4475 |
+
<description><![CDATA[Ajax handler to fetch candidates for the "Set Parent" popup window]]></description>
|
4476 |
+
<long-description><![CDATA[<p>Adapted from wp_ajax_find_posts in /wp-admin/includes/ajax-actions.php.
|
4477 |
+
Adds filters for post type and pagination.</p>]]></long-description>
|
4478 |
+
<tag line="1245" name="since" description="1.90"/>
|
4479 |
+
<tag line="1245" name="return" description="passes results to wp_send_json_success() for JSON encoding and transmission" type="void">
|
4480 |
+
<type by_reference="false">void</type>
|
4481 |
+
</tag>
|
4482 |
+
</docblock>
|
4483 |
+
</method>
|
4484 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1344" package="Media Library Assistant">
|
4485 |
<name>mla_set_parent_ajax_action</name>
|
4486 |
<full_name>mla_set_parent_ajax_action</full_name>
|
4487 |
+
<docblock line="1335">
|
4488 |
<description><![CDATA[Ajax handler to set post_parent for a single attachment]]></description>
|
4489 |
<long-description><![CDATA[<p>Adapted from wp_ajax_inline_save in /wp-admin/includes/ajax-actions.php</p>]]></long-description>
|
4490 |
+
<tag line="1335" name="since" description="0.20"/>
|
4491 |
+
<tag line="1335" name="return" description="echo HTML <td> innerHTML for updated call or error message, then die()" type="void">
|
4492 |
<type by_reference="false">void</type>
|
4493 |
</tag>
|
4494 |
</docblock>
|
4495 |
</method>
|
4496 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1380" package="Media Library Assistant">
|
4497 |
<name>mla_inline_edit_ajax_action</name>
|
4498 |
<full_name>mla_inline_edit_ajax_action</full_name>
|
4499 |
+
<docblock line="1371">
|
4500 |
<description><![CDATA[Ajax handler for inline editing (quick and bulk edit)]]></description>
|
4501 |
<long-description><![CDATA[<p>Adapted from wp_ajax_inline_save in /wp-admin/includes/ajax-actions.php</p>]]></long-description>
|
4502 |
+
<tag line="1371" name="since" description="0.20"/>
|
4503 |
+
<tag line="1371" name="return" description="echo HTML <tr> markup for updated row or error message, then die()" type="void">
|
4504 |
<type by_reference="false">void</type>
|
4505 |
</tag>
|
4506 |
</docblock>
|
4507 |
</method>
|
4508 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1479" package="Media Library Assistant">
|
4509 |
+
<name>_compose_post_type_select</name>
|
4510 |
+
<full_name>_compose_post_type_select</full_name>
|
4511 |
+
<docblock line="1468">
|
4512 |
+
<description><![CDATA[Compose a Post Type Options list with current selection]]></description>
|
4513 |
+
<long-description><![CDATA[]]></long-description>
|
4514 |
+
<tag line="1468" name="since" description="1.90"/>
|
4515 |
+
<tag line="1468" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
|
4516 |
+
<tag line="1468" name="param" description="template parts" type="array" variable="$templates">
|
4517 |
+
<type by_reference="false">array</type>
|
4518 |
+
</tag>
|
4519 |
+
<tag line="1468" name="param" description="current selection or 'all' (default)" type="string" variable="$selection">
|
4520 |
+
<type by_reference="false">string</type>
|
4521 |
+
</tag>
|
4522 |
+
<tag line="1468" name="return" description="HTML markup with select field options" type="string">
|
4523 |
+
<type by_reference="false">string</type>
|
4524 |
+
</tag>
|
4525 |
+
</docblock>
|
4526 |
+
<argument line="1479">
|
4527 |
+
<name>$templates</name>
|
4528 |
+
<default><![CDATA[]]></default>
|
4529 |
+
<type/>
|
4530 |
+
</argument>
|
4531 |
+
<argument line="1479">
|
4532 |
+
<name>$selection</name>
|
4533 |
+
<default><![CDATA['all']]></default>
|
4534 |
+
<type/>
|
4535 |
+
</argument>
|
4536 |
+
</method>
|
4537 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1518" package="Media Library Assistant">
|
4538 |
+
<name>mla_set_parent_form</name>
|
4539 |
+
<full_name>mla_set_parent_form</full_name>
|
4540 |
+
<docblock line="1509">
|
4541 |
+
<description><![CDATA[Build the hidden form for the "Set Parent" popup modal window]]></description>
|
4542 |
+
<long-description><![CDATA[]]></long-description>
|
4543 |
+
<tag line="1509" name="since" description="1.90"/>
|
4544 |
+
<tag line="1509" name="param" description="true to return complete form, false to return mla-set-parent-div" type="boolean" variable="$return_form">
|
4545 |
+
<type by_reference="false">boolean</type>
|
4546 |
+
</tag>
|
4547 |
+
<tag line="1509" name="return" description="HTML <form> markup for hidden form" type="string">
|
4548 |
+
<type by_reference="false">string</type>
|
4549 |
+
</tag>
|
4550 |
+
</docblock>
|
4551 |
+
<argument line="1518">
|
4552 |
+
<name>$return_form</name>
|
4553 |
+
<default><![CDATA[true]]></default>
|
4554 |
+
<type/>
|
4555 |
+
</argument>
|
4556 |
+
</method>
|
4557 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1581" package="Media Library Assistant">
|
4558 |
<name>_build_inline_edit_form</name>
|
4559 |
<full_name>_build_inline_edit_form</full_name>
|
4560 |
+
<docblock line="1570">
|
4561 |
<description><![CDATA[Build the hidden row templates for inline editing (quick and bulk edit)]]></description>
|
4562 |
<long-description><![CDATA[<p>inspired by inline_edit() in wp-admin\includes\class-wp-posts-list-table.php.</p>]]></long-description>
|
4563 |
+
<tag line="1570" name="since" description="0.20"/>
|
4564 |
+
<tag line="1570" name="param" description="MLA List Table object" type="object" variable="$MLAListTable">
|
4565 |
<type by_reference="false">object</type>
|
4566 |
</tag>
|
4567 |
+
<tag line="1570" name="return" description="HTML <form> markup for hidden rows" type="string">
|
4568 |
<type by_reference="false">string</type>
|
4569 |
</tag>
|
4570 |
</docblock>
|
4571 |
+
<argument line="1581">
|
4572 |
<name>$MLAListTable</name>
|
4573 |
<default><![CDATA[]]></default>
|
4574 |
<type/>
|
4575 |
</argument>
|
4576 |
</method>
|
4577 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1770" package="Media Library Assistant">
|
4578 |
<name>_authors_dropdown</name>
|
4579 |
<full_name>_authors_dropdown</full_name>
|
4580 |
+
<docblock line="1759">
|
4581 |
<description><![CDATA[Get the edit Authors dropdown box, if user has suitable permissions]]></description>
|
4582 |
<long-description><![CDATA[]]></long-description>
|
4583 |
+
<tag line="1759" name="since" description="0.20"/>
|
4584 |
+
<tag line="1759" name="param" description="Optional User ID of the current author, default 0" type="integer" variable="$author">
|
4585 |
<type by_reference="false">integer</type>
|
4586 |
</tag>
|
4587 |
+
<tag line="1759" name="param" description="Optional HTML name attribute, default 'post_author'" type="string" variable="$name">
|
4588 |
<type by_reference="false">string</type>
|
4589 |
</tag>
|
4590 |
+
<tag line="1759" name="param" description="Optional HTML class attribute, default 'authors'" type="string" variable="$class">
|
4591 |
<type by_reference="false">string</type>
|
4592 |
</tag>
|
4593 |
+
<tag line="1759" name="return" description="HTML markup for the dropdown field or False" type="string|false">
|
4594 |
<type by_reference="false">string</type>
|
4595 |
<type by_reference="false">false</type>
|
4596 |
</tag>
|
4597 |
</docblock>
|
4598 |
+
<argument line="1770">
|
4599 |
<name>$author</name>
|
4600 |
<default><![CDATA[0]]></default>
|
4601 |
<type/>
|
4602 |
</argument>
|
4603 |
+
<argument line="1770">
|
4604 |
<name>$name</name>
|
4605 |
<default><![CDATA['post_author']]></default>
|
4606 |
<type/>
|
4607 |
</argument>
|
4608 |
+
<argument line="1770">
|
4609 |
<name>$class</name>
|
4610 |
<default><![CDATA['authors']]></default>
|
4611 |
<type/>
|
4612 |
</argument>
|
4613 |
</method>
|
4614 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1804" package="Media Library Assistant">
|
4615 |
<name>_current_bulk_action</name>
|
4616 |
<full_name>_current_bulk_action</full_name>
|
4617 |
+
<docblock line="1797">
|
4618 |
<description><![CDATA[Get the current action selected from the bulk actions dropdown]]></description>
|
4619 |
<long-description><![CDATA[]]></long-description>
|
4620 |
+
<tag line="1797" name="since" description="0.1"/>
|
4621 |
+
<tag line="1797" name="return" description="The action name or False if no action was selected" type="string|false">
|
4622 |
<type by_reference="false">string</type>
|
4623 |
<type by_reference="false">false</type>
|
4624 |
</tag>
|
4625 |
</docblock>
|
4626 |
</method>
|
4627 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1835" package="Media Library Assistant">
|
4628 |
<name>_delete_single_item</name>
|
4629 |
<full_name>_delete_single_item</full_name>
|
4630 |
+
<docblock line="1826">
|
4631 |
<description><![CDATA[Delete a single item permanently]]></description>
|
4632 |
<long-description><![CDATA[]]></long-description>
|
4633 |
+
<tag line="1826" name="since" description="0.1"/>
|
4634 |
+
<tag line="1826" name="param" description="The form POST data" type="array" variable="$post_id">
|
4635 |
<type by_reference="false">array</type>
|
4636 |
</tag>
|
4637 |
+
<tag line="1826" name="return" description="success/failure message and NULL content" type="array">
|
4638 |
<type by_reference="false">array</type>
|
4639 |
</tag>
|
4640 |
</docblock>
|
4641 |
+
<argument line="1835">
|
4642 |
<name>$post_id</name>
|
4643 |
<default><![CDATA[]]></default>
|
4644 |
<type/>
|
4645 |
</argument>
|
4646 |
</method>
|
4647 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1870" package="Media Library Assistant">
|
4648 |
<name>_display_single_item</name>
|
4649 |
<full_name>_display_single_item</full_name>
|
4650 |
+
<docblock line="1858">
|
4651 |
<description><![CDATA[Display a single item sub page; prepare the form to
|
4652 |
change the meta data for a single attachment.]]></description>
|
4653 |
<long-description><![CDATA[<p>This function is not used in WordPress 3.5 and later.</p>]]></long-description>
|
4654 |
+
<tag line="1858" name="since" description="0.1"/>
|
4655 |
+
<tag line="1858" name="param" description="The WordPress Post ID of the attachment item" type="int" variable="$post_id">
|
4656 |
<type by_reference="false">int</type>
|
4657 |
</tag>
|
4658 |
+
<tag line="1858" name="return" description="message and/or HTML content" type="array">
|
4659 |
<type by_reference="false">array</type>
|
4660 |
</tag>
|
4661 |
</docblock>
|
4662 |
+
<argument line="1870">
|
4663 |
<name>$post_id</name>
|
4664 |
<default><![CDATA[]]></default>
|
4665 |
<type/>
|
4666 |
</argument>
|
4667 |
</method>
|
4668 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2151" package="Media Library Assistant">
|
4669 |
<name>_restore_single_item</name>
|
4670 |
<full_name>_restore_single_item</full_name>
|
4671 |
+
<docblock line="2142">
|
4672 |
<description><![CDATA[Restore a single item from the Trash]]></description>
|
4673 |
<long-description><![CDATA[]]></long-description>
|
4674 |
+
<tag line="2142" name="since" description="0.1"/>
|
4675 |
+
<tag line="2142" name="param" description="The form POST data" type="array" variable="$post_id">
|
4676 |
<type by_reference="false">array</type>
|
4677 |
</tag>
|
4678 |
+
<tag line="2142" name="return" description="success/failure message and NULL content" type="array">
|
4679 |
<type by_reference="false">array</type>
|
4680 |
</tag>
|
4681 |
</docblock>
|
4682 |
+
<argument line="2151">
|
4683 |
<name>$post_id</name>
|
4684 |
<default><![CDATA[]]></default>
|
4685 |
<type/>
|
4686 |
</argument>
|
4687 |
</method>
|
4688 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2191" package="Media Library Assistant">
|
4689 |
<name>_trash_single_item</name>
|
4690 |
<full_name>_trash_single_item</full_name>
|
4691 |
+
<docblock line="2182">
|
4692 |
<description><![CDATA[Move a single item to Trash]]></description>
|
4693 |
<long-description><![CDATA[]]></long-description>
|
4694 |
+
<tag line="2182" name="since" description="0.1"/>
|
4695 |
+
<tag line="2182" name="param" description="The form POST data" type="array" variable="$post_id">
|
4696 |
<type by_reference="false">array</type>
|
4697 |
</tag>
|
4698 |
+
<tag line="2182" name="return" description="success/failure message and NULL content" type="array">
|
4699 |
<type by_reference="false">array</type>
|
4700 |
</tag>
|
4701 |
</docblock>
|
4702 |
+
<argument line="2191">
|
4703 |
<name>$post_id</name>
|
4704 |
<default><![CDATA[]]></default>
|
4705 |
<type/>
|
4707 |
</method>
|
4708 |
</class>
|
4709 |
</file>
|
4710 |
+
<file path="includes\class-mla-media-modal.php" hash="b831030ea4b08bd19069527444fae3f8" package="Media Library Assistant">
|
4711 |
<docblock line="2">
|
4712 |
<description><![CDATA[Media Library Assistant Media Manager enhancements]]></description>
|
4713 |
<long-description><![CDATA[]]></long-description>
|
4714 |
<tag line="2" name="package" description="Media Library Assistant"/>
|
4715 |
<tag line="2" name="since" description="1.20"/>
|
4716 |
</docblock>
|
4717 |
+
<include line="494" type="Require Once" package="Media Library Assistant">
|
4718 |
<name/>
|
4719 |
</include>
|
4720 |
<class final="false" abstract="false" namespace="global" line="15" package="Media Library Assistant">
|
4767 |
</docblock>
|
4768 |
</constant>
|
4769 |
<constant namespace="global" line="50" package="Media Library Assistant">
|
4770 |
+
<name>JAVASCRIPT_TERMS_SEARCH_OBJECT</name>
|
4771 |
+
<full_name>JAVASCRIPT_TERMS_SEARCH_OBJECT</full_name>
|
4772 |
+
<value><![CDATA['mla_terms_search_vars']]></value>
|
4773 |
+
<docblock line="43">
|
4774 |
+
<description><![CDATA[Object name for localizing JavaScript - Terms Search popup]]></description>
|
4775 |
+
<long-description><![CDATA[]]></long-description>
|
4776 |
+
<tag line="43" name="since" description="1.90"/>
|
4777 |
+
<tag line="43" name="var" description="" type="string">
|
4778 |
+
<type by_reference="false">string</type>
|
4779 |
+
</tag>
|
4780 |
+
</docblock>
|
4781 |
+
</constant>
|
4782 |
+
<constant namespace="global" line="59" package="Media Library Assistant">
|
4783 |
<name>JAVASCRIPT_QUERY_ATTACHMENTS_ACTION</name>
|
4784 |
<full_name>JAVASCRIPT_QUERY_ATTACHMENTS_ACTION</full_name>
|
4785 |
<value><![CDATA['mla-query-attachments']]></value>
|
4786 |
+
<docblock line="52">
|
4787 |
<description><![CDATA[Slug for the "query attachments" action - Add Media and related dialogs]]></description>
|
4788 |
<long-description><![CDATA[]]></long-description>
|
4789 |
+
<tag line="52" name="since" description="1.80"/>
|
4790 |
+
<tag line="52" name="var" description="" type="string">
|
4791 |
<type by_reference="false">string</type>
|
4792 |
</tag>
|
4793 |
</docblock>
|
4794 |
</constant>
|
4795 |
+
<constant namespace="global" line="68" package="Media Library Assistant">
|
4796 |
<name>JAVASCRIPT_FILL_COMPAT_ACTION</name>
|
4797 |
<full_name>JAVASCRIPT_FILL_COMPAT_ACTION</full_name>
|
4798 |
<value><![CDATA['mla-fill-compat-fields']]></value>
|
4799 |
+
<docblock line="61">
|
4800 |
<description><![CDATA[Slug for the "fill compat-attachment-fields" action - Add Media and related dialogs]]></description>
|
4801 |
<long-description><![CDATA[]]></long-description>
|
4802 |
+
<tag line="61" name="since" description="1.80"/>
|
4803 |
+
<tag line="61" name="var" description="" type="string">
|
4804 |
<type by_reference="false">string</type>
|
4805 |
</tag>
|
4806 |
</docblock>
|
4807 |
</constant>
|
4808 |
+
<constant namespace="global" line="77" package="Media Library Assistant">
|
4809 |
<name>JAVASCRIPT_UPDATE_COMPAT_ACTION</name>
|
4810 |
<full_name>JAVASCRIPT_UPDATE_COMPAT_ACTION</full_name>
|
4811 |
<value><![CDATA['mla-update-compat-fields']]></value>
|
4812 |
+
<docblock line="70">
|
4813 |
<description><![CDATA[Slug for the "update compat-attachment-fields" action - Add Media and related dialogs]]></description>
|
4814 |
<long-description><![CDATA[]]></long-description>
|
4815 |
+
<tag line="70" name="since" description="1.80"/>
|
4816 |
+
<tag line="70" name="var" description="" type="string">
|
4817 |
<type by_reference="false">string</type>
|
4818 |
</tag>
|
4819 |
</docblock>
|
4820 |
</constant>
|
4821 |
+
<property final="false" static="true" visibility="private" line="140" namespace="global" package="Media Library Assistant">
|
4822 |
<name>$media_item_args</name>
|
4823 |
<default><![CDATA[array('errors' => null, 'in_modal' => false)]]></default>
|
4824 |
+
<docblock line="133">
|
4825 |
<description><![CDATA[The get_media_item_args array]]></description>
|
4826 |
<long-description><![CDATA[]]></long-description>
|
4827 |
+
<tag line="133" name="since" description="1.71"/>
|
4828 |
+
<tag line="133" name="var" description="( 'errors' => array of strings, 'in_modal => boolean )" type="array">
|
4829 |
<type by_reference="false">array</type>
|
4830 |
</tag>
|
4831 |
</docblock>
|
4832 |
</property>
|
4833 |
+
<property final="false" static="true" visibility="private" line="336" namespace="global" package="Media Library Assistant">
|
4834 |
<name>$mla_media_modal_settings</name>
|
4835 |
+
<default><![CDATA[array('ajaxFillCompatAction' => self::JAVASCRIPT_FILL_COMPAT_ACTION, 'ajaxNonce' => '', '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, 'filterMonth' => 0, 'filterTerm' => 0, 'mimeTypes' => '', 'months' => '', 'searchClicks' => 0, 'searchConnector' => 'AND', 'searchFields' => array('title', 'content'), 'searchValue' => '', 'termsClass' => array(), 'termsIndent' => ' ', 'termsTaxonomy' => '', 'termsText' => array(), 'termsValue' => array())]]></default>
|
4836 |
+
<docblock line="328">
|
4837 |
<description><![CDATA[Share the settings values between mla_media_view_settings_filter
|
4838 |
and mla_print_media_templates_action]]></description>
|
4839 |
<long-description><![CDATA[]]></long-description>
|
4840 |
+
<tag line="328" name="since" description="1.20"/>
|
4841 |
+
<tag line="328" name="var" description="" type="array">
|
4842 |
<type by_reference="false">array</type>
|
4843 |
</tag>
|
4844 |
</docblock>
|
4845 |
</property>
|
4846 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="86" package="Media Library Assistant">
|
4847 |
<name>initialize</name>
|
4848 |
<full_name>initialize</full_name>
|
4849 |
+
<docblock line="79">
|
4850 |
<description><![CDATA[Initialization function, similar to __construct()]]></description>
|
4851 |
<long-description><![CDATA[]]></long-description>
|
4852 |
+
<tag line="79" name="since" description="1.20"/>
|
4853 |
+
<tag line="79" name="return" description="" type="void">
|
4854 |
<type by_reference="false">void</type>
|
4855 |
</tag>
|
4856 |
</docblock>
|
4857 |
</method>
|
4858 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="128" package="Media Library Assistant">
|
4859 |
<name>mla_get_media_item_args_filter</name>
|
4860 |
<full_name>mla_get_media_item_args_filter</full_name>
|
4861 |
+
<docblock line="117">
|
4862 |
<description><![CDATA[Saves the get_media_item_args array for the attachment_fields_to_edit filter]]></description>
|
4863 |
<long-description><![CDATA[<p>Declared public because it is a filter.</p>]]></long-description>
|
4864 |
+
<tag line="117" name="since" description="1.71"/>
|
4865 |
+
<tag line="117" name="param" description="arguments for the get_media_item function in /wp-admin/includes/media.php" type="array" variable="$args">
|
4866 |
<type by_reference="false">array</type>
|
4867 |
</tag>
|
4868 |
+
<tag line="117" name="return" description="arguments for the get_media_item function (unchanged)" type="array">
|
4869 |
<type by_reference="false">array</type>
|
4870 |
</tag>
|
4871 |
</docblock>
|
4872 |
+
<argument line="128">
|
4873 |
<name>$args</name>
|
4874 |
<default><![CDATA[]]></default>
|
4875 |
<type/>
|
4876 |
</argument>
|
4877 |
</method>
|
4878 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="159" package="Media Library Assistant">
|
4879 |
<name>mla_attachment_fields_to_edit_filter</name>
|
4880 |
<full_name>mla_attachment_fields_to_edit_filter</full_name>
|
4881 |
+
<docblock line="142">
|
4882 |
<description><![CDATA[Add/change custom fields to the Edit Media screen and Modal Window]]></description>
|
4883 |
<long-description><![CDATA[<p>Called from /wp-admin/includes/media.php, function get_compat_media_markup();
|
4884 |
If "get_media_item_args"['in_modal'] => false ) its the Edit Media screen.
|
4886 |
For the Modal Window, $form_fields contains all the "compat-attachment-fields"
|
4887 |
including the taxonomies, which we want to enhance.
|
4888 |
Declared public because it is a filter.</p>]]></long-description>
|
4889 |
+
<tag line="142" name="since" description="1.71"/>
|
4890 |
+
<tag line="142" name="param" description="descriptors for the "compat-attachment-fields"" type="array" variable="$form_fields">
|
4891 |
<type by_reference="false">array</type>
|
4892 |
</tag>
|
4893 |
+
<tag line="142" name="param" description="the post to be edited" type="object" variable="$post">
|
4894 |
<type by_reference="false">object</type>
|
4895 |
</tag>
|
4896 |
+
<tag line="142" name="return" description="updated descriptors for the "compat-attachment-fields"" type="array">
|
4897 |
<type by_reference="false">array</type>
|
4898 |
</tag>
|
4899 |
</docblock>
|
4900 |
+
<argument line="159">
|
4901 |
<name>$form_fields</name>
|
4902 |
<default><![CDATA[]]></default>
|
4903 |
<type/>
|
4904 |
</argument>
|
4905 |
+
<argument line="159">
|
4906 |
<name>$post</name>
|
4907 |
<default><![CDATA[]]></default>
|
4908 |
<type/>
|
4909 |
</argument>
|
4910 |
</method>
|
4911 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="261" package="Media Library Assistant">
|
4912 |
<name>_months_dropdown</name>
|
4913 |
<full_name>_months_dropdown</full_name>
|
4914 |
+
<docblock line="250">
|
4915 |
<description><![CDATA[Display a monthly dropdown for filtering items]]></description>
|
4916 |
<long-description><![CDATA[<p>Adapted from /wp-admin/includes/class-wp-list-table.php function months_dropdown()</p>]]></long-description>
|
4917 |
+
<tag line="250" name="since" description="1.20"/>
|
4918 |
+
<tag line="250" name="param" description="post_type, e.g., 'attachment'" type="string" variable="$post_type">
|
4919 |
<type by_reference="false">string</type>
|
4920 |
</tag>
|
4921 |
+
<tag line="250" name="return" description="( value => label ) pairs" type="array">
|
4922 |
<type by_reference="false">array</type>
|
4923 |
</tag>
|
4924 |
</docblock>
|
4925 |
+
<argument line="261">
|
4926 |
<name>$post_type</name>
|
4927 |
<default><![CDATA[]]></default>
|
4928 |
<type/>
|
4929 |
</argument>
|
4930 |
</method>
|
4931 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="302" package="Media Library Assistant">
|
4932 |
<name>_terms_options</name>
|
4933 |
<full_name>_terms_options</full_name>
|
4934 |
+
<docblock line="293">
|
4935 |
<description><![CDATA[Extract value and text elements from Dropdown HTML option tags]]></description>
|
4936 |
<long-description><![CDATA[]]></long-description>
|
4937 |
+
<tag line="293" name="since" description="1.20"/>
|
4938 |
+
<tag line="293" name="param" description="HTML markup for taxonomy terms dropdown <select> tag" type="string" variable="$markup">
|
4939 |
<type by_reference="false">string</type>
|
4940 |
</tag>
|
4941 |
+
<tag line="293" name="return" description="( 'class' => $class_array, 'value' => $value_array, 'text' => $text_array )" type="array">
|
4942 |
<type by_reference="false">array</type>
|
4943 |
</tag>
|
4944 |
</docblock>
|
4945 |
+
<argument line="302">
|
4946 |
<name>$markup</name>
|
4947 |
<default><![CDATA[]]></default>
|
4948 |
<type/>
|
4949 |
</argument>
|
4950 |
</method>
|
4951 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="377" package="Media Library Assistant">
|
4952 |
<name>mla_media_view_settings_filter</name>
|
4953 |
<full_name>mla_media_view_settings_filter</full_name>
|
4954 |
+
<docblock line="366">
|
4955 |
<description><![CDATA[Adds settings values to be passed to the Media Manager in /wp-includes/js/media-views.js.]]></description>
|
4956 |
<long-description><![CDATA[<p>Declared public because it is a filter.</p>]]></long-description>
|
4957 |
+
<tag line="366" name="since" description="1.20"/>
|
4958 |
+
<tag line="366" name="param" description="associative array with setting => value pairs" type="array" variable="$settings">
|
4959 |
<type by_reference="false">array</type>
|
4960 |
</tag>
|
4961 |
+
<tag line="366" name="param" description="|| NULL current post object, if available" type="object" variable="$post">
|
4962 |
<type by_reference="false">object</type>
|
4963 |
</tag>
|
4964 |
+
<tag line="366" name="return" description="updated $settings array" type="array">
|
4965 |
<type by_reference="false">array</type>
|
4966 |
</tag>
|
4967 |
</docblock>
|
4968 |
+
<argument line="377">
|
4969 |
<name>$settings</name>
|
4970 |
<default><![CDATA[]]></default>
|
4971 |
<type/>
|
4972 |
</argument>
|
4973 |
+
<argument line="377">
|
4974 |
<name>$post</name>
|
4975 |
<default><![CDATA[]]></default>
|
4976 |
<type/>
|
4977 |
</argument>
|
4978 |
</method>
|
4979 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="429" package="Media Library Assistant">
|
4980 |
<name>mla_media_view_strings_filter</name>
|
4981 |
<full_name>mla_media_view_strings_filter</full_name>
|
4982 |
+
<docblock line="418">
|
4983 |
<description><![CDATA[Adds strings values to be passed to the Media Manager in /wp-includes/js/media-views.js.]]></description>
|
4984 |
<long-description><![CDATA[<p>Declared public because it is a filter.</p>]]></long-description>
|
4985 |
+
<tag line="418" name="since" description="1.20"/>
|
4986 |
+
<tag line="418" name="param" description="associative array with string => value pairs" type="array" variable="$strings">
|
4987 |
<type by_reference="false">array</type>
|
4988 |
</tag>
|
4989 |
+
<tag line="418" name="param" description="|| NULL current post object, if available" type="object" variable="$post">
|
4990 |
<type by_reference="false">object</type>
|
4991 |
</tag>
|
4992 |
+
<tag line="418" name="return" description="updated $strings array" type="array">
|
4993 |
<type by_reference="false">array</type>
|
4994 |
</tag>
|
4995 |
</docblock>
|
4996 |
+
<argument line="429">
|
4997 |
<name>$strings</name>
|
4998 |
<default><![CDATA[]]></default>
|
4999 |
<type/>
|
5000 |
</argument>
|
5001 |
+
<argument line="429">
|
5002 |
<name>$post</name>
|
5003 |
<default><![CDATA[]]></default>
|
5004 |
<type/>
|
5005 |
</argument>
|
5006 |
</method>
|
5007 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="448" package="Media Library Assistant">
|
5008 |
<name>mla_wp_enqueue_media_action</name>
|
5009 |
<full_name>mla_wp_enqueue_media_action</full_name>
|
5010 |
+
<docblock line="440">
|
5011 |
<description><![CDATA[Enqueues the mla-media-modal-scripts.js file, adding it to the Media Manager scripts.]]></description>
|
5012 |
<long-description><![CDATA[<p>Declared public because it is an action.</p>]]></long-description>
|
5013 |
+
<tag line="440" name="since" description="1.20"/>
|
5014 |
+
<tag line="440" name="return" description="" type="void">
|
5015 |
<type by_reference="false">void</type>
|
5016 |
</tag>
|
5017 |
</docblock>
|
5018 |
</method>
|
5019 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="469" package="Media Library Assistant">
|
5020 |
<name>mla_print_media_templates_action</name>
|
5021 |
<full_name>mla_print_media_templates_action</full_name>
|
5022 |
+
<docblock line="461">
|
5023 |
<description><![CDATA[Prints the templates used in the MLA Media Manager enhancements.]]></description>
|
5024 |
<long-description><![CDATA[<p>Declared public because it is an action.</p>]]></long-description>
|
5025 |
+
<tag line="461" name="since" description="1.20"/>
|
5026 |
+
<tag line="461" name="return" description="echoes HTML script tags for the templates" type="void">
|
5027 |
<type by_reference="false">void</type>
|
5028 |
</tag>
|
5029 |
</docblock>
|
5030 |
</method>
|
5031 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="507" package="Media Library Assistant">
|
5032 |
<name>mla_admin_init_action</name>
|
5033 |
<full_name>mla_admin_init_action</full_name>
|
5034 |
+
<docblock line="497">
|
5035 |
<description><![CDATA[Adjust ajax handler for Media Manager queries]]></description>
|
5036 |
<long-description><![CDATA[<p>Replace 'query-attachments' with our own handler if the request is coming from the "Assistant" tab.
|
5037 |
Clean up the 'save-attachment-compat' values, removing the taxonomy updates MLS already handled.</p>]]></long-description>
|
5038 |
+
<tag line="497" name="since" description="1.20"/>
|
5039 |
+
<tag line="497" name="return" description="" type="void">
|
5040 |
<type by_reference="false">void</type>
|
5041 |
</tag>
|
5042 |
</docblock>
|
5043 |
</method>
|
5044 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="642" package="Media Library Assistant">
|
5045 |
<name>mla_fill_compat_fields_action</name>
|
5046 |
<full_name>mla_fill_compat_fields_action</full_name>
|
5047 |
+
<docblock line="633">
|
5048 |
<description><![CDATA[Ajax handler for Media Manager "fill compat-attachment-fields" queries]]></description>
|
5049 |
<long-description><![CDATA[<p>Prepares an array of (HTML) taxonomy meta boxes with attachment-specific values.</p>]]></long-description>
|
5050 |
+
<tag line="633" name="since" description="1.80"/>
|
5051 |
+
<tag line="633" name="return" description="passes array of results to wp_send_json_success() for JSON encoding and transmission" type="void">
|
5052 |
<type by_reference="false">void</type>
|
5053 |
</tag>
|
5054 |
</docblock>
|
5055 |
</method>
|
5056 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="816" package="Media Library Assistant">
|
5057 |
<name>mla_update_compat_fields_action</name>
|
5058 |
<full_name>mla_update_compat_fields_action</full_name>
|
5059 |
+
<docblock line="807">
|
5060 |
<description><![CDATA[Ajax handler for Media Manager "update compat-attachment-fields" queries]]></description>
|
5061 |
<long-description><![CDATA[<p>Updates one (or more) supported taxonomy and returns updated checkbox or tag/term lists</p>]]></long-description>
|
5062 |
+
<tag line="807" name="since" description="1.80"/>
|
5063 |
+
<tag line="807" name="return" description="passes array of results to wp_send_json_success() for JSON encoding and transmission" type="void">
|
5064 |
<type by_reference="false">void</type>
|
5065 |
</tag>
|
5066 |
</docblock>
|
5067 |
</method>
|
5068 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="892" package="Media Library Assistant">
|
5069 |
<name>mla_query_attachments_action</name>
|
5070 |
<full_name>mla_query_attachments_action</full_name>
|
5071 |
+
<docblock line="883">
|
5072 |
<description><![CDATA[Ajax handler for Media Manager "Query Attachments" queries]]></description>
|
5073 |
<long-description><![CDATA[<p>Adapted from wp_ajax_query_attachments in /wp-admin/includes/ajax-actions.php</p>]]></long-description>
|
5074 |
+
<tag line="883" name="since" description="1.20"/>
|
5075 |
+
<tag line="883" name="return" description="passes array of post arrays to wp_send_json_success() for JSON encoding and transmission" type="void">
|
5076 |
+
<type by_reference="false">void</type>
|
5077 |
+
</tag>
|
5078 |
+
</docblock>
|
5079 |
+
</method>
|
5080 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1000" package="Media Library Assistant">
|
5081 |
+
<name>mla_add_terms_search_scripts</name>
|
5082 |
+
<full_name>mla_add_terms_search_scripts</full_name>
|
5083 |
+
<docblock line="992">
|
5084 |
+
<description><![CDATA[Add the styles and scripts for the "Search Terms" popup modal window,
|
5085 |
+
but only once per page load]]></description>
|
5086 |
+
<long-description><![CDATA[]]></long-description>
|
5087 |
+
<tag line="992" name="since" description="1.90"/>
|
5088 |
+
<tag line="992" name="return" description="" type="void">
|
5089 |
<type by_reference="false">void</type>
|
5090 |
</tag>
|
5091 |
</docblock>
|
5092 |
</method>
|
5093 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1040" package="Media Library Assistant">
|
5094 |
+
<name>mla_add_terms_search_form</name>
|
5095 |
+
<full_name>mla_add_terms_search_form</full_name>
|
5096 |
+
<docblock line="1032">
|
5097 |
+
<description><![CDATA[Add the hidden form for the "Search Terms" popup modal window,
|
5098 |
+
but only once per page load]]></description>
|
5099 |
+
<long-description><![CDATA[]]></long-description>
|
5100 |
+
<tag line="1032" name="since" description="1.90"/>
|
5101 |
+
<tag line="1032" name="return" description="" type="void">
|
5102 |
+
<type by_reference="false">void</type>
|
5103 |
+
</tag>
|
5104 |
+
</docblock>
|
5105 |
+
</method>
|
5106 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1056" package="Media Library Assistant">
|
5107 |
+
<name>mla_echo_terms_search_form</name>
|
5108 |
+
<full_name>mla_echo_terms_search_form</full_name>
|
5109 |
+
<docblock line="1049">
|
5110 |
+
<description><![CDATA[Echo the hidden form for the "Search Terms" popup modal window]]></description>
|
5111 |
+
<long-description><![CDATA[]]></long-description>
|
5112 |
+
<tag line="1049" name="since" description="1.90"/>
|
5113 |
+
<tag line="1049" name="return" description="Echos the HTML <form> markup for hidden form" type="void">
|
5114 |
+
<type by_reference="false">void</type>
|
5115 |
+
</tag>
|
5116 |
+
</docblock>
|
5117 |
+
</method>
|
5118 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1067" package="Media Library Assistant">
|
5119 |
+
<name>mla_terms_search_form</name>
|
5120 |
+
<full_name>mla_terms_search_form</full_name>
|
5121 |
+
<docblock line="1060">
|
5122 |
+
<description><![CDATA[Build the hidden form for the "Search Terms" popup modal window]]></description>
|
5123 |
+
<long-description><![CDATA[]]></long-description>
|
5124 |
+
<tag line="1060" name="since" description="1.90"/>
|
5125 |
+
<tag line="1060" name="return" description="HTML <form> markup for hidden form" type="string">
|
5126 |
+
<type by_reference="false">string</type>
|
5127 |
+
</tag>
|
5128 |
+
</docblock>
|
5129 |
+
</method>
|
5130 |
</class>
|
5131 |
</file>
|
5132 |
<file path="includes\class-mla-mime-types.php" hash="e8d3e45f05098910cd1ece032a7653f6" package="Media Library Assistant">
|
6375 |
</method>
|
6376 |
</class>
|
6377 |
</file>
|
6378 |
+
<file path="includes\class-mla-objects.php" hash="3df82ac0dd35874d7e1b4af86470b59a" package="Media Library Assistant">
|
6379 |
<docblock line="2">
|
6380 |
<description><![CDATA[Media Library Assistant Custom Taxonomy and Widget objects]]></description>
|
6381 |
<long-description><![CDATA[]]></long-description>
|
6416 |
</tag>
|
6417 |
</docblock>
|
6418 |
</method>
|
6419 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="114" package="Media Library Assistant">
|
6420 |
<name>mla_taxonomy_get_columns_filter</name>
|
6421 |
<full_name>mla_taxonomy_get_columns_filter</full_name>
|
6422 |
+
<docblock line="104">
|
6423 |
<description><![CDATA[WordPress Filter for edit taxonomy "Attachments" column,
|
6424 |
which replaces the "Posts" column with an equivalent "Attachments" column.]]></description>
|
6425 |
<long-description><![CDATA[]]></long-description>
|
6426 |
+
<tag line="104" name="since" description="0.30"/>
|
6427 |
+
<tag line="104" name="param" description="column definitions for the edit taxonomy list table" type="array" variable="$columns">
|
6428 |
<type by_reference="false">array</type>
|
6429 |
</tag>
|
6430 |
+
<tag line="104" name="return" description="updated column definitions for the edit taxonomy list table" type="array">
|
6431 |
<type by_reference="false">array</type>
|
6432 |
</tag>
|
6433 |
</docblock>
|
6434 |
+
<argument line="114">
|
6435 |
<name>$columns</name>
|
6436 |
<default><![CDATA[]]></default>
|
6437 |
<type/>
|
6438 |
</argument>
|
6439 |
</method>
|
6440 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="149" package="Media Library Assistant">
|
6441 |
<name>mla_taxonomy_column_filter</name>
|
6442 |
<full_name>mla_taxonomy_column_filter</full_name>
|
6443 |
+
<docblock line="136">
|
6444 |
<description><![CDATA[WordPress Filter for edit taxonomy "Attachments" column,
|
6445 |
which returns a count of the attachments assigned a given term]]></description>
|
6446 |
<long-description><![CDATA[]]></long-description>
|
6447 |
+
<tag line="136" name="since" description="0.30"/>
|
6448 |
+
<tag line="136" name="param" description="current column value; always ''" type="string" variable="$place_holder">
|
6449 |
<type by_reference="false">string</type>
|
6450 |
</tag>
|
6451 |
+
<tag line="136" name="param" description="name of the column" type="array" variable="$column_name">
|
6452 |
<type by_reference="false">array</type>
|
6453 |
</tag>
|
6454 |
+
<tag line="136" name="param" description="ID of the term for which the count is desired" type="array" variable="$term_id">
|
6455 |
<type by_reference="false">array</type>
|
6456 |
</tag>
|
6457 |
+
<tag line="136" name="return" description="HTML markup for the column content; number of attachments in the category and alink to retrieve a list of them" type="array">
|
6458 |
<type by_reference="false">array</type>
|
6459 |
</tag>
|
6460 |
</docblock>
|
6461 |
+
<argument line="149">
|
6462 |
<name>$place_holder</name>
|
6463 |
<default><![CDATA[]]></default>
|
6464 |
<type/>
|
6465 |
</argument>
|
6466 |
+
<argument line="149">
|
6467 |
<name>$column_name</name>
|
6468 |
<default><![CDATA[]]></default>
|
6469 |
<type/>
|
6470 |
</argument>
|
6471 |
+
<argument line="149">
|
6472 |
<name>$term_id</name>
|
6473 |
<default><![CDATA[]]></default>
|
6474 |
<type/>
|
6475 |
</argument>
|
6476 |
</method>
|
6477 |
</class>
|
6478 |
+
<class final="false" abstract="false" namespace="global" line="218" package="Media Library Assistant">
|
6479 |
<extends>\WP_Widget</extends>
|
6480 |
<name>MLATextWidget</name>
|
6481 |
<full_name>\MLATextWidget</full_name>
|
6482 |
+
<docblock line="212">
|
6483 |
<description><![CDATA[Class MLA (Media Library Assistant) Text Widget defines a shortcode-enabled version of the WordPress Text widget]]></description>
|
6484 |
<long-description><![CDATA[]]></long-description>
|
6485 |
+
<tag line="212" name="package" description="Media Library Assistant"/>
|
6486 |
+
<tag line="212" name="since" description="1.60"/>
|
6487 |
</docblock>
|
6488 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="227" package="Media Library Assistant">
|
6489 |
<name>__construct</name>
|
6490 |
<full_name>__construct</full_name>
|
6491 |
+
<docblock line="220">
|
6492 |
<description><![CDATA[Calls the parent constructor to set some defaults.]]></description>
|
6493 |
<long-description><![CDATA[]]></long-description>
|
6494 |
+
<tag line="220" name="since" description="1.60"/>
|
6495 |
+
<tag line="220" name="return" description="" type="void">
|
6496 |
<type by_reference="false">void</type>
|
6497 |
</tag>
|
6498 |
</docblock>
|
6499 |
</method>
|
6500 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="251" package="Media Library Assistant">
|
6501 |
<name>widget</name>
|
6502 |
<full_name>widget</full_name>
|
6503 |
+
<docblock line="241">
|
6504 |
<description><![CDATA[Display the widget content - called from the WordPress "front end"]]></description>
|
6505 |
<long-description><![CDATA[]]></long-description>
|
6506 |
+
<tag line="241" name="since" description="1.60"/>
|
6507 |
+
<tag line="241" name="param" description="Widget arguments" type="array" variable="$args">
|
6508 |
<type by_reference="false">array</type>
|
6509 |
</tag>
|
6510 |
+
<tag line="241" name="param" description="Widget definition, from the database" type="array" variable="$instance">
|
6511 |
<type by_reference="false">array</type>
|
6512 |
</tag>
|
6513 |
+
<tag line="241" name="return" description="Echoes widget output" type="void">
|
6514 |
<type by_reference="false">void</type>
|
6515 |
</tag>
|
6516 |
</docblock>
|
6517 |
+
<argument line="251">
|
6518 |
<name>$args</name>
|
6519 |
<default><![CDATA[]]></default>
|
6520 |
<type/>
|
6521 |
</argument>
|
6522 |
+
<argument line="251">
|
6523 |
<name>$instance</name>
|
6524 |
<default><![CDATA[]]></default>
|
6525 |
<type/>
|
6526 |
</argument>
|
6527 |
</method>
|
6528 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="270" package="Media Library Assistant">
|
6529 |
<name>form</name>
|
6530 |
<full_name>form</full_name>
|
6531 |
+
<docblock line="261">
|
6532 |
<description><![CDATA[Echo the "edit widget" form on the Appearance/Widgets admin screen]]></description>
|
6533 |
<long-description><![CDATA[]]></long-description>
|
6534 |
+
<tag line="261" name="since" description="1.60"/>
|
6535 |
+
<tag line="261" name="param" description="Previous definition values, from the database" type="array" variable="$instance">
|
6536 |
<type by_reference="false">array</type>
|
6537 |
</tag>
|
6538 |
+
<tag line="261" name="return" description="Echoes "edit widget" form" type="void">
|
6539 |
<type by_reference="false">void</type>
|
6540 |
</tag>
|
6541 |
</docblock>
|
6542 |
+
<argument line="270">
|
6543 |
<name>$instance</name>
|
6544 |
<default><![CDATA[]]></default>
|
6545 |
<type/>
|
6546 |
</argument>
|
6547 |
</method>
|
6548 |
+
<method final="false" abstract="false" static="false" visibility="public" namespace="global" line="294" package="Media Library Assistant">
|
6549 |
<name>update</name>
|
6550 |
<full_name>update</full_name>
|
6551 |
+
<docblock line="284">
|
6552 |
<description><![CDATA[Sanitize widget definition as it is saved to the database]]></description>
|
6553 |
<long-description><![CDATA[]]></long-description>
|
6554 |
+
<tag line="284" name="since" description="1.60"/>
|
6555 |
+
<tag line="284" name="param" description="Current definition values, to be saved in the database" type="array" variable="$new_instance">
|
6556 |
<type by_reference="false">array</type>
|
6557 |
</tag>
|
6558 |
+
<tag line="284" name="param" description="Previous definition values, from the database" type="array" variable="$old_instance">
|
6559 |
<type by_reference="false">array</type>
|
6560 |
</tag>
|
6561 |
+
<tag line="284" name="return" description="Updated definition values to be saved in the database" type="array">
|
6562 |
<type by_reference="false">array</type>
|
6563 |
</tag>
|
6564 |
</docblock>
|
6565 |
+
<argument line="294">
|
6566 |
<name>$new_instance</name>
|
6567 |
<default><![CDATA[]]></default>
|
6568 |
<type/>
|
6569 |
</argument>
|
6570 |
+
<argument line="294">
|
6571 |
<name>$old_instance</name>
|
6572 |
<default><![CDATA[]]></default>
|
6573 |
<type/>
|
6574 |
</argument>
|
6575 |
</method>
|
6576 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="316" package="Media Library Assistant">
|
6577 |
<name>mla_text_widget_widgets_init_action</name>
|
6578 |
<full_name>mla_text_widget_widgets_init_action</full_name>
|
6579 |
+
<docblock line="307">
|
6580 |
<description><![CDATA[Register the widget with WordPress]]></description>
|
6581 |
<long-description><![CDATA[<p>Defined as public because it's an action.</p>]]></long-description>
|
6582 |
+
<tag line="307" name="since" description="1.60"/>
|
6583 |
+
<tag line="307" name="return" description="" type="void">
|
6584 |
<type by_reference="false">void</type>
|
6585 |
</tag>
|
6586 |
</docblock>
|
6587 |
</method>
|
6588 |
</class>
|
6589 |
</file>
|
6590 |
+
<file path="includes\class-mla-options.php" hash="2f76b8126d345d298e5023d91426f827" package="Media Library Assistant">
|
6591 |
<docblock line="2">
|
6592 |
<description><![CDATA[Manages the plugin option settings]]></description>
|
6593 |
<long-description><![CDATA[]]></long-description>
|
6594 |
<tag line="2" name="package" description="Media Library Assistant"/>
|
6595 |
<tag line="2" name="since" description="1.00"/>
|
6596 |
</docblock>
|
6597 |
+
<include line="1827" type="Require" package="Media Library Assistant">
|
6598 |
<name/>
|
6599 |
</include>
|
6600 |
<class final="false" abstract="false" namespace="global" line="18" package="Media Library Assistant">
|
6771 |
</docblock>
|
6772 |
</constant>
|
6773 |
<constant namespace="global" line="112" package="Media Library Assistant">
|
6774 |
+
<name>MLA_SEARCH_MEDIA_FILTER_SHOW_CONTROLS</name>
|
6775 |
+
<full_name>MLA_SEARCH_MEDIA_FILTER_SHOW_CONTROLS</full_name>
|
6776 |
+
<value><![CDATA['search_media_filter_show_controls']]></value>
|
6777 |
+
<docblock line="109">
|
6778 |
+
<description><![CDATA[Provides a unique name for the display Search Media controls option]]></description>
|
6779 |
+
<long-description><![CDATA[]]></long-description>
|
6780 |
+
</docblock>
|
6781 |
+
</constant>
|
6782 |
+
<constant namespace="global" line="117" package="Media Library Assistant">
|
6783 |
+
<name>MLA_SEARCH_MEDIA_FILTER_DEFAULTS</name>
|
6784 |
+
<full_name>MLA_SEARCH_MEDIA_FILTER_DEFAULTS</full_name>
|
6785 |
+
<value><![CDATA['search_media_filter_defaults']]></value>
|
6786 |
+
<docblock line="114">
|
6787 |
+
<description><![CDATA[Provides a unique name for the display Search Media controls option]]></description>
|
6788 |
+
<long-description><![CDATA[]]></long-description>
|
6789 |
+
</docblock>
|
6790 |
+
</constant>
|
6791 |
+
<constant namespace="global" line="122" package="Media Library Assistant">
|
6792 |
<name>MLA_EXIF_SIZE</name>
|
6793 |
<full_name>MLA_EXIF_SIZE</full_name>
|
6794 |
<value><![CDATA[30]]></value>
|
6795 |
+
<docblock line="119">
|
6796 |
<description><![CDATA[Provides a "size" attribute value for the EXIF/Template Value field]]></description>
|
6797 |
<long-description><![CDATA[]]></long-description>
|
6798 |
</docblock>
|
6799 |
</constant>
|
6800 |
+
<constant namespace="global" line="127" package="Media Library Assistant">
|
6801 |
<name>MLA_NEW_CUSTOM_RULE</name>
|
6802 |
<full_name>MLA_NEW_CUSTOM_RULE</full_name>
|
6803 |
<value><![CDATA['__NEW RULE__']]></value>
|
6804 |
+
<docblock line="124">
|
6805 |
<description><![CDATA[Provides a unique name for the Custom Field "new rule" key]]></description>
|
6806 |
<long-description><![CDATA[]]></long-description>
|
6807 |
</docblock>
|
6808 |
</constant>
|
6809 |
+
<constant namespace="global" line="132" package="Media Library Assistant">
|
6810 |
<name>MLA_NEW_CUSTOM_FIELD</name>
|
6811 |
<full_name>MLA_NEW_CUSTOM_FIELD</full_name>
|
6812 |
<value><![CDATA['__NEW FIELD__']]></value>
|
6813 |
+
<docblock line="129">
|
6814 |
<description><![CDATA[Provides a unique name for the Custom Field "new field" key]]></description>
|
6815 |
<long-description><![CDATA[]]></long-description>
|
6816 |
</docblock>
|
6817 |
</constant>
|
6818 |
+
<constant namespace="global" line="137" package="Media Library Assistant">
|
6819 |
<name>MLA_EDIT_MEDIA_SEARCH_TAXONOMY</name>
|
6820 |
<full_name>MLA_EDIT_MEDIA_SEARCH_TAXONOMY</full_name>
|
6821 |
<value><![CDATA['edit_media_search_taxonomy']]></value>
|
6822 |
+
<docblock line="134">
|
6823 |
<description><![CDATA[Provides a unique name for the "searchable taxonomies" option]]></description>
|
6824 |
<long-description><![CDATA[]]></long-description>
|
6825 |
</docblock>
|
6826 |
</constant>
|
6827 |
+
<constant namespace="global" line="142" package="Media Library Assistant">
|
6828 |
<name>MLA_EDIT_MEDIA_META_BOXES</name>
|
6829 |
<full_name>MLA_EDIT_MEDIA_META_BOXES</full_name>
|
6830 |
<value><![CDATA['edit_media_meta_boxes']]></value>
|
6831 |
+
<docblock line="139">
|
6832 |
<description><![CDATA[Provides a unique name for the Edit Media additional meta boxes option]]></description>
|
6833 |
<long-description><![CDATA[]]></long-description>
|
6834 |
</docblock>
|
6835 |
</constant>
|
6836 |
+
<constant namespace="global" line="148" package="Media Library Assistant">
|
6837 |
<name>MLA_MEDIA_MODAL_TOOLBAR</name>
|
6838 |
<full_name>MLA_MEDIA_MODAL_TOOLBAR</full_name>
|
6839 |
<value><![CDATA['media_modal_toolbar']]></value>
|
6840 |
+
<docblock line="144">
|
6841 |
<description><![CDATA[Provides a unique name for the Media Manager toolbar option, which
|
6842 |
also controls the ATTACHMENT DETAILS enhancements]]></description>
|
6843 |
<long-description><![CDATA[]]></long-description>
|
6844 |
</docblock>
|
6845 |
</constant>
|
6846 |
+
<constant namespace="global" line="153" package="Media Library Assistant">
|
6847 |
<name>MLA_MEDIA_MODAL_MIMETYPES</name>
|
6848 |
<full_name>MLA_MEDIA_MODAL_MIMETYPES</full_name>
|
6849 |
<value><![CDATA['media_modal_mimetypes']]></value>
|
6850 |
+
<docblock line="150">
|
6851 |
<description><![CDATA[Provides a unique name for the Media Manager toolbar MIME Types option]]></description>
|
6852 |
<long-description><![CDATA[]]></long-description>
|
6853 |
</docblock>
|
6854 |
</constant>
|
6855 |
+
<constant namespace="global" line="158" package="Media Library Assistant">
|
6856 |
<name>MLA_MEDIA_MODAL_MONTHS</name>
|
6857 |
<full_name>MLA_MEDIA_MODAL_MONTHS</full_name>
|
6858 |
<value><![CDATA['media_modal_months']]></value>
|
6859 |
+
<docblock line="155">
|
6860 |
<description><![CDATA[Provides a unique name for the Media Manager toolbar Month and Year option]]></description>
|
6861 |
<long-description><![CDATA[]]></long-description>
|
6862 |
</docblock>
|
6863 |
</constant>
|
6864 |
+
<constant namespace="global" line="163" package="Media Library Assistant">
|
6865 |
<name>MLA_MEDIA_MODAL_TERMS</name>
|
6866 |
<full_name>MLA_MEDIA_MODAL_TERMS</full_name>
|
6867 |
<value><![CDATA['media_modal_terms']]></value>
|
6868 |
+
<docblock line="160">
|
6869 |
<description><![CDATA[Provides a unique name for the Media Manager toolbar Taxonomy Terms option]]></description>
|
6870 |
<long-description><![CDATA[]]></long-description>
|
6871 |
</docblock>
|
6872 |
</constant>
|
6873 |
+
<constant namespace="global" line="168" package="Media Library Assistant">
|
6874 |
+
<name>MLA_MEDIA_MODAL_TERMS_SEARCH</name>
|
6875 |
+
<full_name>MLA_MEDIA_MODAL_TERMS_SEARCH</full_name>
|
6876 |
+
<value><![CDATA['media_modal_terms_search']]></value>
|
6877 |
+
<docblock line="165">
|
6878 |
+
<description><![CDATA[Provides a unique name for the Media Manager toolbar Taxonomy "Terms Search" option]]></description>
|
6879 |
+
<long-description><![CDATA[]]></long-description>
|
6880 |
+
</docblock>
|
6881 |
+
</constant>
|
6882 |
+
<constant namespace="global" line="173" package="Media Library Assistant">
|
6883 |
<name>MLA_MEDIA_MODAL_SEARCHBOX</name>
|
6884 |
<full_name>MLA_MEDIA_MODAL_SEARCHBOX</full_name>
|
6885 |
<value><![CDATA['media_modal_searchbox']]></value>
|
6886 |
+
<docblock line="170">
|
6887 |
<description><![CDATA[Provides a unique name for the Media Manager toolbar Search Box option]]></description>
|
6888 |
<long-description><![CDATA[]]></long-description>
|
6889 |
</docblock>
|
6890 |
</constant>
|
6891 |
+
<constant namespace="global" line="178" package="Media Library Assistant">
|
6892 |
+
<name>MLA_MEDIA_MODAL_SEARCHBOX_CONTROLS</name>
|
6893 |
+
<full_name>MLA_MEDIA_MODAL_SEARCHBOX_CONTROLS</full_name>
|
6894 |
+
<value><![CDATA['media_modal_searchbox_controls']]></value>
|
6895 |
+
<docblock line="175">
|
6896 |
+
<description><![CDATA[Provides a unique name for the Media Manager toolbar Search Box Controls option]]></description>
|
6897 |
+
<long-description><![CDATA[]]></long-description>
|
6898 |
+
</docblock>
|
6899 |
+
</constant>
|
6900 |
+
<constant namespace="global" line="184" package="Media Library Assistant">
|
6901 |
<name>MLA_MEDIA_MODAL_DETAILS_CATEGORY_METABOX</name>
|
6902 |
<full_name>MLA_MEDIA_MODAL_DETAILS_CATEGORY_METABOX</full_name>
|
6903 |
<value><![CDATA['media_modal_details_category_metabox']]></value>
|
6904 |
+
<docblock line="180">
|
6905 |
<description><![CDATA[Provides a unique name for the Media Manager Attachment Details searchable taxonomy option
|
6906 |
This option is for hierarchical taxonomies, e.g., "Att.]]></description>
|
6907 |
<long-description><![CDATA[<p>Categories".</p>]]></long-description>
|
6908 |
</docblock>
|
6909 |
</constant>
|
6910 |
+
<constant namespace="global" line="190" package="Media Library Assistant">
|
6911 |
<name>MLA_MEDIA_MODAL_DETAILS_TAG_METABOX</name>
|
6912 |
<full_name>MLA_MEDIA_MODAL_DETAILS_TAG_METABOX</full_name>
|
6913 |
<value><![CDATA['media_modal_details_tag_metabox']]></value>
|
6914 |
+
<docblock line="186">
|
6915 |
<description><![CDATA[Provides a unique name for the Media Manager Attachment Details searchable taxonomy option
|
6916 |
This option is for flat taxonomies, e.g., "Att.]]></description>
|
6917 |
<long-description><![CDATA[<p>Tags".</p>]]></long-description>
|
6918 |
</docblock>
|
6919 |
</constant>
|
6920 |
+
<constant namespace="global" line="195" package="Media Library Assistant">
|
6921 |
<name>MLA_MEDIA_MODAL_ORDERBY</name>
|
6922 |
<full_name>MLA_MEDIA_MODAL_ORDERBY</full_name>
|
6923 |
<value><![CDATA['media_modal_orderby']]></value>
|
6924 |
+
<docblock line="192">
|
6925 |
<description><![CDATA[Provides a unique name for the Media Manager orderby option]]></description>
|
6926 |
<long-description><![CDATA[]]></long-description>
|
6927 |
</docblock>
|
6928 |
</constant>
|
6929 |
+
<constant namespace="global" line="200" package="Media Library Assistant">
|
6930 |
<name>MLA_MEDIA_MODAL_ORDER</name>
|
6931 |
<full_name>MLA_MEDIA_MODAL_ORDER</full_name>
|
6932 |
<value><![CDATA['media_modal_order']]></value>
|
6933 |
+
<docblock line="197">
|
6934 |
<description><![CDATA[Provides a unique name for the Media Manager order option]]></description>
|
6935 |
<long-description><![CDATA[]]></long-description>
|
6936 |
</docblock>
|
6937 |
</constant>
|
6938 |
+
<constant namespace="global" line="205" package="Media Library Assistant">
|
6939 |
<name>MLA_POST_MIME_TYPES</name>
|
6940 |
<full_name>MLA_POST_MIME_TYPES</full_name>
|
6941 |
<value><![CDATA['post_mime_types']]></value>
|
6942 |
+
<docblock line="202">
|
6943 |
<description><![CDATA[Provides a unique name for the Post MIME Types option]]></description>
|
6944 |
<long-description><![CDATA[]]></long-description>
|
6945 |
</docblock>
|
6946 |
</constant>
|
6947 |
+
<constant namespace="global" line="210" package="Media Library Assistant">
|
6948 |
<name>MLA_ENABLE_POST_MIME_TYPES</name>
|
6949 |
<full_name>MLA_ENABLE_POST_MIME_TYPES</full_name>
|
6950 |
<value><![CDATA['enable_post_mime_types']]></value>
|
6951 |
+
<docblock line="207">
|
6952 |
<description><![CDATA[Provides a unique name for the Enable Post MIME Types option]]></description>
|
6953 |
<long-description><![CDATA[]]></long-description>
|
6954 |
</docblock>
|
6955 |
</constant>
|
6956 |
+
<constant namespace="global" line="215" package="Media Library Assistant">
|
6957 |
<name>MLA_UPLOAD_MIMES</name>
|
6958 |
<full_name>MLA_UPLOAD_MIMES</full_name>
|
6959 |
<value><![CDATA['upload_mimes']]></value>
|
6960 |
+
<docblock line="212">
|
6961 |
<description><![CDATA[Provides a unique name for the Upload MIME Types option]]></description>
|
6962 |
<long-description><![CDATA[]]></long-description>
|
6963 |
</docblock>
|
6964 |
</constant>
|
6965 |
+
<constant namespace="global" line="220" package="Media Library Assistant">
|
6966 |
<name>MLA_ENABLE_UPLOAD_MIMES</name>
|
6967 |
<full_name>MLA_ENABLE_UPLOAD_MIMES</full_name>
|
6968 |
<value><![CDATA['enable_upload_mimes']]></value>
|
6969 |
+
<docblock line="217">
|
6970 |
<description><![CDATA[Provides a unique name for the Enable Upload MIME Types option]]></description>
|
6971 |
<long-description><![CDATA[]]></long-description>
|
6972 |
</docblock>
|
6973 |
</constant>
|
6974 |
+
<constant namespace="global" line="225" package="Media Library Assistant">
|
6975 |
<name>MLA_ENABLE_MLA_ICONS</name>
|
6976 |
<full_name>MLA_ENABLE_MLA_ICONS</full_name>
|
6977 |
<value><![CDATA['enable_mla_icons']]></value>
|
6978 |
+
<docblock line="222">
|
6979 |
<description><![CDATA[Provides a unique name for the Enable MLA Icons option]]></description>
|
6980 |
<long-description><![CDATA[]]></long-description>
|
6981 |
</docblock>
|
6982 |
</constant>
|
6983 |
+
<property final="false" static="true" visibility="public" line="236" namespace="global" package="Media Library Assistant">
|
6984 |
<name>$process_featured_in</name>
|
6985 |
<default><![CDATA[true]]></default>
|
6986 |
+
<docblock line="227">
|
6987 |
<description><![CDATA[Option setting for "Featured in" reporting]]></description>
|
6988 |
<long-description><![CDATA[<p>This setting is false if the "Featured in" database access setting is "disabled", else true.</p>]]></long-description>
|
6989 |
+
<tag line="227" name="since" description="1.00"/>
|
6990 |
+
<tag line="227" name="var" description="" type="boolean">
|
6991 |
<type by_reference="false">boolean</type>
|
6992 |
</tag>
|
6993 |
</docblock>
|
6994 |
</property>
|
6995 |
+
<property final="false" static="true" visibility="public" line="247" namespace="global" package="Media Library Assistant">
|
6996 |
<name>$process_inserted_in</name>
|
6997 |
<default><![CDATA[true]]></default>
|
6998 |
+
<docblock line="238">
|
6999 |
<description><![CDATA[Option setting for "Inserted in" reporting]]></description>
|
7000 |
<long-description><![CDATA[<p>This setting is false if the "Inserted in" database access setting is "disabled", else true.</p>]]></long-description>
|
7001 |
+
<tag line="238" name="since" description="1.00"/>
|
7002 |
+
<tag line="238" name="var" description="" type="boolean">
|
7003 |
<type by_reference="false">boolean</type>
|
7004 |
</tag>
|
7005 |
</docblock>
|
7006 |
</property>
|
7007 |
+
<property final="false" static="true" visibility="public" line="258" namespace="global" package="Media Library Assistant">
|
7008 |
<name>$process_gallery_in</name>
|
7009 |
<default><![CDATA[true]]></default>
|
7010 |
+
<docblock line="249">
|
7011 |
<description><![CDATA[Option setting for "Gallery in" reporting]]></description>
|
7012 |
<long-description><![CDATA[<p>This setting is false if the "Gallery in" database access setting is "disabled", else true.</p>]]></long-description>
|
7013 |
+
<tag line="249" name="since" description="1.00"/>
|
7014 |
+
<tag line="249" name="var" description="" type="boolean">
|
7015 |
<type by_reference="false">boolean</type>
|
7016 |
</tag>
|
7017 |
</docblock>
|
7018 |
</property>
|
7019 |
+
<property final="false" static="true" visibility="public" line="269" namespace="global" package="Media Library Assistant">
|
7020 |
<name>$process_mla_gallery_in</name>
|
7021 |
<default><![CDATA[true]]></default>
|
7022 |
+
<docblock line="260">
|
7023 |
<description><![CDATA[Option setting for "MLA Gallery in" reporting]]></description>
|
7024 |
<long-description><![CDATA[<p>This setting is false if the "MLA Gallery in" database access setting is "disabled", else true.</p>]]></long-description>
|
7025 |
+
<tag line="260" name="since" description="1.00"/>
|
7026 |
+
<tag line="260" name="var" description="" type="boolean">
|
7027 |
<type by_reference="false">boolean</type>
|
7028 |
</tag>
|
7029 |
</docblock>
|
7030 |
</property>
|
7031 |
+
<property final="false" static="true" visibility="public" line="301" namespace="global" package="Media Library Assistant">
|
7032 |
<name>$mla_option_definitions</name>
|
7033 |
<default><![CDATA[array()]]></default>
|
7034 |
+
<docblock line="271">
|
7035 |
<description><![CDATA[$mla_option_definitions defines the database options and admin page areas for setting/updating them]]></description>
|
7036 |
<long-description><![CDATA[<p>The array must be populated at runtime in MLAOptions::mla_localize_option_definitions_array(),
|
7037 |
because Localization calls cannot be placed in the "public static" array definition itself.</p>
|
7060 |
$message = ['reset']( 'reset', $key, $value, $_REQUEST );</p>]]></long-description>
|
7061 |
</docblock>
|
7062 |
</property>
|
7063 |
+
<property final="false" static="true" visibility="private" line="348" namespace="global" package="Media Library Assistant">
|
7064 |
<name>$mla_option_templates</name>
|
7065 |
<default><![CDATA[null]]></default>
|
7066 |
+
<docblock line="341">
|
7067 |
<description><![CDATA[Style and Markup templates]]></description>
|
7068 |
<long-description><![CDATA[]]></long-description>
|
7069 |
+
<tag line="341" name="since" description="0.80"/>
|
7070 |
+
<tag line="341" name="var" description="" type="array">
|
7071 |
<type by_reference="false">array</type>
|
7072 |
</tag>
|
7073 |
</docblock>
|
7074 |
</property>
|
7075 |
+
<property final="false" static="true" visibility="private" line="1846" namespace="global" package="Media Library Assistant">
|
7076 |
<name>$add_attachment_id</name>
|
7077 |
<default><![CDATA[0]]></default>
|
7078 |
+
<docblock line="1836">
|
7079 |
<description><![CDATA[Attachment ID passed from mla_add_attachment_action to mla_update_attachment_metadata_filter]]></description>
|
7080 |
<long-description><![CDATA[<p>Ensures that IPTC/EXIF and Custom Field mapping is only performed when the attachment is first
|
7081 |
added to the Media Library.</p>]]></long-description>
|
7082 |
+
<tag line="1836" name="since" description="1.70"/>
|
7083 |
+
<tag line="1836" name="var" description="" type="integer">
|
7084 |
<type by_reference="false">integer</type>
|
7085 |
</tag>
|
7086 |
</docblock>
|
7087 |
</property>
|
7088 |
+
<property final="false" static="true" visibility="private" line="2840" namespace="global" package="Media Library Assistant">
|
7089 |
<name>$custom_field_data_sources</name>
|
7090 |
+
<default><![CDATA[array('post_id', 'post_author', 'post_date', 'post_date_gmt', 'post_content', 'post_title', 'post_excerpt', 'post_status', 'comment_status', 'ping_status', 'post_name', 'post_modified', 'post_modified_gmt', 'post_content_filtered', 'parent', 'post_parent', 'guid', 'menu_order', 'mime_type', 'post_mime_type', 'comment_count', 'absolute_path', 'absolute_file_name', 'base_file', 'path', 'file_name', 'name_only', 'extension', 'file_size', 'upload_date', 'dimensions', 'pixels', 'width', 'height', 'orientation', 'hwstring_small', 'size_keys', 'size_names', 'size_bytes', 'size_pixels', 'size_dimensions', 'size_name[size]', 'size_bytes[size]', 'size_pixels[size]', 'size_dimensions[size]', 'parent_date', 'parent_type', 'parent_title', 'parent_issues', 'reference_issues', 'featured_in', 'featured_in_title', 'inserted_in', 'inserted_in_title', 'gallery_in', 'gallery_in_title', 'mla_gallery_in', 'mla_gallery_in_title', 'aperture', 'credit', 'camera', 'caption', 'created_timestamp', 'copyright', 'focal_length', 'iso', 'shutter_speed', 'title')]]></default>
|
7091 |
+
<docblock line="2833">
|
7092 |
<description><![CDATA[Array of Data Source names for custom field mapping]]></description>
|
7093 |
<long-description><![CDATA[]]></long-description>
|
7094 |
+
<tag line="2833" name="since" description="1.10"/>
|
7095 |
+
<tag line="2833" name="var" description="" type="array">
|
7096 |
<type by_reference="false">array</type>
|
7097 |
</tag>
|
7098 |
</docblock>
|
7099 |
</property>
|
7100 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="310" package="Media Library Assistant">
|
7101 |
<name>initialize</name>
|
7102 |
<full_name>initialize</full_name>
|
7103 |
+
<docblock line="303">
|
7104 |
<description><![CDATA[Initialization function, similar to __construct()]]></description>
|
7105 |
<long-description><![CDATA[]]></long-description>
|
7106 |
+
<tag line="303" name="since" description="1.00"/>
|
7107 |
+
<tag line="303" name="return" description="" type="void">
|
7108 |
<type by_reference="false">void</type>
|
7109 |
</tag>
|
7110 |
</docblock>
|
7111 |
</method>
|
7112 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="357" package="Media Library Assistant">
|
7113 |
<name>_load_option_templates</name>
|
7114 |
<full_name>_load_option_templates</full_name>
|
7115 |
+
<docblock line="350">
|
7116 |
<description><![CDATA[Load style and markup templates to $mla_templates]]></description>
|
7117 |
<long-description><![CDATA[]]></long-description>
|
7118 |
+
<tag line="350" name="since" description="0.80"/>
|
7119 |
+
<tag line="350" name="return" description="" type="void">
|
7120 |
<type by_reference="false">void</type>
|
7121 |
</tag>
|
7122 |
</docblock>
|
7123 |
</method>
|
7124 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="404" package="Media Library Assistant">
|
7125 |
<name>mla_localize_option_definitions_array</name>
|
7126 |
<full_name>mla_localize_option_definitions_array</full_name>
|
7127 |
+
<docblock line="394">
|
7128 |
<description><![CDATA[Localize $mla_option_definitions array]]></description>
|
7129 |
<long-description><![CDATA[<p>Localization must be done at runtime, and these calls cannot be placed
|
7130 |
in the "public static" array definition itself.</p>]]></long-description>
|
7131 |
+
<tag line="394" name="since" description="1.70"/>
|
7132 |
+
<tag line="394" name="return" description="" type="void">
|
7133 |
<type by_reference="false">void</type>
|
7134 |
</tag>
|
7135 |
</docblock>
|
7136 |
</method>
|
7137 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1173" package="Media Library Assistant">
|
7138 |
<name>mla_fetch_gallery_template</name>
|
7139 |
<full_name>mla_fetch_gallery_template</full_name>
|
7140 |
+
<docblock line="1163">
|
7141 |
<description><![CDATA[Fetch style or markup template from $mla_templates]]></description>
|
7142 |
<long-description><![CDATA[]]></long-description>
|
7143 |
+
<tag line="1163" name="since" description="0.80"/>
|
7144 |
+
<tag line="1163" name="param" description="Template name" type="string" variable="$key">
|
7145 |
<type by_reference="false">string</type>
|
7146 |
</tag>
|
7147 |
+
<tag line="1163" name="param" description="Template type; 'style' (default) or 'markup'" type="string" variable="$type">
|
7148 |
<type by_reference="false">string</type>
|
7149 |
</tag>
|
7150 |
+
<tag line="1163" name="return" description="requested template, false if not found or null if no templates" type="string|boolean|null">
|
7151 |
<type by_reference="false">string</type>
|
7152 |
<type by_reference="false">boolean</type>
|
7153 |
<type by_reference="false">null</type>
|
7154 |
</tag>
|
7155 |
</docblock>
|
7156 |
+
<argument line="1173">
|
7157 |
<name>$key</name>
|
7158 |
<default><![CDATA[]]></default>
|
7159 |
<type/>
|
7160 |
</argument>
|
7161 |
+
<argument line="1173">
|
7162 |
<name>$type</name>
|
7163 |
<default><![CDATA['style']]></default>
|
7164 |
<type/>
|
7165 |
</argument>
|
7166 |
</method>
|
7167 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1195" package="Media Library Assistant">
|
7168 |
<name>mla_get_style_templates</name>
|
7169 |
<full_name>mla_get_style_templates</full_name>
|
7170 |
+
<docblock line="1188">
|
7171 |
<description><![CDATA[Get ALL style templates from $mla_templates, including 'default']]></description>
|
7172 |
<long-description><![CDATA[]]></long-description>
|
7173 |
+
<tag line="1188" name="since" description="0.80"/>
|
7174 |
+
<tag line="1188" name="return" description="name => value for all style templates or null if no templates" type="array|null">
|
7175 |
<type by_reference="false">array</type>
|
7176 |
<type by_reference="false">null</type>
|
7177 |
</tag>
|
7178 |
</docblock>
|
7179 |
</method>
|
7180 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1221" package="Media Library Assistant">
|
7181 |
<name>mla_put_style_templates</name>
|
7182 |
<full_name>mla_put_style_templates</full_name>
|
7183 |
+
<docblock line="1213">
|
7184 |
<description><![CDATA[Put user-defined style templates to $mla_templates and database]]></description>
|
7185 |
<long-description><![CDATA[]]></long-description>
|
7186 |
+
<tag line="1213" name="since" description="0.80"/>
|
7187 |
+
<tag line="1213" name="param" description="name => value for all user-defined style templates" type="array" variable="$templates">
|
7188 |
<type by_reference="false">array</type>
|
7189 |
</tag>
|
7190 |
+
<tag line="1213" name="return" description="true if success, false if failure" type="boolean">
|
7191 |
<type by_reference="false">boolean</type>
|
7192 |
</tag>
|
7193 |
</docblock>
|
7194 |
+
<argument line="1221">
|
7195 |
<name>$templates</name>
|
7196 |
<default><![CDATA[]]></default>
|
7197 |
<type/>
|
7198 |
</argument>
|
7199 |
</method>
|
7200 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1237" package="Media Library Assistant">
|
7201 |
<name>mla_get_markup_templates</name>
|
7202 |
<full_name>mla_get_markup_templates</full_name>
|
7203 |
+
<docblock line="1230">
|
7204 |
<description><![CDATA[Get ALL markup templates from $mla_templates, including 'default']]></description>
|
7205 |
<long-description><![CDATA[]]></long-description>
|
7206 |
+
<tag line="1230" name="since" description="0.80"/>
|
7207 |
+
<tag line="1230" name="return" description="name => value for all markup templates or null if no templates" type="array|null">
|
7208 |
<type by_reference="false">array</type>
|
7209 |
<type by_reference="false">null</type>
|
7210 |
</tag>
|
7211 |
</docblock>
|
7212 |
</method>
|
7213 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1292" package="Media Library Assistant">
|
7214 |
<name>mla_put_markup_templates</name>
|
7215 |
<full_name>mla_put_markup_templates</full_name>
|
7216 |
+
<docblock line="1284">
|
7217 |
<description><![CDATA[Put user-defined markup templates to $mla_templates and database]]></description>
|
7218 |
<long-description><![CDATA[]]></long-description>
|
7219 |
+
<tag line="1284" name="since" description="0.80"/>
|
7220 |
+
<tag line="1284" name="param" description="name => value for all user-defined markup templates" type="array" variable="$templates">
|
7221 |
<type by_reference="false">array</type>
|
7222 |
</tag>
|
7223 |
+
<tag line="1284" name="return" description="true if success, false if failure" type="boolean">
|
7224 |
<type by_reference="false">boolean</type>
|
7225 |
</tag>
|
7226 |
</docblock>
|
7227 |
+
<argument line="1292">
|
7228 |
<name>$templates</name>
|
7229 |
<default><![CDATA[]]></default>
|
7230 |
<type/>
|
7231 |
</argument>
|
7232 |
</method>
|
7233 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1312" package="Media Library Assistant">
|
7234 |
<name>mla_get_option</name>
|
7235 |
<full_name>mla_get_option</full_name>
|
7236 |
+
<docblock line="1301">
|
7237 |
<description><![CDATA[Return the stored value or default value of a defined MLA option]]></description>
|
7238 |
<long-description><![CDATA[]]></long-description>
|
7239 |
+
<tag line="1301" name="since" description="0.1"/>
|
7240 |
+
<tag line="1301" name="param" description="Name of the desired option" type="string" variable="$option">
|
7241 |
<type by_reference="false">string</type>
|
7242 |
</tag>
|
7243 |
+
<tag line="1301" name="param" description="True to ignore current setting and return default values" type="boolean" variable="$get_default">
|
7244 |
<type by_reference="false">boolean</type>
|
7245 |
</tag>
|
7246 |
+
<tag line="1301" name="param" description="True to ignore default values and return only stored values" type="boolean" variable="$get_stored">
|
7247 |
<type by_reference="false">boolean</type>
|
7248 |
</tag>
|
7249 |
+
<tag line="1301" name="return" description="Value(s) for the option or false if the option is not a defined MLA option" type="mixed">
|
7250 |
<type by_reference="false">mixed</type>
|
7251 |
</tag>
|
7252 |
</docblock>
|
7253 |
+
<argument line="1312">
|
7254 |
<name>$option</name>
|
7255 |
<default><![CDATA[]]></default>
|
7256 |
<type/>
|
7257 |
</argument>
|
7258 |
+
<argument line="1312">
|
7259 |
<name>$get_default</name>
|
7260 |
<default><![CDATA[false]]></default>
|
7261 |
<type/>
|
7262 |
</argument>
|
7263 |
+
<argument line="1312">
|
7264 |
<name>$get_stored</name>
|
7265 |
<default><![CDATA[false]]></default>
|
7266 |
<type/>
|
7267 |
</argument>
|
7268 |
</method>
|
7269 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1342" package="Media Library Assistant">
|
7270 |
<name>mla_update_option</name>
|
7271 |
<full_name>mla_update_option</full_name>
|
7272 |
+
<docblock line="1332">
|
7273 |
<description><![CDATA[Add or update the stored value of a defined MLA option]]></description>
|
7274 |
<long-description><![CDATA[]]></long-description>
|
7275 |
+
<tag line="1332" name="since" description="0.1"/>
|
7276 |
+
<tag line="1332" name="param" description="Name of the desired option" type="string" variable="$option">
|
7277 |
<type by_reference="false">string</type>
|
7278 |
</tag>
|
7279 |
+
<tag line="1332" name="param" description="New value for the desired option" type="mixed" variable="$newvalue">
|
7280 |
<type by_reference="false">mixed</type>
|
7281 |
</tag>
|
7282 |
+
<tag line="1332" name="return" description="True if the value was changed or false if the update failed" type="boolean">
|
7283 |
<type by_reference="false">boolean</type>
|
7284 |
</tag>
|
7285 |
</docblock>
|
7286 |
+
<argument line="1342">
|
7287 |
<name>$option</name>
|
7288 |
<default><![CDATA[]]></default>
|
7289 |
<type/>
|
7290 |
</argument>
|
7291 |
+
<argument line="1342">
|
7292 |
<name>$newvalue</name>
|
7293 |
<default><![CDATA[]]></default>
|
7294 |
<type/>
|
7295 |
</argument>
|
7296 |
</method>
|
7297 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1359" package="Media Library Assistant">
|
7298 |
<name>mla_delete_option</name>
|
7299 |
<full_name>mla_delete_option</full_name>
|
7300 |
+
<docblock line="1350">
|
7301 |
<description><![CDATA[Delete the stored value of a defined MLA option]]></description>
|
7302 |
<long-description><![CDATA[]]></long-description>
|
7303 |
+
<tag line="1350" name="since" description="0.1"/>
|
7304 |
+
<tag line="1350" name="param" description="Name of the desired option" type="string" variable="$option">
|
7305 |
<type by_reference="false">string</type>
|
7306 |
</tag>
|
7307 |
+
<tag line="1350" name="return" description="True if the option was deleted, otherwise false" type="boolean">
|
7308 |
<type by_reference="false">boolean</type>
|
7309 |
</tag>
|
7310 |
</docblock>
|
7311 |
+
<argument line="1359">
|
7312 |
<name>$option</name>
|
7313 |
<default><![CDATA[]]></default>
|
7314 |
<type/>
|
7315 |
</argument>
|
7316 |
</method>
|
7317 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1380" package="Media Library Assistant">
|
7318 |
<name>mla_taxonomy_support</name>
|
7319 |
<full_name>mla_taxonomy_support</full_name>
|
7320 |
+
<docblock line="1367">
|
7321 |
<description><![CDATA[Determine MLA support for a taxonomy, handling the special case where the
|
7322 |
settings are being updated or reset.]]></description>
|
7323 |
<long-description><![CDATA[]]></long-description>
|
7324 |
+
<tag line="1367" name="since" description="0.30"/>
|
7325 |
+
<tag line="1367" name="param" description="Taxonomy name, e.g., attachment_category" type="string" variable="$tax_name">
|
7326 |
<type by_reference="false">string</type>
|
7327 |
</tag>
|
7328 |
+
<tag line="1367" name="param" description="Optional. 'support' (default), 'quick-edit' or 'filter'" type="string" variable="$support_type">
|
7329 |
<type by_reference="false">string</type>
|
7330 |
</tag>
|
7331 |
+
<tag line="1367" 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">
|
7332 |
<type by_reference="false">boolean</type>
|
7333 |
<type by_reference="false">string</type>
|
7334 |
</tag>
|
7335 |
</docblock>
|
7336 |
+
<argument line="1380">
|
7337 |
<name>$tax_name</name>
|
7338 |
<default><![CDATA[]]></default>
|
7339 |
<type/>
|
7340 |
</argument>
|
7341 |
+
<argument line="1380">
|
7342 |
+
<name>$support_type</name>
|
7343 |
+
<default><![CDATA['support']]></default>
|
7344 |
+
<type/>
|
7345 |
+
</argument>
|
7346 |
+
</method>
|
7347 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1448" package="Media Library Assistant">
|
7348 |
+
<name>mla_supported_taxonomies</name>
|
7349 |
+
<full_name>mla_supported_taxonomies</full_name>
|
7350 |
+
<docblock line="1439">
|
7351 |
+
<description><![CDATA[Returns an array of taxonomy names assigned to $support_type]]></description>
|
7352 |
+
<long-description><![CDATA[]]></long-description>
|
7353 |
+
<tag line="1439" name="since" description="1.90"/>
|
7354 |
+
<tag line="1439" name="param" description="Optional. 'support' (default), 'quick-edit', 'flat-checklist', 'term-search' or 'filter'" type="string" variable="$support_type">
|
7355 |
+
<type by_reference="false">string</type>
|
7356 |
+
</tag>
|
7357 |
+
<tag line="1439" name="return" description="taxonomies assigned to $support_type; can be empty." type="array">
|
7358 |
+
<type by_reference="false">array</type>
|
7359 |
+
</tag>
|
7360 |
+
</docblock>
|
7361 |
+
<argument line="1448">
|
7362 |
<name>$support_type</name>
|
7363 |
<default><![CDATA['support']]></default>
|
7364 |
<type/>
|
7365 |
</argument>
|
7366 |
</method>
|
7367 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1509" package="Media Library Assistant">
|
7368 |
<name>mla_attachment_display_settings_option_handler</name>
|
7369 |
<full_name>mla_attachment_display_settings_option_handler</full_name>
|
7370 |
+
<docblock line="1496">
|
7371 |
<description><![CDATA[Render and manage Attachment Display Settings options; alignment, link type and size]]></description>
|
7372 |
<long-description><![CDATA[]]></long-description>
|
7373 |
+
<tag line="1496" name="since" description="1.71"/>
|
7374 |
+
<tag line="1496" name="uses" description="\global\MLASettings::$page_template_array" refers="\global\MLASettings::$page_template_array"/>
|
7375 |
+
<tag line="1496" name="param" description="'render', 'update', 'delete', or 'reset'" type="string" variable="$action">
|
7376 |
<type by_reference="false">string</type>
|
7377 |
</tag>
|
7378 |
+
<tag line="1496" name="param" description="option name, e.g., 'image_default_align'" type="string" variable="$key">
|
7379 |
<type by_reference="false">string</type>
|
7380 |
</tag>
|
7381 |
+
<tag line="1496" name="param" description="option parameters" type="array" variable="$value">
|
7382 |
<type by_reference="false">array</type>
|
7383 |
</tag>
|
7384 |
+
<tag line="1496" name="param" description="Optional. null (default) for 'render' else option data, e.g., $_REQUEST" type="array" variable="$args">
|
7385 |
<type by_reference="false">array</type>
|
7386 |
</tag>
|
7387 |
+
<tag line="1496" name="return" description="HTML table row markup for 'render' else message(s) reflecting the results of the operation." type="string">
|
7388 |
<type by_reference="false">string</type>
|
7389 |
</tag>
|
7390 |
</docblock>
|
7391 |
+
<argument line="1509">
|
7392 |
<name>$action</name>
|
7393 |
<default><![CDATA[]]></default>
|
7394 |
<type/>
|
7395 |
</argument>
|
7396 |
+
<argument line="1509">
|
7397 |
<name>$key</name>
|
7398 |
<default><![CDATA[]]></default>
|
7399 |
<type/>
|
7400 |
</argument>
|
7401 |
+
<argument line="1509">
|
7402 |
<name>$value</name>
|
7403 |
<default><![CDATA[]]></default>
|
7404 |
<type/>
|
7405 |
</argument>
|
7406 |
+
<argument line="1509">
|
7407 |
<name>$args</name>
|
7408 |
<default><![CDATA[null]]></default>
|
7409 |
<type/>
|
7410 |
</argument>
|
7411 |
</method>
|
7412 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1573" package="Media Library Assistant">
|
7413 |
<name>mla_taxonomy_option_handler</name>
|
7414 |
<full_name>mla_taxonomy_option_handler</full_name>
|
7415 |
+
<docblock line="1560">
|
7416 |
<description><![CDATA[Render and manage taxonomy support options, e.g., Categories and Post Tags]]></description>
|
7417 |
<long-description><![CDATA[]]></long-description>
|
7418 |
+
<tag line="1560" name="since" description="0.30"/>
|
7419 |
+
<tag line="1560" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
|
7420 |
+
<tag line="1560" name="param" description="'render', 'update', 'delete', or 'reset'" type="string" variable="$action">
|
7421 |
+
<type by_reference="false">string</type>
|
7422 |
+
</tag>
|
7423 |
+
<tag line="1560" name="param" description="option name, e.g., 'tax_support', or 'tax_flat_checklist'" type="string" variable="$key">
|
7424 |
+
<type by_reference="false">string</type>
|
7425 |
+
</tag>
|
7426 |
+
<tag line="1560" name="param" description="option parameters" type="array" variable="$value">
|
7427 |
+
<type by_reference="false">array</type>
|
7428 |
+
</tag>
|
7429 |
+
<tag line="1560" name="param" description="Optional. null (default) for 'render' else option data, e.g., $_REQUEST" type="array" variable="$args">
|
7430 |
+
<type by_reference="false">array</type>
|
7431 |
+
</tag>
|
7432 |
+
<tag line="1560" name="return" description="HTML table row markup for 'render' else message(s) reflecting the results of the operation." type="string">
|
7433 |
+
<type by_reference="false">string</type>
|
7434 |
+
</tag>
|
7435 |
+
</docblock>
|
7436 |
+
<argument line="1573">
|
7437 |
+
<name>$action</name>
|
7438 |
+
<default><![CDATA[]]></default>
|
7439 |
+
<type/>
|
7440 |
+
</argument>
|
7441 |
+
<argument line="1573">
|
7442 |
+
<name>$key</name>
|
7443 |
+
<default><![CDATA[]]></default>
|
7444 |
+
<type/>
|
7445 |
+
</argument>
|
7446 |
+
<argument line="1573">
|
7447 |
+
<name>$value</name>
|
7448 |
+
<default><![CDATA[]]></default>
|
7449 |
+
<type/>
|
7450 |
+
</argument>
|
7451 |
+
<argument line="1573">
|
7452 |
+
<name>$args</name>
|
7453 |
+
<default><![CDATA[null]]></default>
|
7454 |
+
<type/>
|
7455 |
+
</argument>
|
7456 |
+
</method>
|
7457 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1737" package="Media Library Assistant">
|
7458 |
+
<name>mla_search_option_handler</name>
|
7459 |
+
<full_name>mla_search_option_handler</full_name>
|
7460 |
+
<docblock line="1724">
|
7461 |
+
<description><![CDATA[Render and manage Search box options, e.g., connector and search fields]]></description>
|
7462 |
+
<long-description><![CDATA[]]></long-description>
|
7463 |
+
<tag line="1724" name="since" description="1.90"/>
|
7464 |
+
<tag line="1724" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
|
7465 |
+
<tag line="1724" name="param" description="'render', 'update', 'delete', or 'reset'" type="string" variable="$action">
|
7466 |
<type by_reference="false">string</type>
|
7467 |
</tag>
|
7468 |
+
<tag line="1724" name="param" description="option name; 'search_connector' or 'search_fields'" type="string" variable="$key">
|
7469 |
<type by_reference="false">string</type>
|
7470 |
</tag>
|
7471 |
+
<tag line="1724" name="param" description="option parameters" type="array" variable="$value">
|
7472 |
<type by_reference="false">array</type>
|
7473 |
</tag>
|
7474 |
+
<tag line="1724" name="param" description="Optional. null (default) for 'render' else option data, e.g., $_REQUEST" type="array" variable="$args">
|
7475 |
<type by_reference="false">array</type>
|
7476 |
</tag>
|
7477 |
+
<tag line="1724" name="return" description="HTML table row markup for 'render' else message(s) reflecting the results of the operation." type="string">
|
7478 |
<type by_reference="false">string</type>
|
7479 |
</tag>
|
7480 |
</docblock>
|
7481 |
+
<argument line="1737">
|
7482 |
<name>$action</name>
|
7483 |
<default><![CDATA[]]></default>
|
7484 |
<type/>
|
7485 |
</argument>
|
7486 |
+
<argument line="1737">
|
7487 |
<name>$key</name>
|
7488 |
<default><![CDATA[]]></default>
|
7489 |
<type/>
|
7490 |
</argument>
|
7491 |
+
<argument line="1737">
|
7492 |
<name>$value</name>
|
7493 |
<default><![CDATA[]]></default>
|
7494 |
<type/>
|
7495 |
</argument>
|
7496 |
+
<argument line="1737">
|
7497 |
<name>$args</name>
|
7498 |
<default><![CDATA[null]]></default>
|
7499 |
<type/>
|
7500 |
</argument>
|
7501 |
</method>
|
7502 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1808" package="Media Library Assistant">
|
7503 |
<name>mla_wp_handle_upload_prefilter_filter</name>
|
7504 |
<full_name>mla_wp_handle_upload_prefilter_filter</full_name>
|
7505 |
+
<docblock line="1799">
|
7506 |
<description><![CDATA[Examine or alter the filename before the file is made permanent]]></description>
|
7507 |
<long-description><![CDATA[]]></long-description>
|
7508 |
+
<tag line="1799" name="since" description="1.70"/>
|
7509 |
+
<tag line="1799" name="param" description="file parameters ( 'name' )" type="array" variable="$file">
|
7510 |
<type by_reference="false">array</type>
|
7511 |
</tag>
|
7512 |
+
<tag line="1799" name="return" description="updated file parameters" type="array">
|
7513 |
<type by_reference="false">array</type>
|
7514 |
</tag>
|
7515 |
</docblock>
|
7516 |
+
<argument line="1808">
|
7517 |
<name>$file</name>
|
7518 |
<default><![CDATA[]]></default>
|
7519 |
<type/>
|
7520 |
</argument>
|
7521 |
</method>
|
7522 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1825" package="Media Library Assistant">
|
7523 |
<name>mla_wp_handle_upload_filter</name>
|
7524 |
<full_name>mla_wp_handle_upload_filter</full_name>
|
7525 |
+
<docblock line="1816">
|
7526 |
<description><![CDATA[Called once for each file uploaded]]></description>
|
7527 |
<long-description><![CDATA[]]></long-description>
|
7528 |
+
<tag line="1816" name="since" description="1.70"/>
|
7529 |
+
<tag line="1816" name="param" description="file parameters ( 'name' )" type="array" variable="$file">
|
7530 |
<type by_reference="false">array</type>
|
7531 |
</tag>
|
7532 |
+
<tag line="1816" name="return" description="updated file parameters" type="array">
|
7533 |
<type by_reference="false">array</type>
|
7534 |
</tag>
|
7535 |
</docblock>
|
7536 |
+
<argument line="1825">
|
7537 |
<name>$file</name>
|
7538 |
<default><![CDATA[]]></default>
|
7539 |
<type/>
|
7540 |
</argument>
|
7541 |
</method>
|
7542 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1859" package="Media Library Assistant">
|
7543 |
<name>mla_add_attachment_action</name>
|
7544 |
<full_name>mla_add_attachment_action</full_name>
|
7545 |
+
<docblock line="1848">
|
7546 |
<description><![CDATA[Set $add_attachment_id to just-inserted attachment]]></description>
|
7547 |
<long-description><![CDATA[<p>All of the actual processing is done later, in mla_update_attachment_metadata_filter.</p>]]></long-description>
|
7548 |
+
<tag line="1848" name="since" description="1.00"/>
|
7549 |
+
<tag line="1848" name="param" description="ID of just-inserted attachment" type="integer" variable="$post_ID">
|
7550 |
<type by_reference="false">integer</type>
|
7551 |
</tag>
|
7552 |
+
<tag line="1848" name="return" description="" type="void">
|
7553 |
<type by_reference="false">void</type>
|
7554 |
</tag>
|
7555 |
</docblock>
|
7556 |
+
<argument line="1859">
|
7557 |
<name>$post_ID</name>
|
7558 |
<default><![CDATA[]]></default>
|
7559 |
<type/>
|
7560 |
</argument>
|
7561 |
</method>
|
7562 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1874" package="Media Library Assistant">
|
7563 |
<name>_update_attachment_metadata</name>
|
7564 |
<full_name>_update_attachment_metadata</full_name>
|
7565 |
+
<docblock line="1864">
|
7566 |
<description><![CDATA[Update _wp_attachment_metadata for just-inserted attachment]]></description>
|
7567 |
<long-description><![CDATA[]]></long-description>
|
7568 |
+
<tag line="1864" name="since" description="1.70"/>
|
7569 |
+
<tag line="1864" name="param" description="Attachment metadata updates" type="array" variable="$updates">
|
7570 |
<type by_reference="false">array</type>
|
7571 |
</tag>
|
7572 |
+
<tag line="1864" name="param" description="Attachment metadata, by reference; updated by this function" type="array" variable="$data">
|
7573 |
<type by_reference="false">array</type>
|
7574 |
</tag>
|
7575 |
+
<tag line="1864" name="return" description="Attachment metadata updates, with "meta:" elements removed" type="array">
|
7576 |
<type by_reference="false">array</type>
|
7577 |
</tag>
|
7578 |
</docblock>
|
7579 |
+
<argument line="1874">
|
7580 |
<name>$updates</name>
|
7581 |
<default><![CDATA[]]></default>
|
7582 |
<type/>
|
7583 |
</argument>
|
7584 |
+
<argument line="1874">
|
7585 |
<name>$data</name>
|
7586 |
<default><![CDATA[]]></default>
|
7587 |
<type/>
|
7588 |
</argument>
|
7589 |
</method>
|
7590 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1910" package="Media Library Assistant">
|
7591 |
<name>mla_update_attachment_metadata_filter</name>
|
7592 |
<full_name>mla_update_attachment_metadata_filter</full_name>
|
7593 |
+
<docblock line="1897">
|
7594 |
<description><![CDATA[Perform IPTC/EXIF and Custom Field mapping on just-inserted attachment]]></description>
|
7595 |
<long-description><![CDATA[<p>This filter tests the $add_attachment_id variable set by the mla_add_attachment_action
|
7596 |
to ensure that mapping is only performed for new additions, not metadata updates.</p>]]></long-description>
|
7597 |
+
<tag line="1897" name="since" description="1.10"/>
|
7598 |
+
<tag line="1897" name="param" description="Attachment metadata for just-inserted attachment" type="array" variable="$data">
|
7599 |
<type by_reference="false">array</type>
|
7600 |
</tag>
|
7601 |
+
<tag line="1897" name="param" description="ID of just-inserted attachment" type="integer" variable="$post_id">
|
7602 |
<type by_reference="false">integer</type>
|
7603 |
</tag>
|
7604 |
+
<tag line="1897" name="return" description="" type="void">
|
7605 |
<type by_reference="false">void</type>
|
7606 |
</tag>
|
7607 |
</docblock>
|
7608 |
+
<argument line="1910">
|
7609 |
<name>$data</name>
|
7610 |
<default><![CDATA[]]></default>
|
7611 |
<type/>
|
7612 |
</argument>
|
7613 |
+
<argument line="1910">
|
7614 |
<name>$post_id</name>
|
7615 |
<default><![CDATA[]]></default>
|
7616 |
<type/>
|
7617 |
</argument>
|
7618 |
</method>
|
7619 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1976" package="Media Library Assistant">
|
7620 |
<name>mla_custom_field_option_value</name>
|
7621 |
<full_name>mla_custom_field_option_value</full_name>
|
7622 |
+
<docblock line="1967">
|
7623 |
<description><![CDATA[Fetch custom field option value given a slug]]></description>
|
7624 |
<long-description><![CDATA[]]></long-description>
|
7625 |
+
<tag line="1967" name="since" description="1.10"/>
|
7626 |
+
<tag line="1967" name="param" description="slug, e.g., 'c_file-size' for the 'File Size' field" type="string" variable="$slug">
|
7627 |
<type by_reference="false">string</type>
|
7628 |
</tag>
|
7629 |
+
<tag line="1967" name="return" description="option value, e.g., array( 'name' => 'File Size', ... )" type="array">
|
7630 |
<type by_reference="false">array</type>
|
7631 |
</tag>
|
7632 |
</docblock>
|
7633 |
+
<argument line="1976">
|
7634 |
<name>$slug</name>
|
7635 |
<default><![CDATA[]]></default>
|
7636 |
<type/>
|
7637 |
</argument>
|
7638 |
</method>
|
7639 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1997" package="Media Library Assistant">
|
7640 |
<name>mla_custom_field_support</name>
|
7641 |
<full_name>mla_custom_field_support</full_name>
|
7642 |
+
<docblock line="1988">
|
7643 |
<description><![CDATA[Evaluate file information for custom field mapping]]></description>
|
7644 |
<long-description><![CDATA[]]></long-description>
|
7645 |
+
<tag line="1988" name="since" description="1.10"/>
|
7646 |
+
<tag line="1988" name="param" description="array format; 'default_columns' (default), 'default_hidden_columns', 'default_sortable_columns', 'quick_edit' or 'bulk_edit'" type="string" variable="$support_type">
|
7647 |
<type by_reference="false">string</type>
|
7648 |
</tag>
|
7649 |
+
<tag line="1988" name="return" description="default, hidden, sortable quick_edit or bulk_edit colums in appropriate format" type="array">
|
7650 |
<type by_reference="false">array</type>
|
7651 |
</tag>
|
7652 |
</docblock>
|
7653 |
+
<argument line="1997">
|
7654 |
<name>$support_type</name>
|
7655 |
<default><![CDATA['default_columns']]></default>
|
7656 |
<type/>
|
7657 |
</argument>
|
7658 |
</method>
|
7659 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2048" package="Media Library Assistant">
|
7660 |
<name>_evaluate_file_information</name>
|
7661 |
<full_name>_evaluate_file_information</full_name>
|
7662 |
+
<docblock line="2036">
|
7663 |
<description><![CDATA[Evaluate file information for custom field mapping]]></description>
|
7664 |
<long-description><![CDATA[]]></long-description>
|
7665 |
+
<tag line="2036" name="since" description="1.10"/>
|
7666 |
+
<tag line="2036" name="param" description="absolute path the the uploads base directory" type="string" variable="$upload_dir">
|
7667 |
<type by_reference="false">string</type>
|
7668 |
</tag>
|
7669 |
+
<tag line="2036" name="param" description="_wp_attached_file meta_value array, indexed by post_id" type="array" variable="$wp_attached_files">
|
7670 |
<type by_reference="false">array</type>
|
7671 |
</tag>
|
7672 |
+
<tag line="2036" name="param" description="_wp_attachment_metadata meta_value array, indexed by post_id" type="array" variable="$wp_attachment_metadata">
|
7673 |
<type by_reference="false">array</type>
|
7674 |
</tag>
|
7675 |
+
<tag line="2036" name="param" description="post->ID of attachment" type="integer" variable="$post_id">
|
7676 |
<type by_reference="false">integer</type>
|
7677 |
</tag>
|
7678 |
+
<tag line="2036" 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">
|
7679 |
<type by_reference="false">array</type>
|
7680 |
</tag>
|
7681 |
</docblock>
|
7682 |
+
<argument line="2048">
|
7683 |
<name>$upload_dir</name>
|
7684 |
<default><![CDATA[]]></default>
|
7685 |
<type/>
|
7686 |
</argument>
|
7687 |
+
<argument line="2048">
|
7688 |
<name>$wp_attached_files</name>
|
7689 |
<default><![CDATA[]]></default>
|
7690 |
<type/>
|
7691 |
</argument>
|
7692 |
+
<argument line="2048">
|
7693 |
<name>$wp_attachment_metadata</name>
|
7694 |
<default><![CDATA[]]></default>
|
7695 |
<type/>
|
7696 |
</argument>
|
7697 |
+
<argument line="2048">
|
7698 |
<name>$post_id</name>
|
7699 |
<default><![CDATA[]]></default>
|
7700 |
<type/>
|
7701 |
</argument>
|
7702 |
</method>
|
7703 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2134" package="Media Library Assistant">
|
7704 |
<name>_evaluate_post_information</name>
|
7705 |
<full_name>_evaluate_post_information</full_name>
|
7706 |
+
<docblock line="2123">
|
7707 |
<description><![CDATA[Evaluate post information for custom field mapping]]></description>
|
7708 |
<long-description><![CDATA[]]></long-description>
|
7709 |
+
<tag line="2123" name="since" description="1.40"/>
|
7710 |
+
<tag line="2123" name="param" description="post->ID of attachment" type="integer" variable="$post_id">
|
7711 |
<type by_reference="false">integer</type>
|
7712 |
</tag>
|
7713 |
+
<tag line="2123" name="param" description="category/scope to evaluate against: custom_field_mapping or single_attachment_mapping" type="string" variable="$category">
|
7714 |
<type by_reference="false">string</type>
|
7715 |
</tag>
|
7716 |
+
<tag line="2123" name="param" description="data source name ( post_date or post_parent )" type="string" variable="$data_source">
|
7717 |
<type by_reference="false">string</type>
|
7718 |
</tag>
|
7719 |
+
<tag line="2123" name="return" description="'post_date' => (string) upload date, 'post_parent' => (integer) ID of parent or zero )" type="mixed">
|
7720 |
<type by_reference="false">mixed</type>
|
7721 |
</tag>
|
7722 |
</docblock>
|
7723 |
+
<argument line="2134">
|
7724 |
<name>$post_id</name>
|
7725 |
<default><![CDATA[]]></default>
|
7726 |
<type/>
|
7727 |
</argument>
|
7728 |
+
<argument line="2134">
|
7729 |
<name>$category</name>
|
7730 |
<default><![CDATA[]]></default>
|
7731 |
<type/>
|
7732 |
</argument>
|
7733 |
+
<argument line="2134">
|
7734 |
<name>$data_source</name>
|
7735 |
<default><![CDATA[]]></default>
|
7736 |
<type/>
|
7737 |
</argument>
|
7738 |
</method>
|
7739 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2178" package="Media Library Assistant">
|
7740 |
<name>_evaluate_array_result</name>
|
7741 |
<full_name>_evaluate_array_result</full_name>
|
7742 |
+
<docblock line="2167">
|
7743 |
<description><![CDATA[Evaluate post information for custom field mapping]]></description>
|
7744 |
<long-description><![CDATA[]]></long-description>
|
7745 |
+
<tag line="2167" name="since" description="1.40"/>
|
7746 |
+
<tag line="2167" name="param" description="field value(s)" type="array" variable="$value">
|
7747 |
<type by_reference="false">array</type>
|
7748 |
</tag>
|
7749 |
+
<tag line="2167" name="param" description="format option text|single|export|array|multi" type="string" variable="$option">
|
7750 |
<type by_reference="false">string</type>
|
7751 |
</tag>
|
7752 |
+
<tag line="2167" name="param" description="keep existing value(s) - for 'multi' option" type="boolean" variable="$keep_existing">
|
7753 |
<type by_reference="false">boolean</type>
|
7754 |
</tag>
|
7755 |
+
<tag line="2167" name="return" description="array for option = array|multi else string" type="mixed">
|
7756 |
<type by_reference="false">mixed</type>
|
7757 |
</tag>
|
7758 |
</docblock>
|
7759 |
+
<argument line="2178">
|
7760 |
<name>$value</name>
|
7761 |
<default><![CDATA[]]></default>
|
7762 |
<type/>
|
7763 |
</argument>
|
7764 |
+
<argument line="2178">
|
7765 |
<name>$option</name>
|
7766 |
<default><![CDATA[]]></default>
|
7767 |
<type/>
|
7768 |
</argument>
|
7769 |
+
<argument line="2178">
|
7770 |
<name>$keep_existing</name>
|
7771 |
<default><![CDATA[]]></default>
|
7772 |
<type/>
|
7773 |
</argument>
|
7774 |
</method>
|
7775 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2218" package="Media Library Assistant">
|
7776 |
<name>mla_get_data_source</name>
|
7777 |
<full_name>mla_get_data_source</full_name>
|
7778 |
+
<docblock line="2203">
|
7779 |
<description><![CDATA[Get IPTC/EXIF or custom field mapping data source]]></description>
|
7780 |
<long-description><![CDATA[<p>Defined as public so MLA Mapping Hooks clients can call it.
|
7781 |
Isolates clients from changes to _evaluate_data_source().</p>]]></long-description>
|
7782 |
+
<tag line="2203" name="since" description="1.70"/>
|
7783 |
+
<tag line="2203" name="param" description="post->ID of attachment" type="integer" variable="$post_id">
|
7784 |
<type by_reference="false">integer</type>
|
7785 |
</tag>
|
7786 |
+
<tag line="2203" name="param" description="category/scope to evaluate against: custom_field_mapping or single_attachment_mapping" type="string" variable="$category">
|
7787 |
<type by_reference="false">string</type>
|
7788 |
</tag>
|
7789 |
+
<tag line="2203" 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">
|
7790 |
<type by_reference="false">array</type>
|
7791 |
</tag>
|
7792 |
+
<tag line="2203" name="param" description="(optional) _wp_attachment_metadata, default NULL (use current postmeta database value)" type="array" variable="$attachment_metadata">
|
7793 |
<type by_reference="false">array</type>
|
7794 |
</tag>
|
7795 |
+
<tag line="2203" name="return" description="data source value" type="string|array">
|
7796 |
<type by_reference="false">string</type>
|
7797 |
<type by_reference="false">array</type>
|
7798 |
</tag>
|
7799 |
</docblock>
|
7800 |
+
<argument line="2218">
|
7801 |
<name>$post_id</name>
|
7802 |
<default><![CDATA[]]></default>
|
7803 |
<type/>
|
7804 |
</argument>
|
7805 |
+
<argument line="2218">
|
7806 |
<name>$category</name>
|
7807 |
<default><![CDATA[]]></default>
|
7808 |
<type/>
|
7809 |
</argument>
|
7810 |
+
<argument line="2218">
|
7811 |
<name>$data_value</name>
|
7812 |
<default><![CDATA[]]></default>
|
7813 |
<type/>
|
7814 |
</argument>
|
7815 |
+
<argument line="2218">
|
7816 |
<name>$attachment_metadata</name>
|
7817 |
<default><![CDATA[NULL]]></default>
|
7818 |
<type/>
|
7819 |
</argument>
|
7820 |
</method>
|
7821 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2243" package="Media Library Assistant">
|
7822 |
<name>mla_is_data_source</name>
|
7823 |
<full_name>mla_is_data_source</full_name>
|
7824 |
+
<docblock line="2231">
|
7825 |
<description><![CDATA[Identify custom field mapping data source]]></description>
|
7826 |
<long-description><![CDATA[<p>Determines whether a name matches any of the element-level data source dropdown options, i.e.,
|
7827 |
excludes "template:" and "meta:" values.</p>]]></long-description>
|
7828 |
+
<tag line="2231" name="since" description="1.80"/>
|
7829 |
+
<tag line="2231" name="param" description="candidate data source name" type="string" variable="$candidate_name">
|
7830 |
<type by_reference="false">string</type>
|
7831 |
</tag>
|
7832 |
+
<tag line="2231" name="return" description="true if candidate name matches a data source" type="boolean">
|
7833 |
<type by_reference="false">boolean</type>
|
7834 |
</tag>
|
7835 |
</docblock>
|
7836 |
+
<argument line="2243">
|
7837 |
<name>$candidate_name</name>
|
7838 |
<default><![CDATA[]]></default>
|
7839 |
<type/>
|
7840 |
</argument>
|
7841 |
</method>
|
7842 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2278" package="Media Library Assistant">
|
7843 |
<name>_evaluate_data_source</name>
|
7844 |
<full_name>_evaluate_data_source</full_name>
|
7845 |
+
<docblock line="2266">
|
7846 |
<description><![CDATA[Evaluate custom field mapping data source]]></description>
|
7847 |
<long-description><![CDATA[]]></long-description>
|
7848 |
+
<tag line="2266" name="since" description="1.10"/>
|
7849 |
+
<tag line="2266" name="param" description="post->ID of attachment" type="integer" variable="$post_id">
|
7850 |
<type by_reference="false">integer</type>
|
7851 |
</tag>
|
7852 |
+
<tag line="2266" name="param" description="category/scope to evaluate against: custom_field_mapping or single_attachment_mapping" type="string" variable="$category">
|
7853 |
<type by_reference="false">string</type>
|
7854 |
</tag>
|
7855 |
+
<tag line="2266" 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">
|
7856 |
<type by_reference="false">array</type>
|
7857 |
</tag>
|
7858 |
+
<tag line="2266" name="param" description="(optional) _wp_attachment_metadata, default NULL (use current postmeta database value)" type="array" variable="$attachment_metadata">
|
7859 |
<type by_reference="false">array</type>
|
7860 |
</tag>
|
7861 |
+
<tag line="2266" name="return" description="data source value" type="string|array">
|
7862 |
<type by_reference="false">string</type>
|
7863 |
<type by_reference="false">array</type>
|
7864 |
</tag>
|
7865 |
</docblock>
|
7866 |
+
<argument line="2278">
|
7867 |
<name>$post_id</name>
|
7868 |
<default><![CDATA[]]></default>
|
7869 |
<type/>
|
7870 |
</argument>
|
7871 |
+
<argument line="2278">
|
7872 |
<name>$category</name>
|
7873 |
<default><![CDATA[]]></default>
|
7874 |
<type/>
|
7875 |
</argument>
|
7876 |
+
<argument line="2278">
|
7877 |
<name>$data_value</name>
|
7878 |
<default><![CDATA[]]></default>
|
7879 |
<type/>
|
7880 |
</argument>
|
7881 |
+
<argument line="2278">
|
7882 |
<name>$attachment_metadata</name>
|
7883 |
<default><![CDATA[NULL]]></default>
|
7884 |
<type/>
|
7885 |
</argument>
|
7886 |
</method>
|
7887 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2707" package="Media Library Assistant">
|
7888 |
<name>mla_evaluate_custom_field_mapping</name>
|
7889 |
<full_name>mla_evaluate_custom_field_mapping</full_name>
|
7890 |
+
<docblock line="2695">
|
7891 |
<description><![CDATA[Evaluate custom field mapping updates for a post]]></description>
|
7892 |
<long-description><![CDATA[]]></long-description>
|
7893 |
+
<tag line="2695" name="since" description="1.10"/>
|
7894 |
+
<tag line="2695" name="param" description="post ID to be evaluated" type="integer" variable="$post_id">
|
7895 |
<type by_reference="false">integer</type>
|
7896 |
</tag>
|
7897 |
+
<tag line="2695" name="param" description="category/scope to evaluate against: custom_field_mapping or single_attachment_mapping" type="string" variable="$category">
|
7898 |
<type by_reference="false">string</type>
|
7899 |
</tag>
|
7900 |
+
<tag line="2695" name="param" description="(optional) custom_field_mapping values, default NULL (use current option value)" type="array" variable="$settings">
|
7901 |
<type by_reference="false">array</type>
|
7902 |
</tag>
|
7903 |
+
<tag line="2695" name="param" description="(optional) attachment_metadata, default NULL (use current postmeta database value)" type="array" variable="$attachment_metadata">
|
7904 |
<type by_reference="false">array</type>
|
7905 |
</tag>
|
7906 |
+
<tag line="2695" name="return" description="Updates suitable for MLAData::mla_update_single_item, if any" type="array">
|
7907 |
<type by_reference="false">array</type>
|
7908 |
</tag>
|
7909 |
</docblock>
|
7910 |
+
<argument line="2707">
|
7911 |
<name>$post_id</name>
|
7912 |
<default><![CDATA[]]></default>
|
7913 |
<type/>
|
7914 |
</argument>
|
7915 |
+
<argument line="2707">
|
7916 |
<name>$category</name>
|
7917 |
<default><![CDATA[]]></default>
|
7918 |
<type/>
|
7919 |
</argument>
|
7920 |
+
<argument line="2707">
|
7921 |
<name>$settings</name>
|
7922 |
<default><![CDATA[NULL]]></default>
|
7923 |
<type/>
|
7924 |
</argument>
|
7925 |
+
<argument line="2707">
|
7926 |
<name>$attachment_metadata</name>
|
7927 |
<default><![CDATA[NULL]]></default>
|
7928 |
<type/>
|
7929 |
</argument>
|
7930 |
</method>
|
7931 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2806" package="Media Library Assistant">
|
7932 |
<name>_compose_custom_field_option_list</name>
|
7933 |
<full_name>_compose_custom_field_option_list</full_name>
|
7934 |
+
<docblock line="2795">
|
7935 |
<description><![CDATA[Compose a Custom Field Options list with current selection]]></description>
|
7936 |
<long-description><![CDATA[]]></long-description>
|
7937 |
+
<tag line="2795" name="since" description="1.10"/>
|
7938 |
+
<tag line="2795" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
|
7939 |
+
<tag line="2795" name="param" description="current selection or 'none' (default)" type="string" variable="$selection">
|
7940 |
<type by_reference="false">string</type>
|
7941 |
</tag>
|
7942 |
+
<tag line="2795" name="param" description="optional list of terms to exclude from the list" type="array" variable="$blacklist">
|
7943 |
<type by_reference="false">array</type>
|
7944 |
</tag>
|
7945 |
+
<tag line="2795" name="return" description="HTML markup with select field options" type="string">
|
7946 |
<type by_reference="false">string</type>
|
7947 |
</tag>
|
7948 |
</docblock>
|
7949 |
+
<argument line="2806">
|
7950 |
<name>$selection</name>
|
7951 |
<default><![CDATA['none']]></default>
|
7952 |
<type/>
|
7953 |
</argument>
|
7954 |
+
<argument line="2806">
|
7955 |
<name>$blacklist</name>
|
7956 |
<default><![CDATA[array()]]></default>
|
7957 |
<type/>
|
7958 |
</argument>
|
7959 |
</method>
|
7960 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2925" package="Media Library Assistant">
|
7961 |
<name>_compose_data_source_option_list</name>
|
7962 |
<full_name>_compose_data_source_option_list</full_name>
|
7963 |
+
<docblock line="2915">
|
7964 |
<description><![CDATA[Compose a (Custom Field) Data Source Options list with current selection]]></description>
|
7965 |
<long-description><![CDATA[]]></long-description>
|
7966 |
+
<tag line="2915" name="since" description="1.10"/>
|
7967 |
+
<tag line="2915" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
|
7968 |
+
<tag line="2915" name="param" description="current selection or 'none' (default)" type="string" variable="$selection">
|
7969 |
<type by_reference="false">string</type>
|
7970 |
</tag>
|
7971 |
+
<tag line="2915" name="return" description="HTML markup with select field options" type="string">
|
7972 |
<type by_reference="false">string</type>
|
7973 |
</tag>
|
7974 |
</docblock>
|
7975 |
+
<argument line="2925">
|
7976 |
<name>$selection</name>
|
7977 |
<default><![CDATA['none']]></default>
|
7978 |
<type/>
|
7979 |
</argument>
|
7980 |
</method>
|
7981 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2989" package="Media Library Assistant">
|
7982 |
<name>_update_custom_field_mapping</name>
|
7983 |
<full_name>_update_custom_field_mapping</full_name>
|
7984 |
+
<docblock line="2979">
|
7985 |
<description><![CDATA[Update custom field mappings]]></description>
|
7986 |
<long-description><![CDATA[]]></long-description>
|
7987 |
+
<tag line="2979" name="since" description="1.10"/>
|
7988 |
+
<tag line="2979" name="param" description="current custom_field_mapping values" type="array" variable="$current_values">
|
7989 |
<type by_reference="false">array</type>
|
7990 |
</tag>
|
7991 |
+
<tag line="2979" name="param" description="new values" type="array" variable="$new_values">
|
7992 |
<type by_reference="false">array</type>
|
7993 |
</tag>
|
7994 |
+
<tag line="2979" 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">
|
7995 |
<type by_reference="false">array</type>
|
7996 |
</tag>
|
7997 |
</docblock>
|
7998 |
+
<argument line="2989">
|
7999 |
<name>$current_values</name>
|
8000 |
<default><![CDATA[]]></default>
|
8001 |
<type/>
|
8002 |
</argument>
|
8003 |
+
<argument line="2989">
|
8004 |
<name>$new_values</name>
|
8005 |
<default><![CDATA[]]></default>
|
8006 |
<type/>
|
8007 |
</argument>
|
8008 |
</method>
|
8009 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="3202" package="Media Library Assistant">
|
8010 |
<name>mla_custom_field_option_handler</name>
|
8011 |
<full_name>mla_custom_field_option_handler</full_name>
|
8012 |
+
<docblock line="3189">
|
8013 |
<description><![CDATA[Render and manage custom field mapping options]]></description>
|
8014 |
<long-description><![CDATA[]]></long-description>
|
8015 |
+
<tag line="3189" name="since" description="1.10"/>
|
8016 |
+
<tag line="3189" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
|
8017 |
+
<tag line="3189" name="param" description="'render', 'update', 'delete', or 'reset'" type="string" variable="$action">
|
8018 |
<type by_reference="false">string</type>
|
8019 |
</tag>
|
8020 |
+
<tag line="3189" name="param" description="option name, e.g., 'custom_field_mapping'" type="string" variable="$key">
|
8021 |
<type by_reference="false">string</type>
|
8022 |
</tag>
|
8023 |
+
<tag line="3189" name="param" description="option parameters" type="array" variable="$value">
|
8024 |
<type by_reference="false">array</type>
|
8025 |
</tag>
|
8026 |
+
<tag line="3189" name="param" description="Optional. null (default) for 'render' else option data, e.g., $_REQUEST" type="array" variable="$args">
|
8027 |
<type by_reference="false">array</type>
|
8028 |
</tag>
|
8029 |
+
<tag line="3189" name="return" description="HTML table row markup for 'render' else message(s) reflecting the results of the operation." type="string">
|
8030 |
<type by_reference="false">string</type>
|
8031 |
</tag>
|
8032 |
</docblock>
|
8033 |
+
<argument line="3202">
|
8034 |
<name>$action</name>
|
8035 |
<default><![CDATA[]]></default>
|
8036 |
<type/>
|
8037 |
</argument>
|
8038 |
+
<argument line="3202">
|
8039 |
<name>$key</name>
|
8040 |
<default><![CDATA[]]></default>
|
8041 |
<type/>
|
8042 |
</argument>
|
8043 |
+
<argument line="3202">
|
8044 |
<name>$value</name>
|
8045 |
<default><![CDATA[]]></default>
|
8046 |
<type/>
|
8047 |
</argument>
|
8048 |
+
<argument line="3202">
|
8049 |
<name>$args</name>
|
8050 |
<default><![CDATA[null]]></default>
|
8051 |
<type/>
|
8052 |
</argument>
|
8053 |
</method>
|
8054 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="3455" package="Media Library Assistant">
|
8055 |
<name>mla_evaluate_iptc_exif_mapping</name>
|
8056 |
<full_name>mla_evaluate_iptc_exif_mapping</full_name>
|
8057 |
+
<docblock line="3443">
|
8058 |
<description><![CDATA[Evaluate IPTC/EXIF mapping updates for a post]]></description>
|
8059 |
<long-description><![CDATA[]]></long-description>
|
8060 |
+
<tag line="3443" name="since" description="1.00"/>
|
8061 |
+
<tag line="3443" name="param" description="post object with current values" type="object" variable="$post">
|
8062 |
<type by_reference="false">object</type>
|
8063 |
</tag>
|
8064 |
+
<tag line="3443" name="param" description="category to evaluate against, e.g., iptc_exif_standard_mapping or iptc_exif_mapping" type="string" variable="$category">
|
8065 |
<type by_reference="false">string</type>
|
8066 |
</tag>
|
8067 |
+
<tag line="3443" name="param" description="(optional) iptc_exif_mapping values, default - current option value" type="array" variable="$settings">
|
8068 |
<type by_reference="false">array</type>
|
8069 |
</tag>
|
8070 |
+
<tag line="3443" name="param" description="(optional) _wp_attachment_metadata, for MLAOptions::mla_update_attachment_metadata_filter" type="array" variable="$attachment_metadata">
|
8071 |
<type by_reference="false">array</type>
|
8072 |
</tag>
|
8073 |
+
<tag line="3443" name="return" description="Updates suitable for MLAData::mla_update_single_item, if any" type="array">
|
8074 |
<type by_reference="false">array</type>
|
8075 |
</tag>
|
8076 |
</docblock>
|
8077 |
+
<argument line="3455">
|
8078 |
<name>$post</name>
|
8079 |
<default><![CDATA[]]></default>
|
8080 |
<type/>
|
8081 |
</argument>
|
8082 |
+
<argument line="3455">
|
8083 |
<name>$category</name>
|
8084 |
<default><![CDATA[]]></default>
|
8085 |
<type/>
|
8086 |
</argument>
|
8087 |
+
<argument line="3455">
|
8088 |
<name>$settings</name>
|
8089 |
<default><![CDATA[NULL]]></default>
|
8090 |
<type/>
|
8091 |
</argument>
|
8092 |
+
<argument line="3455">
|
8093 |
<name>$attachment_metadata</name>
|
8094 |
<default><![CDATA[NULL]]></default>
|
8095 |
<type/>
|
8096 |
</argument>
|
8097 |
</method>
|
8098 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3766" package="Media Library Assistant">
|
8099 |
<name>_compose_iptc_option_list</name>
|
8100 |
<full_name>_compose_iptc_option_list</full_name>
|
8101 |
+
<docblock line="3756">
|
8102 |
<description><![CDATA[Compose an IPTC Options list with current selection]]></description>
|
8103 |
<long-description><![CDATA[]]></long-description>
|
8104 |
+
<tag line="3756" name="since" description="1.00"/>
|
8105 |
+
<tag line="3756" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
|
8106 |
+
<tag line="3756" name="param" description="current selection or 'none' (default)" type="string" variable="$selection">
|
8107 |
<type by_reference="false">string</type>
|
8108 |
</tag>
|
8109 |
+
<tag line="3756" name="return" description="HTML markup with select field options" type="string">
|
8110 |
<type by_reference="false">string</type>
|
8111 |
</tag>
|
8112 |
</docblock>
|
8113 |
+
<argument line="3766">
|
8114 |
<name>$selection</name>
|
8115 |
<default><![CDATA['none']]></default>
|
8116 |
<type/>
|
8117 |
</argument>
|
8118 |
</method>
|
8119 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3799" package="Media Library Assistant">
|
8120 |
<name>_compose_parent_option_list</name>
|
8121 |
<full_name>_compose_parent_option_list</full_name>
|
8122 |
+
<docblock line="3788">
|
8123 |
<description><![CDATA[Compose an hierarchical taxonomy Parent options list with current selection]]></description>
|
8124 |
<long-description><![CDATA[]]></long-description>
|
8125 |
+
<tag line="3788" name="since" description="1.00"/>
|
8126 |
+
<tag line="3788" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
|
8127 |
+
<tag line="3788" name="param" description="taxonomy slug" type="string" variable="$taxonomy">
|
8128 |
<type by_reference="false">string</type>
|
8129 |
</tag>
|
8130 |
+
<tag line="3788" name="param" description="current selection or 0 (zero, default)" type="integer" variable="$selection">
|
8131 |
<type by_reference="false">integer</type>
|
8132 |
</tag>
|
8133 |
+
<tag line="3788" name="return" description="HTML markup with select field options" type="string">
|
8134 |
<type by_reference="false">string</type>
|
8135 |
</tag>
|
8136 |
</docblock>
|
8137 |
+
<argument line="3799">
|
8138 |
<name>$taxonomy</name>
|
8139 |
<default><![CDATA[]]></default>
|
8140 |
<type/>
|
8141 |
</argument>
|
8142 |
+
<argument line="3799">
|
8143 |
<name>$selection</name>
|
8144 |
<default><![CDATA[0]]></default>
|
8145 |
<type/>
|
8146 |
</argument>
|
8147 |
</method>
|
8148 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3845" package="Media Library Assistant">
|
8149 |
<name>_update_iptc_exif_standard_mapping</name>
|
8150 |
<full_name>_update_iptc_exif_standard_mapping</full_name>
|
8151 |
+
<docblock line="3835">
|
8152 |
<description><![CDATA[Update Standard field portion of IPTC/EXIF mappings]]></description>
|
8153 |
<long-description><![CDATA[]]></long-description>
|
8154 |
+
<tag line="3835" name="since" description="1.00"/>
|
8155 |
+
<tag line="3835" name="param" description="current iptc_exif_mapping values" type="array" variable="$current_values">
|
8156 |
<type by_reference="false">array</type>
|
8157 |
</tag>
|
8158 |
+
<tag line="3835" name="param" description="new values" type="array" variable="$new_values">
|
8159 |
<type by_reference="false">array</type>
|
8160 |
</tag>
|
8161 |
+
<tag line="3835" 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">
|
8162 |
<type by_reference="false">array</type>
|
8163 |
</tag>
|
8164 |
</docblock>
|
8165 |
+
<argument line="3845">
|
8166 |
<name>$current_values</name>
|
8167 |
<default><![CDATA[]]></default>
|
8168 |
<type/>
|
8169 |
</argument>
|
8170 |
+
<argument line="3845">
|
8171 |
<name>$new_values</name>
|
8172 |
<default><![CDATA[]]></default>
|
8173 |
<type/>
|
8174 |
</argument>
|
8175 |
</method>
|
8176 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3938" package="Media Library Assistant">
|
8177 |
<name>_update_iptc_exif_taxonomy_mapping</name>
|
8178 |
<full_name>_update_iptc_exif_taxonomy_mapping</full_name>
|
8179 |
+
<docblock line="3928">
|
8180 |
<description><![CDATA[Update Taxonomy term portion of IPTC/EXIF mappings]]></description>
|
8181 |
<long-description><![CDATA[]]></long-description>
|
8182 |
+
<tag line="3928" name="since" description="1.00"/>
|
8183 |
+
<tag line="3928" name="param" description="current iptc_exif_mapping values" type="array" variable="$current_values">
|
8184 |
<type by_reference="false">array</type>
|
8185 |
</tag>
|
8186 |
+
<tag line="3928" name="param" description="new values" type="array" variable="$new_values">
|
8187 |
<type by_reference="false">array</type>
|
8188 |
</tag>
|
8189 |
+
<tag line="3928" 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">
|
8190 |
<type by_reference="false">array</type>
|
8191 |
</tag>
|
8192 |
</docblock>
|
8193 |
+
<argument line="3938">
|
8194 |
<name>$current_values</name>
|
8195 |
<default><![CDATA[]]></default>
|
8196 |
<type/>
|
8197 |
</argument>
|
8198 |
+
<argument line="3938">
|
8199 |
<name>$new_values</name>
|
8200 |
<default><![CDATA[]]></default>
|
8201 |
<type/>
|
8202 |
</argument>
|
8203 |
</method>
|
8204 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="4053" package="Media Library Assistant">
|
8205 |
<name>_update_iptc_exif_custom_mapping</name>
|
8206 |
<full_name>_update_iptc_exif_custom_mapping</full_name>
|
8207 |
+
<docblock line="4043">
|
8208 |
<description><![CDATA[Update Custom field portion of IPTC/EXIF mappings]]></description>
|
8209 |
<long-description><![CDATA[]]></long-description>
|
8210 |
+
<tag line="4043" name="since" description="1.00"/>
|
8211 |
+
<tag line="4043" name="param" description="current iptc_exif_mapping values" type="array" variable="$current_values">
|
8212 |
<type by_reference="false">array</type>
|
8213 |
</tag>
|
8214 |
+
<tag line="4043" name="param" description="new values" type="array" variable="$new_values">
|
8215 |
<type by_reference="false">array</type>
|
8216 |
</tag>
|
8217 |
+
<tag line="4043" 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">
|
8218 |
<type by_reference="false">array</type>
|
8219 |
</tag>
|
8220 |
</docblock>
|
8221 |
+
<argument line="4053">
|
8222 |
<name>$current_values</name>
|
8223 |
<default><![CDATA[]]></default>
|
8224 |
<type/>
|
8225 |
</argument>
|
8226 |
+
<argument line="4053">
|
8227 |
<name>$new_values</name>
|
8228 |
<default><![CDATA[]]></default>
|
8229 |
<type/>
|
8230 |
</argument>
|
8231 |
</method>
|
8232 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="4183" package="Media Library Assistant">
|
8233 |
<name>_get_custom_field_names</name>
|
8234 |
<full_name>_get_custom_field_names</full_name>
|
8235 |
+
<docblock line="4173">
|
8236 |
<description><![CDATA[Generate a list of all (post) Custom Field names]]></description>
|
8237 |
<long-description><![CDATA[<p>The list will include any Custom Field and IPTC/EXIF rules that
|
8238 |
haven't been mapped to any attachments, yet.</p>]]></long-description>
|
8239 |
+
<tag line="4173" name="since" description="1.00"/>
|
8240 |
+
<tag line="4173" name="return" description="Custom field names from the postmeta table and MLA rules" type="array">
|
8241 |
<type by_reference="false">array</type>
|
8242 |
</tag>
|
8243 |
</docblock>
|
8244 |
</method>
|
8245 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="4229" package="Media Library Assistant">
|
8246 |
<name>mla_iptc_exif_option_handler</name>
|
8247 |
<full_name>mla_iptc_exif_option_handler</full_name>
|
8248 |
+
<docblock line="4216">
|
8249 |
<description><![CDATA[Render and manage iptc/exif support options]]></description>
|
8250 |
<long-description><![CDATA[]]></long-description>
|
8251 |
+
<tag line="4216" name="since" description="1.00"/>
|
8252 |
+
<tag line="4216" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
|
8253 |
+
<tag line="4216" name="param" description="'render', 'update', 'delete', or 'reset'" type="string" variable="$action">
|
8254 |
<type by_reference="false">string</type>
|
8255 |
</tag>
|
8256 |
+
<tag line="4216" name="param" description="option name, e.g., 'iptc_exif_mapping'" type="string" variable="$key">
|
8257 |
<type by_reference="false">string</type>
|
8258 |
</tag>
|
8259 |
+
<tag line="4216" name="param" description="option parameters" type="array" variable="$value">
|
8260 |
<type by_reference="false">array</type>
|
8261 |
</tag>
|
8262 |
+
<tag line="4216" name="param" description="Optional. null (default) for 'render' else option data, e.g., $_REQUEST" type="array" variable="$args">
|
8263 |
<type by_reference="false">array</type>
|
8264 |
</tag>
|
8265 |
+
<tag line="4216" name="return" description="HTML table row markup for 'render' else message(s) reflecting the results of the operation." type="string">
|
8266 |
<type by_reference="false">string</type>
|
8267 |
</tag>
|
8268 |
</docblock>
|
8269 |
+
<argument line="4229">
|
8270 |
<name>$action</name>
|
8271 |
<default><![CDATA[]]></default>
|
8272 |
<type/>
|
8273 |
</argument>
|
8274 |
+
<argument line="4229">
|
8275 |
<name>$key</name>
|
8276 |
<default><![CDATA[]]></default>
|
8277 |
<type/>
|
8278 |
</argument>
|
8279 |
+
<argument line="4229">
|
8280 |
<name>$value</name>
|
8281 |
<default><![CDATA[]]></default>
|
8282 |
<type/>
|
8283 |
</argument>
|
8284 |
+
<argument line="4229">
|
8285 |
<name>$args</name>
|
8286 |
<default><![CDATA[null]]></default>
|
8287 |
<type/>
|
8289 |
</method>
|
8290 |
</class>
|
8291 |
</file>
|
8292 |
+
<file path="includes\class-mla-settings.php" hash="2d7e3fcc6b0335b6a9188a870e290290" package="Media Library Assistant">
|
8293 |
<docblock line="2">
|
8294 |
<description><![CDATA[Manages the settings page to edit the plugin option settings]]></description>
|
8295 |
<long-description><![CDATA[]]></long-description>
|
9205 |
</tag>
|
9206 |
</docblock>
|
9207 |
</method>
|
9208 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3386" package="Media Library Assistant">
|
9209 |
<name>_reset_general_settings</name>
|
9210 |
<full_name>_reset_general_settings</full_name>
|
9211 |
+
<docblock line="3379">
|
9212 |
<description><![CDATA[Delete saved settings, restoring default values]]></description>
|
9213 |
<long-description><![CDATA[]]></long-description>
|
9214 |
+
<tag line="3379" name="since" description="0.1"/>
|
9215 |
+
<tag line="3379" name="return" description="Message(s) reflecting the results of the operation" type="array">
|
9216 |
<type by_reference="false">array</type>
|
9217 |
</tag>
|
9218 |
</docblock>
|
9219 |
</method>
|
9220 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3425" package="Media Library Assistant">
|
9221 |
<name>_compose_import_settings</name>
|
9222 |
<full_name>_compose_import_settings</full_name>
|
9223 |
+
<docblock line="3418">
|
9224 |
<description><![CDATA[Compose HTML markup for the import settings if any settings files exist]]></description>
|
9225 |
<long-description><![CDATA[]]></long-description>
|
9226 |
+
<tag line="3418" name="since" description="1.50"/>
|
9227 |
+
<tag line="3418" name="return" description="HTML markup for the Import All Settings button and dropdown list, if any" type="string">
|
9228 |
<type by_reference="false">string</type>
|
9229 |
</tag>
|
9230 |
</docblock>
|
9231 |
</method>
|
9232 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3480" package="Media Library Assistant">
|
9233 |
<name>_export_settings</name>
|
9234 |
<full_name>_export_settings</full_name>
|
9235 |
+
<docblock line="3471">
|
9236 |
<description><![CDATA[Serialize option settings and write them to a file]]></description>
|
9237 |
<long-description><![CDATA[<p>Options with a default value, i.e., not stored in the database are NOT written to the file.</p>]]></long-description>
|
9238 |
+
<tag line="3471" name="since" description="1.50"/>
|
9239 |
+
<tag line="3471" name="return" description="Message(s) reflecting the results of the operation" type="array">
|
9240 |
<type by_reference="false">array</type>
|
9241 |
</tag>
|
9242 |
</docblock>
|
9243 |
</method>
|
9244 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3567" package="Media Library Assistant">
|
9245 |
<name>_import_settings</name>
|
9246 |
<full_name>_import_settings</full_name>
|
9247 |
+
<docblock line="3560">
|
9248 |
<description><![CDATA[Read a serialized file of option settings and write them to the database]]></description>
|
9249 |
<long-description><![CDATA[]]></long-description>
|
9250 |
+
<tag line="3560" name="since" description="1.50"/>
|
9251 |
+
<tag line="3560" name="return" description="Message(s) reflecting the results of the operation" type="array">
|
9252 |
<type by_reference="false">array</type>
|
9253 |
</tag>
|
9254 |
</docblock>
|
9255 |
</method>
|
9256 |
</class>
|
9257 |
</file>
|
9258 |
+
<file path="includes\class-mla-shortcodes.php" hash="7c95fc86f084f5e45d53924d17a4272a" package="Media Library Assistant">
|
9259 |
<docblock line="2">
|
9260 |
<description><![CDATA[Media Library Assistant Shortcode handler(s)]]></description>
|
9261 |
<long-description><![CDATA[]]></long-description>
|
9296 |
</tag>
|
9297 |
</docblock>
|
9298 |
</property>
|
9299 |
+
<property final="false" static="true" visibility="private" line="2249" namespace="global" package="Media Library Assistant">
|
9300 |
<name>$query_parameters</name>
|
9301 |
<default><![CDATA[array()]]></default>
|
9302 |
+
<docblock line="2236">
|
9303 |
<description><![CDATA[WP_Query filter "parameters"]]></description>
|
9304 |
<long-description><![CDATA[<p>This array defines parameters for the query's join, where and orderby filters.
|
9305 |
The parameters are set up in the mla_get_shortcode_attachments function, and
|
9306 |
any further logic required to translate those values is contained in the filter.</p>
|
9307 |
|
9308 |
<p>Array index values are: orderby, post_parent</p>]]></long-description>
|
9309 |
+
<tag line="2236" name="since" description="1.13"/>
|
9310 |
+
<tag line="2236" name="var" description="" type="array">
|
9311 |
<type by_reference="false">array</type>
|
9312 |
</tag>
|
9313 |
</docblock>
|
9314 |
</property>
|
9315 |
+
<property final="false" static="true" visibility="private" line="2359" namespace="global" package="Media Library Assistant">
|
9316 |
<name>$mla_get_shortcode_attachments_parameters</name>
|
9317 |
<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>
|
9318 |
+
<docblock line="2352">
|
9319 |
<description><![CDATA[Data selection parameters for the WP_Query in [mla_gallery]]]></description>
|
9320 |
<long-description><![CDATA[]]></long-description>
|
9321 |
+
<tag line="2352" name="since" description="1.30"/>
|
9322 |
+
<tag line="2352" name="var" description="" type="array">
|
9323 |
<type by_reference="false">array</type>
|
9324 |
</tag>
|
9325 |
</docblock>
|
9326 |
</property>
|
9327 |
+
<property final="false" static="true" visibility="public" line="2432" namespace="global" package="Media Library Assistant">
|
9328 |
<name>$mla_gallery_wp_query_object</name>
|
9329 |
<default><![CDATA[NULL]]></default>
|
9330 |
+
<docblock line="2422">
|
9331 |
<description><![CDATA[The WP_Query object used to select items for the gallery.]]></description>
|
9332 |
<long-description><![CDATA[<p>Defined as a public, static variable so it can be inspected from the
|
9333 |
"mla_gallery_wp_query_object" action. Set to NULL at all other times.</p>]]></long-description>
|
9334 |
+
<tag line="2422" name="since" description="1.51"/>
|
9335 |
+
<tag line="2422" name="var" description="" type="object">
|
9336 |
<type by_reference="false">object</type>
|
9337 |
</tag>
|
9338 |
</docblock>
|
9339 |
</property>
|
9340 |
+
<property final="false" static="true" visibility="private" line="3109" namespace="global" package="Media Library Assistant">
|
9341 |
<name>$mla_get_terms_parameters</name>
|
9342 |
+
<default><![CDATA[array('taxonomy' => 'post_tag', 'post_mime_type' => 'all', 'post_type' => 'attachment', 'post_status' => 'inherit', 'ids' => array(), 'fields' => 't.term_id, t.name, t.slug, t.term_group, tt.term_taxonomy_id, tt.taxonomy, tt.description, tt.parent, COUNT(p.ID) AS `count`', 'include' => '', 'exclude' => '', 'parent' => '', 'minimum' => 0, 'no_count' => false, 'number' => 0, 'orderby' => 'name', 'order' => 'ASC', 'no_orderby' => false, 'preserve_case' => false, 'pad_counts' => false, 'limit' => 0, 'offset' => 0)]]></default>
|
9343 |
+
<docblock line="3102">
|
9344 |
<description><![CDATA[Data selection parameters for [mla_tag_cloud]]]></description>
|
9345 |
<long-description><![CDATA[]]></long-description>
|
9346 |
+
<tag line="3102" name="since" description="1.60"/>
|
9347 |
+
<tag line="3102" name="var" description="" type="array">
|
9348 |
<type by_reference="false">array</type>
|
9349 |
</tag>
|
9350 |
</docblock>
|
9403 |
<type/>
|
9404 |
</argument>
|
9405 |
</method>
|
9406 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1057" package="Media Library Assistant">
|
9407 |
<name>mla_tag_cloud</name>
|
9408 |
<full_name>mla_tag_cloud</full_name>
|
9409 |
+
<docblock line="1045">
|
9410 |
<description><![CDATA[The MLA Tag Cloud support function.]]></description>
|
9411 |
<long-description><![CDATA[<p>This is an alternative to the WordPress wp_tag_cloud function, with additional
|
9412 |
options to customize the hyperlink behind each term.</p>]]></long-description>
|
9413 |
+
<tag line="1045" name="since" description="1.60"/>
|
9414 |
+
<tag line="1045" name="param" description="Attributes of the shortcode." type="array" variable="$attr">
|
9415 |
<type by_reference="false">array</type>
|
9416 |
</tag>
|
9417 |
+
<tag line="1045" name="return" description="HTML content to display the tag cloud." type="string">
|
9418 |
<type by_reference="false">string</type>
|
9419 |
</tag>
|
9420 |
</docblock>
|
9421 |
+
<argument line="1057">
|
9422 |
<name>$attr</name>
|
9423 |
<default><![CDATA[]]></default>
|
9424 |
<type/>
|
9425 |
</argument>
|
9426 |
</method>
|
9427 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1824" package="Media Library Assistant">
|
9428 |
<name>mla_tag_cloud_shortcode</name>
|
9429 |
<full_name>mla_tag_cloud_shortcode</full_name>
|
9430 |
+
<docblock line="1813">
|
9431 |
<description><![CDATA[The MLA Tag Cloud shortcode.]]></description>
|
9432 |
<long-description><![CDATA[<p>This is an interface to the mla_tag_cloud function.</p>]]></long-description>
|
9433 |
+
<tag line="1813" name="since" description="1.60"/>
|
9434 |
+
<tag line="1813" name="param" description="Attributes of the shortcode." type="array" variable="$attr">
|
9435 |
<type by_reference="false">array</type>
|
9436 |
</tag>
|
9437 |
+
<tag line="1813" name="return" description="HTML content to display the tag cloud." type="string">
|
9438 |
<type by_reference="false">string</type>
|
9439 |
</tag>
|
9440 |
</docblock>
|
9441 |
+
<argument line="1824">
|
9442 |
<name>$attr</name>
|
9443 |
<default><![CDATA[]]></default>
|
9444 |
<type/>
|
9445 |
</argument>
|
9446 |
</method>
|
9447 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1856" package="Media Library Assistant">
|
9448 |
<name>_registered_dimensions</name>
|
9449 |
<full_name>_registered_dimensions</full_name>
|
9450 |
+
<docblock line="1849">
|
9451 |
<description><![CDATA[Computes image dimensions for scalable graphics, e.g., SVG]]></description>
|
9452 |
<long-description><![CDATA[]]></long-description>
|
9453 |
+
<tag line="1849" name="since" description="1.82"/>
|
9454 |
+
<tag line="1849" name="return" description="" type="array">
|
9455 |
<type by_reference="false">array</type>
|
9456 |
</tag>
|
9457 |
</docblock>
|
9458 |
</method>
|
9459 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1891" package="Media Library Assistant">
|
9460 |
<name>_process_shortcode_parameter</name>
|
9461 |
<full_name>_process_shortcode_parameter</full_name>
|
9462 |
+
<docblock line="1881">
|
9463 |
<description><![CDATA[Handles brace/bracket escaping and parses template for a shortcode parameter]]></description>
|
9464 |
<long-description><![CDATA[]]></long-description>
|
9465 |
+
<tag line="1881" name="since" description="1.14"/>
|
9466 |
+
<tag line="1881" name="param" description="raw shortcode parameter, e.g., "text {+field+} {brackets} \\{braces\\}"" type="string" variable="$text">
|
9467 |
<type by_reference="false">string</type>
|
9468 |
</tag>
|
9469 |
+
<tag line="1881" name="param" description="template substitution values, e.g., ('instance' => '1', ... )" type="string" variable="$markup_values">
|
9470 |
<type by_reference="false">string</type>
|
9471 |
</tag>
|
9472 |
+
<tag line="1881" name="return" description="parameter with brackets, braces, substitution parameters and templates processed" type="string">
|
9473 |
<type by_reference="false">string</type>
|
9474 |
</tag>
|
9475 |
</docblock>
|
9476 |
+
<argument line="1891">
|
9477 |
<name>$text</name>
|
9478 |
<default><![CDATA[]]></default>
|
9479 |
<type/>
|
9480 |
</argument>
|
9481 |
+
<argument line="1891">
|
9482 |
<name>$markup_values</name>
|
9483 |
<default><![CDATA[]]></default>
|
9484 |
<type/>
|
9485 |
</argument>
|
9486 |
</method>
|
9487 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1910" package="Media Library Assistant">
|
9488 |
<name>_paginate_links</name>
|
9489 |
<full_name>_paginate_links</full_name>
|
9490 |
+
<docblock line="1897">
|
9491 |
<description><![CDATA[Handles pagnation output types 'previous_page', 'next_page', and 'paginate_links']]></description>
|
9492 |
<long-description><![CDATA[]]></long-description>
|
9493 |
+
<tag line="1897" name="since" description="1.42"/>
|
9494 |
+
<tag line="1897" name="param" description="value(s) for mla_output_type parameter" type="array" variable="$output_parameters">
|
9495 |
<type by_reference="false">array</type>
|
9496 |
</tag>
|
9497 |
+
<tag line="1897" name="param" description="template substitution values, e.g., ('instance' => '1', ... )" type="string" variable="$markup_values">
|
9498 |
<type by_reference="false">string</type>
|
9499 |
</tag>
|
9500 |
+
<tag line="1897" name="param" description="merged default and passed shortcode parameter values" type="string" variable="$arguments">
|
9501 |
<type by_reference="false">string</type>
|
9502 |
</tag>
|
9503 |
+
<tag line="1897" name="param" description="number of attachments in the gallery, without pagination" type="integer" variable="$found_rows">
|
9504 |
<type by_reference="false">integer</type>
|
9505 |
</tag>
|
9506 |
+
<tag line="1897" name="param" description="output text so far, may include debug values" type="string" variable="$output">
|
9507 |
<type by_reference="false">string</type>
|
9508 |
</tag>
|
9509 |
+
<tag line="1897" name="return" description="false or string with HTML for pagination output types" type="mixed">
|
9510 |
<type by_reference="false">mixed</type>
|
9511 |
</tag>
|
9512 |
</docblock>
|
9513 |
+
<argument line="1910">
|
9514 |
<name>$output_parameters</name>
|
9515 |
<default><![CDATA[]]></default>
|
9516 |
<type/>
|
9517 |
</argument>
|
9518 |
+
<argument line="1910">
|
9519 |
<name>$markup_values</name>
|
9520 |
<default><![CDATA[]]></default>
|
9521 |
<type/>
|
9522 |
</argument>
|
9523 |
+
<argument line="1910">
|
9524 |
<name>$arguments</name>
|
9525 |
<default><![CDATA[]]></default>
|
9526 |
<type/>
|
9527 |
</argument>
|
9528 |
+
<argument line="1910">
|
9529 |
<name>$found_rows</name>
|
9530 |
<default><![CDATA[]]></default>
|
9531 |
<type/>
|
9532 |
</argument>
|
9533 |
+
<argument line="1910">
|
9534 |
<name>$output</name>
|
9535 |
<default><![CDATA['']]></default>
|
9536 |
<type/>
|
9537 |
</argument>
|
9538 |
</method>
|
9539 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2040" package="Media Library Assistant">
|
9540 |
<name>_process_pagination_output_types</name>
|
9541 |
<full_name>_process_pagination_output_types</full_name>
|
9542 |
+
<docblock line="2026">
|
9543 |
<description><![CDATA[Handles pagnation output types 'previous_page', 'next_page', and 'paginate_links']]></description>
|
9544 |
<long-description><![CDATA[]]></long-description>
|
9545 |
+
<tag line="2026" name="since" description="1.42"/>
|
9546 |
+
<tag line="2026" name="param" description="value(s) for mla_output_type parameter" type="array" variable="$output_parameters">
|
9547 |
<type by_reference="false">array</type>
|
9548 |
</tag>
|
9549 |
+
<tag line="2026" name="param" description="template substitution values, e.g., ('instance' => '1', ... )" type="string" variable="$markup_values">
|
9550 |
<type by_reference="false">string</type>
|
9551 |
</tag>
|
9552 |
+
<tag line="2026" name="param" description="merged default and passed shortcode parameter values" type="string" variable="$arguments">
|
9553 |
<type by_reference="false">string</type>
|
9554 |
</tag>
|
9555 |
+
<tag line="2026" name="param" description="raw passed shortcode parameter values" type="string" variable="$attr">
|
9556 |
<type by_reference="false">string</type>
|
9557 |
</tag>
|
9558 |
+
<tag line="2026" name="param" description="number of attachments in the gallery, without pagination" type="integer" variable="$found_rows">
|
9559 |
<type by_reference="false">integer</type>
|
9560 |
</tag>
|
9561 |
+
<tag line="2026" name="param" description="output text so far, may include debug values" type="string" variable="$output">
|
9562 |
<type by_reference="false">string</type>
|
9563 |
</tag>
|
9564 |
+
<tag line="2026" name="return" description="false or string with HTML for pagination output types" type="mixed">
|
9565 |
<type by_reference="false">mixed</type>
|
9566 |
</tag>
|
9567 |
</docblock>
|
9568 |
+
<argument line="2040">
|
9569 |
<name>$output_parameters</name>
|
9570 |
<default><![CDATA[]]></default>
|
9571 |
<type/>
|
9572 |
</argument>
|
9573 |
+
<argument line="2040">
|
9574 |
<name>$markup_values</name>
|
9575 |
<default><![CDATA[]]></default>
|
9576 |
<type/>
|
9577 |
</argument>
|
9578 |
+
<argument line="2040">
|
9579 |
<name>$arguments</name>
|
9580 |
<default><![CDATA[]]></default>
|
9581 |
<type/>
|
9582 |
</argument>
|
9583 |
+
<argument line="2040">
|
9584 |
<name>$attr</name>
|
9585 |
<default><![CDATA[]]></default>
|
9586 |
<type/>
|
9587 |
</argument>
|
9588 |
+
<argument line="2040">
|
9589 |
<name>$found_rows</name>
|
9590 |
<default><![CDATA[]]></default>
|
9591 |
<type/>
|
9592 |
</argument>
|
9593 |
+
<argument line="2040">
|
9594 |
<name>$output</name>
|
9595 |
<default><![CDATA['']]></default>
|
9596 |
<type/>
|
9597 |
</argument>
|
9598 |
</method>
|
9599 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2260" package="Media Library Assistant">
|
9600 |
<name>_sanitize_query_specification</name>
|
9601 |
<full_name>_sanitize_query_specification</full_name>
|
9602 |
+
<docblock line="2251">
|
9603 |
<description><![CDATA[Cleans up damage caused by the Visual Editor to the tax_query and meta_query specifications]]></description>
|
9604 |
<long-description><![CDATA[]]></long-description>
|
9605 |
+
<tag line="2251" name="since" description="1.14"/>
|
9606 |
+
<tag line="2251" name="param" description="query specification; PHP nested arrays" type="string" variable="$specification">
|
9607 |
<type by_reference="false">string</type>
|
9608 |
</tag>
|
9609 |
+
<tag line="2251" name="return" description="query specification with HTML escape sequences and line breaks removed" type="string">
|
9610 |
<type by_reference="false">string</type>
|
9611 |
</tag>
|
9612 |
</docblock>
|
9613 |
+
<argument line="2260">
|
9614 |
<name>$specification</name>
|
9615 |
<default><![CDATA[]]></default>
|
9616 |
<type/>
|
9617 |
</argument>
|
9618 |
</method>
|
9619 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2277" package="Media Library Assistant">
|
9620 |
<name>_validate_sql_orderby</name>
|
9621 |
<full_name>_validate_sql_orderby</full_name>
|
9622 |
+
<docblock line="2266">
|
9623 |
<description><![CDATA[Translates query parameters to a valid SQL order by clause.]]></description>
|
9624 |
<long-description><![CDATA[<p>Accepts one or more valid columns, with or without ASC/DESC.
|
9625 |
Enhanced version of /wp-includes/formatting.php function sanitize_sql_orderby().</p>]]></long-description>
|
9626 |
+
<tag line="2266" name="since" description="1.20"/>
|
9627 |
+
<tag line="2266" name="param" description="Validated query parameters" type="array" variable="$query_parameters">
|
9628 |
<type by_reference="false">array</type>
|
9629 |
</tag>
|
9630 |
+
<tag line="2266" name="return" description="Returns the orderby clause if present, false otherwise." type="string|bool">
|
9631 |
<type by_reference="false">string</type>
|
9632 |
<type by_reference="false">bool</type>
|
9633 |
</tag>
|
9634 |
</docblock>
|
9635 |
+
<argument line="2277">
|
9636 |
<name>$query_parameters</name>
|
9637 |
<default><![CDATA[]]></default>
|
9638 |
<type/>
|
9639 |
</argument>
|
9640 |
</method>
|
9641 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2445" package="Media Library Assistant">
|
9642 |
<name>mla_get_shortcode_attachments</name>
|
9643 |
<full_name>mla_get_shortcode_attachments</full_name>
|
9644 |
+
<docblock line="2434">
|
9645 |
<description><![CDATA[Parses shortcode parameters and returns the gallery objects]]></description>
|
9646 |
<long-description><![CDATA[]]></long-description>
|
9647 |
+
<tag line="2434" name="since" description=".50"/>
|
9648 |
+
<tag line="2434" name="param" description="Post ID of the parent" type="int" variable="$post_parent">
|
9649 |
<type by_reference="false">int</type>
|
9650 |
</tag>
|
9651 |
+
<tag line="2434" name="param" description="Attributes of the shortcode" type="array" variable="$attr">
|
9652 |
<type by_reference="false">array</type>
|
9653 |
</tag>
|
9654 |
+
<tag line="2434" name="param" description="true to calculate and return ['found_posts'] as an array element" type="boolean" variable="$return_found_rows">
|
9655 |
<type by_reference="false">boolean</type>
|
9656 |
</tag>
|
9657 |
+
<tag line="2434" name="return" description="List of attachments returned from WP_Query" type="array">
|
9658 |
<type by_reference="false">array</type>
|
9659 |
</tag>
|
9660 |
</docblock>
|
9661 |
+
<argument line="2445">
|
9662 |
<name>$post_parent</name>
|
9663 |
<default><![CDATA[]]></default>
|
9664 |
<type/>
|
9665 |
</argument>
|
9666 |
+
<argument line="2445">
|
9667 |
<name>$attr</name>
|
9668 |
<default><![CDATA[]]></default>
|
9669 |
<type/>
|
9670 |
</argument>
|
9671 |
+
<argument line="2445">
|
9672 |
<name>$return_found_rows</name>
|
9673 |
<default><![CDATA[NULL]]></default>
|
9674 |
<type/>
|
9675 |
</argument>
|
9676 |
</method>
|
9677 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2980" package="Media Library Assistant">
|
9678 |
<name>mla_shortcode_query_posts_join_filter</name>
|
9679 |
<full_name>mla_shortcode_query_posts_join_filter</full_name>
|
9680 |
+
<docblock line="2969">
|
9681 |
<description><![CDATA[Filters the JOIN clause for shortcode queries]]></description>
|
9682 |
<long-description><![CDATA[<p>Defined as public because it's a filter.</p>]]></long-description>
|
9683 |
+
<tag line="2969" name="since" description="1.90"/>
|
9684 |
+
<tag line="2969" name="param" description="query clause before modification" type="string" variable="$join_clause">
|
9685 |
<type by_reference="false">string</type>
|
9686 |
</tag>
|
9687 |
+
<tag line="2969" name="return" description="query clause after item modification" type="string">
|
9688 |
<type by_reference="false">string</type>
|
9689 |
</tag>
|
9690 |
</docblock>
|
9691 |
+
<argument line="2980">
|
9692 |
<name>$join_clause</name>
|
9693 |
<default><![CDATA[]]></default>
|
9694 |
<type/>
|
9695 |
</argument>
|
9696 |
</method>
|
9697 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="3009" package="Media Library Assistant">
|
9698 |
<name>mla_shortcode_query_posts_where_filter</name>
|
9699 |
<full_name>mla_shortcode_query_posts_where_filter</full_name>
|
9700 |
+
<docblock line="2995">
|
9701 |
<description><![CDATA[Filters the WHERE clause for shortcode queries]]></description>
|
9702 |
<long-description><![CDATA[<p>Captures debug information. Adds whitespace to the post_type = 'attachment'
|
9703 |
phrase to circumvent subsequent Role Scoper modification of the clause.
|
9704 |
Handles post_parent "any" and "none" cases.
|
9705 |
Defined as public because it's a filter.</p>]]></long-description>
|
9706 |
+
<tag line="2995" name="since" description="0.70"/>
|
9707 |
+
<tag line="2995" name="param" description="query clause before modification" type="string" variable="$where_clause">
|
9708 |
<type by_reference="false">string</type>
|
9709 |
</tag>
|
9710 |
+
<tag line="2995" name="return" description="query clause after modification" type="string">
|
9711 |
<type by_reference="false">string</type>
|
9712 |
</tag>
|
9713 |
</docblock>
|
9714 |
+
<argument line="3009">
|
9715 |
<name>$where_clause</name>
|
9716 |
<default><![CDATA[]]></default>
|
9717 |
<type/>
|
9718 |
</argument>
|
9719 |
</method>
|
9720 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="3051" package="Media Library Assistant">
|
9721 |
<name>mla_shortcode_query_posts_orderby_filter</name>
|
9722 |
<full_name>mla_shortcode_query_posts_orderby_filter</full_name>
|
9723 |
+
<docblock line="3039">
|
9724 |
<description><![CDATA[Filters the ORDERBY clause for shortcode queries]]></description>
|
9725 |
<long-description><![CDATA[<p>This is an enhanced version of the code found in wp-includes/query.php, function get_posts.
|
9726 |
Defined as public because it's a filter.</p>]]></long-description>
|
9727 |
+
<tag line="3039" name="since" description="1.20"/>
|
9728 |
+
<tag line="3039" name="param" description="query clause before modification" type="string" variable="$orderby_clause">
|
9729 |
<type by_reference="false">string</type>
|
9730 |
</tag>
|
9731 |
+
<tag line="3039" name="return" description="query clause after modification" type="string">
|
9732 |
<type by_reference="false">string</type>
|
9733 |
</tag>
|
9734 |
</docblock>
|
9735 |
+
<argument line="3051">
|
9736 |
<name>$orderby_clause</name>
|
9737 |
<default><![CDATA[]]></default>
|
9738 |
<type/>
|
9739 |
</argument>
|
9740 |
</method>
|
9741 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="3078" package="Media Library Assistant">
|
9742 |
<name>mla_shortcode_query_posts_clauses_filter</name>
|
9743 |
<full_name>mla_shortcode_query_posts_clauses_filter</full_name>
|
9744 |
+
<docblock line="3066">
|
9745 |
<description><![CDATA[Filters all clauses for shortcode queries, pre caching plugins]]></description>
|
9746 |
<long-description><![CDATA[<p>This is for debug purposes only.
|
9747 |
Defined as public because it's a filter.</p>]]></long-description>
|
9748 |
+
<tag line="3066" name="since" description="1.30"/>
|
9749 |
+
<tag line="3066" name="param" description="query clauses before modification" type="array" variable="$pieces">
|
9750 |
<type by_reference="false">array</type>
|
9751 |
</tag>
|
9752 |
+
<tag line="3066" name="return" description="query clauses after modification (none)" type="array">
|
9753 |
<type by_reference="false">array</type>
|
9754 |
</tag>
|
9755 |
</docblock>
|
9756 |
+
<argument line="3078">
|
9757 |
<name>$pieces</name>
|
9758 |
<default><![CDATA[]]></default>
|
9759 |
<type/>
|
9760 |
</argument>
|
9761 |
</method>
|
9762 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="3096" package="Media Library Assistant">
|
9763 |
<name>mla_shortcode_query_posts_clauses_request_filter</name>
|
9764 |
<full_name>mla_shortcode_query_posts_clauses_request_filter</full_name>
|
9765 |
+
<docblock line="3084">
|
9766 |
<description><![CDATA[Filters all clauses for shortcode queries, post caching plugins]]></description>
|
9767 |
<long-description><![CDATA[<p>This is for debug purposes only.
|
9768 |
Defined as public because it's a filter.</p>]]></long-description>
|
9769 |
+
<tag line="3084" name="since" description="1.30"/>
|
9770 |
+
<tag line="3084" name="param" description="query clauses before modification" type="array" variable="$pieces">
|
9771 |
<type by_reference="false">array</type>
|
9772 |
</tag>
|
9773 |
+
<tag line="3084" name="return" description="query clauses after modification (none)" type="array">
|
9774 |
<type by_reference="false">array</type>
|
9775 |
</tag>
|
9776 |
</docblock>
|
9777 |
+
<argument line="3096">
|
9778 |
<name>$pieces</name>
|
9779 |
<default><![CDATA[]]></default>
|
9780 |
<type/>
|
9781 |
</argument>
|
9782 |
</method>
|
9783 |
+
<method final="false" abstract="false" static="true" visibility="public" namespace="global" line="3184" package="Media Library Assistant">
|
9784 |
<name>mla_get_terms</name>
|
9785 |
<full_name>mla_get_terms</full_name>
|
9786 |
+
<docblock line="3132">
|
9787 |
<description><![CDATA[Retrieve the terms in one or more taxonomies.]]></description>
|
9788 |
<long-description><![CDATA[<p>Alternative to WordPress get_terms() function that provides
|
9789 |
an accurate count of attachments associated with each term.</p>
|
9790 |
|
9791 |
<p>taxonomy - string containing one or more (comma-delimited) taxonomy names
|
9792 |
+
or an array of taxonomy names. Default 'post_tag'.</p>
|
9793 |
+
|
9794 |
+
<p>post_mime_type - MIME type(s) of the items to include in the term-specific counts. Default 'all'.</p>
|
9795 |
+
|
9796 |
+
<p>post_type - The post type(s) of the items to include in the term-specific counts. The default is "attachment".</p>
|
9797 |
+
|
9798 |
+
<p>post_status - The post status value(s) of the items to include in the term-specific counts. The default is "inherit".</p>
|
9799 |
+
|
9800 |
+
<p>ids - A comma-separated list of attachment ID values for an item-specific cloud.</p>
|
9801 |
|
9802 |
<p>include - An array, comma- or space-delimited string of term ids to include
|
9803 |
in the return array.</p>
|
9807 |
|
9808 |
<p>parent - term_id of the terms' immediate parent; 0 for top-level terms.</p>
|
9809 |
|
9810 |
+
<p>minimum - minimum number of attachments a term must have to be included. Default 0.</p>
|
9811 |
|
9812 |
+
<p>no_count - 'true', 'false' (default) to suppress term-specific attachment-counting process.</p>
|
9813 |
|
9814 |
<p>number - maximum number of term objects to return. Terms are ordered by count,
|
9815 |
+
descending and then by term_id before this value is applied. Default 45.</p>
|
9816 |
+
|
9817 |
+
<p>orderby - 'count', 'id', 'name' (default), 'none', 'random', 'slug'</p>
|
9818 |
|
9819 |
+
<p>order - 'ASC' (default), 'DESC'</p>
|
9820 |
|
9821 |
+
<p>no_orderby - 'true', 'false' (default) to suppress ALL sorting clauses else false.</p>
|
9822 |
|
9823 |
+
<p>preserve_case - 'true', 'false' (default) to make orderby case-sensitive.</p>
|
9824 |
|
9825 |
+
<p>pad_counts - 'true', 'false' (default) to make orderby case-sensitive.</p>
|
9826 |
|
9827 |
+
<p>limit - final number of term objects to return, for pagination. Default 0.</p>
|
9828 |
|
9829 |
+
<p>offset - number of term objects to skip, for pagination. Default 0.</p>]]></long-description>
|
9830 |
+
<tag line="3132" name="since" description="1.60"/>
|
9831 |
+
<tag line="3132" name="param" description="taxonomies to search and query parameters" type="array" variable="$attr">
|
9832 |
<type by_reference="false">array</type>
|
9833 |
</tag>
|
9834 |
+
<tag line="3132" name="return" description="array of term objects, empty if none found" type="array">
|
9835 |
<type by_reference="false">array</type>
|
9836 |
</tag>
|
9837 |
</docblock>
|
9838 |
+
<argument line="3184">
|
9839 |
<name>$attr</name>
|
9840 |
<default><![CDATA[]]></default>
|
9841 |
<type/>
|
9842 |
</argument>
|
9843 |
</method>
|
9844 |
+
<method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3491" package="Media Library Assistant">
|
9845 |
+
<name>_pad_term_counts</name>
|
9846 |
+
<full_name>_pad_term_counts</full_name>
|
9847 |
+
<docblock line="3477">
|
9848 |
+
<description><![CDATA[Add count of children to parent count.]]></description>
|
9849 |
+
<long-description><![CDATA[<p>Recalculates term counts by including items from child terms. Assumes all
|
9850 |
+
relevant children are already in the $terms argument.</p>]]></long-description>
|
9851 |
+
<tag line="3477" name="since" description="1.90"/>
|
9852 |
+
<tag line="3477" name="param" description="Array of Term objects, by reference" type="array" variable="$terms">
|
9853 |
+
<type by_reference="false">array</type>
|
9854 |
+
</tag>
|
9855 |
+
<tag line="3477" name="param" description="Term Context" type="string" variable="$taxonomy">
|
9856 |
+
<type by_reference="false">string</type>
|
9857 |
+
</tag>
|
9858 |
+
<tag line="3477" name="param" description="Qualifying post type value(s)" type="array" variable="$post_types">
|
9859 |
+
<type by_reference="false">array</type>
|
9860 |
+
</tag>
|
9861 |
+
<tag line="3477" name="param" description="Qualifying post status value(s)" type="array" variable="$post_stati">
|
9862 |
+
<type by_reference="false">array</type>
|
9863 |
+
</tag>
|
9864 |
+
<tag line="3477" name="return" description="Will break from function if conditions are not met." type="null">
|
9865 |
+
<type by_reference="false">null</type>
|
9866 |
+
</tag>
|
9867 |
+
</docblock>
|
9868 |
+
<argument line="3491">
|
9869 |
+
<name>$terms</name>
|
9870 |
+
<default><![CDATA[]]></default>
|
9871 |
+
<type/>
|
9872 |
+
</argument>
|
9873 |
+
<argument line="3491">
|
9874 |
+
<name>$taxonomy</name>
|
9875 |
+
<default><![CDATA[]]></default>
|
9876 |
+
<type/>
|
9877 |
+
</argument>
|
9878 |
+
<argument line="3491">
|
9879 |
+
<name>$post_types</name>
|
9880 |
+
<default><![CDATA[NULL]]></default>
|
9881 |
+
<type/>
|
9882 |
+
</argument>
|
9883 |
+
<argument line="3491">
|
9884 |
+
|