[8440] | 1 | {* --------------------------------------------------------------------------- *} |
---|
| 2 | {if $fbp.share_picture or $fbp.share_album} |
---|
| 3 | {if $FBP_SCRIPT_BASENAME == 'index'}<li>{/if} |
---|
[8436] | 4 | {* method 1 *} |
---|
| 5 | {* |
---|
[8817] | 6 | <a class="pwg-state-default pwg-button" name="fb_share" type="icon" share_url="{$fbp_page.url}" title="{'Share on Facebook'|@translate}"></a> |
---|
[8436] | 7 | <script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" |
---|
| 8 | type="text/javascript"> |
---|
| 9 | </script> |
---|
| 10 | *} |
---|
| 11 | {* method 2 *} |
---|
[31899] | 12 | <a class="pwg-state-default pwg-button" href="https://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> |
---|
[8439] | 13 | {* method 3 *} |
---|
[8513] | 14 | {* |
---|
[8817] | 15 | <a class="pwg-state-default pwg-button" href="{$fbp_page.url}" title="{'Share on Facebook'|@translate}" rel="nofollow" onclick="share(this.href); return false;"><img src="{$FBP_PATH|@cat:'/icon/share.png'}" class="button" alt="{'Share on Facebook'|@translate}"></a> |
---|
[8439] | 16 | {literal} |
---|
| 17 | <script type="text/javascript"> |
---|
| 18 | //stream share method |
---|
| 19 | function share(href) |
---|
| 20 | { |
---|
| 21 | FB.ui({method: 'stream.share', u: href}); |
---|
| 22 | } |
---|
| 23 | </script> |
---|
| 24 | {/literal} |
---|
[8513] | 25 | *} |
---|
[8440] | 26 | {if $FBP_SCRIPT_BASENAME == 'index'}</li>{/if} |
---|
| 27 | {/if} {* $fbp.share_picture or $fbp.share_album *} |
---|
| 28 | {* --------------------------------------------------------------------------- *} |
---|
[27588] | 29 | {* |
---|
[8481] | 30 | {if $fbp.upload_picture and $FBP_SCRIPT_BASENAME == 'picture' and in_array($fbp_page.url_image|get_extension|strtoupper, $fbp_page.available_upload_ext)} |
---|
[8817] | 31 | <a class="pwg-state-default pwg-button" 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> |
---|
[27588] | 32 | {/if} *} {* $fbp.upload_picture and $FBP_SCRIPT_BASENAME == 'picture' *} |
---|
[8440] | 33 | {* --------------------------------------------------------------------------- *} |
---|