Changeset 8817


Ignore:
Timestamp:
01/21/11 07:09:21 (9 years ago)
Author:
rub
Message:

2.2 adaptation: add class button

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/FacebookPlug/Plugin/tpl/buttons.tpl

    r8513 r8817  
    44{* method 1 *} 
    55{* 
    6 <a name="fb_share" type="icon" share_url="{$fbp_page.url}" title="{'Share on Facebook'|@translate}"></a> 
     6<a class="pwg-state-default pwg-button" name="fb_share" type="icon" share_url="{$fbp_page.url}" title="{'Share on Facebook'|@translate}"></a> 
    77<script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share"  
    88        type="text/javascript"> 
     
    1010*} 
    1111{* method 2 *} 
    12 <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> 
     12<a class="pwg-state-default pwg-button" 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> 
    1313{* method 3 *} 
    1414{* 
    15 <a 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> 
     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> 
    1616{literal} 
    1717<script type="text/javascript"> 
     
    2828{* --------------------------------------------------------------------------- *} 
    2929{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}&amp;pu={$fbp_page.url|@urlencode}&amp;pt={$PAGE_TITLE|@replace:'"':' '}&amp;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> 
     30<a class="pwg-state-default pwg-button" href="{$PIWIGO_FACEBOOK_UPLOAD_URL}?u={$fbp_page.url_image|@urlencode}&amp;pu={$fbp_page.url|@urlencode}&amp;pt={$PAGE_TITLE|@replace:'"':' '}&amp;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> 
    3131{/if} {* $fbp.upload_picture  and $FBP_SCRIPT_BASENAME == 'picture' *} 
    3232{* --------------------------------------------------------------------------- *} 
Note: See TracChangeset for help on using the changeset viewer.