| @@ 162-168 (lines=7) @@ | ||
| 159 | $instance['layout'] = $this->filter_text( $new_instance['layout'], $this->default_layout, $this->allowed_layouts ); |
|
| 160 | ||
| 161 | switch ( $instance['layout'] ) { |
|
| 162 | case 'portrait': |
|
| 163 | $instance['width'] = filter_var( |
|
| 164 | $new_instance['width'], FILTER_VALIDATE_INT, array( |
|
| 165 | 'options' => array( |
|
| 166 | 'min_range' => $this->min_width_portrait, |
|
| 167 | 'max_range' => $this->max_width, |
|
| 168 | 'default' => $this->default_width, |
|
| 169 | ), |
|
| 170 | ) |
|
| 171 | ); |
|
| @@ 173-179 (lines=7) @@ | ||
| 170 | ) |
|
| 171 | ); |
|
| 172 | break; |
|
| 173 | case 'landscape': |
|
| 174 | $instance['width'] = filter_var( |
|
| 175 | $new_instance['width'], FILTER_VALIDATE_INT, array( |
|
| 176 | 'options' => array( |
|
| 177 | 'min_range' => $this->min_width_landscape, |
|
| 178 | 'max_range' => $this->max_width, |
|
| 179 | 'default' => $this->default_width, |
|
| 180 | ), |
|
| 181 | ) |
|
| 182 | ); |
|