<?php
/**
 * The template for displaying top-bar
 *
 * @package WordPress
 * @subpackage ruby build
 * @since ruby build 1.0
 */
$top_bar_enable = g5plusRubyBuild()->options()->get_top_bar_enable();
if ($top_bar_enable !== 'on') return;
$content_block = g5plusRubyBuild()->options()->get_top_bar_content_block();
$content_block = g5plusRubyBuild()->helper()->content_block($content_block);
?>
<div class="top-bar">
	<?php if (!empty($content_block)) {
		echo wp_kses_post($content_block);
	} else { ?>
		<div class="gf-content-block-none dark text-center">
			<?php printf(wp_kses_post(__('Please specify the <b>Content Block</b> to use as a top bar content in <a title="Theme Options" href="%s">Theme Options</a>','g5plus-ruby-build')),g5plusRubyBuild()->helper()->get_theme_options_url()); ?>
		</div>
	<?php } ?>
</div>

