Skip to content

Commit

Permalink
accessibility improvements and small bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tellthemachines committed Mar 23, 2015
1 parent 1f50eb0 commit ca8b216
Show file tree
Hide file tree
Showing 13 changed files with 415 additions and 443 deletions.
12 changes: 6 additions & 6 deletions 404.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@



<main id="main" <?php if ( is_active_sidebar( 'rightside' ) ): ?> class="hasside" <?php endif; ?>>
<main id="main" role="main" class="main<?php if ( is_active_sidebar( 'rightside' ) ): ?> hasside<?php endif; ?>">

<div class="notfound">

<p><?php _e( 'Sorry, nothing found.', 'minart' ); ?></p>


</div><!-- .page-content -->


</main> <!-- end main -->

<?php get_sidebar(); ?>


<?php get_footer(); ?>
<?php get_footer(); ?>
28 changes: 14 additions & 14 deletions category.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,46 +2,46 @@



<main id="main" class="main cat-index<?php if ( is_active_sidebar( 'rightside' ) ): ?> hasside<?php endif; ?>">
<main id="main" role="main" class="main cat-index<?php if ( is_active_sidebar( 'rightside' ) ): ?> hasside<?php endif; ?>">

<?php if (have_posts()) : ?>

<header class="title">

<h1 class="cat-title"><?php $cattitle = single_cat_title( '', false ); $catparents = get_category_parents(get_cat_ID($cattitle), false, ' > '); echo rtrim($catparents, ' > '); ?></h1>

<?php
// Show an optional term description.
$term_description = term_description();
if ( ! empty( $term_description ) ) :
printf( '<div class="catdescript">%s</div>', $term_description );
endif;
?>

</header>

<ul class="cf" role="list" aria-label="<?php _e( 'List of posts', 'minart' ); ?>">
<?php
while (have_posts()) : the_post();
<?php
while (have_posts()) : the_post();

get_template_part( 'content', get_post_format() );
endwhile;

endwhile;
?>
</ul>
<nav id="nav-main" class="navs" role="navigation" aria-label="<?php _e( 'Posts navigation', 'minart' ); ?>">
<p><?php posts_nav_link( ' ', __('Newer', 'minart'), __( 'Older', 'minart') ); ?></p>
</nav>
<?php
<?php
else: ?>
<p><?php _e('Sorry, no posts found.', 'minart'); ?></p>
<?php endif; ?>



</main> <!-- end main -->

<?php get_sidebar(); ?>


<?php get_footer(); ?>
<?php get_footer(); ?>
24 changes: 12 additions & 12 deletions content.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
<?php
if ( is_single() ) :
the_title( '<h1 class="title post-title">', '</h1>' );
?>
<div class="postbody cf"><?php the_content(); ?></div>
<?php
<?php

wp_link_pages( array(
'before' => '<div class="page-links"><span class="page-links-title">' . __( 'Pages:', 'minart' ) . '</span>',
'after' => '</div>',
Expand All @@ -15,20 +15,20 @@

else : ?>
<li <?php if ( has_post_thumbnail() ) : post_class('permalink perma-image'); else: post_class('permalink'); endif; ?>><a href="<?php the_permalink()?>" rel="bookmark">
<?php
if ( has_post_thumbnail() ) :
the_post_thumbnail();
<?php
if ( has_post_thumbnail() ) :
the_post_thumbnail();
endif; ?>
<?php $posttitle = get_the_title(); if( $posttitle != ''): ?>
<p<?php if ( has_post_thumbnail() ) : ?> class="perma-title"<?php endif; ?>><?php the_title(); ?></p>
<?php elseif(! has_post_thumbnail()): ?>
<p><?php the_date(); endif; ?></p>
<?php $posttitle = get_the_title(); if( $posttitle != ''): ?>
<h2 class="perma-title<?php if ( has_post_thumbnail() ) : ?> perma-has-img<?php endif; ?>"><?php the_title(); ?></h2>
<?php elseif(! has_post_thumbnail()): ?>
<h2 class="perma-title"><?php the_date(); endif; ?></h2>
</a></li>

<?php endif;





?>
20 changes: 8 additions & 12 deletions footer.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@

<footer id="colophon" class="site-footer">
<?php if ( is_active_sidebar( 'footerwidg' ) ) : ?>
<div id="footerwidgets" class="widget-area footer-widget cf" role="complementary" aria-label="<?php _e( 'Footer widgets', 'minart' ); ?>">
<?php dynamic_sidebar('footerwidg'); ?>
</div><!-- #footerwidgets -->
<?php
endif;

?>
</footer><!-- #colophon -->
<?php if ( is_active_sidebar( 'footerwidg' ) ) : ?>
<footer id="colophon" class="site-footer">
<div id="footerwidgets" class="widget-area footer-widget cf" role="complementary" aria-label="<?php _e( 'Footer widgets', 'minart' ); ?>">
<?php dynamic_sidebar('footerwidg'); ?>
</div><!-- #footerwidgets -->
</footer><!-- #colophon -->
<?php endif; ?>
</div><!-- #container -->

<?php wp_footer(); ?>
</body>
</html>
</html>
20 changes: 10 additions & 10 deletions header.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,32 @@
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="width=device-width" />
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<?php
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<?php
wp_head();
?>
</head>
<body <?php body_class(); ?>>
<div class="container">
<a class="screenread skip" href="#main"><?php _e( 'Skip to content', 'minart' ); ?></a>
<header class="cf">
<div class="titles" role="banner">
<header class="cf" role="banner">
<div class="titles">

<?php
if ( is_front_page() || is_home() ) : ?>
<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
<?php else : ?>
<p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p>
<?php endif; ?>

<p class="sub-title"><?php bloginfo('description'); ?></p>

</div>

<?php if ( has_nav_menu('header-menu') ):?>
<nav id="topmen" class="header-men" role="navigation" aria-label="<?php _e( 'Main menu', 'minart' ); ?>">
<nav id="topmen" class="header-men" role="navigation" aria-label="<?php _e( 'Main menu', 'minart' ); ?>">
<button class="mobile-toggle" type="button"><?php _e( 'toggle menu', 'minart' ); ?></button>
<?php wp_nav_menu( array( 'theme_location' => 'header-menu', 'menu_class' => 'headmen', 'container' => false, 'fallback_cb'=> false ) ); ?>
</nav>
<?php endif;?>
</header>
</header>
Loading

0 comments on commit ca8b216

Please sign in to comment.