# maxbuttons/6.23/blocks/tpl/switch.tpl

MaxButtons – Create buttons, version 6.23. 17 lines.

- Page: https://pluginprobe.com/plugins/maxbuttons/6.23/code/blocks/tpl/switch.tpl
- Raw: https://pluginprobe.com/plugins/maxbuttons/6.23/raw/blocks/tpl/switch.tpl
- Modified: 2016-11-11T12:00:14+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/maxbuttons/6.23/code/blocks/tpl/switch.tpl#L10-L20`.

```
	  {if:label}	<label for='%%id%%' class='switch_label %%name%%'>%%label%%</label> {/if:label}				
<div class='input switch_button %%name%%'> 
		<label for='%%id%%' tabindex='0'>		
		<input type='checkbox' name='%%name%%' id='%%id%%' data-field='%%name%%' 
			value='%%value%%' 
			%%checked%% 
			tabindex='-1'
		/>

		<div class='the_switch' >

		{if:icon}	<i class='dashicons %%icon%%'></i>	{/if:icon}
		</div>
		</label>
		
</div>

```
