SMOF framework On/Off button

Could someone send me code of On/Off button for SMOF option framework? I try to add this functionality for a month but nothing works… Or if you know just how to do this I will be glad for every advice My email is jakub.kohout11@gmail.com