". * @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 ); } ?>
$taxonomy ) { echo '
'; foreach ( $sidebars as $sb_id => $details ) { _show_replaceable( $details, $taxonomy_slug, $taxonomy->label ); } echo '
'; } ?>


$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 ); } ?>



$one ) { printf( '%s', esc_attr( $id ), esc_attr( implode( ' ', $classes ) ), esc_html( $one['title'] ) ); $classes = array( 'tab' ); } ?>

$one ) { printf( '
', esc_attr( $id ), esc_attr( implode( ' ', $classes ) ) ); foreach ( $sidebars as $sb_id => $details ) { _show_replaceable( $details, $id, $one['cat_name'] ); } echo '
'; $classes = array( 'tab' ); } ?>