Genesis 2.0 compatibility, standards.

This commit is contained in:
Nathan Rice
2013-08-09 13:35:43 -04:00
parent cf767d3206
commit 718dfd9a55
7 changed files with 85 additions and 90 deletions
+8 -8
View File
@@ -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
}
}