From 484534acd09618ca81e7600cbf8017fa8df90d99 Mon Sep 17 00:00:00 2001 From: Ben Word Date: Sun, 23 Oct 2011 17:43:03 -0600 Subject: [PATCH] fixing undefined index error on widget and removing whitespace --- inc/roots-widgets.php | 45 ++++++++++++++++++++----------------------- 1 file changed, 21 insertions(+), 24 deletions(-) diff --git a/inc/roots-widgets.php b/inc/roots-widgets.php index 1e511d9..84a5e08 100644 --- a/inc/roots-widgets.php +++ b/inc/roots-widgets.php @@ -4,19 +4,17 @@ class roots_vcard extends WP_Widget { function roots_vcard() { $widget_ops = array('description' => 'Display a vCard'); - parent::WP_Widget(false, __('Roots: vCard', 'roots'), $widget_ops); + parent::WP_Widget(false, __('Roots: vCard', 'roots'), $widget_ops); } - - function widget($args, $instance) { - extract($args); - extract($instance); + function widget($args, $instance) { + extract($args); + extract($instance); echo $before_widget; if ($title) { - echo $before_title, $title, $after_title; - } + echo $before_title, $title, $after_title; + } ?> -


@@ -27,13 +25,12 @@ class roots_vcard extends WP_Widget {
-

- - +

- -

+ +

- +

- +

- +

- +

- +

- -

+ +