Skip to content

Commit

Permalink
Minor Fixes, Style Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Drew Morris authored and Drew Morris committed Apr 14, 2013
1 parent c1c0488 commit 399b01a
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 24 deletions.
4 changes: 2 additions & 2 deletions content-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
<article>

<header>
<h2><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'foundation' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<h2><?php the_title(); ?></h2>
</header>

<?php if ( has_post_thumbnail()) : ?>
<a href="<?php the_permalink(); ?>" class="th" title="<?php the_title_attribute(); ?>" ><?php the_post_thumbnail(); ?></a>
<a href="<?php the_permalink(); ?>" class="th" title="<?php the_title_attribute(); ?>" ><?php the_post_thumbnail(); ?></a>
<?php endif; ?>

<?php the_content(); ?>
Expand Down
6 changes: 4 additions & 2 deletions content.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@

<?php the_excerpt(); ?>

</article>
<a class="button small secondary" href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'foundation' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark">Read Post &rarr;</a>

<hr>
<hr>

</article>
7 changes: 0 additions & 7 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,13 +142,6 @@ function display_element( $element, &$children_elements, $max_depth, $depth=0, $
}
}

// Add a class to the wp_page_menu fallback
function foundation_page_menu_class($ulclass) {
return preg_replace('/<ul>/', '<ul class="nav-bar">', $ulclass, 1);
}

add_filter('wp_page_menu','foundation_page_menu_class');

/**
* Create pagination
*/
Expand Down
11 changes: 2 additions & 9 deletions header.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,15 @@
<header>

<nav class="top-bar">
<ul class="title-area">
<li class="name">
<h1><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
</li>
<li class="toggle-topbar menu-icon"><a href="#"><span>Menu</span></a></li>
</ul>

<section class="top-bar-section">
<?php wp_nav_menu( array( 'theme_location' => 'header-menu', 'menu_class' => 'left', 'container' => '', 'fallback_cb' => 'foundation_page_menu', 'walker' => new foundation_navigation() ) ); ?>
<?php wp_nav_menu( array( 'items_wrap' => '<ul class="%2$s">%3$s</ul>', 'theme_location' => 'header-menu', 'menu_class' => 'left', 'container' => '', 'fallback_cb' => 'foundation_page_menu', 'walker' => new foundation_navigation() ) ); ?>
</section>
</nav>

<header class="site-header">
<div class="row">
<div class="large-12 columns">
<h2 class="subheader"><?php bloginfo('description'); ?></h2>
<h2><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a> <small><?php bloginfo('description'); ?></small></h2>
</div>
</div>
</header>
Expand Down
4 changes: 4 additions & 0 deletions robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# www.robotstxt.org/
# www.google.com/support/webmasters/bin/answer.py?hl=en&answer=156449

User-agent: *
4 changes: 2 additions & 2 deletions searchform.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
<div class="large-8 mobile-three columns">
<input type="text" name="s" id="s" placeholder="<?php esc_attr_e( 'Search', 'foundation' ); ?>" />
</div>
<div class="large-8 mobile-one columns">
<input type="submit" class="postfix button expand" name="submit" id="searchsubmit" value="<?php esc_attr_e( 'Search', 'foundation' ); ?>" />
<div class="large-4 mobile-one columns">
<input type="submit" class="button prefix" name="submit" id="searchsubmit" value="<?php esc_attr_e( 'Search', 'foundation' ); ?>" />
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion sidebar.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
?>

<!-- Sidebar -->
<aside class="large-3 columns">
<aside class="large-3 columns sidebar">

<?php if ( dynamic_sidebar('Sidebar Right') ) : elseif( current_user_can( 'edit_theme_options' ) ) : ?>

Expand Down
4 changes: 3 additions & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ article .th {margin-bottom:10px; margin-bottom:1em;}
Typography
----------------------------------------- */

body,h1,h2,h3,h4,h5,h6 {font-family: 'Open Sans', sans-serif;}
body,h1,h2,h3,h4,h5,h6,p {font-family: 'Open Sans', sans-serif;}
h1,h2,h3,h4,h5,h6 {font-weight:300;}

.site-title .subheader {margin-bottom:0;}
Expand All @@ -67,6 +67,8 @@ h1,h2,h3,h4,h5,h6 {font-weight:300;}
----------------------------------------- */

.site-header {border-bottom:1px solid #ddd;padding-bottom:1rem;margin-bottom: 1.875em;}
.sidebar ul li {list-style:none;}
.top-bar-section ul li>a {border-left: 1px solid #333; border-right: none;}

/* -----------------------------------------
Page Name 1
Expand Down

0 comments on commit 399b01a

Please sign in to comment.