Changeset 19733 for extensions/Piwecard
- Timestamp:
- Jan 3, 2013, 12:05:11 AM (11 years ago)
- Location:
- extensions/Piwecard
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Piwecard/include/ecard.class.php
r19732 r19733 277 277 // Init user groups 278 278 $this->get_user_groups(); 279 280 // CSS and JS file for the template281 $file = "lightbox-form";282 $template->append('<link rel="stylesheet" type="text/css" href="'.ECARD_PATH . 'template/'.$file.'.css">');283 $template->append('<script src="'.ECARD_PATH .'js/'.$file.'.js" type="text/javascript"></script>');284 279 285 280 // Only on category page! -
extensions/Piwecard/main.inc.php
r19732 r19733 49 49 add_event_handler('loc_end_index', array(&$ecard, 'index_ecard')); 50 50 51 add_event_handler('loc_end_page_header', 'css_js_ecard'); 51 52 52 set_plugin_data($plugin['id'], $ecard) 53 set_plugin_data($plugin['id'], $ecard); 53 54 55 function css_js_ecard() { 56 global $template; 57 58 $file = "lightbox-form"; 59 $template->append('head_elements', '<link rel="stylesheet" type="text/css" href="'.ECARD_PATH . 'template/'.$file.'.css">'); 60 $template->append('head_elements', '<script src="'.ECARD_PATH .'js/'.$file.'.js" type="text/javascript"></script>'); 61 } 54 62 ?>
Note: See TracChangeset
for help on using the changeset viewer.