<table class="widefat"> <thead> <tr> <th><?php _e('Settings', MAILUSERS_I18N_DOMAIN); ?> </th> <th><?php _e('Default Value', MAILUSERS_I18N_DOMAIN); ?> </th> </tr> </thead> <tbody> <?php $default_settings = mailusers_get_default_plugin_settings(); foreach ($default_settings as $key => $value) { ?> <tr> <td width="200px"><b><?php echo ucwords(preg_replace(array('/mailusers_/', '/_/'), array('', ' '), $key)); ?> </b></td> <td><?php echo htmlentities($value); ?> </td> </tr> <?php } ?>
/** * Wrapper for the Base64 Encoding setting */ function mailusers_get_base64_encode() { $option = get_option('mailusers_base64_encode'); if ($option === false) { $option = mailusers_get_default_plugin_settings('mailusers_base64_encode'); } return $option; }