-
Notifications
You must be signed in to change notification settings - Fork 1
/
functions.php
65 lines (51 loc) · 1.5 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?php
/**
* @package WordPress
* @subpackage Bedrock
*/
require_once('admin/cheezcap.php');
if ( function_exists( 'register_sidebar' ) ) {
register_sidebar( array(
'before_widget' => '<li id="%1$s" class="widget %2$s">',
'after_widget' => '</li>',
'before_title' => '<h3 class="title">',
'after_title' => '</h3>',
) );
}
if ( ! isset( $content_width ) ) $content_width = 600;
if ( function_exists( 'add_theme_support' ) ) {
add_theme_support( 'automatic-feed-links' );
add_theme_support( 'nav-menus' );
add_theme_support( 'post-thumbnails' );
add_theme_support( 'editor_style' );
add_image_size( 'fullwidth', $content_width, ( $content_width / ( 16/9 ) ), true ); // gives you a full-column-width thumb at 16:9 aspect
add_image_size( 'smallicon', 32, 32, true );
add_image_size( 'largeicon', 64, 64, true );
add_image_size( 'tile', 100, 100, true );
add_image_size( 'lightbox', 800, 600 );
add_editor_style( );
}
add_action( 'init', 'bedrock_register_menus' );
function bedrock_register_menus() {
register_nav_menus(
array(
'header-menu' => __( 'Header Menu' ),
'footer-menu' => __( 'Footer Menu' )
)
);
}
function bedrock_comments_title() {
global $cap;
$count = get_comments_number();
switch ( $count ) {
case 0:
echo $cap->no_comments;
break;
case 1:
echo $cap->one_comment;
break;
default:
echo str_replace( '[num]', $count, $cap->many_comments );
}
}
?>