This is the code I have to display the checkbox in the theme options page:
$options[] = array( "name" => "Enable/Disable Slider",
"desc" => "If you don´t want to see the slider on your homepage you can disable it here.",
"id" => $shortname."_onoffslider",
"std" => "",
"type" => "checkbox",
"class" => "");
The checkbox now is there. And also I have this bit of code to echo the value true or false in my template. like this:
<p>
<?php if( get_option('_onoffslider') != '') { ?>
<?php echo get_option('_onoffslider'); ?>
<?php } else { ?>
It is ON!
<?php } ?>
</p>
In the template page the text "It is ON!" always shows, no matter the checkbox is on or off. I know the code is wrong but i can´t fix it.
Any help? thanks =)