Plugin Directory

Changeset 469801


Ignore:
Timestamp:
12/01/2011 10:01:28 AM (13 years ago)
Author:
sudiptomahato
Message:

Added remove og tag, disable on post and categories

Location:
scrolling-social-sharebar
Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • scrolling-social-sharebar/trunk/readme.txt

    r447367 r469801  
    55Requires at least: 3.0
    66Tested up to: 3.2.1
    7 Stable tag: 1.0.3
     7Stable tag: 1.0.4
    88
    99A scrolling social sharebar scrolling plugin with just 7 social icons (Twitter, FB Like, Google +1, Linkedin, FB Share, Stumbleupon and Addthis).
  • scrolling-social-sharebar/trunk/scroll-sharebar.php

    r447367 r469801  
    44Plugin URI: http://letusbuzz.com
    55Description: Scrolling Social Sharebar (Twitter Like Google +1 Linkedin and Stumbleupon)
    6 Version: 1.0.3
     6Version: 1.0.4
    77Author: Sudipto Pratap Mahato
    8 Author URI: http://letusbuzz.com
     8Author URI: http://techxt.com
    99*/
    1010
     11
     12
    1113function disp_ssharebar($content) {
     14
    1215global $post;
    1316$plink = get_permalink($post->ID);
    1417$eplink = urlencode($plink);
    1518$ptitle = get_the_title($post->ID);
     19$expostid=str_replace(' ','',get_option('ssbar_excludeid',''));
     20$expostcat=str_replace(' ','',get_option('ssbar_excludecat',''));
     21if($expostid!=''){
     22    $pids=explode(",",$expostid);
     23    if (in_array($post->ID, $pids)) {
     24            return $content;
     25    }
     26    $psttype=get_post_type($post->ID);
     27    if (in_array($psttype, $pids)&&$psttype!==flase) {
     28            return $content;
     29    }
     30    $pstfrmt=get_post_format($post->ID);
     31    if (in_array($pstfrmt, $pids)&&$pstfrmt!==false) {
     32            return $content;
     33    }
     34}
     35if($expostcat!=''){
     36    $pcat=explode(",",$expostcat);
     37    if (in_category($pcat)) {
     38            return $content;
     39    }
     40}
    1641
    1742if((is_single()&&get_option('ssbar_dpost','checked')=='checked')||(is_page()&&get_option('ssbar_dpage','checked')=='checked')){
     
    1944    $content=$sharelinks.$content;
    2045}
     46
    2147return $content;
    2248}
     
    5076        margin:0px !important;
    5177    }
     78<?php if(trim(get_option('ssbar_buttonpadding','0px'))!='')echo '.sharebarbtn{padding:'.get_option('ssbar_buttonpadding','5px').';}'; ?>   
     79
    5280    div.sbpinned
    5381    {
     
    99127
    100128<?php
    101 ssharebar_fb_thumb();
     129if(get_option('ssbar_addog', true )==true)ssharebar_fb_thumb();
    102130}
    103131
     
    139167    <h2>Scrolling Social Sharebar Plugin Options</h2>
    140168    <p>Like this Plugin then why not hit the like button. Your like will motivate me to enhance the features of the Plugin :)<br />
    141     <iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.facebook.com%2Fpages%2FLet-us-Buzz%2F149408071759545&layout=standard&show_faces=false&width=450&action=like&font=verdana&colorscheme=light&height=35" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:35px;" allowTransparency="true"></iframe><br />And if you are too generous then you can always <b>DONATE</b> by clicking the donation button.<br/>A Donation will help in the uninterrupted developement of the plugin.<br /><a href="http://letusbuzz.com/scrolling-social-sharebar-plugin/" TARGET='_blank'>Click here</a> for <b>Reference on using the plugin</b> or if you want to <b>report a bug</b> or if you want to <b>suggest a Feature</b><br /></p>
     169    <iframe style="overflow: hidden; width: 450px; height: 35px;" src="http://www.facebook.com/plugins/like.php?app_id=199883273397074&amp;href=http%3A%2F%2Fwww.facebook.com%2Fpages%2FTech-XT%2F223482634358279&amp;send=false&amp;layout=standard&amp;width=450&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=35" frameborder="0" scrolling="no" width="320" height="35"></iframe><br />And if you are too generous then you can always <b>DONATE</b> by clicking the donation button.<br/>A Donation will help in the uninterrupted developement of the plugin.<br /><a href="http://letusbuzz.com/scrolling-social-sharebar-plugin/" TARGET='_blank'>Click here</a> for <b>Reference on using the plugin</b> or if you want to <b>report a bug</b> or if you want to <b>suggest a Feature</b><br /></p>
    142170<table class="form-ta">
    143171<tr valign="top">
     
    152180    <h3 style="color: #cc0000;">Select Icons to display</h3>
    153181<p><input type="checkbox" name="ssbar_fblike" id="ssbar_fblike" value="true"<?php if (get_option( 'ssbar_fblike', true ) == true) echo ' checked'; ?>> Display Facebook Like</p>
    154 <p><input type="checkbox" name="ssbar_twitter" id="ssbar_twitter" value="true"<?php if (get_option( 'ssbar_twitter', true ) == true) echo ' checked'; ?>> Display Twitter</p>
     182<p><input type="checkbox" name="ssbar_twitter" id="ssbar_twitter" value="true"<?php if (get_option( 'ssbar_twitter', true ) == true) echo ' checked'; ?>> Display Twitter&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;via @<input type="text" name="ssbar_twittervia" style="width: 150px;" value="<?php echo get_option('ssbar_twittervia',''); ?>" /></p>
    155183<p><input type="checkbox" name="ssbar_plusone" id="ssbar_plusone" value="true"<?php if (get_option( 'ssbar_plusone', true ) == true) echo ' checked'; ?>> Display Google +1 </p>
    156184<p><input type="checkbox" name="ssbar_linkedin" id="ssbar_linkedin" value="true"<?php if (get_option( 'ssbar_linkedin', false ) == true) echo ' checked'; ?>> Display Linkedin </p>
     
    171199    <p><b>Background : </b><input style="width: 150px;" type="text" name="ssbar_barbackground" value="<?php echo get_option('ssbar_barbackground','#fff'); ?>" /> <b>Default : #fff</b></p>
    172200    <p><b>Border : </b><input style="width: 150px;" type="text" name="ssbar_barborder" value="<?php echo get_option('ssbar_barborder','1px solid #000'); ?>" /> <b>Default : 1px solid #000</b></p>
    173     <p><b>Padding : </b><input style="width: 150px;" type="text" name="ssbar_barpadding" value="<?php echo get_option('ssbar_barpadding','5px'); ?>" /> <b>Default : 5px</b></p>
     201    <p><b>Padding(Bar) : </b><input style="width: 150px;" type="text" name="ssbar_barpadding" value="<?php echo get_option('ssbar_barpadding','5px'); ?>" /> <b>Default : 5px</b></p>
     202        <p><b>Padding(between buttons) : </b><input style="width: 150px;" type="text" name="ssbar_buttonpadding" value="<?php echo get_option('ssbar_buttonpadding','0px'); ?>" /> <b>Default : 0px</b></p>
    174203    <p><b>Border Radius : </b><input style="width: 150px;" type="text" name="ssbar_barradius" value="<?php echo get_option('ssbar_barradius',''); ?>" /> <b>e.g. - 10px 0px 10px 0px </b> (May not work with IE)</p>
    175204    <p><b>Shadow : </b><input style="width: 150px;" type="text" name="ssbar_barshadow" value="<?php echo get_option('ssbar_barshadow',''); ?>" /> <b>e.g. - 2px 2px 2px 2px #888</b> (May not work with IE)</p>
     205
     206<h3 style="color: #cc0000;">Meta tags & links</h3>
     207<p><input type="checkbox" name="ssbar_addog" id="ssbar_addog" value="true"<?php if (get_option( 'ssbar_addog', true ) == true) echo ' checked'; ?>> Add Facebook Open Graph (og) Meta tags</p>
     208<p><input type="checkbox" name="ssbar_addcredit" id="ssbar_addcredit" value="true"<?php if (get_option( 'ssbar_addcredit', true ) == true) echo ' checked'; ?>> Add Sharebar link (I appreciate if you keep this checked)</p>
    176209   
     210<h3 style="color: #cc0000;">Don't display on Posts/Pages</h3>
     211<p>Enter the <b>ID's</b> of those Pages/Posts separated by comma. e.g 13,5,87<br/>You can also include a <b>custom post types</b> or <b>custom post format</b> (all separated by comma)<br />
     212<input type="text" name="ssbar_excludeid" style="width: 300px;" value="<?php echo get_option('ssbar_excludeid',''); ?>" /></p>
     213
     214<h3 style="color: #cc0000;">Don't display on Category</h3>
     215<p>Enter the ID's of those Categories separated by comma. e.g 131,45,817<br/>
     216<input type="text" name="ssbar_excludecat" style="width: 300px;" value="<?php echo get_option('ssbar_excludecat',''); ?>" /></p>
     217
    177218   
    178219    <input type="hidden" name="action" value="update" />
    179     <input type="hidden" name="page_options" value="ssbar_leftpadding,ssbar_toppadding,ssbar_dpost,ssbar_dpage,ssbar_fblike,ssbar_twitter,ssbar_plusone,ssbar_linkedin,ssbar_stumble,ssbar_fbshare,ssbar_addthis,ssbar_barbackground,ssbar_barborder,ssbar_barpadding,ssbar_barshadow,ssbar_barradius,ssbar_atype,ssbar_bottompadding" />
     220    <input type="hidden" name="page_options" value="ssbar_leftpadding,ssbar_toppadding,ssbar_dpost,ssbar_dpage,ssbar_fblike,ssbar_twitter,ssbar_plusone,ssbar_linkedin,ssbar_stumble,ssbar_fbshare,ssbar_addthis,ssbar_barbackground,ssbar_barborder,ssbar_barpadding,ssbar_barshadow,ssbar_barradius,ssbar_atype,ssbar_bottompadding,ssbar_excludecat,ssbar_excludeid,ssbar_buttonpadding,ssbar_twittervia,ssbar_addog,ssbar_addcredit" />
    180221    <p class="submit">
    181222        <input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" />
     
    233274$eptitle=str_replace(array(">","<"),"",$ptitle);
    234275$twsc='';$flsc='';$gpsc='';$fssc='';
     276$via=get_option('ssbar_twittervia','');
    235277
    236278$sharelinks.='<div class="scrollbarbox" id="scrollbarbox"><table width="60" cellspacing="1" border="0">';
     
    257299$sharelinks.='<tr><td align="center" ><div class="addthis_toolbox addthis_default_style " style="width: 50px; padding-top: 5px;"><a class="addthis_counter"></a><script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-4e3d994a059e1110"></script></div></td></tr>';
    258300
     301if(get_option('ssbar_addcredit',true)==true)
     302$sharelinks.='<tr><td align="center" ><small><a href="http://techxt.com/plugin-support-forum/" target="_blank" style="color:#888;">share</a></small></td></tr>';
     303
    259304$sharelinks.= '</table></div>';
    260305return $sharelinks;
Note: See TracChangeset for help on using the changeset viewer.