function tb_options_field($caption, $description, $type) { if (empty($type) || !function_exists($func_name = 'tb_options_' . $type)) { return; } $args = func_get_args(); tb_options_open_field($caption, $description); call_user_func_array($func_name, array_slice($args, 3)); tb_options_close_field(); }
tb_options_select("fastblog[typography][fonts][{$element}]", $font, $fonts); 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