function form($instance)
    {
        $menu_terms = get_terms('nav_menu', array('hide_empty' => false));
        if (!$menu_terms) {
            echo '<p>' . sprintf(__('No menus have been created yet. <a href="%s">Create some</a>.'), admin_url('nav-menus.php')) . '</p>';
            return;
        }
        $menus = array();
        $menus[0] = 'No menu';
        foreach ($menu_terms as $term) {
            $menus[$term->term_id] = $term->name;
        }
        $this->instance = wp_parse_args((array) $instance, $this->get_defaults());
        $this->tooltips = new Footer_Putter_Tooltip($this->get_tips());
        $this->print_form_field('nav_menu', 'select', $menus);
        $this->print_form_field('center', 'checkbox');
        $this->print_form_field('two_lines', 'checkbox');
        $this->print_form_field('show_copyright', 'checkbox');
        $this->print_form_field('show_address', 'checkbox');
        $this->print_form_field('show_telephone', 'checkbox');
        $this->print_form_field('show_email', 'checkbox');
        $this->print_form_field('show_return', 'checkbox');
        if (Footer_Putter_Utils::is_html5()) {
            $this->print_form_field('use_microdata', 'checkbox');
        }
        print <<<CUSTOM_CLASSES
<h4>Custom Classes (Optional)</h4>
<p>Add any custom CSS classes you want apply to the footer section content to change the font color and size.</p>
<p>For your convenience we have defined 3 color classes <i>dark</i>, <i>light</i> and <i>white</i>, and 2 size classes, 
<i>small</i> and <i>tiny</i>. Feel free to use these alongside your own custom CSS classes.</p>
CUSTOM_CLASSES;
        $this->print_form_field('return_class', 'text', array(), array('size' => 10));
        $this->print_form_field('footer_class', 'text', array(), array('size' => 10));
        $this->print_form_field('visibility', 'radio', Footer_Putter_Utils::get_visibility_options(), array('separator' => '<br />'));
    }
 function form($instance)
 {
     $this->instance = wp_parse_args((array) $instance, $this->get_defaults());
     $this->tooltips = new Footer_Putter_Tooltip($this->get_tips());
     $links = array();
     $link_cats = get_terms('link_category');
     foreach ($link_cats as $link_cat) {
         $id = intval($link_cat->term_id);
         $links[$id] = $link_cat->name;
     }
     $this->print_form_field('title', 'text', array(), array('size' => 10));
     $this->print_form_field('category', 'select', $links);
     $this->print_form_field('orderby', 'select', array('name' => __('Link title'), 'rating' => __('Link rating'), 'id' => __('Link ID'), 'rand' => __('Random')));
     $this->print_form_field('limit', 'text', array(), array('size' => 3, 'maxlength' => 3));
     $this->print_form_field('nofollow', 'checkbox');
     $this->print_form_field('visibility', 'radio', Footer_Putter_Utils::get_visibility_options(), array('separator' => '<br />'));
 }