From 10ef89fdf10eb21c682a524c220599d288783466 Mon Sep 17 00:00:00 2001 From: Ben Word Date: Mon, 30 May 2011 12:01:13 -0600 Subject: [PATCH] adding vcard widget --- functions.php | 1 + inc/roots-widgets.php | 86 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 87 insertions(+) create mode 100644 inc/roots-widgets.php diff --git a/functions.php b/functions.php index 91fdded..8558133 100644 --- a/functions.php +++ b/functions.php @@ -7,6 +7,7 @@ locate_template(array('inc/roots-cleanup.php'), true, true); // code cleanup/rem locate_template(array('inc/roots-htaccess.php'), true, true); // h5bp htaccess locate_template(array('inc/roots-hooks.php'), true, true); // hooks locate_template(array('inc/roots-actions.php'), true, true); // actions +locate_template(array('inc/roots-widgets.php'), true, true); // widgets locate_template(array('inc/roots-custom.php'), true, true); // custom functions // get active theme directory name diff --git a/inc/roots-widgets.php b/inc/roots-widgets.php new file mode 100644 index 0000000..5a068b4 --- /dev/null +++ b/inc/roots-widgets.php @@ -0,0 +1,86 @@ + 'Display a vCard'); + parent::WP_Widget(false, __('Roots: vCard', 'roots'), $widget_ops); + } + + function widget($args, $instance) { + extract($args); + $title = $instance['title']; + $street_address = $instance['street_address']; + $locality = $instance['locality']; + $region = $instance['region']; + $postal_code = $instance['postal_code']; + $tel = $instance['tel']; + $email = $instance['email']; + ?> + + +

+
+ +
+ , + +
+
+
+ +

+ + + + +

+ + +

+

+ + +

+

+ + +

+

+ + +

+

+ + +

+

+ + +

+

+ + +

+ \ No newline at end of file