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