Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="wrap">
- <style type="text/css">
- div.inside ul li {
- line-height: 16px;
- list-style-type: square;
- margin-left: 15px;
- }
- </style>
- <h2>Simple Social Buttons - <?php _e('Settings'); ?>:</h2>
- <p><?php _e('<strong>Simple Social Buttons</strong> by <strong>Paweł Rabinek</strong>. This plugin adds a social media buttons, such as: <strong>Google +1</strong>, <strong>Facebook Like it</strong> and <strong>Twitter share</strong>. The most flexible social buttons plugin ever.', 'simplesocialbuttons'); ?></p>
- <?php
- if(strtolower($_POST['hiddenconfirm']) == 'y') {
- /**
- * Compile settings array
- * @see http://codex.wordpress.org/Function_Reference/wp_parse_args
- */
- $updateSettings = array(
- 'googleplus' => $_POST['ssb_googleplus'],
- 'fblike' => $_POST['ssb_fblike'],
- 'twitter' => $_POST['ssb_twitter'],
- 'beforepost' => $_POST['ssb_beforepost'],
- 'afterpost' => $_POST['ssb_afterpost'],
- 'beforepage' => $_POST['ssb_beforepage'],
- 'afterpage' => $_POST['ssb_afterpage'],
- 'beforearchive' => $_POST['ssb_beforearchive'],
- 'afterarchive' => $_POST['ssb_afterarchive'],
- 'showfront' => $_POST['ssb_showfront'],
- 'showcategory' => $_POST['ssb_showcategory'],
- 'showarchive' => $_POST['ssb_showarchive'],
- 'showtag' => $_POST['ssb_showtag'],
- 'override_css' => $_POST['ssb_override_css'],
- 'twitter_username' => $_POST['ssb_twitter_username']
- );
- $this->update_settings( $updateSettings );
- }
- /**
- * HACK: Use one big array instead of a bunchload of single options
- * @author Fabian Wolf
- * @link http://usability-idealist.de/
- * @since 1.2.1
- */
- // get settings from database
- $settings = $this->get_settings();
- extract( $settings, EXTR_PREFIX_ALL, 'ssb' );
- ?>
- <div class="postbox-container" style="width:69%">
- <div id="poststuff">
- <form name="ssb_form" method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">
- <div class="postbox">
- <h3><?php _e('Select buttons', 'simplesocialbuttons'); ?></h3>
- <div class="inside">
- <h4><?php _e('Select social media buttons:', 'simplesocialbuttons'); ?></h4>
- <p><select name="ssb_googleplus" id="ssb_googleplus">
- <option value=""<?php if(empty($ssb_googleplus) != false) {
- ?>selected="selected"<?php
- } ?>><?php _e('inactive', 'simplesocialbuttons'); ?></option>
- <?php for($pos = 1; $pos < 4; $pos++) { ?>
- <option value="<?php echo $pos; ?>"<?php if($ssb_googleplus == $pos) {
- ?>selected="selected"<?php
- } ?>> # <?php echo $pos; ?> </option>
- <?php } ?>
- </select>
- <label for="ssb_googleplus"><?php _e('Google plus one (+1)', 'simplesocialbuttons'); ?></label></p>
- <!-- fblike -->
- <p><select name="ssb_fblike" id="ssb_fblike">
- <option value=""<?php if(empty($ssb_fblike) != false) {
- ?>selected="selected"<?php
- } ?>><?php _e('inactive', 'simplesocialbuttons'); ?></option>
- <?php for($pos = 1; $pos < 4; $pos++) { ?>
- <option value="<?php echo $pos; ?>"<?php if($ssb_fblike == $pos) {
- ?>selected="selected"<?php
- } ?>> # <?php echo $pos; ?> </option>
- <?php } ?>
- </select>
- <label for="ssb_fblike"><?php _e('Facebook Like it', 'simplesocialbuttons'); ?></label></p>
- <!-- /fblike -->
- <!-- twitter -->
- <p><select name="ssb_twitter" id="ssb_twitter">
- <option value=""<?php if(empty($ssb_twitter) != false) {
- ?>selected="selected"<?php
- } ?>><?php _e('inactive', 'simplesocialbuttons'); ?></option>
- <?php for($pos = 1; $pos < 4; $pos++) { ?>
- <option value="<?php echo $pos; ?>"<?php if($ssb_twitter == $pos) {
- ?>selected="selected"<?php
- } ?>> # <?php echo $pos; ?> </option>
- <?php } ?>
- </select>
- <label for="ssb_twitter"><?php _e('Twitter share', 'simplesocialbuttons'); ?></label></p>
- <!-- /twitter -->
- <p><label for="ssb_override_css"><input type="checkbox" name="ssb_override_css" id="ssb_override_css" value="1" <?php if($ssb_override_css) { echo 'checked="checked"'; } ?>/> <?php _e('Disable plugin CSS (only advanced users)'); ?></label></p>
- </div>
- </div>
- <div class="postbox">
- <h3><?php _e('Single posts - display settings', 'simplesocialbuttons'); ?></h3>
- <div class="inside">
- <h4><?php _e('Place buttons on single post:', 'simplesocialbuttons'); ?></h4>
- <p><input type="checkbox" name="ssb_beforepost" id="ssb_beforepost" value="1" <?php if(!empty($ssb_beforepost)) { ?>checked="checked"<?php } ?> /> <label for="ssb_beforepost"><?php _e('Before the content', 'simplesocialbuttons'); ?></label></p>
- <p><input type="checkbox" name="ssb_afterpost" id="ssb_afterpost" value="1" <?php if(!empty($ssb_afterpost)) { ?>checked="checked"<?php } ?> /> <label for="ssb_afterpost"><?php _e('After the content', 'simplesocialbuttons'); ?></label></p>
- </div>
- </div>
- <div class="postbox">
- <h3><?php _e('Single pages - display settings', 'simplesocialbuttons'); ?></h3>
- <div class="inside">
- <h4><?php _e('Place buttons on single pages:', 'simplesocialbuttons'); ?></h4>
- <p><input type="checkbox" name="ssb_beforepage" id="ssb_beforepage" value="1" <?php if(!empty($ssb_beforepage)) { ?>checked="checked"<?php } ?> /> <label for="ssb_beforepage"><?php _e('Before the page content', 'simplesocialbuttons'); ?></label></p>
- <p><input type="checkbox" name="ssb_afterpage" id="ssb_afterpage" value="1" <?php if(!empty($ssb_afterpage)) { ?>checked="checked"<?php } ?> /> <label for="ssb_afterpage"><?php _e('After the page content', 'simplesocialbuttons'); ?></label></p>
- </div>
- </div>
- <div class="postbox">
- <h3><?php _e('Archives - display settings', 'simplesocialbuttons'); ?></h3>
- <div class="inside">
- <h4><?php _e('Select additional places to display buttons:', 'simplesocialbuttons'); ?></h4>
- <p><input type="checkbox" name="ssb_showfront" id="ssb_showfront" value="1" <?php if(!empty($ssb_showfront)) { ?>checked="checked"<?php } ?> /> <label for="ssb_showfront"><?php _e('Show at frontpage', 'simplesocialbuttons'); ?></label></p>
- <p><input type="checkbox" name="ssb_showcategory" id="ssb_showcategory" value="1" <?php if(!empty($ssb_showcategory)) { ?>checked="checked"<?php } ?> /> <label for="ssb_showcategory"><?php _e('Show at category pages', 'simplesocialbuttons'); ?></label></p>
- <p><input type="checkbox" name="ssb_showarchive" id="ssb_showarchive" value="1" <?php if(!empty($ssb_showarchive)) { ?>checked="checked"<?php } ?> /> <label for="ssb_showarchive"><?php _e('Show at archive pages', 'simplesocialbuttons'); ?></label></p>
- <p><input type="checkbox" name="ssb_showtag" id="ssb_showtag" value="1" <?php if(!empty($ssb_showtag)) { ?>checked="checked"<?php } ?> /> <label for="ssb_showtag"><?php _e('Show at tag pages', 'simplesocialbuttons'); ?></label></p>
- <h4><?php _e('Place buttons on archives:', 'simplesocialbuttons'); ?></h4>
- <p><input type="checkbox" name="ssb_beforearchive" id="ssb_beforearchive" value="1" <?php if(!empty($ssb_beforearchive)) { ?>checked="checked"<?php } ?> /> <label for="ssb_beforearchive"><?php _e('Before the content', 'simplesocialbuttons'); ?></label></p>
- <p><input type="checkbox" name="ssb_afterarchive" id="ssb_afterarchive" value="1" <?php if(!empty($ssb_afterarchive)) { ?>checked="checked"<?php } ?> /> <label for="ssb_afterarchive"><?php _e('After the content', 'simplesocialbuttons'); ?></label></p>
- </div>
- </div>
- <div class="postbox">
- <h3><?php _e('Twitter', 'simplesocialbuttons'); ?></h3>
- <div class="inside">
- <h4><?php _e('Twitter username to include with tweets:', 'simplesocialbuttons'); ?></h4>
- <p><input type="text" name="ssb_twitter_username" id="ssb_twitter_username" value="<?php echo $ssb_twitter_username; ?>" /></p>
- </div>
- </div>
- <div class="submit">
- <input type="hidden" name="hiddenconfirm" value="Y" />
- <input type="submit" name="Submit" class="button-primary" value="<?php _e('Save Changes'); ?>" />
- </div>
- </form>
- </div>
- </div>
- <div class="postbox-container" style="width:29%">
- <div id="poststuff">
- <div class="postbox">
- <h3><?php _e('About this plugin:', 'simplesocialbuttons'); ?></h3>
- <div class="inside">
- <p><?php _e('Talk to <a href="http://twitter.com/rabinek" target="_blank">@rabinek</a> on twitter for bugs or feature requests.', 'simplesocialbuttons'); ?></p>
- <p><strong><?php _e('Enjoy the plugin?', 'simplesocialbuttons'); ?></strong><br />
- <?php _e('<a href="http://twitter.com/?status=I\'m using @rabinek\'s WordPress Simple Social Buttons plugin - check it out! http://blog.rabinek.pl/" target="_blank">Tweet about it</a> and consider donating.', 'simplesocialbuttons'); ?></p>
- <p><?php _e('<strong>Donate:</strong> A lot of hard work goes into building plugins - support your open source developers. Thank you!', 'simplesocialbuttons'); ?><br />
- <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
- <input type="hidden" name="cmd" value="_s-xclick">
- <input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHRwYJKoZIhvcNAQcEoIIHODCCBzQCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYCQ94Dakt40QeMgJ1i1XpdlXrxJUDtW8BoTHVh1sug+L6L4o8WE+zXLL7k2eWQ7eEdODr0r4aRF+lcNkG/v+FaIVNi2WyGZ2W+uJxkfA4wHAL+QAdFysFwH6rXGHxF3DVRRjpB7Ql0acLMKamDOCM4TRZgt8xqF3ms23oqICzNHvDELMAkGBSsOAwIaBQAwgcQGCSqGSIb3DQEHATAUBggqhkiG9w0DBwQI4D963T+g92OAgaCl4SGQ4Ckx0WcJwMLep1QhklltC2qTsIIaBMi3WldkJr84BHwg1lpjh/DVlscXPHzvGVXkv3HnDmQthFlUtmdfgBeeiYb0kIgz9xwDhi/h4QwyiBZVNwEod7/dfXvv1YXeWU48RJvi+9x4oJAclht9gBOikSRxFKf6EcmE/OBkNT7/QBk943KXp9PqU0T2v33HmlY30jPrHVsH+eCJu3F9oIIDhzCCA4MwggLsoAMCAQICAQAwDQYJKoZIhvcNAQEFBQAwgY4xCzAJBgNVBAYTAl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vTjyGw/XqXa+LSTlDYkqI8OwR8GEYj4efEtcRpRYBxV8KxAW93YDWzFGvruKnnLbDAF6VR5w/cCMn5hzGCAZowggGWAgEBMIGUMIGOMQswCQYDVQQGEwJVUzELMAkGA1UECBMCQ0ExFjAUBgNVBAcTDU1vdW50YWluIFZpZXcxFDASBgNVBAoTC1BheVBhbCBJbmMuMRMwEQYDVQQLFApsaXZlX2NlcnRzMREwDwYDVQQDFAhsaXZlX2FwaTEcMBoGCSqGSIb3DQEJARYNcmVAcGF5cGFsLmNvbQIBADAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMTEwOTE3MTc1NDE4WjAjBgkqhkiG9w0BCQQxFgQUi1Wu2p91ElTW2fpQ2Y7PP93ERzYwDQYJKoZIhvcNAQEBBQAEgYBLhKww4LgMaMpbjM9H1EGQyddl13dcyvL9UhKUb1MjdCr7M5P6wpZDwIdsh7FM4C1ztRtNfcfrfDgtP/UO6gMABuCKcGtLS9VFe7XA/puY6i+zRtEffwXPbPwSpV3NvyPKhPc6wzj8M0j9vFvbQvidaSZhIH9i6xNTufQfSxCK+w==-----END PKCS7-----">
- <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
- <img alt="" border="0" src="https://www.paypalobjects.com/pl_PL/i/scr/pixel.gif" width="1" height="1">
- </form>
- </p>
- </div>
- </div>
- <div class="postbox">
- <h3><?php _e('About the author:', 'simplesocialbuttons'); ?></h3>
- <div class="inside">
- <p><?php _e('Hi! My name is Paweł Rabinek (aka xradar). I\'m interesed in SEO and social media, PHP and Wordpress developement.', 'simplesocialbuttons'); ?></p>
- <ul>
- <li><a href="http://blog.rabinek.pl/" target="_blank"><?php _e('My blog about SEO', 'simplesocialbuttons'); ?></a> <?php _e('[Polish]', 'simplesocialbuttons'); ?></li>
- <li><?php _e('Follow me on Twitter', 'simplesocialbuttons'); ?> <a href="http://www.twitter.com/rabinek" target="_blank">@rabinek</a></li>
- <li><a href="http://www.facebook.com/rabinek" target="_blank"><?php _e('Paweł Rabinek on Facebook', 'simplesocialbuttons'); ?></a></li>
- <li><a href="http://plus.google.com/114311287272342088386/" target="_blank"><?php _e('Paweł Rabinek on Google Plus', 'simplesocialbuttons'); ?></a></li>
- <li><a href="http://pl.linkedin.com/in/rabinek" target="_blank"><?php _e('LinkedIn profile', 'simplesocialbuttons'); ?></a></li>
- </ul>
- </div>
- </div>
- <div class="postbox">
- <h3><?php _e('Usefull links:', 'simplesocialbuttons'); ?></h3>
- <div class="inside">
- <ul>
- <li><a href="http://www.site5.com/in.php?id=53542" target="_blank"><?php _e('Unlimited web hosting', 'simplesocialbuttons'); ?></a></li>
- <li><a href="http://www.webceo.com/cgi-bin/go/clickthru.cgi?id=xradar" target="_blank"><?php _e('Best SEO software', 'simplesocialbuttons'); ?></a></li>
- <li><a href="http://themeforest.net?ref=xradar" target="_blank"><?php _e('Wordpress templates', 'simplesocialbuttons'); ?></a></li>
- </ul>
- </div>
- </div>
- </div>
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement