Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Bring repo up to date

  • Loading branch information...
commit 678a60c52304e6973ea739277a16ab441152ff22 1 parent 520bab1
Ryan McCue authored

Showing 4 changed files with 26 additions and 24 deletions. Show diff stats Hide diff stats

  1. +15 21 functions.php
  2. +1 1  header.php
  3. +1 1  index.php
  4. +9 1 style.css
36 functions.php
@@ -154,8 +154,8 @@ function twentyten_term_list($taxonomy, $glue = ', ', $text = '', $also_text = '
154 154 endif;
155 155
156 156 // Register widgetized areas
157   -if ( ! function_exists( 'twentyten_widgets_init' ) ) :
158   -function twentyten_widgets_init() {
  157 +if ( ! function_exists( 'nthq_widgets_init' ) ) :
  158 +function nthq_widgets_init() {
159 159 // Area 1
160 160 register_sidebar( array (
161 161 'name' => 'Sidebar',
@@ -169,28 +169,17 @@ function twentyten_widgets_init() {
169 169
170 170 // Area 2
171 171 register_sidebar( array (
172   - 'name' => 'Secondary Widget Area',
173   - 'id' => 'secondary-widget-area',
174   - 'description' => __( 'The secondary widget area' , 'twentyten' ),
175   - 'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
176   - 'after_widget' => "</li>",
177   - 'before_title' => '<h3 class="widget-title">',
178   - 'after_title' => '</h3>',
179   - ) );
180   -
181   - // Area 3
182   - register_sidebar( array (
183   - 'name' => 'First Footer Widget Area',
184   - 'id' => 'first-footer-widget-area',
185   - 'description' => __( 'The first footer widget area' , 'twentyten' ),
186   - 'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
187   - 'after_widget' => "</li>",
188   - 'before_title' => '<h3 class="widget-title">',
  172 + 'name' => 'Notice',
  173 + 'id' => 'notice',
  174 + 'description' => __( 'Notice area' , 'nthq' ),
  175 + 'before_widget' => '',
  176 + 'after_widget' => '',
  177 + 'before_title' => '<h3 class="notice-title">',
189 178 'after_title' => '</h3>',
190 179 ) );
191 180 }
192 181 endif;
193   -add_action( 'init', 'twentyten_widgets_init' );
  182 +add_action( 'init', 'nthq_widgets_init' );
194 183
195 184 function latest_post_shortcode() {
196 185 $post = get_posts('numberposts=1&orderby=date');
@@ -214,4 +203,9 @@ function latest_post_shortcode() {
214 203 function stylesheetdir_shortcode() {
215 204 return get_bloginfo('stylesheet_directory');
216 205 }
217   -add_shortcode('stylesheetdir', 'stylesheetdir_shortcode');
  206 +add_shortcode('stylesheetdir', 'stylesheetdir_shortcode');
  207 +
  208 +function blogurl_shortcode() {
  209 + return get_bloginfo('url');
  210 +}
  211 +add_shortcode('blogurl', 'blogurl_shortcode');
2  header.php
@@ -31,7 +31,7 @@
31 31 <h1><a href="<?php echo home_url('/'); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
32 32 </div><!-- #header -->
33 33 <div id="notice">
34   - <p>Show your support by <a href="#">voting for NeoTokyo in the Mod DB Top 100</a>.</p>
  34 + <?php dynamic_sidebar('notice') ?>
35 35 </div>
36 36
37 37 <div id="navigation">
2  index.php
... ... @@ -1,6 +1,6 @@
1 1 <?php get_header(); ?>
2 2
3   - <?php get_generic_template( 'loop', 'index' ); ?>
  3 + <?php get_template_part( 'loop', 'index' ); ?>
4 4
5 5 <?php get_sidebar(); ?>
6 6 <?php get_footer(); ?>
10 style.css
... ... @@ -1,4 +1,12 @@
1 1 /*
  2 +Theme Name: NeoTokyo HQ
  3 +Theme URI: http://neotokyohq.com/
  4 +Description: The new theme for NeoTokyo HQ.
  5 +Author: Ryan McCue
  6 +Version: 3.0
  7 +*/
  8 +
  9 +/*
2 10 From http://meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/
3 11 */
4 12 html, body, div, span, applet, object, iframe,
@@ -147,7 +155,7 @@ a {
147 155 #navigation a:hover {
148 156 border-bottom: 3px solid #fff;
149 157 }
150   - #navigation #download a {
  158 + #navigation .download a {
151 159 font-size: 30px;
152 160 }
153 161

0 comments on commit 678a60c

Please sign in to comment.
Something went wrong with that request. Please try again.