'; printf( '%s', sprintf( esc_html__( 'To change the sidebar for %s', 'custom-sidebars' ), $page_name ) ); echo ''; echo '

'; $url = esc_url( CSB_IMG_URL . 'metabox/' . $img . '?version=3.2.2' ); printf( '', esc_url( $url ), esc_url( $url ) ); } /** * show */ if ( $is_front ) { $page_name = esc_html__( 'Front Page', 'custom-sidebars' ); custom_sidebars_replace_not_allowed( $page_name, 'frontpage-info.png' ); } elseif ( $is_blog ) { $page_name = esc_html__( 'Blog Page', 'custom-sidebars' ); $archive = esc_html__( 'Post Index', 'custom-sidebars' ); custom_sidebars_replace_not_allowed( $page_name, 'blogpage-info.png', $archive ); } elseif ( $is_woo_shop ) { $page_name = esc_html__( 'WooCommerce Shop', 'custom-sidebars' ); $post_type_object = get_post_type_object( 'product' ); $archive = sprintf( esc_html__( '%s Archives', 'custom-sidebars' ), $post_type_object->label ); custom_sidebars_replace_not_allowed( $page_name, 'wooshop-info.png', $archive ); } else { echo '

'; _e( 'Here you can replace the default sidebars. Simply select what sidebar you want to show for this post!', 'custom-sidebars' ); echo '

'; if ( ! empty( $sidebars ) ) { global $wp_registered_sidebars; $available = CustomSidebars::sort_sidebars_by_name( $wp_registered_sidebars ); foreach ( $sidebars as $s ) { ?>

'; printf( __( 'All sidebars have been locked, you cannot replace them. Go to the widgets page to unlock a sidebar.', 'custom-sidebars' ), admin_url( 'widgets.php' ) ); echo '

'; } }