Permalink
Browse files

Bring repo up to date

  • Loading branch information...
1 parent 520bab1 commit 678a60c52304e6973ea739277a16ab441152ff22 @rmccue committed Apr 19, 2010
Showing with 26 additions and 24 deletions.
  1. +15 −21 functions.php
  2. +1 −1 header.php
  3. +1 −1 index.php
  4. +9 −1 style.css
View
36 functions.php
@@ -154,8 +154,8 @@ function twentyten_term_list($taxonomy, $glue = ', ', $text = '', $also_text = '
endif;
// Register widgetized areas
-if ( ! function_exists( 'twentyten_widgets_init' ) ) :
-function twentyten_widgets_init() {
+if ( ! function_exists( 'nthq_widgets_init' ) ) :
+function nthq_widgets_init() {
// Area 1
register_sidebar( array (
'name' => 'Sidebar',
@@ -169,28 +169,17 @@ function twentyten_widgets_init() {
// Area 2
register_sidebar( array (
- 'name' => 'Secondary Widget Area',
- 'id' => 'secondary-widget-area',
- 'description' => __( 'The secondary widget area' , 'twentyten' ),
- 'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
- 'after_widget' => "</li>",
- 'before_title' => '<h3 class="widget-title">',
- 'after_title' => '</h3>',
- ) );
-
- // Area 3
- register_sidebar( array (
- 'name' => 'First Footer Widget Area',
- 'id' => 'first-footer-widget-area',
- 'description' => __( 'The first footer widget area' , 'twentyten' ),
- 'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
- 'after_widget' => "</li>",
- 'before_title' => '<h3 class="widget-title">',
+ 'name' => 'Notice',
+ 'id' => 'notice',
+ 'description' => __( 'Notice area' , 'nthq' ),
+ 'before_widget' => '',
+ 'after_widget' => '',
+ 'before_title' => '<h3 class="notice-title">',
'after_title' => '</h3>',
) );
}
endif;
-add_action( 'init', 'twentyten_widgets_init' );
+add_action( 'init', 'nthq_widgets_init' );
function latest_post_shortcode() {
$post = get_posts('numberposts=1&orderby=date');
@@ -214,4 +203,9 @@ function latest_post_shortcode() {
function stylesheetdir_shortcode() {
return get_bloginfo('stylesheet_directory');
}
-add_shortcode('stylesheetdir', 'stylesheetdir_shortcode');
+add_shortcode('stylesheetdir', 'stylesheetdir_shortcode');
+
+function blogurl_shortcode() {
+ return get_bloginfo('url');
+}
+add_shortcode('blogurl', 'blogurl_shortcode');
View
2 header.php
@@ -31,7 +31,7 @@
<h1><a href="<?php echo home_url('/'); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
</div><!-- #header -->
<div id="notice">
- <p>Show your support by <a href="#">voting for NeoTokyo in the Mod DB Top 100</a>.</p>
+ <?php dynamic_sidebar('notice') ?>
</div>
<div id="navigation">
View
2 index.php
@@ -1,6 +1,6 @@
<?php get_header(); ?>
- <?php get_generic_template( 'loop', 'index' ); ?>
+ <?php get_template_part( 'loop', 'index' ); ?>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
View
10 style.css
@@ -1,4 +1,12 @@
/*
+Theme Name: NeoTokyo HQ
+Theme URI: http://neotokyohq.com/
+Description: The new theme for NeoTokyo HQ.
+Author: Ryan McCue
+Version: 3.0
+*/
+
+/*
From http://meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/
*/
html, body, div, span, applet, object, iframe,
@@ -147,7 +155,7 @@ a {
#navigation a:hover {
border-bottom: 3px solid #fff;
}
- #navigation #download a {
+ #navigation .download a {
font-size: 30px;
}

0 comments on commit 678a60c

Please sign in to comment.