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