Comments clean up, consistent formatting
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Register sidebars and widgets
|
||||
*/
|
||||
function roots_widgets_init() {
|
||||
// Register widgetized areas
|
||||
// Sidebars
|
||||
register_sidebar(array(
|
||||
'name' => __('Primary Sidebar', 'roots'),
|
||||
'id' => 'sidebar-primary',
|
||||
@@ -20,12 +22,14 @@ function roots_widgets_init() {
|
||||
'after_title' => '</h3>',
|
||||
));
|
||||
|
||||
// Register widgets
|
||||
// Widgets
|
||||
register_widget('Roots_Vcard_Widget');
|
||||
}
|
||||
add_action('widgets_init', 'roots_widgets_init');
|
||||
|
||||
// Example vCard widget
|
||||
/**
|
||||
* Example vCard widget
|
||||
*/
|
||||
class Roots_Vcard_Widget extends WP_Widget {
|
||||
private $fields = array(
|
||||
'title' => 'Title (optional)',
|
||||
|
||||
Reference in New Issue
Block a user