| Conditions | 5 |
| Paths | 9 |
| Total Lines | 20 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 45 | protected function render_content() { |
||
| 46 | $keys = array_keys( get_object_vars( $this ) ); |
||
| 47 | |||
| 48 | foreach ( $keys as $key ) { |
||
| 49 | if ( isset( $args[ $key ] ) ) { |
||
| 50 | $this->$key = $args[ $key ]; |
||
| 51 | } |
||
| 52 | } |
||
| 53 | |||
| 54 | $output = '<label class="customize-control-title">' . esc_html( $this->label ) .'</label>'; |
||
|
|
|||
| 55 | |||
| 56 | echo $output; |
||
| 57 | |||
| 58 | foreach( $this->settings as $key => $value ) { |
||
| 59 | $label = absint( $key ) ? __( 'Height', 'wp-e-commerce' ) : __( 'Width', 'wp-e-commerce' ); |
||
| 60 | $this->build_field_html( $key, $value, $label ); |
||
| 61 | } |
||
| 62 | |||
| 63 | echo implode( '', $this->html ); |
||
| 64 | } |
||
| 65 | |||
| 67 |