function post_box_index() { global $post; $form = new ITForm($this->_parse_meta_box_data($post->ID)); $robots = array('' => '', 'index,follow' => 'index, follow', 'noindex,follow' => 'noindex, follow', 'index,nofollow' => 'index, nofollow', 'noindex,nofollow' => 'noindex, nofollow'); ?> <dl> <?php if (!empty($this->_options["enable_custom_titles_{$post->post_type}s"])) { ?> <dt><label for='<?php echo "{$this->_var}_title"; ?> '>Title</label></dt> <dd><?php $form->add_text_box("{$this->_var}_title", array('style' => 'width:350px;')); ?> </dd> <?php } ?> <?php if (!empty($this->_options["enable_custom_descriptions_{$post->post_type}s"])) { ?> <dt><label for='<?php echo "{$this->_var}_description"; ?> '>Description (max 150 characters)</label></dt> <dd><?php $form->add_text_area("{$this->_var}_description", array('style' => 'width:350px;')); ?> </dd> <?php } ?> <?php if (!empty($this->_options["enable_custom_robots_{$post->post_type}s"])) { ?> <dt><label for='<?php echo "{$this->_var}_robots"; ?> '>Robots</label></dt> <dd><?php $form->add_drop_down("{$this->_var}_robots", $robots); ?> </dd> <?php } ?> <?php if (!empty($this->_options["enable_custom_keywords_{$post->post_type}s"])) { ?> <dt><label for='<?php echo "{$this->_var}_keywords"; ?> '>Keywords (comma separated list)</label></dt> <dd><?php $form->add_text_box("{$this->_var}_keywords", array('style' => 'width:350px;')); ?> </dd> <?php } ?> </dl> <?php $form->add_hidden("{$this->_var}_save", '1'); ?> <?php $form->add_hidden("{$this->_var}_nonce", wp_create_nonce(plugin_basename(__FILE__))); }