<?php global $gp_settings;

if($gp_settings['meta_date'] == "0" OR $gp_settings['meta_author'] == "0" OR $gp_settings['meta_cats'] == "0" OR $gp_settings['meta_comments'] == "0" OR $gp_settings['meta_share_link'] == "0") { ?>

	<div class="post-meta">
	
		<?php if($gp_settings['meta_date'] == "0") { ?><?php the_time(get_option('date_format')); ?><?php } ?>
		<?php if($gp_settings['meta_author'] == "0") { ?> - <?php the_author_link(); ?><?php } ?>
		<?php if($gp_settings['meta_cats'] == "0") { ?> - <?php the_category(', '); ?><?php } ?>
		<?php if($gp_settings['meta_comments'] == "0" && 'open' == $post->comment_status) { ?> - <?php comments_popup_link(__('No Comments', 'gp_lang'), __('1 Comment', 'gp_lang'), __('% Comments', 'gp_lang'), 'comments-link', ''); ?><?php } ?>
										
		<!--Begin Share Link-->
		<?php if($gp_settings['meta_share_link'] == "0") {
		
		$isiPad = strpos($_SERVER['HTTP_USER_AGENT'],'iPad');
		
		?>
			<ul id="share-review-link">
			<li><?php if(!is_rtl()) { ?> - <?php } ?><a href="#"></a>
			
				<ul id="share-review">
					
					<li><a href="https://twitter.com/share" class="twitter-share-button" data-count="horizontal"><?php _e('Tweet', 'gp_lang'); ?></a><script type="text/javascript" src="//platform.twitter.com/widgets.js"></script></li>
					
					<li><div id="fb-root"></div>
					<script>(function(d, s, id) {
					  var js, fjs = d.getElementsByTagName(s)[0];
					  if (d.getElementById(id)) {return;}
					  js = d.createElement(s); js.id = id;
					  js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
					  fjs.parentNode.insertBefore(js, fjs);
					}(document, 'script', 'facebook-jssdk'));</script>
					<div class="fb-like" data-send="false" data-layout="button_count" data-width="80" data-show-faces="false" data-font="arial"></div></li>
					
					<?php if(is_rtl() && $isiPad) {} else { ?>
						<li><div class="g-plusone" data-size="medium"></div>
						<script type="text/javascript">
						  (function() {
							var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
							po.src = 'https://apis.google.com/js/plusone.js';
							var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
						  })();
						</script></li>
					<?php } ?>
					
				</ul>
			
				<?php if(is_rtl()) { ?> -&nbsp;<?php } ?></li>
			</ul>
		<?php } ?>	
		<!--Begin Share Link-->
		
	</div>
	
<?php } ?>

<?php if($gp_settings['meta_tags'] == "0") { ?>
	<?php the_tags('<div class="post-meta post-tags">'.__('Tags: ', 'gp_lang'), ', ', '</div>'); ?>
<?php } ?>	