Esempio n. 1
0
/**
 * {@internal Missing Short Description }}
 * 
 * {@internal Missing Long Description }}
 * 
 * @since	0.5.3
 */
function bf_wpmu_options_form()
{
    ?>
	<h3><?php 
    _e('Buffet Framework WPMU Options', 'buffet');
    ?>
</h3>
	<p><?php 
    _e('These options will only apply to themes using the Buffet Framework.', 'buffet');
    ?>
</p>
	<table class="form-table">
		<tr>
			<th scope="row"><label for="bf-wpmu-enable-options"><?php 
    _e('Allow Access for Theme Options', 'buffet');
    ?>
</label></th>
			<td><?php 
    echo bf_form_checkbox('bf-wpmu-enable-options', 'show', get_site_option('bf_wpmu_enable_options'), 'id="bf-wpmu-enable-options"');
    ?>
			<?php 
    _e('Tick to allow regular user accounts to access the theme options page.', 'buffet');
    ?>
</td>
		</tr>
		<tr>
			<th scope="row"><label for="bf-wpmu-enable-ext"><?php 
    _e('Allow Access for Theme Extensions', 'buffet');
    ?>
</label></th>
			<td><?php 
    echo bf_form_checkbox('bf-wpmu-enable-ext', 'show', get_site_option('bf_wpmu_enable_ext'), 'id="bf-wpmu-enable-ext"');
    ?>
			<?php 
    _e('Tick to allow regular user accounts to access the theme extensions page.', 'buffet');
    ?>
</td>
		</tr>
	</table>
<?php 
}
Esempio n. 2
0
/**
 * bf_form_radio() - Radio Button Helper Function
 * 
 * This function is similar to form_radio() function in CodeIgniter's Form Helper class.
 * 
 * @since	0.5.2
 * @link	http://codeigniter.com/user_guide/helpers/form_helper.html	CodeIgniter User Guide on Form Helper
 * @return	string							HTML code of the radio button
 * @param	string[optional]	$data		Name of the radio button
 * @param	string[optional]	$value		Value of the radio button
 * @param	boolean[optional]	$checked	Boolean specifying the default state of the radio button
 * @param	string[optional]	$extra		A string containing additional data
 */
function bf_form_radio($data = '', $value = '', $checked = FALSE, $extra = '')
{
    if (!is_array($data)) {
        $data = array('name' => $data);
    }
    $data['type'] = 'radio';
    return bf_form_checkbox($data, $value, $checked, $extra);
}