function tb_options_input_number($name, $value = '', $description = '', $max_length = 0) { if (is_array($name)) { extract($name); } tb_options_input($name, intval($value), $description, 'short-text code', $max_length); }
echo '</td></tr>'; } echo '</table>'; tb_options_description(__('If you use more than one version of the Myriad font, select the biggest version you need for all of them.', 'fastblog')); tb_options_close_field(); tb_options_field(__('Custom elements CSS selector(s)', 'fastblog'), '', 'input_code', 'fastblog[typography][custom_selector]', fastblog_get_option('typography/custom_selector')); tb_options_close_section(); ?> <!-- // Typography options --> <!-- Contact form options --> <?php tb_options_open_section(__('Contact form', 'fastblog')); tb_options_field(__('Recipient e-mail address', 'fastblog'), '', 'input_code', 'fastblog[contact_form][email]', fastblog_get_option('contact_form/email')); tb_options_open_field(__('E-mail subject', 'fastblog')); tb_options_input('fastblog[contact_form][subject]', fastblog_get_option('contact_form/subject')); echo '<table class="clear">'; foreach (array('blogname' => __('Blog name', 'fastblog'), 'blogurl' => __('Blog URL', 'fastblog'), 'name' => __('Name field', 'fastblog'), 'email' => __('E-mail field', 'fastblog'), 'subject' => __('Subject field', 'fastblog')) as $variable => $label) { ?> <tr> <td><span class="description"><code>%<?php echo $variable; ?> %</code></span></td> <td><span class="description"><?php echo $label; ?> </span></td> </tr> <?php }