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/index.inc.php

    r8437 r8440  
    8888      {
    8989        set_make_full_url();
    90         $page['fbp']['url_image'] = get_thumbnail_url($row);
     90        $page['fbp']['url_image'] = get_element_url($row);
     91        $page['fbp']['url_thumbnail_image'] = get_thumbnail_url($row);
    9192        unset_make_full_url();
    9293      }
     
    112113      $picture = $pictures[rand(0, $C-1)];
    113114      set_make_full_url();
    114       $page['fbp']['url_image'] = get_thumbnail_url($picture);
     115      $page['fbp']['url_image'] = get_element_url($picture);
     116      $page['fbp']['url_thumbnail_image'] = get_thumbnail_url($picture);
    115117      unset_make_full_url();
    116118    }
    117119  }
    118 }
    119 
    120 function fbp_loc_end_index()
    121 {
    122   global $template;
    123 
    124   $template->assign('FBP_SHARE_LI', true);
    125 
    126   $tpl = 'share';
    127   $template->set_filename('fbp_'.$tpl, FBP_DIR.'/tpl/'.$tpl.'.tpl');
    128   $template->concat(
    129         'PLUGIN_INDEX_ACTIONS',
    130         $template->parse('fbp_'.$tpl, true)
    131         );
    132120}
    133121
     
    144132if ($conf['fbp']['share_album'])
    145133{
    146   add_event_handler('loc_end_index', 'fbp_loc_end_index', EVENT_HANDLER_PRIORITY_NEUTRAL+1 /* In order to be on right */);
     134  add_event_handler('loc_end_index', 'fbp_add_bar_button', EVENT_HANDLER_PRIORITY_NEUTRAL+1 /* In order to be on right */);
    147135}
    148136
Note: See TracChangeset for help on using the changeset viewer.