mirror of
https://github.com/10h30/genesis-simple-sidebars.git
synced 2026-07-13 11:36:22 +09:00
Tagging 0.9.2.
This commit is contained in:
+9
-2
@@ -7,7 +7,7 @@ add_action('admin_menu', 'ss_add_inpost_metabox');
|
||||
function ss_add_inpost_metabox() {
|
||||
foreach ( (array)get_post_types( array( 'public' => true ) ) as $type ) {
|
||||
if ( post_type_supports( $type, 'genesis-simple-sidebars' ) || $type == 'post' || $type == 'page' ) {
|
||||
add_meta_box('ss_inpost_metabox', __('Sidebar Selection', 'genesis'), 'ss_inpost_metabox', $type, 'side', 'low');
|
||||
add_meta_box('ss_inpost_metabox', __('Sidebar Selection', 'ss'), 'ss_inpost_metabox', $type, 'side', 'low');
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -29,7 +29,14 @@ function ss_inpost_metabox() {
|
||||
?>
|
||||
</select>
|
||||
</p>
|
||||
|
||||
<?php
|
||||
// don't show the option if there are no 3 column layouts registered
|
||||
$_layouts = (array) genesis_get_layouts();
|
||||
$_layouts = array_keys( $_layouts );
|
||||
$_3_column = array_intersect( $_layouts, array( 'content-sidebar-sidebar', 'sidebar-content-sidebar', 'sidebar-sidebar-content' ) );
|
||||
if ( empty( $_3_column ) )
|
||||
return;
|
||||
?>
|
||||
<p>
|
||||
<label class="howto" for="_ss_sidebar_alt"><span><?php _e('Secondary Sidebar', 'ss'); ?><span></label>
|
||||
<select name="_ss_sidebar_alt" id="_ss_sidebar_alt" style="width: 99%">
|
||||
|
||||
Reference in New Issue
Block a user