Changeset 8440 for extensions/FacebookPlug/Plugin/include/picture.inc.php
- Timestamp:
- Jan 2, 2011, 7:53:55 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/FacebookPlug/Plugin/include/picture.inc.php
r8437 r8440 61 61 $page['fbp']['url'] = make_picture_url(array('image_id' => $page['image_id'])); 62 62 } 63 $page['fbp']['url_image'] = get_thumbnail_url($current_picture); 63 $page['fbp']['url_image'] = get_element_url($current_picture); 64 $page['fbp']['url_thumbnail_image'] = get_thumbnail_url($current_picture); 64 65 unset_make_full_url(); 65 66 … … 80 81 } 81 82 82 function fbp_loc_end_picture()83 {84 global $template;85 86 $template->assign('FBP_SHARE_LI', false);87 88 $tpl = 'share';89 $template->set_filename('fbp_'.$tpl, FBP_DIR.'/tpl/'.$tpl.'.tpl');90 $template->concat(91 'PLUGIN_PICTURE_ACTIONS',92 $template->parse('fbp_'.$tpl, true)93 );94 }95 83 96 84 add_event_handler('render_element_content', 'fbp_render_element_content', EVENT_HANDLER_PRIORITY_NEUTRAL+1 /*in order to have picture content*/, 2); 97 85 98 if ($conf['fbp']['share_picture'] )86 if ($conf['fbp']['share_picture'] or $conf['fbp']['upload_picture']) 99 87 { 100 add_event_handler('loc_end_picture', 'fbp_ loc_end_picture', EVENT_HANDLER_PRIORITY_NEUTRAL+1 /* In order to be on right */);88 add_event_handler('loc_end_picture', 'fbp_add_bar_button', EVENT_HANDLER_PRIORITY_NEUTRAL+1 /* In order to be on right */); 101 89 } 102 90
Note: See TracChangeset
for help on using the changeset viewer.