Here is the code for this nice toggle :)
download (4).png
download (4).png (2.44 KiB) Viewed 611 times

Code: Select all
<cms:set view_mode = "<cms:get_session 'view_mode' />" scope='global' />
<cms:if view_mode ne 'grid' ><cms:set view_mode='list' scope='global' /></cms:if>
<cms:form class="navbar-form navbar-left" method="post" id="switch" name='switch' anchor='0' >
   <cms:if k_success ><cms:if frm_switcher ><cms:set_session name='view_mode' value='grid' /><cms:else /><cms:set_session name='view_mode' value='list' /></cms:if><cms:redirect k_page_link /></cms:if>
  <div class="form-group">
     <label class="checkbox-inline switchery-double checkbox-switchery switchery-xs" >
         <cms:hide><cms:input name='switcher' type="checkbox" opt_values="list | grid" /></cms:hide>
         <input type="checkbox" name="switcher" id="switcher"  onChange="this.form.submit()" class="switch-mode" <cms:if view_mode eq 'grid' >checked="checked"</cms:if> >

Should work out of the box for switchers like these
download (5).png
download (5).png (23.8 KiB) Viewed 611 times