the Microformats site. Author: Steve Ivy Version: 1.0 Author URI: http://redmonk.net Plugin URI: http://redmonk.net/projects/ License: GPL and MIT */ // This gets called at the plugins_loaded action function widget_vcard_init() { // Check for the required API functions if ( !function_exists('register_sidebar_widget') || !function_exists('register_widget_control') ) return; // This saves options and prints the widget's config form. function widget_vcard_control() { $options = $newoptions = get_option('widget_vcard'); if ( $_POST['vcard-submit'] ) { $newoptions['title'] = strip_tags(stripslashes($_POST['vcard-title'])); $newoptions['name'] = strip_tags(stripslashes($_POST['vcard-name'])); $newoptions['note'] = strip_tags(stripslashes($_POST['vcard-note'])); $newoptions['hcardtitle'] = strip_tags(stripslashes($_POST['vcard-hcardtitle'])); $newoptions['org'] = strip_tags(stripslashes($_POST['vcard-org'])); $newoptions['link1'] = trim($_POST['vcard-link1']); $newoptions['link1text'] = strip_tags(stripslashes($_POST['vcard-link1text'])); $newoptions['link2'] = trim($_POST['vcard-link2']); $newoptions['link2text'] = strip_tags(stripslashes($_POST['vcard-link2text'])); $newoptions['link3'] = trim($_POST['vcard-link3']); $newoptions['link3text'] = strip_tags(stripslashes($_POST['vcard-link3text'])); $newoptions['extrainfo'] = trim($_POST['vcard-extrainfo']); } if ( $options != $newoptions ) { $options = $newoptions; update_option('widget_vcard', $options); } ?>
hCard About Box Widget by Steve Ivy, 2007
"; if (empty($before_widget)) $before_widget='
'; elseif (preg_match('/(class\=\")(.*?)(\")/',$before_widget,$m)) { // print ""; $classes = $m[2]; $classes = explode(' ',$classes); if (!in_array('vcard',$classes)) { $classes[] = 'vcard'; // print ""; $classes = 'class="' . implode(' ',$classes) . '"'; // print ""; $before_widget = preg_replace('/class=".*?"/', $classes, $before_widget); } } if (empty($after_widget)) $after_widget='
'; foreach ( $defaults as $key => $value ) if ( !isset($options[$key]) ) $options[$key] = $defaults[$key]; echo $before_widget; echo $before_title . $options['title'] . $after_title; ?>

My name is .

You can also find me on: