Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 82 lines (70 sloc) 2.913 kb
77022a6 @pnts first commit
authored
1 <?php
8cc5608 @pnts support for post thumbnails
authored
2 if ( function_exists( 'add_theme_support' )) {
3 add_theme_support('post-thumbnails');
4 set_post_thumbnail_size( 59, 59, true );
a1c3065 @pnts custom header image and background support
authored
5 add_custom_background();
6 add_theme_support( 'automatic-feed-links' );
dd4161e @pnts modifying theme for acceptance to wp.org
authored
7 add_editor_style();
325a81c @pnts feed changes
authored
8
a1c3065 @pnts custom header image and background support
authored
9
f87066c @pnts editing link colors, display styles, and buttons for more consistency
authored
10 define('HEADER_TEXTCOLOR', '000000');
a1c3065 @pnts custom header image and background support
authored
11 define('HEADER_IMAGE', '%s/images/default_header.jpg'); // %s is the template dir uri
12 define('HEADER_IMAGE_WIDTH', 160); // use width and height appropriate for your theme
13 define('HEADER_IMAGE_HEIGHT', 120);
14
15 function oulipo_header_style() { ?>
16 <style type="text/css">
17 span.header_image { background: url(<?php header_image(); ?>) no-repeat;
18 width: <?php echo HEADER_IMAGE_WIDTH; ?>px;
19 height: <?php echo HEADER_IMAGE_HEIGHT; ?>px;
20 display: block;
21 margin-bottom: 30px;
22 }
23 #main_nav h1.masthead a { color:#<?php header_textcolor();?>; }
d8074fb @pnts global widgetized sidebar and removal of fixed positioning
authored
24 </style><?php }
a1c3065 @pnts custom header image and background support
authored
25
26 function oulipo_admin_header_style() { ?>
27 <style type="text/css">
72e3ab1 @pnts preview styles for admin view
authored
28 #headimg {
a1c3065 @pnts custom header image and background support
authored
29 }
30 </style><?php }
72e3ab1 @pnts preview styles for admin view
authored
31
32 function oulipo_admin_header_image() { ?>
33 <div id="headimg">
34 <style type="text/css">
8b428a1 @pnts changed mignolo to pnts in footer (heh) and modified admin preview for c...
authored
35 h1.masthead, p.description { font-family: "Hoefler Text","Cambria",Georgia,"Times New Roman",Times,serif; width: 160px; }
72e3ab1 @pnts preview styles for admin view
authored
36 p.description { color: #666666; font-size: 13px; }
37 h1.masthead a { font-size: 24px; font-weight: normal; font-variant: small-caps; text-decoration: none; }
38 h1.masthead { margin: 30px 0 0 0;}
39 </style>
40 <?php
41 if ( 'blank' == get_theme_mod( 'header_textcolor',
42 HEADER_TEXTCOLOR ) || '' == get_theme_mod( 'header_textcolor',
43 HEADER_TEXTCOLOR ) )
44 $style = ' style="display:none;"';
45 else
46 $style = ' style="color:#' . get_theme_mod(
47 'header_textcolor', HEADER_TEXTCOLOR ) . ';"';
48 ?>
49 <img src="<?php esc_url ( header_image() ); ?>" alt="" />
50
51 <h1 class="masthead"><a <?php echo $style; ?> onclick="return false;"
52 href="<?php bloginfo( 'url' ); ?>"><?php bloginfo( 'name' );
53 ?></a></h1>
54 <p class="description"><?php bloginfo(
55 'description' ); ?></div>
56
57 </div>
58 <?php }
a1c3065 @pnts custom header image and background support
authored
59
72e3ab1 @pnts preview styles for admin view
authored
60 add_custom_image_header('oulipo_header_style','oulipo_admin_header_style', 'oulipo_admin_header_image');
4ebcadd @pnts custom menu support for the main menu
authored
61
62 add_action( 'init', 'register_oulipo_menus' );
63 function register_oulipo_menus() {
64 register_nav_menus(
65 array(
66 'main-menu' => __( 'Main Navigation Menu' )
67 ));
68 }
8cc5608 @pnts support for post thumbnails
authored
69 }
70
77022a6 @pnts first commit
authored
71 if ( function_exists('register_sidebar') )
72 register_sidebar();
73
dd4161e @pnts modifying theme for acceptance to wp.org
authored
74 $content_width = 470;
77022a6 @pnts first commit
authored
75
76 add_filter( 'comments_template', 'legacy_comments' );
77 function legacy_comments( $file ) {
a1c3065 @pnts custom header image and background support
authored
78 if ( !function_exists('wp_list_comments') )
79 $file = TEMPLATEPATH . '/legacy.comments.php';
80 return $file;
77022a6 @pnts first commit
authored
81 }
82 ?>
Something went wrong with that request. Please try again.