Plugin Directory

Changeset 659005


Ignore:
Timestamp:
01/25/2013 10:53:38 PM (12 years ago)
Author:
sudiptomahato
Message:

added option to set different margin value for the sharebar displayed on homepage

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

Legend:

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

    r657585 r659005  
    44Tags: Simple social share, social share, Facebook, Like, google, google +1, google plusone, twitter, tweet, facebook share, plusone, linkedin, stumbleupon
    55Requires at least: 3.0
    6 Tested up to: 3.5
    7 Stable tag: 1.6
     6Tested up to: 3.5.1
     7Stable tag: 1.6.1
    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

    r657585 r659005  
    44Plugin URI: http://techxt.com/scrolling-social-sharebar-plugin/
    55Description: Scrolling Social Sharebar (Twitter Like Google +1 Linkedin and Stumbleupon)
    6 Version: 1.6
     6Version: 1.6.1
    77Author: Sudipto Pratap Mahato
    88Author URI: http://techxt.com
     
    6767        <?php if(trim(get_option('ssbar_barbackground','#fff'))!='')echo 'background:'.get_option('ssbar_barbackground','#fff').';'; ?>
    6868    <?php if(trim(get_option('ssbar_barborder','1px solid #000'))!='')echo 'border:'.get_option('ssbar_barborder','1px solid #000').';'; ?>
    69     <?php if(trim(get_option('ssbar_leftpadding','-80px'))!='')echo 'margin-left:'.get_option('ssbar_leftpadding','-80px').';'; ?>
     69    <?php if(trim(get_option('ssbar_leftpadding','-80px'))!=''&&!is_home())echo 'margin-left:'.get_option('ssbar_leftpadding','-80px').';'; ?>
     70    <?php if(trim(get_option('ssbar_leftpaddinghm','-80px'))!=''&&is_home())echo 'margin-left:'.get_option('ssbar_leftpaddinghm','-80px').';'; ?>
    7071    <?php if(trim(get_option('ssbar_barshadow',''))!='')echo 'box-shadow:'.get_option('ssbar_barshadow','').';'; ?>
    7172    <?php if(trim(get_option('ssbar_barradius',''))!='')echo 'border-radius:'.get_option('ssbar_barradius','').';'; ?>
     
    197198<p><b>Default Thumbnail URL</b> <input type="text" name="ssbar_defthumb" style="width: 300px;" value="<?php echo get_option('ssbar_defthumb',''); ?>" /></p>
    198199<h3 style="color: #cc0000;">Margins (Positioning the Bar)</h3>
    199     <p><b>Left Margin : </b><input style="width: 60px;" type="text" name="ssbar_leftpadding" value="<?php echo get_option('ssbar_leftpadding','-80px'); ?>" /> <b>Include px</b> at the end of the value<br />(Negative value will shift Icon Bar towards Left and Positive value will move it towards Right)</p>
     200<p><b>Left Margin HomePage: </b><input style="width: 60px;" type="text" name="ssbar_leftpaddinghm" value="<?php echo get_option('ssbar_leftpaddinghm','-80px'); ?>" /> <b>Include px</b> at the end of the value<br />(Negative value will shift Icon Bar towards Left and Positive value will move it towards Right)</p>   
     201<p><b>Left Margin Posts/Pages: </b><input style="width: 60px;" type="text" name="ssbar_leftpadding" value="<?php echo get_option('ssbar_leftpadding','-80px'); ?>" /> <b>Include px</b> at the end of the value<br />(Negative value will shift Icon Bar towards Left and Positive value will move it towards Right)</p>
    200202    <p><b>Top Margin : </b><input style="width: 60px;" type="text" name="ssbar_toppadding" value="<?php echo get_option('ssbar_toppadding','20'); ?>" /> <b>Do not Include px</b> at the end of the value<br />(Increasing the value will move the bar Down)</p>
    201203    <p><b>Bottom Margin : </b><input style="width: 60px;" type="text" name="ssbar_bottompadding" value="<?php echo get_option('ssbar_bottompadding','0'); ?>" /> <b>Do not Include px</b> at the end of the value<br />(The margin from bottom of the page where the bar will stop scrolling)</p>
     
    227229   
    228230    <input type="hidden" name="action" value="update" />
    229     <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_defthumb,ssbar_atype,ssbar_bottompadding,ssbar_excludecat,ssbar_excludeid,ssbar_buttonpadding,ssbar_twittervia,ssbar_addog,ssbar_addcredit,ssbar_dhome" />
    230     <p class="submit">
     231    <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_defthumb,ssbar_atype,ssbar_bottompadding,ssbar_excludecat,ssbar_excludeid,ssbar_buttonpadding,ssbar_twittervia,ssbar_addog,ssbar_addcredit,ssbar_dhome,ssbar_leftpaddinghm" />
     232    <p class="submit" style="position: fixed; background: none repeat scroll 0% 0% rgb(51, 51, 51); padding: 10px; bottom: 39px; border-radius: 10px 10px 10px 10px; margin-left: 550px;">
    231233        <input type="submit" class="button-primary" value="<?php _e('Save Changes') ?>" />
    232234    </p>
Note: See TracChangeset for help on using the changeset viewer.