|
4 | 4 | $sa_options = array(
|
5 | 5 | 'social_buttons' => false,
|
6 | 6 | 'sidebar_feed' => true,
|
7 |
| - 'credits' => true, |
| 7 | + 'credits_footer' => true, |
8 | 8 | 'compact_homepage' => false,
|
9 | 9 | 'nav_view' => 'pills',
|
10 | 10 | 'iubenda_id' => '',
|
@@ -135,8 +135,8 @@ function sa_theme_options_page() {
|
135 | 135 | <tr valign="top"><th scope="row">Credits</th>
|
136 | 136 | <td>
|
137 | 137 | <p>
|
138 |
| - <input type="checkbox" id="credits" name="sa_options[credits]" value="1" <?php checked( true, $settings['credits'] ); ?> /> |
139 |
| - <label for="credits">Enable the credits on the footer</label> |
| 138 | + <input type="checkbox" id="credits_footer" name="sa_options[credits_footer]" value="1" <?php checked( true, $settings['credits_footer'] ); ?> /> |
| 139 | + <label for="credits_footer">Enable the credits on the footer</label> |
140 | 140 | </p>
|
141 | 141 | </td>
|
142 | 142 | </tr>
|
@@ -164,10 +164,10 @@ function sa_validate_options( $input ) {
|
164 | 164 | $input['social_buttons'] = ( $input['social_buttons'] == 1 ? 1 : 0 );
|
165 | 165 |
|
166 | 166 | // If the checkbox has not been checked, we void it
|
167 |
| - if ( ! isset( $input['credits'] ) ) |
168 |
| - $input['credits'] = null; |
| 167 | + if ( ! isset( $input['credits_footer'] ) ) |
| 168 | + $input['credits_footer'] = null; |
169 | 169 | // We verify if the input is a boolean value
|
170 |
| - $input['credits'] = ( $input['credits'] == 1 ? 1 : 0 ); |
| 170 | + $input['credits_footer'] = ( $input['credits_footer'] == 1 ? 1 : 0 ); |
171 | 171 |
|
172 | 172 | // If the checkbox has not been checked, we void it
|
173 | 173 | if ( ! isset( $input['sidebar_feed'] ) )
|
|
0 commit comments