Changeset 1882
- Timestamp:
- Mar 9, 2007, 4:37:56 AM (17 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/category_default.inc.php
r1868 r1882 156 156 AND validated = \'true\' 157 157 ;'; 158 $row= mysql_fetch_array(pwg_query($query));158 list($row['nb_comments']) = mysql_fetch_array(pwg_query($query)); 159 159 $template->assign_block_vars( 160 160 'thumbnails.line.thumbnail.nb_comments', -
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 | -
trunk/template/yoga/index.tpl
r1864 r1882 42 42 <li><a href="{mode_created.URL}" title="{lang:mode_created_hint}" rel="nofollow"><img src="{pwg_root}{themeconf:icon_dir}/calendar_created.png" class="button" alt="{lang:mode_created_hint}"></a></li> 43 43 <!-- END mode_created --> 44 {PLUGIN_INDEX_ACTIONS} 44 45 </ul> 45 46 … … 63 64 </div> <!-- titrePage --> 64 65 66 {PLUGIN_INDEX_CONTENT_BEGIN} 65 67 <!-- BEGIN calendar --> 66 68 <!-- BEGIN navbar --> … … 105 107 <!-- END related_tags --> 106 108 107 109 {PLUGIN_INDEX_CONTENT_END} 108 110 </div> <!-- content -->
Note: See TracChangeset
for help on using the changeset viewer.