| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 40 | protected function content_template() { |
||
| 41 | ?> |
||
| 42 | <div class="switch<# if ( data.choices['round'] ) { #> round<# } #>"> |
||
| 43 | <span class="customize-control-title"> |
||
| 44 | {{{ data.label }}} |
||
| 45 | </span> |
||
| 46 | <# if ( data.description ) { #> |
||
| 47 | <span class="description customize-control-description">{{{ data.description }}}</span> |
||
| 48 | <# } #> |
||
| 49 | <input class="screen-reader-text" {{{ data.inputAttrs }}} name="switch_{{ data.id }}" id="switch_{{ data.id }}" type="checkbox" value="{{ data.value }}" {{{ data.link }}}<# if ( '1' == data.value ) { #> checked<# } #> /> |
||
| 50 | <label class="switch-label" for="switch_{{ data.id }}"> |
||
| 51 | <span class="switch-on"> |
||
| 52 | <# data.choices.on = data.choices.on || '<?php esc_html_e( 'On', 'kirki' ); ?>' #> |
||
| 53 | {{ data.choices.on }} |
||
| 54 | </span> |
||
| 55 | <span class="switch-off"> |
||
| 56 | <# data.choices.off = data.choices.off || '<?php esc_html_e( 'Off', 'kirki' ); ?>' #> |
||
| 57 | {{ data.choices.off }} |
||
| 64 |