". * @param string $class Optinal classname added to the wrapper element. */ function _show_replaceable( $sidebar, $prefix, $cat_name, $class = '' ) { $base_id = 'cs-' . $prefix; $inp_id = $base_id . '-' . $sidebar['id']; $inp_name = '___cs___' . $prefix . '___' . $sidebar['id']; $sb_id = $sidebar['id']; $class = (empty( $class ) ? '' : ' ' . $class); ?>

...

Post or Page & set it ' . 'up via the sidebars metabox.', 'custom-sidebars' ), admin_url( 'edit.php' ), admin_url( 'edit.php?post_type=page' ) ); ?>


$details ) { $cat_name = __( 'categories', 'custom-sidebars' ); _show_replaceable( $details, 'cat', $cat_name ); } ?>
$details ) { $cat_name = __( 'Post Types', 'custom-sidebars' ); _show_replaceable( $details, 'pt', $cat_name ); } ?>


$details ) { $cat_name = __( 'Archive Types', 'custom-sidebars' ); _show_replaceable( $details, 'arc', $cat_name ); } ?>
$details ) { $cat_name = __( 'Category Archives', 'custom-sidebars' ); _show_replaceable( $details, 'arc-cat', $cat_name ); } ?>
$details ) { $cat_name = __( 'Author Archives', 'custom-sidebars' ); _show_replaceable( $details, 'arc-aut', $cat_name ); } ?>