function social4ioptions()
{
    ?>
<h2>Tweet, Like, Share and Google +1 Option Page</h2>
Like this Plugin then why not hit the like button. Your like will motivate me to enhance the features of the Plugin :)<br />
<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/>If you like the plugin then <b>write a review</b> of it pointing out the plus and minus points.<br /><a href="http://letusbuzz.com/tweet-share-like-plusone" TARGET='_blank'>Click here</a> for <b>Reference on using shortcode/Function</b> or if you want to <b>report a bug</b>. 
<table class="form-ta">	
<tr valign="top">
<td width="78%">
<form method="post" action="options.php">
<h3>Test Buttons</h3>
<?php 
    disp_social_on_optionpage();
    ?>

<h3 style="color: #cc0000;">Increase Page Load Speed</h3>
<p>Note: After using this option if the buttons do not get displayed properly then uncheck it</p>
<p><input type="checkbox" name="s4optimize" id="s4optimize" value="true"<?php 
    if (get_option('s4optimize', true) == true) {
        echo ' checked';
    }
    ?>
>Optimize the script for faster loading</p>

&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="s4scripthead" value="head" id="s4scripthead1"<?php 
    if (get_option('s4scripthead', 'head') == "head") {
        echo ' checked';
    }
    ?>
></input><label for="s4scripthead">Place Script in the Header&nbsp;&nbsp;&nbsp;&nbsp;</label>
<input type="radio" name="s4scripthead" value="foot" id="s4scripthead2"<?php 
    if (get_option('s4scripthead', 'head') == "foot") {
        echo ' checked';
    }
    ?>
></input><label for="s4scripthead">Place Script in the Footer</label>

<p>Keep this option checked if you are using Shortcode or PHP function to display the buttons<br/><input type="checkbox" name="s4allscripts" id="s4allscripts" value="true"<?php 
    if (get_option('s4allscripts', true) == true) {
        echo ' checked';
    }
    ?>
>Load all scripts</p>

<h3 style="color: #cc0000;">Select Icons to display</h3>
<p><input type="checkbox" name="s4_twitter" id="s4-twitter" value="true"<?php 
    if (get_option('s4_twitter', true) == true) {
        echo ' checked';
    }
    ?>
> Display Twitter&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;via @<input type="text" name="s4twtvia" style="width: 150px;" value="<?php 
    echo get_option('s4twtvia', '');
    ?>
" /></p>
<p><input type="checkbox" name="s4_fblike" id="s4-fblike" value="true"<?php 
    if (get_option('s4_fblike', true) == true) {
        echo ' checked';
    }
    ?>
> Display Facebook Like&nbsp;&nbsp;&nbsp;&nbsp;<input type="checkbox" name="s4_fbsend" id="s4-fbsend" value="true"<?php 
    if (get_option('s4_fbsend', false) == true) {
        echo ' checked';
    }
    ?>
> Display Facebook Send </p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;Select Facebook Like Language <?php 
    s4_lang_disp();
    ?>
 </p>
<p><input type="checkbox" name="s4_plusone" id="s4-plusone" value="true"<?php 
    if (get_option('s4_plusone', true) == true) {
        echo ' checked';
    }
    ?>
> Display Google +1 </p>
<p><input type="checkbox" name="s4_fbshare" id="s4-fbshare" value="true"<?php 
    if (get_option('s4_fbshare', true) == true) {
        echo ' checked';
    }
    ?>
> Display Facebook Share </p>
<p><input type="checkbox" name="s4_linkedin" id="s4_linkedin" value="true"<?php 
    if (get_option('s4_linkedin', false) == true) {
        echo ' checked';
    }
    ?>
> Display Linkedin </p>
<p><b>Default Thumbnail URL</b> <input type="text" name="s4defthumb" style="width: 300px;" value="<?php 
    echo get_option('s4defthumb', '');
    ?>
" /></p>

<h3 style="color: #cc0000;">Size of Icons</h3>
<input type="radio" name="s4iconsize" value="large" id="s4iconsize1"<?php 
    if (get_option('s4iconsize', 'large') == "large") {
        echo ' checked';
    }
    ?>
></input><label for="s4iconsize">Large&nbsp;&nbsp;&nbsp;&nbsp;</label>
<input type="radio" name="s4iconsize" value="small" id="s4iconsize2"<?php 
    if (get_option('s4iconsize', 'large') == "small") {
        echo ' checked';
    }
    ?>
></input><label for="s4iconsize">Small</label>

<h3 style="color: #cc0000;">Alignment</h3>
<input type="radio" name="s4iconalign" value="left" id="s4iconalign1"<?php 
    if (get_option('s4iconalign', 'left') == "left") {
        echo ' checked';
    }
    ?>
></input><label for="s4iconsize">Left Aligned&nbsp;&nbsp;&nbsp;&nbsp;</label>
<input type="radio" name="s4iconalign" value="right" id="s4iconalign2"<?php 
    if (get_option('s4iconalign', 'left') == "right") {
        echo ' checked';
    }
    ?>
></input><label for="s4iconsize">Right Aligned&nbsp;&nbsp;&nbsp;&nbsp;</label>
<input type="radio" name="s4iconalign" value="floatl" id="s4iconalign3"<?php 
    if (get_option('s4iconalign', 'left') == "floatl") {
        echo ' checked';
    }
    ?>
></input><label for="s4iconsize">Float Left&nbsp;&nbsp;&nbsp;&nbsp;</label>
<input type="radio" name="s4iconalign" value="floatr" id="s4iconalign3"<?php 
    if (get_option('s4iconalign', 'left') == "floatr") {
        echo ' checked';
    }
    ?>
></input><label for="s4iconsize">Float Right&nbsp;&nbsp;&nbsp;&nbsp;</label>
		
<h3 style="color: #cc0000;">Where to Display</h3>
<p><input type="checkbox" name="s4onpost" id="s4onpost" value="true"<?php 
    if (get_option('s4onpost', true) == true) {
        echo ' checked';
    }
    ?>
> <b>Display on Posts</b> </p>
<div style="margin-left: 30px;">
<p><input type="checkbox" name="s4pabovepost" id="s4abovepost" value="true"<?php 
    if (get_option('s4pabovepost', true) == true) {
        echo ' checked';
    }
    ?>
> Display Above Content </p>
<p><input type="checkbox" name="s4pbelowpost" id="s4belowpost" value="true"<?php 
    if (get_option('s4pbelowpost', false) == true) {
        echo ' checked';
    }
    ?>
>Display Below Content</p>
</div>
<p><input type="checkbox" name="s4onpage" id="s4onpage" value="true"<?php 
    if (get_option('s4onpage', true) == true) {
        echo ' checked';
    }
    ?>
><b>Display on Pages</b></p>
<div style="margin-left: 30px;">
<p><input type="checkbox" name="s4pgabovepost" id="s4abovepost" value="true"<?php 
    if (get_option('s4pgabovepost', true) == true) {
        echo ' checked';
    }
    ?>
> Display Above Content </p>
<p><input type="checkbox" name="s4pgbelowpost" id="s4belowpost" value="true"<?php 
    if (get_option('s4pgbelowpost', false) == true) {
        echo ' checked';
    }
    ?>
>Display Below Content</p>
</div>
<p><input type="checkbox" name="s4onhome" id="s4onhome" value="true"<?php 
    if (get_option('s4onhome', false) == true) {
        echo ' checked';
    }
    ?>
><b>Display on Home Page</b> </p>
<div style="margin-left: 30px;">
<p><input type="checkbox" name="s4habovepost" id="s4abovepost" value="true"<?php 
    if (get_option('s4habovepost', true) == true) {
        echo ' checked';
    }
    ?>
> Display Above Content </p>
<p><input type="checkbox" name="s4hbelowpost" id="s4belowpost" value="true"<?php 
    if (get_option('s4hbelowpost', false) == true) {
        echo ' checked';
    }
    ?>
>Display Below Content</p>
</div>
<p><input type="checkbox" name="s4onarchi" id="s4onarchi" value="true"<?php 
    if (get_option('s4onarchi', false) == true) {
        echo ' checked';
    }
    ?>
><b>Display on Archive Pages(Categories, Tages, Author etc.)</b></p>
<div style="margin-left: 30px;">
<p><input type="checkbox" name="s4aabovepost" id="s4abovepost" value="true"<?php 
    if (get_option('s4aabovepost', true) == true) {
        echo ' checked';
    }
    ?>
> Display Above Content </p>
<p><input type="checkbox" name="s4abelowpost" id="s4belowpost" value="true"<?php 
    if (get_option('s4abelowpost', false) == true) {
        echo ' checked';
    }
    ?>
>Display Below Content</p>
</div>
<p><input type="checkbox" name="s4onexcer" id="s4onexcer" value="true"<?php 
    if (get_option('s4onexcer', true) == true) {
        echo ' checked';
    }
    ?>
><b>Display on Excerpts</b></p>

<h3 style="color: #cc0000;">Mobile browsers</h3>
<p><input type="checkbox" name="s4dmob" id="s4dmob" value="true"<?php 
    if (get_option('s4dmob', false) == true) {
        echo ' checked';
    }
    ?>
><b>Disable on Mobile Browser</b><br /> Check this option if you have installed a mobile theme plugin like Wptouch, WordPress Mobile Pack etc.</p>

<h3 style="color: #cc0000;">Don't display on Posts/Pages</h3>
<p>Enter the ID's of those Pages/Posts separated by comma. e.g 13,5,87<br/>
<input type="text" name="s4excludeid" style="width: 300px;" value="<?php 
    echo get_option('s4excludeid', '');
    ?>
" /></p>

<h3 style="color: #cc0000;">Don't display on Category</h3>
<p>Enter the ID's of those Categories separated by comma. e.g 131,45,817<br/>
<input type="text" name="s4excludecat" style="width: 300px;" value="<?php 
    echo get_option('s4excludecat', '');
    ?>
" /></p>

<h3 style="color: #cc0000;">Insert Custom CSS</h3>
<small>Your theme should have Call to wp_head() function</small><br />
<p><textarea name="s4ccss" rows="10" cols="50" style="width:600px;"><?php 
    echo stripslashes(htmlspecialchars(get_option('s4ccss', '')));
    ?>
</textarea></p>

<div style="clear:both"></div>
<input type="submit" class="button-primary" value="Save Changes"/>
<?php 
    wp_nonce_field('update-options');
    ?>
<input type="hidden" name="page_options" value="s4pabovepost,s4pbelowpost,s4pgabovepost,s4pgbelowpost,s4habovepost,s4hbelowpost,s4aabovepost,s4abelowpost,s4_twitter,s4_fblike,s4_plusone,s4_fbshare,s4onpost,s4onpage,s4onhome,s4onarchi,s4iconsize,s4iconalign,s4excludeid,s4_fbsend,s4optimize,s4twtvia,s4excludecat,s4defthumb,s4onexcer,s4fblikelang,s4ccss,s4_linkedin,s4scripthead,s4allscripts,s4dmob">
<input type="hidden" name="action" value="update" />
</form>
</td><td width="2%">&nbsp;</td><td width="20%"><b>Follow us on</b><br/><a href="http://twitter.com/letusbuzz" target="_blank"><img src="http://a0.twimg.com/a/1303316982/images/twitter_logo_header.png" /></a><br/><a href="http://facebook.com/letusbuzzz" target="_blank"><img src="https://secure-media-sf2p.facebook.com/ads3/creative/pressroom/jpg/b_1234209334_facebook_logo.jpg" height="38px" width="118px"/></a><p></p><b>Feeds and News</b><br /><?php 
    get_feeds_s4();
    ?>
<p></p>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_donations">
<input type="hidden" name="business" value="*****@*****.**">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="item_name" value="Tweet Like Share Plusone Plugin">
<input type="hidden" name="no_note" value="0">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="bn" value="PP-DonationsBF:btn_donateCC_LG.gif:NonHostedGuest">
<input type="image" src="https://www.paypalobjects.com/WEBSCR-640-20110401-1/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/WEBSCR-640-20110401-1/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
<br />Consider a Donation and remember $X is always better than $0
</td></tr></table>
<?php 
}
function social4ioptions()
{
    ?>
<h2>Tweet, Like, Share and Google +1 Option Page</h2>
Like this Plugin then why not hit the like button. Your like will motivate me to enhance the features of the Plugin :)<br />
<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" 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/>If you like the plugin then <b>write a review</b> of it pointing out the plus and minus points.<br /><a href="http://techxt.com/tweet-like-google-1-and-share-plugin-wordpress/" TARGET='_blank'>Click here</a> for <b>Reference on using shortcode/Function</b> or if you want to <b>report a bug</b>. 
<table class="form-ta">	
<tr valign="top">
<td width="73%">
<form method="post" action="options.php">
<h3>Test Buttons</h3>
<?php 
    disp_social_on_optionpage();
    ?>

<h3 style="color: #cc0000;">Increase Page Load Speed</h3>
<p>Note: After using this option if the buttons do not get displayed properly then uncheck it</p>
<p><input type="checkbox" name="s4optimize" id="s4optimize" value="true"<?php 
    if (get_option('s4optimize', true) == true) {
        echo ' checked';
    }
    ?>
>Optimize the script for faster loading</p>

&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="s4scripthead" value="head" id="s4scripthead1"<?php 
    if (get_option('s4scripthead', 'head') == "head") {
        echo ' checked';
    }
    ?>
></input><label for="s4scripthead">Place Script in the Header&nbsp;&nbsp;&nbsp;&nbsp;</label>
<input type="radio" name="s4scripthead" value="foot" id="s4scripthead2"<?php 
    if (get_option('s4scripthead', 'head') == "foot") {
        echo ' checked';
    }
    ?>
></input><label for="s4scripthead">Place Script in the Footer</label>

<p>Keep this option checked if you are using Shortcode or PHP function to display the buttons<br/><input type="checkbox" name="s4allscripts" id="s4allscripts" value="true"<?php 
    if (get_option('s4allscripts', true) == true) {
        echo ' checked';
    }
    ?>
>Load all scripts</p>

<h3 style="color: #cc0000;">Select Icons to display</h3>
<p><b>1 </b><input type="checkbox" name="s4_twitter" id="s4-twitter" value="true"<?php 
    if (get_option('s4_twitter', true) == true) {
        echo ' checked';
    }
    ?>
> Display Twitter&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;via @<input type="text" name="s4twtvia" style="width: 150px;" value="<?php 
    echo get_option('s4twtvia', '');
    ?>
" /></p>
<p><b>2 </b><input type="checkbox" name="s4_fblike" id="s4-fblike" value="true"<?php 
    if (get_option('s4_fblike', true) == true) {
        echo ' checked';
    }
    ?>
> Display Facebook Like&nbsp;&nbsp;&nbsp;&nbsp;<input type="checkbox" name="s4_fbsend" id="s4-fbsend" value="true"<?php 
    if (get_option('s4_fbsend', false) == true) {
        echo ' checked';
    }
    ?>
> Display Facebook Send </p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;Select Facebook Like Language <?php 
    s4_lang_disp();
    ?>
 </p>
<p><b>3 </b><input type="checkbox" name="s4_plusone" id="s4-plusone" value="true"<?php 
    if (get_option('s4_plusone', true) == true) {
        echo ' checked';
    }
    ?>
> Display Google +1 </p>
<p><b>4 </b><input type="checkbox" name="s4_fbshare" id="s4-fbshare" value="true"<?php 
    if (get_option('s4_fbshare', true) == true) {
        echo ' checked';
    }
    ?>
> Display Facebook Share </p>
<p><b>5 </b><input type="checkbox" name="s4_linkedin" id="s4_linkedin" value="true"<?php 
    if (get_option('s4_linkedin', false) == true) {
        echo ' checked';
    }
    ?>
> Display Linkedin </p>
<p><b>6 </b><input type="checkbox" name="s4_cbtn" id="s4_cbtn" value="true"<?php 
    if (get_option('s4_cbtn', false) == true) {
        echo ' checked';
    }
    ?>
> Display Custom Buttons </p>
<p><b>Display order</b> <input type="text" name="s4dispord" style="width: 300px;" value="<?php 
    echo s4_order_check(get_option('s4dispord', '1,2,3,4,5,6'));
    ?>
" /> <br/>To arrange icons reorder the ID associated with the buttons here separated with comma</p>
<p><b>Default Thumbnail URL</b> <input type="text" name="s4defthumb" style="width: 300px;" value="<?php 
    echo get_option('s4defthumb', '');
    ?>
" /></p>

<h3 style="color: #cc0000;">Size of Icons</h3>
<input type="radio" name="s4iconsize" value="large" id="s4iconsize1"<?php 
    if (get_option('s4iconsize', 'large') == "large") {
        echo ' checked';
    }
    ?>
></input><label for="s4iconsize">Large&nbsp;&nbsp;&nbsp;&nbsp;</label>
<input type="radio" name="s4iconsize" value="small" id="s4iconsize2"<?php 
    if (get_option('s4iconsize', 'large') == "small") {
        echo ' checked';
    }
    ?>
></input><label for="s4iconsize">Small</label>

<h3 style="color: #cc0000;">Alignment</h3>
<input type="radio" name="s4iconalign" value="left" id="s4iconalign1"<?php 
    if (get_option('s4iconalign', 'left') == "left") {
        echo ' checked';
    }
    ?>
></input><label for="s4iconsize">Left Aligned&nbsp;&nbsp;&nbsp;&nbsp;</label>
<input type="radio" name="s4iconalign" value="right" id="s4iconalign2"<?php 
    if (get_option('s4iconalign', 'left') == "right") {
        echo ' checked';
    }
    ?>
></input><label for="s4iconsize">Right Aligned&nbsp;&nbsp;&nbsp;&nbsp;</label>
<input type="radio" name="s4iconalign" value="floatl" id="s4iconalign3"<?php 
    if (get_option('s4iconalign', 'left') == "floatl") {
        echo ' checked';
    }
    ?>
></input><label for="s4iconsize">Float Left&nbsp;&nbsp;&nbsp;&nbsp;</label>
<input type="radio" name="s4iconalign" value="floatr" id="s4iconalign3"<?php 
    if (get_option('s4iconalign', 'left') == "floatr") {
        echo ' checked';
    }
    ?>
></input><label for="s4iconsize">Float Right&nbsp;&nbsp;&nbsp;&nbsp;</label>

<div style="padding-right: 10px; padding-bottom: 10px; padding-left: 10px; background: none repeat scroll 0% 0% rgb(219, 234, 249);">	
<h3 style="color: #cc0000;">Vertical Scrolling sidebar</h3>
<p><input type="checkbox" name="s4dispvb" id="s4dispvb" value="true"<?php 
    if (get_option('s4dispvb', false) == true) {
        echo ' checked';
    }
    ?>
> <b>Display Vertical sidebar</b> </p>
<p><b>Margin Left </b><input type="text" name="s4vbmargin" style="width: 50px;" value="<?php 
    echo get_option('s4vbmargin', 100);
    ?>
" /> (Default 100)</p>
<p><b>Margin Top </b><input type="text" name="s4vbmargintop" style="width: 50px;" value="<?php 
    echo get_option('s4vbmargintop', 20);
    ?>
" /> (Default 20)</p>
<p><input type="radio" name="s4vbavis" value="true" <?php 
    if (get_option('s4vbavis', 'true') == "true") {
        echo ' checked';
    }
    ?>
></input><label for="s4vbavis">Always Visible&nbsp;&nbsp;&nbsp;&nbsp;</label>
<input type="radio" name="s4vbavis" value="false" <?php 
    if (get_option('s4vbavis', 'true') == "false") {
        echo ' checked';
    }
    ?>
></input><label for="s4vbavis">Visible on scroll</label></p>
<p><input type="radio" name="s4vbhide" value="vbhide" <?php 
    if (get_option('s4vbhide', 'vbhide') == "vbhide") {
        echo ' checked';
    }
    ?>
></input><label for="s4vbhide">Hide before comments block&nbsp;&nbsp;&nbsp;&nbsp;</label>
<input type="radio" name="s4vbhide" value="vbnohide" <?php 
    if (get_option('s4vbhide', 'vbhide') == "vbnohide") {
        echo ' checked';
    }
    ?>
></input><label for="s4vbhide">Display until end of the page</label></p><p>Note: Other customization such as <i>background-color, border-color, etc.</i> can be done using Custom CSS. Need help then post it in the <a target="_blank" href="http://techxt.com/plugin-support-forum/tweet-like-plusone-and-share-plugin/">Forum</a></p>
</div>

<h3 style="color: #cc0000;">Where to Display</h3>
<p><input type="checkbox" name="s4onpost" id="s4onpost" value="true"<?php 
    if (get_option('s4onpost', true) == true) {
        echo ' checked';
    }
    ?>
> <b>Display on Posts</b> </p>
<div style="margin-left: 30px;">
<p><input type="checkbox" name="s4pabovepost" id="s4abovepost" value="true"<?php 
    if (get_option('s4pabovepost', true) == true) {
        echo ' checked';
    }
    ?>
> Display Above Content </p>
<p><input type="checkbox" name="s4pbelowpost" id="s4belowpost" value="true"<?php 
    if (get_option('s4pbelowpost', false) == true) {
        echo ' checked';
    }
    ?>
>Display Below Content</p>
</div>
<p><input type="checkbox" name="s4onpage" id="s4onpage" value="true"<?php 
    if (get_option('s4onpage', true) == true) {
        echo ' checked';
    }
    ?>
><b>Display on Pages</b></p>
<div style="margin-left: 30px;">
<p><input type="checkbox" name="s4pgabovepost" id="s4abovepost" value="true"<?php 
    if (get_option('s4pgabovepost', true) == true) {
        echo ' checked';
    }
    ?>
> Display Above Content </p>
<p><input type="checkbox" name="s4pgbelowpost" id="s4belowpost" value="true"<?php 
    if (get_option('s4pgbelowpost', false) == true) {
        echo ' checked';
    }
    ?>
>Display Below Content</p>
</div>
<p><input type="checkbox" name="s4onhome" id="s4onhome" value="true"<?php 
    if (get_option('s4onhome', false) == true) {
        echo ' checked';
    }
    ?>
><b>Display on Home Page</b> </p>
<div style="margin-left: 30px;">
<p><input type="checkbox" name="s4habovepost" id="s4abovepost" value="true"<?php 
    if (get_option('s4habovepost', true) == true) {
        echo ' checked';
    }
    ?>
> Display Above Content </p>
<p><input type="checkbox" name="s4hbelowpost" id="s4belowpost" value="true"<?php 
    if (get_option('s4hbelowpost', false) == true) {
        echo ' checked';
    }
    ?>
>Display Below Content</p>
</div>
<p><input type="checkbox" name="s4onarchi" id="s4onarchi" value="true"<?php 
    if (get_option('s4onarchi', false) == true) {
        echo ' checked';
    }
    ?>
><b>Display on Archive Pages(Categories, Tages, Author etc.)</b></p>
<div style="margin-left: 30px;">
<p><input type="checkbox" name="s4aabovepost" id="s4abovepost" value="true"<?php 
    if (get_option('s4aabovepost', true) == true) {
        echo ' checked';
    }
    ?>
> Display Above Content </p>
<p><input type="checkbox" name="s4abelowpost" id="s4belowpost" value="true"<?php 
    if (get_option('s4abelowpost', false) == true) {
        echo ' checked';
    }
    ?>
>Display Below Content</p>
</div>
<p><input type="checkbox" name="s4onexcer" id="s4onexcer" value="true"<?php 
    if (get_option('s4onexcer', true) == true) {
        echo ' checked';
    }
    ?>
><b>Display on Excerpts</b></p>
<p><input type="checkbox" name="s4onexcererr" id="s4onexcererr" value="true"<?php 
    if (get_option('s4onexcererr', false) == true) {
        echo ' checked';
    }
    ?>
><b>Rectify display error on Excerpts</b> (check this only if the buttons are not getting displayed properly on excerpts)</p>

<h3 style="color: #cc0000;">Mobile browsers</h3>
<p><input type="checkbox" name="s4dmob" id="s4dmob" value="true"<?php 
    if (get_option('s4dmob', false) == true) {
        echo ' checked';
    }
    ?>
><b>Disable on Mobile Browser</b><br /> Check this option if you have installed a mobile theme plugin like Wptouch, WordPress Mobile Pack etc.</p>

<h3 style="color: #cc0000;">Don't display on Posts/Pages</h3>
<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 /> 
<input type="text" name="s4excludeid" style="width: 300px;" value="<?php 
    echo get_option('s4excludeid', '');
    ?>
" /></p>

<h3 style="color: #cc0000;">Don't display on Category</h3>
<p>Enter the ID's of those Categories separated by comma. e.g 131,45,817<br/>
<input type="text" name="s4excludecat" style="width: 300px;" value="<?php 
    echo get_option('s4excludecat', '');
    ?>
" /></p>

<h3 style="color: #cc0000;">Insert Custom CSS</h3>
<small>Your theme should have Call to wp_head() function</small><br />
<p><textarea name="s4ccss" rows="10" cols="50" style="width:600px;"><?php 
    echo stripslashes(htmlspecialchars(get_option('s4ccss', '')));
    ?>
</textarea></p>

<h3 style="color: #cc0000;">Insert Custom JavaScript</h3>
<small>Your theme should have Call to wp_head() function</small><br />
<small>Add opening and closing script tags (&lt;script>...&lt;/script>)</small><br />
<p><textarea name="s4cjscript" rows="10" cols="50" style="width:600px;"><?php 
    echo stripslashes(htmlspecialchars(get_option('s4cjscript', '')));
    ?>
</textarea></p>

<h3 style="color: #cc0000;">Add your own Custom Buttons</h3>
<table>
<tr><td>
<p>
To add more than one custom button, separate the buttons codes with the word <b>[BUTTON]</b><br />
e.g {code of first button} [BUTTON] {code of second button}
</p>
<p>
Following <b>Tags</b> that will be replace by actual codes when the buttons are displayed<br/>
<b>%%URL%%</b> - The URL of the Post/Page<br/>
<b>%%EURL%%</b> - The HTML encoded URL of the Post/Page<br/>
<b>%%TITLE%%</b> - The Title of the Post/Page<br/>
<b>%%ETITLE%%</b> - URL encoded Title of the Post/Page<br/>
<b>%%DESC%%</b> - Description or Post Excerpts<br/>
<b>%%EDESC%%</b> - URL encoded Description or Post Excerpts<br/>
<b>%%PIMAGE%%</b> - Link to the Featured Image of the post or the first image if featured image not set.<br/>
<b>%%COMMENTCOUNT%%</b> - Number of comments for the Post.<br/>
</p>
</td></tr>
<tr><td>
Place <b>Large button Code</b> in this box
</td><td>
Place <b>Small button Code</b> in this box
</td></tr>
<tr><td>
<textarea name="s4cblarge" rows="10" cols="50" style="width:350px;"><?php 
    echo stripslashes(htmlspecialchars(get_option('s4cblarge', '')));
    ?>
</textarea>
</td><td>
<textarea name="s4cbsmall" rows="10" cols="50" style="width:350px;"><?php 
    echo stripslashes(htmlspecialchars(get_option('s4cbsmall', '')));
    ?>
</textarea>
</td></tr>
<tr><td>
If you have successfully added a custom button to your site then please help others by posting the custom code in the <a target="_blank" href="http://techxt.com/plugin-support-forum/tweet-like-plusone-and-share-plugin/">Plugin Forum</a>.
</td></tr>
<tr><td>
<h3 style="color: #cc0000;">Other options</h3>
<p><input type="checkbox" name="s4vremove" id="s4vremove" value="true"<?php 
    if (get_option('s4vremove', false) == true) {
        echo ' checked';
    }
    ?>
><b>Remove Share link</b><br/>Removes share link credit from Vertical sharebar</p>
<p><input type="checkbox" name="s4nometa" id="s4nometa" value="true"<?php 
    if (get_option('s4nometa', false) == true) {
        echo ' checked';
    }
    ?>
><b>Do not add Facebook OG META tags</b><br/>If some other plugin is adding the Facebook Meta tags</p>
<p><input type="checkbox" name="s4nofbjava" id="s4nofbjava" value="true"<?php 
    if (get_option('s4nofbjava', false) == true) {
        echo ' checked';
    }
    ?>
><b>Do not add Facebook Javascript</b><br/>If some other plugin is adding the javascript</p>
<p><input type="checkbox" name="s4analytics" id="s4analytics" value="true"<?php 
    if (get_option('s4analytics', false) == true) {
        echo ' checked';
    }
    ?>
><b>Add Google analytics button Tracking code</b><br/>Adds tracking code to track Facebook Like and Linkedin button clicks (under beta testing)</p>
</td></tr>
</table>


<div style="clear:both"></div>
<div id="btnsubmit">
<input type="submit" class="button-primary" value="Save Changes"/>
</div>
<style>
div#btnsubmit {
     background: none repeat scroll 0 0 #444444;
    border-radius: 10px 10px 0 0;
    bottom: 0;
    left: 800px;
    padding: 7px 30px;
    position: fixed;
    z-index: 9999;
}
</style>
<?php 
    wp_nonce_field('update-options');
    ?>
<input type="hidden" name="page_options" value="s4pabovepost,s4pbelowpost,s4pgabovepost,s4pgbelowpost,s4habovepost,s4hbelowpost,s4aabovepost,s4abelowpost,s4_twitter,s4_fblike,s4_plusone,s4_fbshare,s4onpost,s4onpage,s4onhome,s4onarchi,s4iconsize,s4iconalign,s4excludeid,s4_fbsend,s4optimize,s4twtvia,s4excludecat,s4defthumb,s4onexcer,s4fblikelang,s4ccss,s4_linkedin,s4scripthead,s4allscripts,s4dmob,s4cblarge,s4cbsmall,s4_cbtn,s4dispord,s4onexcererr,s4nofbjava,s4nometa,s4analytics,s4vbhide,s4dispvb,s4vbmargin,s4vremove,s4vbavis,s4vbmargintop,s4cjscript">
<input type="hidden" name="action" value="update" />
</form>
</td><td width="2%">&nbsp;</td><td width="25%"><a href="http://techxt.com/tweetlike_ad" target="_blank"><img src="http://techxt.com/tweetlike_ad.png" /></a><br/><b>Follow us on</b><br/><a href="http://twitter.com/techxt" target="_blank"><img src="http://a0.twimg.com/a/1303316982/images/twitter_logo_header.png" /></a><br/><a href="http://facebook.com/techxt" target="_blank"><img src="https://secure-media-sf2p.facebook.com/ads3/creative/pressroom/jpg/b_1234209334_facebook_logo.jpg" height="38px" width="118px"/></a><p></p><b>Feeds and News</b><br /><?php 
    get_feeds_s4();
    ?>
<p></p>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_donations">
<input type="hidden" name="business" value="*****@*****.**">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="item_name" value="Tweet Like Share Plusone Plugin">
<input type="hidden" name="no_note" value="0">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="bn" value="PP-DonationsBF:btn_donateCC_LG.gif:NonHostedGuest">
<input type="image" src="https://www.paypalobjects.com/WEBSCR-640-20110401-1/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/WEBSCR-640-20110401-1/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
<br />Consider a Donation and remember $X is always better than $0
</td></tr></table>
<?php 
}