-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions.php
38 lines (36 loc) · 1.02 KB
/
functions.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
/**
* @package WordPress
* @subpackage Grid_Focus
*/
if ( function_exists('register_sidebar') ) {
register_sidebar(array(
'name' => 'Primary - Index',
'before_widget' => '<div id="%1$s" class="widgetContainer %2$s">',
'after_widget' => '</div>',
'before_title' => '<h3 class="widgetTitle">',
'after_title' => '</h3>'
));
register_sidebar(array(
'name' => 'Primary - Post',
'before_widget' => '<div id="%1$s" class="widgetContainer %2$s">',
'after_widget' => '</div>',
'before_title' => '<h3 class="widgetTitle">',
'after_title' => '</h3>'
));
register_sidebar(array(
'name' => 'Secondary - Shared',
'before_widget' => '<div id="%1$s" class="widgetContainer %2$s">',
'after_widget' => '</div>',
'before_title' => '<h3 class="widgetTitle">',
'after_title' => '</h3>'
));
}
add_filter('comments_template', 'legacy_comments');
function legacy_comments($file) {
if(!function_exists('wp_list_comments')) : // WP 2.7-only check
$file = TEMPLATEPATH . '/legacy.comments.php';
endif;
return $file;
}
?>