1 | <?php |
---|
2 | $core = array( |
---|
3 | array( |
---|
4 | 'name' => 'allow_increment_element_hit_count', |
---|
5 | 'type' => 'trigger_change', |
---|
6 | 'vars' => array('bool', 'content_not_set'), |
---|
7 | 'files' => array('picture.php'), |
---|
8 | ), |
---|
9 | array( |
---|
10 | 'name' => 'begin_delete_elements', |
---|
11 | 'type' => 'trigger_notify', |
---|
12 | 'vars' => array('array', 'ids'), |
---|
13 | 'files' => array('admin\include\functions.inc.php (delete_elements)'), |
---|
14 | ), |
---|
15 | array( |
---|
16 | 'name' => 'blockmanager_apply', |
---|
17 | 'type' => 'trigger_notify', |
---|
18 | 'vars' => array('object', 'menublock'), |
---|
19 | 'files' => array('include\block.class.php (BlockManager::apply)'), |
---|
20 | 'infos' => 'use this trigger to modify existing menu blocks', |
---|
21 | ), |
---|
22 | array( |
---|
23 | 'name' => 'blockmanager_prepare_display', |
---|
24 | 'type' => 'trigger_notify', |
---|
25 | 'vars' => array('object', 'this'), |
---|
26 | 'files' => array('include\block.class.php (BlockManager::prepare_display)'), |
---|
27 | ), |
---|
28 | array( |
---|
29 | 'name' => 'blockmanager_register_blocks', |
---|
30 | 'type' => 'trigger_notify', |
---|
31 | 'vars' => array('object', 'menu'), |
---|
32 | 'files' => array('include\block.class.php (BlockManager::load_registered_blocks)'), |
---|
33 | 'infos' => 'use this trigger to add menu block', |
---|
34 | ), |
---|
35 | array( |
---|
36 | 'name' => 'clean_iptc_value', |
---|
37 | 'type' => 'trigger_change', |
---|
38 | 'vars' => array('string', 'value'), |
---|
39 | 'files' => array('include\functions_metadata.inc.php (clean_iptc_value)'), |
---|
40 | ), |
---|
41 | array( |
---|
42 | 'name' => 'combined_css', |
---|
43 | 'type' => 'trigger_change', |
---|
44 | 'vars' => array('string', 'href', 'Combinable', '$combinable'), |
---|
45 | 'files' => array('include\template.class.php (Template::flush)'), |
---|
46 | ), |
---|
47 | array( |
---|
48 | 'name' => 'combined_css_postfilter', |
---|
49 | 'type' => 'trigger_change', |
---|
50 | 'vars' => array('string', 'css'), |
---|
51 | 'files' => array('include\template.class.php (Template::process_css)'), |
---|
52 | ), |
---|
53 | array( |
---|
54 | 'name' => 'combined_script', |
---|
55 | 'type' => 'trigger_change', |
---|
56 | 'vars' => array('string', 'ret', 'string', 'script'), |
---|
57 | 'files' => array('include\template.class.php (Template::make_script_src)'), |
---|
58 | ), |
---|
59 | array( |
---|
60 | 'name' => 'delete_categories', |
---|
61 | 'type' => 'trigger_notify', |
---|
62 | 'vars' => array('array', 'ids'), |
---|
63 | 'files' => array('admin\include\functions.inc.php (delete_categories)'), |
---|
64 | ), |
---|
65 | array( |
---|
66 | 'name' => 'delete_elements', |
---|
67 | 'type' => 'trigger_notify', |
---|
68 | 'vars' => array('array', 'ids'), |
---|
69 | 'files' => array('admin\include\functions.inc.php (delete_elements)'), |
---|
70 | ), |
---|
71 | array( |
---|
72 | 'name' => 'delete_user', |
---|
73 | 'type' => 'trigger_notify', |
---|
74 | 'vars' => array('int', 'user_id'), |
---|
75 | 'files' => array('admin\include\functions.inc.php (delete_user)'), |
---|
76 | ), |
---|
77 | array( |
---|
78 | 'name' => 'element_set_global_action', |
---|
79 | 'type' => 'trigger_notify', |
---|
80 | 'vars' => array('string', 'action', 'array', 'collection'), |
---|
81 | 'files' => array('admin\batch_manager_global.php'), |
---|
82 | ), |
---|
83 | array( |
---|
84 | 'name' => 'format_exif_data', |
---|
85 | 'type' => 'trigger_change', |
---|
86 | 'vars' => array('array', 'exif', 'string', 'filename', 'array', 'map'), |
---|
87 | 'files' => array('include\functions_metadata.inc.php (get_exif_data)'), |
---|
88 | ), |
---|
89 | array( |
---|
90 | 'name' => 'functions_history_included', |
---|
91 | 'type' => 'trigger_notify', |
---|
92 | 'vars' => array(), |
---|
93 | 'files' => array('admin\include\functions_history.inc.php'), |
---|
94 | ), |
---|
95 | array( |
---|
96 | 'name' => 'functions_mail_included', |
---|
97 | 'type' => 'trigger_notify', |
---|
98 | 'vars' => array(), |
---|
99 | 'files' => array('include\functions_mail.inc.php'), |
---|
100 | ), |
---|
101 | array( |
---|
102 | 'name' => 'get_admin_advanced_features_links', |
---|
103 | 'type' => 'trigger_change', |
---|
104 | 'vars' => array('array', 'advanced_features'), |
---|
105 | 'files' => array('admin\maintenance.php'), |
---|
106 | ), |
---|
107 | array( |
---|
108 | 'name' => 'get_admin_plugin_menu_links', |
---|
109 | 'type' => 'trigger_change', |
---|
110 | 'vars' => array('array', null), |
---|
111 | 'files' => array('admin.php'), |
---|
112 | 'infos' => 'use this trigger to add links into admin plugins menu', |
---|
113 | ), |
---|
114 | array( |
---|
115 | 'name' => 'get_admins_site_links', |
---|
116 | 'type' => 'trigger_change', |
---|
117 | 'vars' => array('array', 'plugin_links', 'int', 'site_id', 'bool', 'is_remote'), |
---|
118 | 'files' => array('admin\site_manager.php'), |
---|
119 | ), |
---|
120 | array( |
---|
121 | 'name' => 'get_batch_manager_prefilters', |
---|
122 | 'type' => 'trigger_change', |
---|
123 | 'vars' => array('array', 'prefilters'), |
---|
124 | 'files' => array('admin\batch_manager_global.php'), |
---|
125 | 'infos' => 'use this trigger to add prefilters into batch manager global', |
---|
126 | ), |
---|
127 | array( |
---|
128 | 'name' => 'get_categories_menu_sql_where', |
---|
129 | 'type' => 'trigger_change', |
---|
130 | 'vars' => array('string', 'where', 'bool', 'user_expand', 'bool', 'filter_enabled'), |
---|
131 | 'files' => array('include\functions_category.inc.php (get_categories_menu)'), |
---|
132 | ), |
---|
133 | array( |
---|
134 | 'name' => 'get_category_preferred_image_orders', |
---|
135 | 'type' => 'trigger_change', |
---|
136 | 'vars' => array('array', null), |
---|
137 | 'files' => array('include\functions_category.inc.php (get_category_preferred_image_orders)'), |
---|
138 | ), |
---|
139 | array( |
---|
140 | 'name' => 'get_download_url', |
---|
141 | 'type' => 'trigger_change', |
---|
142 | 'vars' => array('string', 'url', 'array', 'element_info'), |
---|
143 | 'files' => array('include\functions_picture.inc.php (get_download_url)'), |
---|
144 | ), |
---|
145 | array( |
---|
146 | 'name' => 'get_element_metadata_available', |
---|
147 | 'type' => 'trigger_change', |
---|
148 | 'vars' => array('bool', null, 'string', 'element_path'), |
---|
149 | 'files' => array('picture.php'), |
---|
150 | ), |
---|
151 | array( |
---|
152 | 'name' => 'get_element_url', |
---|
153 | 'type' => 'trigger_change', |
---|
154 | 'vars' => array('string', 'url', 'array', 'element_info'), |
---|
155 | 'files' => array('include\functions_picture.inc.php (get_element_url)'), |
---|
156 | ), |
---|
157 | array( |
---|
158 | 'name' => 'get_high_location', |
---|
159 | 'type' => 'trigger_change', |
---|
160 | 'vars' => array('string', 'location', 'array', 'element_info'), |
---|
161 | 'files' => array('include\functions_picture.inc.php (get_high_location)'), |
---|
162 | ), |
---|
163 | array( |
---|
164 | 'name' => 'get_high_url', |
---|
165 | 'type' => 'trigger_change', |
---|
166 | 'vars' => array('string', 'url', 'array', 'element_info'), |
---|
167 | 'files' => array('include\functions_picture.inc.php (get_high_url)'), |
---|
168 | ), |
---|
169 | array( |
---|
170 | 'name' => 'get_history', |
---|
171 | 'type' => 'trigger_change', |
---|
172 | 'vars' => array('array', null, 'array', 'page_search', 'array', 'types'), |
---|
173 | 'files' => array('admin\history.php'), |
---|
174 | ), |
---|
175 | array( |
---|
176 | 'name' => 'get_image_location', |
---|
177 | 'type' => 'trigger_change', |
---|
178 | 'vars' => array('string', 'path', 'array', 'element_info'), |
---|
179 | 'files' => array('include\functions_picture.inc.php (get_image_location)'), |
---|
180 | ), |
---|
181 | array( |
---|
182 | 'name' => 'get_popup_help_content', |
---|
183 | 'type' => 'trigger_change', |
---|
184 | 'vars' => array('string', 'help_content', 'string', 'page'), |
---|
185 | 'files' => array('admin\popuphelp.php', 'popuphelp.php'), |
---|
186 | ), |
---|
187 | array( |
---|
188 | 'name' => 'get_pwg_themes', |
---|
189 | 'type' => 'trigger_change', |
---|
190 | 'vars' => array('array', 'themes'), |
---|
191 | 'files' => array('include\functions.inc.php (get_pwg_themes)'), |
---|
192 | ), |
---|
193 | array( |
---|
194 | 'name' => 'get_thumbnail_title', |
---|
195 | 'type' => 'trigger_change', |
---|
196 | 'vars' => array('string', 'title', 'array', 'info'), |
---|
197 | 'files' => array('include\functions.inc.php (get_thumbnail_title)'), |
---|
198 | ), |
---|
199 | array( |
---|
200 | 'name' => 'get_comments_derivative_params', |
---|
201 | 'type' => 'trigger_change', |
---|
202 | 'vars' => array('ImageStdParams', null), |
---|
203 | 'files' => array('comments.php'), |
---|
204 | 'infos' => 'New in 2.4', |
---|
205 | ), |
---|
206 | array( |
---|
207 | 'name' => 'get_index_album_derivative_params', |
---|
208 | 'type' => 'trigger_change', |
---|
209 | 'vars' => array('ImageStdParams', null), |
---|
210 | 'files' => array('includecategory_cats.php', 'include\category_default.inc.php'), |
---|
211 | 'infos' => 'New in 2.4', |
---|
212 | ), |
---|
213 | array( |
---|
214 | 'name' => 'get_src_image_url', |
---|
215 | 'type' => 'trigger_change', |
---|
216 | 'vars' => array('string', 'url', 'SrcImage', 'this'), |
---|
217 | 'files' => array('include\derivative.inc.php (SrcImage::__construct)'), |
---|
218 | 'infos' => 'New in 2.4', |
---|
219 | ), |
---|
220 | array( |
---|
221 | 'name' => 'get_derivative_url', |
---|
222 | 'type' => 'trigger_change', |
---|
223 | 'vars' => array('string', 'url', 'ImageStdParams', null, 'SrcImage', 'this', 'string', 'rel_url'), |
---|
224 | 'files' => array('include\derivative.inc.php (SrcImage::url, SrcImage::get_url)'), |
---|
225 | 'infos' => 'New in 2.4', |
---|
226 | ), |
---|
227 | array( |
---|
228 | 'name' => 'get_tag_alt_names', |
---|
229 | 'type' => 'trigger_change', |
---|
230 | 'vars' => array('array', null, 'string', 'raw_name'), |
---|
231 | 'files' => array('admin\tags.php', 'admin\include\functions.php (get_taglist)'), |
---|
232 | 'infos' => 'New in 2.4', |
---|
233 | ), |
---|
234 | array( |
---|
235 | 'name' => 'get_tag_name_like_where', |
---|
236 | 'type' => 'trigger_change', |
---|
237 | 'vars' => array('array', null, 'string', 'tag_name'), |
---|
238 | 'files' => array('admin\include\functions.php (tag_id_from_tag_name)'), |
---|
239 | 'infos' => 'New in 2.7', |
---|
240 | ), |
---|
241 | array( |
---|
242 | 'name' => 'get_webmaster_mail_address', |
---|
243 | 'type' => 'trigger_change', |
---|
244 | 'vars' => array('string', 'email'), |
---|
245 | 'files' => array('include\functions.inc.php (get_webmaster_mail_address)'), |
---|
246 | 'infos' => 'New in 2.6', |
---|
247 | ), |
---|
248 | array( |
---|
249 | 'name' => 'init', |
---|
250 | 'type' => 'trigger_notify', |
---|
251 | 'vars' => array(), |
---|
252 | 'files' => array('include\common.inc.php'), |
---|
253 | 'infos' => 'this action is called just after the common initialization, $conf, $user and $page (partial) variables are availables', |
---|
254 | ), |
---|
255 | array( |
---|
256 | 'name' => 'invalidate_user_cache', |
---|
257 | 'type' => 'trigger_notify', |
---|
258 | 'vars' => array('bool', 'full'), |
---|
259 | 'files' => array('admin\include\functions.inc.php (invalidate_user_cache)'), |
---|
260 | ), |
---|
261 | array( |
---|
262 | 'name' => 'load_conf', |
---|
263 | 'type' => 'trigger_notify', |
---|
264 | 'vars' => array('string', 'condition'), |
---|
265 | 'files' => array('include\functions.inc.php (load_conf_from_db)'), |
---|
266 | 'infos' => 'New in 2.6. <b>Warning:</b> you can\'t trigger the first call done une common.inc.php. Use <i>init</i> instead.', |
---|
267 | ), |
---|
268 | array( |
---|
269 | 'name' => 'list_check_integrity', |
---|
270 | 'type' => 'trigger_notify', |
---|
271 | 'vars' => array('object', 'this'), |
---|
272 | 'files' => array('admin\include\check_integrity.class.php (check_integrity::check)'), |
---|
273 | ), |
---|
274 | array( |
---|
275 | 'name' => 'load_image_library', |
---|
276 | 'type' => 'trigger_notify', |
---|
277 | 'vars' => array('object', 'this'), |
---|
278 | 'files' => array('admin\include\image.class.php (pwg_image::__construct)'), |
---|
279 | ), |
---|
280 | array( |
---|
281 | 'name' => 'load_profile_in_template', |
---|
282 | 'type' => 'trigger_notify', |
---|
283 | 'vars' => array('array', 'userdata'), |
---|
284 | 'files' => array('profile.php (load_profile_in_template)'), |
---|
285 | ), |
---|
286 | array( |
---|
287 | 'name' => 'loading_lang', |
---|
288 | 'type' => 'trigger_notify', |
---|
289 | 'vars' => array(), |
---|
290 | 'files' => array('include\common.inc.php', 'include\functions.inc.php (redirect_html)', 'include\functions_mail.inc.php (switch_lang_to)', 'nbm.php'), |
---|
291 | ), |
---|
292 | array( |
---|
293 | 'name' => 'loc_after_page_header', |
---|
294 | 'type' => 'trigger_notify', |
---|
295 | 'vars' => array(), |
---|
296 | 'files' => array('include\page_header.php'), |
---|
297 | ), |
---|
298 | array( |
---|
299 | 'name' => 'loc_begin_about', |
---|
300 | 'type' => 'trigger_notify', |
---|
301 | 'vars' => array(), |
---|
302 | 'files' => array('about.php'), |
---|
303 | ), |
---|
304 | array( |
---|
305 | 'name' => 'loc_begin_admin', |
---|
306 | 'type' => 'trigger_notify', |
---|
307 | 'vars' => array(), |
---|
308 | 'files' => array('admin.php'), |
---|
309 | ), |
---|
310 | array( |
---|
311 | 'name' => 'loc_begin_admin_page', |
---|
312 | 'type' => 'trigger_notify', |
---|
313 | 'vars' => array(), |
---|
314 | 'files' => array('admin.php'), |
---|
315 | ), |
---|
316 | array( |
---|
317 | 'name' => 'loc_begin_cat_list', |
---|
318 | 'type' => 'trigger_notify', |
---|
319 | 'vars' => array(), |
---|
320 | 'files' => array('admin\cat_list.php'), |
---|
321 | ), |
---|
322 | array( |
---|
323 | 'name' => 'loc_begin_cat_modify', |
---|
324 | 'type' => 'trigger_notify', |
---|
325 | 'vars' => array(), |
---|
326 | 'files' => array('admin\cat_modify.php'), |
---|
327 | ), |
---|
328 | array( |
---|
329 | 'name' => 'loc_begin_element_set_global', |
---|
330 | 'type' => 'trigger_notify', |
---|
331 | 'vars' => array(), |
---|
332 | 'files' => array('admin\batch_manager_global.php'), |
---|
333 | ), |
---|
334 | array( |
---|
335 | 'name' => 'loc_begin_element_set_unit', |
---|
336 | 'type' => 'trigger_notify', |
---|
337 | 'vars' => array(), |
---|
338 | 'files' => array('admin\batch_manager_unit.php'), |
---|
339 | ), |
---|
340 | array( |
---|
341 | 'name' => 'loc_begin_index', |
---|
342 | 'type' => 'trigger_notify', |
---|
343 | 'vars' => array(), |
---|
344 | 'files' => array('index.php'), |
---|
345 | ), |
---|
346 | array( |
---|
347 | 'name' => 'loc_begin_index_category_thumbnails', |
---|
348 | 'type' => 'trigger_notify', |
---|
349 | 'vars' => array('array', 'categories'), |
---|
350 | 'files' => array('include\category_cats.inc.php'), |
---|
351 | ), |
---|
352 | array( |
---|
353 | 'name' => 'loc_begin_index_thumbnails', |
---|
354 | 'type' => 'trigger_notify', |
---|
355 | 'vars' => array('array', 'pictures'), |
---|
356 | 'files' => array('include\category_default.inc.php'), |
---|
357 | ), |
---|
358 | array( |
---|
359 | 'name' => 'loc_begin_page_header', |
---|
360 | 'type' => 'trigger_notify', |
---|
361 | 'vars' => array(), |
---|
362 | 'files' => array('include\page_header.php'), |
---|
363 | ), |
---|
364 | array( |
---|
365 | 'name' => 'loc_begin_page_tail', |
---|
366 | 'type' => 'trigger_notify', |
---|
367 | 'vars' => array(), |
---|
368 | 'files' => array('include\page_tail.php'), |
---|
369 | ), |
---|
370 | array( |
---|
371 | 'name' => 'loc_begin_picture', |
---|
372 | 'type' => 'trigger_notify', |
---|
373 | 'vars' => array(), |
---|
374 | 'files' => array('picture.php'), |
---|
375 | ), |
---|
376 | array( |
---|
377 | 'name' => 'loc_begin_profile', |
---|
378 | 'type' => 'trigger_notify', |
---|
379 | 'vars' => array(), |
---|
380 | 'files' => array('profile.php'), |
---|
381 | ), |
---|
382 | array( |
---|
383 | 'name' => 'loc_begin_password', |
---|
384 | 'type' => 'trigger_notify', |
---|
385 | 'vars' => array(), |
---|
386 | 'files' => array('password.php'), |
---|
387 | 'infos' => 'New in 2.5', |
---|
388 | ), |
---|
389 | array( |
---|
390 | 'name' => 'loc_begin_register', |
---|
391 | 'type' => 'trigger_notify', |
---|
392 | 'vars' => array(), |
---|
393 | 'files' => array('register.php'), |
---|
394 | 'infos' => 'New in 2.5', |
---|
395 | ), |
---|
396 | array( |
---|
397 | 'name' => 'loc_begin_search', |
---|
398 | 'type' => 'trigger_notify', |
---|
399 | 'vars' => array(), |
---|
400 | 'files' => array('search.php'), |
---|
401 | 'infos' => 'New in 2.5', |
---|
402 | ), |
---|
403 | array( |
---|
404 | 'name' => 'loc_begin_tags', |
---|
405 | 'type' => 'trigger_notify', |
---|
406 | 'vars' => array(), |
---|
407 | 'files' => array('tags.php'), |
---|
408 | 'infos' => 'New in 2.5', |
---|
409 | ), |
---|
410 | array( |
---|
411 | 'name' => 'loc_begin_comments', |
---|
412 | 'type' => 'trigger_notify', |
---|
413 | 'vars' => array(), |
---|
414 | 'files' => array('comments.php'), |
---|
415 | 'infos' => 'New in 2.5', |
---|
416 | ), |
---|
417 | array( |
---|
418 | 'name' => 'loc_begin_identification', |
---|
419 | 'type' => 'trigger_notify', |
---|
420 | 'vars' => array(), |
---|
421 | 'files' => array('identification.php'), |
---|
422 | 'infos' => 'New in 2.5', |
---|
423 | ), |
---|
424 | array( |
---|
425 | 'name' => 'loc_begin_notification', |
---|
426 | 'type' => 'trigger_notify', |
---|
427 | 'vars' => array(), |
---|
428 | 'files' => array('notification.php'), |
---|
429 | 'infos' => 'New in 2.5', |
---|
430 | ), |
---|
431 | array( |
---|
432 | 'name' => 'loc_end_password', |
---|
433 | 'type' => 'trigger_notify', |
---|
434 | 'vars' => array(), |
---|
435 | 'files' => array('password.php'), |
---|
436 | 'infos' => 'New in 2.5', |
---|
437 | ), |
---|
438 | array( |
---|
439 | 'name' => 'loc_end_register', |
---|
440 | 'type' => 'trigger_notify', |
---|
441 | 'vars' => array(), |
---|
442 | 'files' => array('register.php'), |
---|
443 | 'infos' => 'New in 2.5', |
---|
444 | ), |
---|
445 | array( |
---|
446 | 'name' => 'loc_end_search', |
---|
447 | 'type' => 'trigger_notify', |
---|
448 | 'vars' => array(), |
---|
449 | 'files' => array('search.php'), |
---|
450 | 'infos' => 'New in 2.5', |
---|
451 | ), |
---|
452 | array( |
---|
453 | 'name' => 'loc_end_tags', |
---|
454 | 'type' => 'trigger_notify', |
---|
455 | 'vars' => array(), |
---|
456 | 'files' => array('tags.php'), |
---|
457 | 'infos' => 'New in 2.5', |
---|
458 | ), |
---|
459 | array( |
---|
460 | 'name' => 'loc_end_comments', |
---|
461 | 'type' => 'trigger_notify', |
---|
462 | 'vars' => array(), |
---|
463 | 'files' => array('comments.php'), |
---|
464 | 'infos' => 'New in 2.5', |
---|
465 | ), |
---|
466 | array( |
---|
467 | 'name' => 'loc_end_identification', |
---|
468 | 'type' => 'trigger_notify', |
---|
469 | 'vars' => array(), |
---|
470 | 'files' => array('identification.php'), |
---|
471 | 'infos' => 'New in 2.5', |
---|
472 | ), |
---|
473 | array( |
---|
474 | 'name' => 'loc_end_notification', |
---|
475 | 'type' => 'trigger_notify', |
---|
476 | 'vars' => array(), |
---|
477 | 'files' => array('notification.php'), |
---|
478 | 'infos' => 'New in 2.5', |
---|
479 | ), |
---|
480 | array( |
---|
481 | 'name' => 'loc_end_admin', |
---|
482 | 'type' => 'trigger_notify', |
---|
483 | 'vars' => array(), |
---|
484 | 'files' => array('admin.php'), |
---|
485 | ), |
---|
486 | array( |
---|
487 | 'name' => 'loc_end_cat_list', |
---|
488 | 'type' => 'trigger_notify', |
---|
489 | 'vars' => array(), |
---|
490 | 'files' => array('admin\cat_list.php'), |
---|
491 | ), |
---|
492 | array( |
---|
493 | 'name' => 'loc_end_cat_modify', |
---|
494 | 'type' => 'trigger_notify', |
---|
495 | 'vars' => array(), |
---|
496 | 'files' => array('admin\cat_modify.php'), |
---|
497 | ), |
---|
498 | array( |
---|
499 | 'name' => 'loc_end_element_set_global', |
---|
500 | 'type' => 'trigger_notify', |
---|
501 | 'vars' => array(), |
---|
502 | 'files' => array('admin\batch_manager_global.php'), |
---|
503 | ), |
---|
504 | array( |
---|
505 | 'name' => 'loc_end_element_set_unit', |
---|
506 | 'type' => 'trigger_notify', |
---|
507 | 'vars' => array(), |
---|
508 | 'files' => array('admin\batch_manager_unit.php'), |
---|
509 | ), |
---|
510 | array( |
---|
511 | 'name' => 'loc_end_help', |
---|
512 | 'type' => 'trigger_notify', |
---|
513 | 'vars' => array(), |
---|
514 | 'files' => array('admin\help.php'), |
---|
515 | ), |
---|
516 | array( |
---|
517 | 'name' => 'loc_end_index', |
---|
518 | 'type' => 'trigger_notify', |
---|
519 | 'vars' => array(), |
---|
520 | 'files' => array('index.php'), |
---|
521 | ), |
---|
522 | array( |
---|
523 | 'name' => 'loc_end_index_category_thumbnails', |
---|
524 | 'type' => 'trigger_change', |
---|
525 | 'vars' => array('array', 'tpl_thumbnails_var'), |
---|
526 | 'files' => array('include\category_cats.inc.php'), |
---|
527 | ), |
---|
528 | array( |
---|
529 | 'name' => 'loc_end_index_thumbnails', |
---|
530 | 'type' => 'trigger_change', |
---|
531 | 'vars' => array('array', 'tpl_thumbnails_var', 'array', 'pictures'), |
---|
532 | 'files' => array('include\category_default.inc.php'), |
---|
533 | ), |
---|
534 | array( |
---|
535 | 'name' => 'loc_end_no_photo_yet', |
---|
536 | 'type' => 'trigger_notify', |
---|
537 | 'vars' => array(), |
---|
538 | 'files' => array('include\no_photo_yet.inc.php'), |
---|
539 | ), |
---|
540 | array( |
---|
541 | 'name' => 'loc_end_page_header', |
---|
542 | 'type' => 'trigger_notify', |
---|
543 | 'vars' => array(), |
---|
544 | 'files' => array('include\page_header.php'), |
---|
545 | ), |
---|
546 | array( |
---|
547 | 'name' => 'loc_end_page_tail', |
---|
548 | 'type' => 'trigger_notify', |
---|
549 | 'vars' => array(), |
---|
550 | 'files' => array('include\page_tail.php'), |
---|
551 | ), |
---|
552 | array( |
---|
553 | 'name' => 'loc_end_photo_add_direct', |
---|
554 | 'type' => 'trigger_notify', |
---|
555 | 'vars' => array(), |
---|
556 | 'files' => array('admin\photo_add_direct.php'), |
---|
557 | ), |
---|
558 | array( |
---|
559 | 'name' => 'loc_end_picture', |
---|
560 | 'type' => 'trigger_notify', |
---|
561 | 'vars' => array(), |
---|
562 | 'files' => array('picture.php'), |
---|
563 | ), |
---|
564 | array( |
---|
565 | 'name' => 'loc_end_picture_modify', |
---|
566 | 'type' => 'trigger_notify', |
---|
567 | 'vars' => array(), |
---|
568 | 'files' => array('admin\picture_modify.php'), |
---|
569 | 'infos' => 'New in 2.6.3', |
---|
570 | ), |
---|
571 | array( |
---|
572 | 'name' => 'loc_end_profile', |
---|
573 | 'type' => 'trigger_notify', |
---|
574 | 'vars' => array(), |
---|
575 | 'files' => array('profile.php'), |
---|
576 | ), |
---|
577 | array( |
---|
578 | 'name' => 'loc_end_section_init', |
---|
579 | 'type' => 'trigger_notify', |
---|
580 | 'vars' => array(), |
---|
581 | 'files' => array('include\section_init.inc.php'), |
---|
582 | 'infos' => 'this action is called after section initilization, $page variable is fully defined', |
---|
583 | ), |
---|
584 | array( |
---|
585 | 'name' => 'loc_end_themes_installed', |
---|
586 | 'type' => 'trigger_notify', |
---|
587 | 'vars' => array(), |
---|
588 | 'files' => array('admin\themes_installed.php'), |
---|
589 | 'infos' => 'New in 2.6.3', |
---|
590 | ), |
---|
591 | array( |
---|
592 | 'name' => 'loc_visible_user_list', |
---|
593 | 'type' => 'trigger_change', |
---|
594 | 'vars' => array('array', 'visible_user_list'), |
---|
595 | 'files' => array('admin\user_list.php'), |
---|
596 | ), |
---|
597 | array( |
---|
598 | 'name' => 'login_failure', |
---|
599 | 'type' => 'trigger_notify', |
---|
600 | 'vars' => array('string', 'username'), |
---|
601 | 'files' => array('include\functions_user.inc.php (try_log_user)'), |
---|
602 | ), |
---|
603 | array( |
---|
604 | 'name' => 'login_success', |
---|
605 | 'type' => 'trigger_notify', |
---|
606 | 'vars' => array('string', 'username'), |
---|
607 | 'files' => array('include\functions_user.inc.php (auto_login, try_log_user)'), |
---|
608 | ), |
---|
609 | array( |
---|
610 | 'name' => 'nbm_event_handler_added', |
---|
611 | 'type' => 'trigger_notify', |
---|
612 | 'vars' => array(), |
---|
613 | 'files' => array('admin\notification_by_mail.php'), |
---|
614 | ), |
---|
615 | array( |
---|
616 | 'name' => 'nbm_render_global_customize_mail_content', |
---|
617 | 'type' => 'trigger_change', |
---|
618 | 'vars' => array('string', 'customize_mail_content'), |
---|
619 | 'files' => array('admin\notification_by_mail.php (do_action_send_mail_notification)'), |
---|
620 | ), |
---|
621 | array( |
---|
622 | 'name' => 'nbm_render_user_customize_mail_content', |
---|
623 | 'type' => 'trigger_change', |
---|
624 | 'vars' => array('string', 'customize_mail_content', 'string', 'nbm_user'), |
---|
625 | 'files' => array('admin\notification_by_mail.php (do_action_send_mail_notification)'), |
---|
626 | ), |
---|
627 | array( |
---|
628 | 'name' => 'perform_batch_manager_prefilters', |
---|
629 | 'type' => 'trigger_change', |
---|
630 | 'vars' => array('array', 'filter_sets', 'string', 'session_prefilter'), |
---|
631 | 'files' => array('admin\batch_manager.php'), |
---|
632 | ), |
---|
633 | array( |
---|
634 | 'name' => 'picture_pictures_data', |
---|
635 | 'type' => 'trigger_change', |
---|
636 | 'vars' => array('array', 'picture'), |
---|
637 | 'files' => array('picture.php'), |
---|
638 | ), |
---|
639 | array( |
---|
640 | 'name' => 'plugins_loaded', |
---|
641 | 'type' => 'trigger_notify', |
---|
642 | 'vars' => array(), |
---|
643 | 'files' => array('include\functions_plugins.inc.php (load_plugins)'), |
---|
644 | ), |
---|
645 | array( |
---|
646 | 'name' => 'pwg_log_allowed', |
---|
647 | 'type' => 'trigger_change', |
---|
648 | 'vars' => array('bool', 'do_log', 'int', 'image_id', 'string', 'image_type'), |
---|
649 | 'files' => array('include\functions.inc.php (pwg_log)'), |
---|
650 | ), |
---|
651 | array( |
---|
652 | 'name' => 'register_user', |
---|
653 | 'type' => 'trigger_notify', |
---|
654 | 'vars' => array('array', 'user'), |
---|
655 | 'files' => array('include\functions_user.inc.php (register_user)'), |
---|
656 | ), |
---|
657 | array( |
---|
658 | 'name' => 'register_user_check', |
---|
659 | 'type' => 'trigger_change', |
---|
660 | 'vars' => array('array', 'errors', 'array', 'user'), |
---|
661 | 'files' => array('include\functions_user.inc.php (register_user)'), |
---|
662 | ), |
---|
663 | array( |
---|
664 | 'name' => 'render_category_description', |
---|
665 | 'type' => 'trigger_change', |
---|
666 | 'vars' => array('string', 'category_description', 'string', 'action'), |
---|
667 | 'files' => array('include\category_cats.inc.php', 'include\section_init.inc.php', 'include\ws_functions.inc.php (ws_categories_getList, ws_categories_getAdminList)'), |
---|
668 | ), |
---|
669 | array( |
---|
670 | 'name' => 'render_category_literal_description', |
---|
671 | 'type' => 'trigger_change', |
---|
672 | 'vars' => array('string', 'category_description'), |
---|
673 | 'files' => array('include\category_cats.inc.php'), |
---|
674 | ), |
---|
675 | array( |
---|
676 | 'name' => 'render_category_name', |
---|
677 | 'type' => 'trigger_change', |
---|
678 | 'vars' => array('string', 'category_name', 'string', 'location'), |
---|
679 | 'files' => array('admin\cat_list.php', 'include\ws_functions.inc.php (ws_categories_getList, ws_categories_getAdminList, ws_categories_move)'), |
---|
680 | ), |
---|
681 | array( |
---|
682 | 'name' => 'render_comment_author', |
---|
683 | 'type' => 'trigger_change', |
---|
684 | 'vars' => array('string', 'comment_author'), |
---|
685 | 'files' => array('admin\comments.php', 'comments.php', 'include\picture_comment.inc.php'), |
---|
686 | ), |
---|
687 | array( |
---|
688 | 'name' => 'render_comment_content', |
---|
689 | 'type' => 'trigger_change', |
---|
690 | 'vars' => array('string', 'comment_content'), |
---|
691 | 'files' => array('admin\comments.php', 'comments.php', 'include\picture_comment.inc.php'), |
---|
692 | ), |
---|
693 | array( |
---|
694 | 'name' => 'render_element_content', |
---|
695 | 'type' => 'trigger_change', |
---|
696 | 'vars' => array('string', 'content', 'array', 'current_picture'), |
---|
697 | 'files' => array('picture.php'), |
---|
698 | ), |
---|
699 | array( |
---|
700 | 'name' => 'render_element_name', |
---|
701 | 'type' => 'trigger_change', |
---|
702 | 'vars' => array('string', 'element_name'), |
---|
703 | 'files' => array('include\functions_html.inc.php (render_element_name)'), |
---|
704 | ), |
---|
705 | array( |
---|
706 | 'name' => 'render_element_description', |
---|
707 | 'type' => 'trigger_change', |
---|
708 | 'vars' => array('string', 'element_description', 'string', 'action'), |
---|
709 | 'files' => array('picture.php', 'include\functions_html.inc.php (render_element_description)'), |
---|
710 | ), |
---|
711 | array( |
---|
712 | 'name' => 'render_lost_password_mail_content', |
---|
713 | 'type' => 'trigger_change', |
---|
714 | 'vars' => array('string', 'message'), |
---|
715 | 'files' => array('password.php (process_password_request)'), |
---|
716 | ), |
---|
717 | array( |
---|
718 | 'name' => 'render_page_banner', |
---|
719 | 'type' => 'trigger_change', |
---|
720 | 'vars' => array('string', 'gallery_title'), |
---|
721 | 'files' => array('include\page_header.php'), |
---|
722 | ), |
---|
723 | array( |
---|
724 | 'name' => 'render_tag_name', |
---|
725 | 'type' => 'trigger_change', |
---|
726 | 'vars' => array('string', 'tag_name', 'array', 'tag'), |
---|
727 | 'files' => array('admin\include\functions.php (get_taglist)', 'admin\tags.php', 'admin\history.php', 'include\functions_tag.inc.php (get_available_tags, get_all_tags, get_common_tags)', 'include\functions_html.inc.php (get_tags_content_title)', 'include\functions_search.inc.php (get_qsearch_tags)'), |
---|
728 | ), |
---|
729 | array( |
---|
730 | 'name' => 'render_tag_url', |
---|
731 | 'type' => 'trigger_change', |
---|
732 | 'vars' => array('string', 'tag_name'), |
---|
733 | 'files' => array('admin\include\functions.php (tag_id_from_tag_name, create_tag)', 'admin\tags.php'), |
---|
734 | ), |
---|
735 | array( |
---|
736 | 'name' => 'save_profile_from_post', |
---|
737 | 'type' => 'trigger_notify', |
---|
738 | 'vars' => array('int', 'user_id'), |
---|
739 | 'files' => array('profile.php (save_profile_from_post)'), |
---|
740 | ), |
---|
741 | array( |
---|
742 | 'name' => 'before_send_mail', |
---|
743 | 'type' => 'trigger_change', |
---|
744 | 'vars' => array('bool', 'result', 'mixed', 'to', 'array', 'arguments', 'PHPMailer', 'mail'), |
---|
745 | 'files' => array('include\functions_mail.inc.php (pwg_mail)'), |
---|
746 | ), |
---|
747 | array( |
---|
748 | 'name' => 'before_parse_mail_template', |
---|
749 | 'type' => 'trigger_notify', |
---|
750 | 'vars' => array('string', 'cache_key', 'string', 'content_type'), |
---|
751 | 'files' => array('include\functions_mail.inc.php (pwg_mail)'), |
---|
752 | ), |
---|
753 | array( |
---|
754 | 'name' => 'sendResponse', |
---|
755 | 'type' => 'trigger_notify', |
---|
756 | 'vars' => array('string', 'encodedResponse'), |
---|
757 | 'files' => array('include\ws_core.inc.php (PwgServer::sendResponse)'), |
---|
758 | ), |
---|
759 | array( |
---|
760 | 'name' => 'set_status_header', |
---|
761 | 'type' => 'trigger_notify', |
---|
762 | 'vars' => array('int', 'code', 'string', 'text'), |
---|
763 | 'files' => array('include\functions_html.inc.php (set_status_header)'), |
---|
764 | ), |
---|
765 | array( |
---|
766 | 'name' => 'tabsheet_before_select', |
---|
767 | 'type' => 'trigger_change', |
---|
768 | 'vars' => array('array', 'sheets', 'string', 'tabsheet_id'), |
---|
769 | 'files' => array('include\tabsheet.class.php (tabsheet::select)'), |
---|
770 | 'infos' => 'New in 2.4, use this trigger to add tabs to a tabsheets', |
---|
771 | ), |
---|
772 | array( |
---|
773 | 'name' => 'trigger', |
---|
774 | 'type' => 'trigger_notify', |
---|
775 | 'vars' => array('array', null), |
---|
776 | 'files' => array('include\functions_plugins.inc.php (trigger_change, trigger_notify)'), |
---|
777 | ), |
---|
778 | array( |
---|
779 | 'name' => 'user_comment_check', |
---|
780 | 'type' => 'trigger_change', |
---|
781 | 'vars' => array('string', 'comment_action', 'array', 'comm'), |
---|
782 | 'files' => array('include\functions_comment.inc.php (insert_user_comment, update_user_comment)'), |
---|
783 | 'infos' => 'use this trigger to add conditions on comment validation', |
---|
784 | ), |
---|
785 | array( |
---|
786 | 'name' => 'user_comment_deletion', |
---|
787 | 'type' => 'trigger_notify', |
---|
788 | 'vars' => array('mixed', 'comment_id'), |
---|
789 | 'files' => array('include\functions_comment.inc.php (delete_user_comment)'), |
---|
790 | 'infos' => '$comment_id is and int or an array of int', |
---|
791 | ), |
---|
792 | array( |
---|
793 | 'name' => 'user_comment_insertion', |
---|
794 | 'type' => 'trigger_notify', |
---|
795 | 'vars' => array('array', 'comm'), |
---|
796 | 'files' => array('include\picture_comment.inc.php'), |
---|
797 | ), |
---|
798 | array( |
---|
799 | 'name' => 'user_comment_validation', |
---|
800 | 'type' => 'trigger_notify', |
---|
801 | 'vars' => array('mixed', 'comment_id'), |
---|
802 | 'files' => array('include\functions_comment.inc.php (validate_user_comment)'), |
---|
803 | 'infos' => '$comment_id is and int or an array of int', |
---|
804 | ), |
---|
805 | array( |
---|
806 | 'name' => 'user_init', |
---|
807 | 'type' => 'trigger_notify', |
---|
808 | 'vars' => array('array', 'user'), |
---|
809 | 'files' => array('include\user.inc.php'), |
---|
810 | ), |
---|
811 | array( |
---|
812 | 'name' => 'ws_add_methods', |
---|
813 | 'type' => 'trigger_notify', |
---|
814 | 'vars' => array('object', 'this'), |
---|
815 | 'files' => array('include\ws_core.inc.php (PwgServer::run)'), |
---|
816 | ), |
---|
817 | array( |
---|
818 | 'name' => 'ws_invoke_allowed', |
---|
819 | 'type' => 'trigger_change', |
---|
820 | 'vars' => array('bool', null, 'string', 'methodName', 'array', 'params'), |
---|
821 | 'files' => array('include\ws_core.inc.php (PwgServer::invoke)'), |
---|
822 | ), |
---|
823 | array( |
---|
824 | 'name' => 'user_logout', |
---|
825 | 'type' => 'trigger_notify', |
---|
826 | 'vars' => array('int', 'user_id'), |
---|
827 | 'files' => array('include\functions_user.inc.php (logout_user)'), |
---|
828 | 'infos' => 'New in 2.5', |
---|
829 | ), |
---|
830 | array( |
---|
831 | 'name' => 'user_login', |
---|
832 | 'type' => 'trigger_notify', |
---|
833 | 'vars' => array('int', 'user_id'), |
---|
834 | 'files' => array('include\functions_user.inc.php (log_user)'), |
---|
835 | 'infos' => 'New in 2.5', |
---|
836 | ), |
---|
837 | array( |
---|
838 | 'name' => 'try_log_user', |
---|
839 | 'type' => 'trigger_change', |
---|
840 | 'vars' => array('boolean', 'success', 'string', 'username', 'string', 'password', 'bool', 'remember_me'), |
---|
841 | 'files' => array('include\functions_user.inc.php (try_log_user)'), |
---|
842 | 'infos' => 'New in 2.5. Used by identification form to check user credentials and log user. If <i>success</i> is <i>true</i>, another login method already succeed. Return <i>true</i> if your method succeed.', |
---|
843 | ), |
---|
844 | array( |
---|
845 | 'name' => 'combinable_preparse', |
---|
846 | 'type' => 'trigger_notify', |
---|
847 | 'vars' => array('Template', 'template', 'Combinable', '$combinable', 'FileCombiner', '$combiner'), |
---|
848 | 'files' => array('include\template.class.php (FileCombiner::process_combinable)'), |
---|
849 | 'infos' => 'New in 2.6.', |
---|
850 | ), |
---|
851 | array( |
---|
852 | 'name' => 'user_list_columns', |
---|
853 | 'type' => 'trigger_change', |
---|
854 | 'vars' => array('string[]', 'aColumns'), |
---|
855 | 'files' => array('admin\user_list_backend.php'), |
---|
856 | 'infos' => 'New in 2.6.', |
---|
857 | ), |
---|
858 | array( |
---|
859 | 'name' => 'after_render_user_list', |
---|
860 | 'type' => 'trigger_change', |
---|
861 | 'vars' => array('array', 'output'), |
---|
862 | 'files' => array('admin\user_list_backend.php'), |
---|
863 | 'infos' => 'New in 2.6.', |
---|
864 | ), |
---|
865 | array( |
---|
866 | 'name' => 'update_rating_score', |
---|
867 | 'type' => 'trigger_change', |
---|
868 | 'vars' => array('boolean', 'done', 'int', 'element_id'), |
---|
869 | 'files' => array('include\functions_rate.inc.php'), |
---|
870 | 'infos' => 'New in 2.6.', |
---|
871 | ), |
---|
872 | array( |
---|
873 | 'name' => 'picture_modify_before_update', |
---|
874 | 'type' => 'trigger_change', |
---|
875 | 'vars' => array('array', 'data'), |
---|
876 | 'files' => array('admin\picture_modify.php'), |
---|
877 | 'infos' => 'New in 2.6.2.', |
---|
878 | ), |
---|
879 | array( |
---|
880 | 'name' => 'ws_users_getList', |
---|
881 | 'type' => 'trigger_change', |
---|
882 | 'vars' => array('array', 'users'), |
---|
883 | 'files' => array('include\ws_functions\pwg.users.php'), |
---|
884 | 'infos' => 'New in 2.6.2.', |
---|
885 | ), |
---|
886 | ); |
---|
887 | ?> |
---|
888 | <!DOCTYPE html> |
---|
889 | <html xmlns="http://www.w3.org/1999/xhtml" lang="en" dir="ltr"> |
---|
890 | <head> |
---|
891 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
---|
892 | <title>Piwigo Core Triggers</title> |
---|
893 | |
---|
894 | <link rel="stylesheet" type="text/css" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css"> |
---|
895 | <link rel="stylesheet" type="text/css" href="http://ajax.aspnetcdn.com/ajax/jquery.dataTables/1.9.4/css/jquery.dataTables_themeroller.css"> |
---|
896 | |
---|
897 | <style type="text/css"> |
---|
898 | /* BEGIN CSS RESET |
---|
899 | http://meyerweb.com/eric/tools/css/reset |
---|
900 | v2.0 | 20110126 | License: none (public domain) */ |
---|
901 | html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, |
---|
902 | del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, |
---|
903 | fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, |
---|
904 | figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video |
---|
905 | {margin:0;padding:0;border:0;font-size:100%;vertical-align:baseline;} |
---|
906 | |
---|
907 | article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {display:block;} |
---|
908 | body {line-height:1.1;} |
---|
909 | blockquote, q {quotes:none;} |
---|
910 | blockquote:before, blockquote:after, q:before, q:after {content:'';content:none;} |
---|
911 | table {border-collapse:collapse;border-spacing:0;} |
---|
912 | /* END CSS RESET */ |
---|
913 | |
---|
914 | html {font-family:"Corbel","Lucida Grande","Verdana",sans-serif;color:#222;font-size:13px;} |
---|
915 | |
---|
916 | a {color:#247EBF;text-decoration:none;} |
---|
917 | a:hover {color:#EB9C39;border-bottom-width:1px;border-style:dotted;text-shadow:1px 1px 0 #ddd;} |
---|
918 | |
---|
919 | h1 {color:#fff;font-size:26px;padding:10px 15px;text-shadow:1px 1px 0 #999; |
---|
920 | background:#45484d;background:linear-gradient(to bottom, #45484d 0%,#333333 100%); |
---|
921 | } |
---|
922 | |
---|
923 | #the_header {border-bottom:1px solid #cdcdcd;margin-bottom:1px;} |
---|
924 | #the_footer {background:#EAEAEA;border-top:1px solid #cdcdcd;padding:10px;clear:both;} |
---|
925 | |
---|
926 | #the_page {padding:20px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAADCAIAAADZSiLoAAAAH0lEQVQImSXHMQEAMAwCMOrfK0jIjuVL2gLBzyHJtgd7wBdU3Vt/7AAAAABJRU5ErkJggg==);} |
---|
927 | |
---|
928 | tfoot input {width:80%;} |
---|
929 | tfoot .search_input {color:#999;} |
---|
930 | tfoot select.search_input option:not(:first-child) {color:#222;} |
---|
931 | </style> |
---|
932 | </head> |
---|
933 | |
---|
934 | <body> |
---|
935 | |
---|
936 | <div id="the_header"> |
---|
937 | <h1>Piwigo Core Triggers</h1> |
---|
938 | </div> <!-- the_header --> |
---|
939 | |
---|
940 | <div id="the_page"> |
---|
941 | <table id="list"> |
---|
942 | <thead> |
---|
943 | <tr> |
---|
944 | <th>Name</th> |
---|
945 | <th>Type</th> |
---|
946 | <th>Variables</th> |
---|
947 | <th>Usage in the core</th> |
---|
948 | <th>Commentary</th> |
---|
949 | </tr> |
---|
950 | </thead> |
---|
951 | <tbody> |
---|
952 | |
---|
953 | <?php |
---|
954 | foreach ($core as $trigger) |
---|
955 | { |
---|
956 | echo ' |
---|
957 | <tr> |
---|
958 | <td>'.$trigger['name'].'</td> |
---|
959 | <td>'.$trigger['type'].'</td> |
---|
960 | <td>'; |
---|
961 | for ($i=0; $i<count($trigger['vars']); $i+=2) |
---|
962 | { |
---|
963 | if ($i>0) echo ', '; |
---|
964 | echo $trigger['vars'][$i].' '.(!empty($trigger['vars'][$i+1])?'<i>$'.$trigger['vars'][$i+1].'</i>':null); |
---|
965 | } |
---|
966 | echo ' |
---|
967 | </td> |
---|
968 | <td>'; |
---|
969 | $f=1; |
---|
970 | foreach ($trigger['files'] as $file) |
---|
971 | { |
---|
972 | if (!$f) echo '<br>'; $f=0; |
---|
973 | echo preg_replace('#\((.+)\)#', '(<i>$1</i>)', $file); |
---|
974 | } |
---|
975 | echo ' |
---|
976 | </td> |
---|
977 | <td>'.@$trigger['infos'].'</td> |
---|
978 | </tr>'; |
---|
979 | } |
---|
980 | ?> |
---|
981 | |
---|
982 | </tbody> |
---|
983 | <tfoot> |
---|
984 | <tr> |
---|
985 | <td><input type="text" value="Name" class="search_input"></td> |
---|
986 | <td> |
---|
987 | <select class="search_input"> |
---|
988 | <option value="">Type</option> |
---|
989 | <option value="trigger_notify">trigger_notify</option> |
---|
990 | <option value="trigger_change">trigger_change</option> |
---|
991 | </select> |
---|
992 | </td> |
---|
993 | <td><input type="text" value="Variables" class="search_input"></td> |
---|
994 | <td><input type="text" value="Usage" class="search_input"></td> |
---|
995 | <td><input type="text" value="Commentary" class="search_input"></td> |
---|
996 | </tr> |
---|
997 | </tfoot> |
---|
998 | </table> |
---|
999 | </div> <!-- the_page --> |
---|
1000 | |
---|
1001 | <div id="the_footer"> |
---|
1002 | Copyright © 2002-2013 <a href="http://piwigo.org">Piwigo Team</a> |
---|
1003 | </div> <!-- the_footer --> |
---|
1004 | |
---|
1005 | |
---|
1006 | <script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.min.js"></script> |
---|
1007 | <script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jquery.dataTables/1.9.4/jquery.dataTables.min.js"></script> |
---|
1008 | |
---|
1009 | <script type="text/javascript"> |
---|
1010 | var oTable = $('#list').dataTable({ |
---|
1011 | "bJQueryUI": true, |
---|
1012 | "aaSorting": [ [0,'asc'] ], |
---|
1013 | "sPaginationType": "full_numbers", |
---|
1014 | "aLengthMenu": [[10, 30, 50, 70, 90, -1], [10, 30, 50, 70, 90, "All"]], |
---|
1015 | "iDisplayLength": 30, |
---|
1016 | "oLanguage": { |
---|
1017 | "sSearch": "Search all columns :" |
---|
1018 | } |
---|
1019 | }); |
---|
1020 | |
---|
1021 | // search input |
---|
1022 | $("tfoot td").each(function (i) { |
---|
1023 | $('select', this).change(function () { |
---|
1024 | oTable.fnFilter($(this).val(), i); |
---|
1025 | }); |
---|
1026 | $('input', this).keyup(function () { |
---|
1027 | oTable.fnFilter($(this).val(), i); |
---|
1028 | }); |
---|
1029 | }); |
---|
1030 | |
---|
1031 | // search helpers |
---|
1032 | var asInitVals = new Array(); |
---|
1033 | $("tfoot input").each(function (i) { |
---|
1034 | asInitVals[i] = $(this).val(); |
---|
1035 | }); |
---|
1036 | |
---|
1037 | $("tfoot input").focus(function () { |
---|
1038 | if (this.className == "search_input") { |
---|
1039 | $(this).removeClass("search_input"); |
---|
1040 | $(this).val(""); |
---|
1041 | } |
---|
1042 | }); |
---|
1043 | |
---|
1044 | $("tfoot input").blur(function (i) { |
---|
1045 | if ($(this).val() == "") { |
---|
1046 | $(this).addClass("search_input"); |
---|
1047 | $(this).val(asInitVals[$("tfoot input").index(this)]); |
---|
1048 | } |
---|
1049 | }); |
---|
1050 | |
---|
1051 | $("tfoot select").change(function () { |
---|
1052 | if ($(this).val() == "") { |
---|
1053 | $(this).addClass("search_input"); |
---|
1054 | } |
---|
1055 | else { |
---|
1056 | $(this).removeClass("search_input"); |
---|
1057 | } |
---|
1058 | }); |
---|
1059 | </script> |
---|
1060 | |
---|
1061 | </body> |
---|
1062 | </html> |
---|