mirror of
https://github.com/10h30/genesis-simple-sidebars.git
synced 2026-06-05 15:08:34 +09:00
Genesis 2.0 compatibility, standards.
This commit is contained in:
+8
-8
@@ -27,16 +27,16 @@ function ss_term_sidebar($tag, $taxonomy) {
|
||||
|
||||
?>
|
||||
|
||||
<h3><?php _e('Sidebar Options', 'ss'); ?></h3>
|
||||
<h3><?php _e( 'Sidebar Options', 'ss' ); ?></h3>
|
||||
<table class="form-table">
|
||||
|
||||
<tr class="form-field">
|
||||
<th scope="row" valign="top"><label for="meta[_ss_sidebar]"><?php _e('Primary Sidebar', 'ss'); ?></label></th>
|
||||
<th scope="row" valign="top"><label for="meta[_ss_sidebar]"><?php _e( 'Primary Sidebar', 'ss' ); ?></label></th>
|
||||
<td>
|
||||
<select name="meta[_ss_sidebar]" id="meta[_ss_sidebar]" style="padding-right: 10px;">
|
||||
<option value=""><?php _e('Default', 'ss'); ?></option>
|
||||
<option value=""><?php _e( 'Default', 'ss' ); ?></option>
|
||||
<?php
|
||||
foreach ( (array)$_sidebars as $id => $info ) {
|
||||
foreach ( (array) $_sidebars as $id => $info ) {
|
||||
printf( '<option value="%s" %s>%s</option>', esc_html( $id ), selected( $id, $tag->meta['_ss_sidebar'] , false), esc_html( $info['name'] ) );
|
||||
}
|
||||
?>
|
||||
@@ -48,12 +48,12 @@ function ss_term_sidebar($tag, $taxonomy) {
|
||||
if ( ss_has_3_column_layouts() ) {
|
||||
?>
|
||||
<tr class="form-field">
|
||||
<th scope="row" valign="top"><label for="meta[_ss_sidebar_alt]"><?php _e('Secondary Sidebar', 'ss'); ?></label></th>
|
||||
<th scope="row" valign="top"><label for="meta[_ss_sidebar_alt]"><?php _e( 'Secondary Sidebar', 'ss' ); ?></label></th>
|
||||
<td>
|
||||
<select name="meta[_ss_sidebar_alt]" id="meta[_ss_sidebar_alt]" style="padding-right: 10px;">
|
||||
<option value=""><?php _e('Default', 'ss'); ?></option>
|
||||
<option value=""><?php _e( 'Default', 'ss' ); ?></option>
|
||||
<?php
|
||||
foreach ( (array)$_sidebars as $id => $info ) {
|
||||
foreach ( (array) $_sidebars as $id => $info ) {
|
||||
printf( '<option value="%s" %s>%s</option>', esc_html( $id ), selected( $id, $tag->meta['_ss_sidebar_alt'] , false), esc_html( $info['name'] ) );
|
||||
}
|
||||
?>
|
||||
@@ -66,4 +66,4 @@ function ss_term_sidebar($tag, $taxonomy) {
|
||||
</table>
|
||||
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user