Changeset 26470 for extensions/gvideo/include
- Timestamp:
- Jan 6, 2014, 4:41:55 PM (11 years ago)
- Location:
- extensions/gvideo/include
- Files:
-
- 1 deleted
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
extensions/gvideo/include/events.inc.php
r24342 r26470 1 1 <?php 2 if (!defined('GVIDEO_PATH'))die('Hacking attempt!');2 defined('GVIDEO_PATH') or die('Hacking attempt!'); 3 3 4 4 /** … … 11 11 // remove default parser 12 12 remove_event_handler('render_element_content', 'default_picture_content', EVENT_HANDLER_PRIORITY_NEUTRAL); 13 14 // remove autosize15 global $pwg_loaded_plugins, $autosize_ctrl;16 13 17 if ( isset($pwg_loaded_plugins['Autosize']) and isset($autosize_ctrl) ) 18 { 19 remove_event_handler('render_element_content', array(&$autosize_ctrl, 'autosize_calcContent'), EVENT_HANDLER_PRIORITY_NEUTRAL-11, 2); 20 remove_event_handler('render_element_content', array(&$autosize_ctrl, 'init_1'), EVENT_HANDLER_PRIORITY_NEUTRAL-9, 2); 21 remove_event_handler('render_element_content', array(&$autosize_ctrl, 'init'), EVENT_HANDLER_PRIORITY_NEUTRAL-1, 2); 22 remove_event_handler('render_element_content', array(&$autosize_ctrl, 'init2'), EVENT_HANDLER_PRIORITY_NEUTRAL+1, 2); 23 remove_event_handler('loc_after_page_header', array(&$autosize_ctrl, 'cl_autosize_script_1')); 24 remove_event_handler('loc_after_page_header', array(&$autosize_ctrl, 'cl_autosize_script_2')); 25 remove_event_handler('loc_after_page_header', array(&$autosize_ctrl, 'cl_autosize_script_3')); 26 remove_event_handler('loc_after_page_header', array(&$autosize_ctrl, 'cl_autosize_affiche'), EVENT_HANDLER_PRIORITY_NEUTRAL+21); 27 } 14 // add custom parser 15 add_event_handler('render_element_content', 'gvideo_element_content', EVENT_HANDLER_PRIORITY_NEUTRAL-10, 2); 28 16 } 29 17 … … 42 30 43 31 global $page, $picture, $template, $conf; 44 45 if (is_string($conf['gvideo']))46 {47 $conf['gvideo'] = unserialize($conf['gvideo']);48 }49 32 50 33 // remove some actions … … 89 72 90 73 global $user; 74 // hide stripped overlay preventing to click on video object 91 75 if (strpos('stripped', $user['theme']) !== false) 92 76 { 93 $template-> append('head_elements', '<style type="text/css">.hideTabs{display:none !important;}</style>');77 $template->block_html_style(null, '.hideTabs{ display:none !important; }'); 94 78 } 95 79 … … 109 93 pwg_query($query); 110 94 } 111 112 ?>
Note: See TracChangeset
for help on using the changeset viewer.