?>
",
		'lbl_replaceable': "<?php 
_e('This sidebar can be replaced on certain pages', CSB_LANG);
?>
",
		'replace_tip': "<?php 
_e('Activate this option to replace the sidebar with one of your custom sidebars.', CSB_LANG);
?>
",
		'filter': "<?php 
_e('Filter...', CSB_LANG);
?>
",
		'replaceable': <?php 
echo json_encode((object) CustomSidebars::get_options('modifiable'));
?>

	};
	</script>


	<?php 
/*
============================================================================
===== TOOLBAR for custom sidebars
============================================================================
*/
?>

	<div class="cs-custom-sidebar cs-toolbar">
<?php

/**
 * Metabox inside posts/pages where user can define custom sidebars for an
 * individual post.
 *
 * Uses:
 *   $selected
 *   $wp_registered_sidebars
 *   $post_id
 */
$sidebars = CustomSidebars::get_options('modifiable');
$is_front = get_option('page_on_front') == $post_id;
$is_blog = get_option('page_for_posts') == $post_id;
if ($is_front || $is_blog) {
    ?>
	<p>
		<?php 
    printf(__('<strong>To change the sidebar for static Front-Page or ' . 'Posts-Page</strong>:<ul>' . '<li>Go to the <a href="%1$s">Widgets page</a></li>' . '<li>Click on "Sidebar Location"</li>' . '<li>Open the "Archive-Types" tab</li>' . '<li>Choose "Front-Page" or "Post-Index"</li></ul>', 'custom-sidebars'), admin_url('widgets.php'));
    ?>
	</p>

	<img src="<?php 
    echo esc_url(CSB_IMG_URL . 'frontpage-info.png');
    ?>
" style="width:274px;margin:0 0 -14px -10px;" />

	<?php 
    foreach ($sidebars as $s) {
        ?>
		<input type="hidden"