<?php wp_enqueue_script('jquery-ui-tabs'); ?>
<div class="wrap wp-linkedin">
	<h1><?php _e('LinkedIn Options', 'wp-linkedin'); ?></h1>

	<div id="main-container"><form method="POST" action="<?php echo $post_target ?>"><?php
		settings_fields($page_slug);
		global $wp_settings_sections, $wp_settings_fields;
		$sections = (array) $wp_settings_sections[$page_slug]; ?>
		<div id="sections" class="postbox-container metabox-holder"><?php
			// Output tabs first
			echo '<ul>';
			foreach ($sections as $section) {
				echo '<li><a href="#' . $section['id'] . '">' . $section['title'] . '</a></li>';
			}
			echo '</ul>';

			// Then output content
			foreach ($sections as $section) { ?>
				<div class="postbox" id="<?php echo $section['id']; ?>">
					<div class="inside">
					<?php if ($section['callback']) call_user_func($section['callback'], $section); ?>
					<table class="form-table">
					<?php do_settings_fields($page_slug, $section['id'] ); ?>
					</table>
					<?php submit_button(); ?>
					</div> <!-- .inside -->
				</div> <!-- .postbox --><?php
			} ?>
		</div> <!-- #sections -->
		<script type="text/javascript">jQuery(document).ready(function($) { $("#sections").tabs(); });</script>
	</form></div> <!-- #main-container -->

	<div id="side-container" class="postbox-container metabox-holder">
		<div class="postbox">
			<h3><span><?php _e('Do you like this Plugin?', 'wp-linkedin'); ?></span></h3>
			<div class="inside">
				<p><?php _e('Please consider a donation.', 'wp-linkedin'); ?></p>
				<div style="text-align:center">
					<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
					<input type="hidden" name="cmd" value="_s-xclick">
					<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHNwYJKoZIhvcNAQcEoIIHKDCCByQCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQ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fVpW0Uwx5Z785+BGrOVCiAFhEUL7b/t4AYGL5ZeeGDL5MJJmzjAYPufcTOD-----END PKCS7-----
					">
					<input type="image" src="https://www.paypalobjects.com/en_US/CH/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/en_US/i/scr/pixel.gif" width="1" height="1">
					</form>
				</div>
				<p><?php _e('We also need volunteers to translate that plugin into more languages.', 'wp-linkedin'); ?>
					<?php _e('If you wish to help then contact <a href="https://twitter.com/cvedovini">@cvedovini</a> on Twitter or use that <a href="http://vdvn.me/contact/">contact form</a>.', 'wp-linkedin'); ?></p>
			</div> <!-- .inside -->
		</div> <!-- .postbox -->
		<div>
			<a class="twitter-timeline" href="https://twitter.com/cvedovini" data-widget-id="377037845489139712">Tweets by @cvedovini</a>
			<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
		</div>
	</div> <!-- #side-container -->
</div>