Ignore:
Timestamp:
Jan 2, 2011, 7:53:55 PM (13 years ago)
Author:
rub
Message:

Add upload button on image page

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/FacebookPlug/Plugin/include/picture.inc.php

    r8437 r8440  
    6161      $page['fbp']['url'] = make_picture_url(array('image_id' => $page['image_id']));
    6262    }
    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);
    6465    unset_make_full_url();
    6566
     
    8081}
    8182
    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 }
    9583
    9684add_event_handler('render_element_content', 'fbp_render_element_content', EVENT_HANDLER_PRIORITY_NEUTRAL+1 /*in order to have picture content*/, 2);
    9785
    98 if ($conf['fbp']['share_picture'])
     86if ($conf['fbp']['share_picture'] or $conf['fbp']['upload_picture'])
    9987{
    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 */);
    10189}
    10290
Note: See TracChangeset for help on using the changeset viewer.