Changeset 1882 for trunk/picture.php
- Timestamp:
- Mar 9, 2007, 4:37:56 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/picture.php
r1861 r1882 71 71 } 72 72 73 global $user, $page; 74 75 $my_template = new Template( 76 PHPWG_ROOT_PATH.'template/'.$user['template'], 77 $user['theme'] 78 ); 79 $my_template->set_filenames( 73 global $user, $page, $template; 74 75 $template->set_filenames( 80 76 array('default_content'=>'picture_content.tpl') 81 77 ); … … 84 80 { 85 81 $uuid = uniqid(rand()); 86 $ my_template->assign_block_vars(82 $template->assign_block_vars( 87 83 'high', 88 84 array( … … 92 88 ); 93 89 } 94 $ my_template->assign_vars( array(90 $template->assign_vars( array( 95 91 'SRC_IMG' => $element_info['image_url'], 96 92 'ALT_IMG' => $element_info['file'], … … 99 95 ) 100 96 ); 101 return $ my_template->parse( 'default_content', true);97 return $template->parse( 'default_content', true); 102 98 } 103 99 … … 483 479 $page['body_id'] = 'thePicturePage'; 484 480 485 // maybe someone wants a special display (call it before page_header so that 486 // they can add stylesheets) 487 $element_content = trigger_event( 488 'render_element_content', 489 '', 490 $picture['current'] 491 ); 481 // allow plugins to change what we computed before passing data to template 482 $picture = trigger_event('picture_pictures_data', $picture); 483 492 484 493 485 if (isset($picture['next']['image_url']) … … 531 523 'PHOTO' => $title_nb, 532 524 'TITLE' => $picture['current']['name'], 533 'ELEMENT_CONTENT' => $element_content,534 525 535 526 'LEVEL_SEPARATOR' => $conf['level_separator'], … … 802 793 } 803 794 795 // maybe someone wants a special display (call it before page_header so that 796 // they can add stylesheets) 797 $element_content = trigger_event( 798 'render_element_content', 799 '', 800 $picture['current'] 801 ); 802 $template->assign_var( 'ELEMENT_CONTENT', $element_content ); 803 804 804 // +-----------------------------------------------------------------------+ 805 805 // | sub pages |
Note: See TracChangeset
for help on using the changeset viewer.