Changeset 8481 for extensions
- Timestamp:
- Jan 6, 2011, 12:30:58 AM (14 years ago)
- Location:
- extensions/FacebookPlug/Plugin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/FacebookPlug/Plugin/include/conf.inc.php
r8440 r8481 24 24 } 25 25 26 global $conf ;26 global $conf, $page; 27 27 28 28 $conf['fbp'] = array_merge( … … 121 121 $conf['fbp']['social_plugin_like_box']); 122 122 123 //~ print_r($conf['fbp']); 123 //From http://developers.facebook.com/docs/reference/rest/photos.upload/ 124 // *GIF *JPG *PNG *PSD *TIFF *JP2 *IFF *WBMP *XBM 125 $page['fbp']['available_upload_ext'] = array('GIF', 'JPG', 'PNG', 'PSD', 'TIFF', 'JP2', 'IFF', 'WBMP', 'XBM'); 124 126 125 127 ?> -
extensions/FacebookPlug/Plugin/tpl/buttons.tpl
r8440 r8481 11 11 {* method 2 *} 12 12 {* 13 <a href="http://www.facebook.com/sharer.php?u={$fbp_page.url|@urlencode}" title="{'Share on Facebook'|@translate}" rel="nofollow" onclick="window.open(this.href, 'Facebook ','width=550,height=350,location=no,status=no,toolbar=no,scrollbars=no,menubar=no'); return false;"><img src="{$FBP_PATH|@cat:'/icon/share.png'}" class="button" alt="{'Share on Facebook'|@translate}"></a>13 <a href="http://www.facebook.com/sharer.php?u={$fbp_page.url|@urlencode}" title="{'Share on Facebook'|@translate}" rel="nofollow" onclick="window.open(this.href, 'Facebook_Share','width=550,height=350,location=no,status=no,toolbar=no,scrollbars=no,menubar=no'); return false;"><img src="{$FBP_PATH|@cat:'/icon/share.png'}" class="button" alt="{'Share on Facebook'|@translate}"></a> 14 14 *} 15 15 {* method 3 *} … … 27 27 {/if} {* $fbp.share_picture or $fbp.share_album *} 28 28 {* --------------------------------------------------------------------------- *} 29 {if $fbp.upload_picture and $FBP_SCRIPT_BASENAME == 'picture' }30 <a href="{$PIWIGO_FACEBOOK_UPLOAD_URL}?u={$fbp_page.url_image|@urlencode}&pu={$fbp_page.url|@urlencode}&pt={$PAGE_TITLE|@replace:'"':' '}&gt={$GALLERY_TITLE|@replace:'"':' '}" title="{'Upload photo on Facebook'|@translate}" rel="nofollow" onclick="window.open(this.href, 'Facebook ','width=550,height=350,location=no,status=no,toolbar=no,scrollbars=no,menubar=no'); return false;"><img src="{$FBP_PATH|@cat:'/icon/upload.png'}" class="button" alt="{'Share on Facebook'|@translate}"></a>29 {if $fbp.upload_picture and $FBP_SCRIPT_BASENAME == 'picture' and in_array($fbp_page.url_image|get_extension|strtoupper, $fbp_page.available_upload_ext)} 30 <a href="{$PIWIGO_FACEBOOK_UPLOAD_URL}?u={$fbp_page.url_image|@urlencode}&pu={$fbp_page.url|@urlencode}&pt={$PAGE_TITLE|@replace:'"':' '}&gt={$GALLERY_TITLE|@replace:'"':' '}" title="{'Upload photo on Facebook'|@translate}" rel="nofollow" onclick="window.open(this.href, 'Facebook_Upload','width=250,height=50,location=no,status=no,toolbar=no,scrollbars=no,menubar=no'); return false;"><img src="{$FBP_PATH|@cat:'/icon/upload.png'}" class="button" alt="{'Share on Facebook'|@translate}"></a> 31 31 {/if} {* $fbp.upload_picture and $FBP_SCRIPT_BASENAME == 'picture' *} 32 32 {* --------------------------------------------------------------------------- *}
Note: See TracChangeset
for help on using the changeset viewer.