I have added a custom theme-options page with two text areas and a checkbox. I want to create a function to display one of the textareas only if the check box is checked. I am able to call both textareas and get them to display successfully but for the life of me can't figure out how to do an if/then for the check box.
Here is what I have been able to get going so far:
// Add Registration Description from Theme Options page
function topmarks_reg_description() {
if (
// THIS IS WHERE I NEED HELP
)
{
// BEGIN GET REGISTRATION DESCRIPTION
{ ?>
<div id="reg-description"><p><?php
$options = get_option('topmarks_theme_options');
echo $options['reg-description'];
?> <a href="register">Register now</a></p></div>
<?php }
// END GET REGISTRATION DESCRIPTION
}
else
{
// silence
}
}
// Add our Registration Description function to Thematic Action Hook, number indicates positioning via priority setting
add_action('thematic_header','topmarks_reg_description', 6);
Any help with a function if check box is checked?