|
@@ 153-157 (lines=5) @@
|
| 150 |
|
|
| 151 |
|
$position = explode( ' ', $_POST['background-position'] ); |
| 152 |
|
|
| 153 |
|
if ( in_array( $position[0], array( 'left', 'center', 'right' ), true ) ) { |
| 154 |
|
$position_x = $position[0]; |
| 155 |
|
} else { |
| 156 |
|
$position_x = 'left'; |
| 157 |
|
} |
| 158 |
|
|
| 159 |
|
if ( in_array( $position[1], array( 'top', 'center', 'bottom' ), true ) ) { |
| 160 |
|
$position_y = $position[1]; |
|
@@ 159-163 (lines=5) @@
|
| 156 |
|
$position_x = 'left'; |
| 157 |
|
} |
| 158 |
|
|
| 159 |
|
if ( in_array( $position[1], array( 'top', 'center', 'bottom' ), true ) ) { |
| 160 |
|
$position_y = $position[1]; |
| 161 |
|
} else { |
| 162 |
|
$position_y = 'top'; |
| 163 |
|
} |
| 164 |
|
|
| 165 |
|
set_theme_mod( 'background_position_x', $position_x ); |
| 166 |
|
set_theme_mod( 'background_position_y', $position_y ); |