Simplify alerts

This commit is contained in:
Ben Word
2013-02-12 15:34:05 -06:00
parent 129be210c6
commit 8bb57d3cf8
4 changed files with 11 additions and 16 deletions

View File

@@ -1,8 +1,7 @@
<?php get_template_part('templates/page', 'header'); ?>
<div class="alert alert-block fade in">
<a class="close" data-dismiss="alert">&times;</a>
<p><?php _e('Sorry, but the page you were trying to view does not exist.', 'roots'); ?></p>
<div class="alert">
<?php _e('Sorry, but the page you were trying to view does not exist.', 'roots'); ?>
</div>
<p><?php _e('It looks like this was the result of either:', 'roots'); ?></p>
@@ -11,4 +10,4 @@
<li><?php _e('an out-of-date link', 'roots'); ?></li>
</ul>
<?php get_search_form(); ?>
<?php get_search_form(); ?>

View File

@@ -43,9 +43,8 @@ class Roots_Walker_Comment extends Walker_Comment {
<?php edit_comment_link(__('(Edit)', 'roots'), '', ''); ?>
<?php if ($comment->comment_approved == '0') : ?>
<div class="alert alert-block fade in">
<a class="close" data-dismiss="alert">&times;</a>
<p><?php _e('Your comment is awaiting moderation.', 'roots'); ?></p>
<div class="alert">
<?php _e('Your comment is awaiting moderation.', 'roots'); ?>
</div>
<?php endif; ?>

View File

@@ -25,9 +25,8 @@
<?php endif; ?>
<?php if (!comments_open() && !is_page() && post_type_supports(get_post_type(), 'comments')) : ?>
<div class="alert alert-block fade in">
<a class="close" data-dismiss="alert">&times;</a>
<p><?php _e('Comments are closed.', 'roots'); ?></p>
<div class="alert">
<?php _e('Comments are closed.', 'roots'); ?>
</div>
<?php endif; ?>
</section><!-- /#comments -->
@@ -35,9 +34,8 @@
<?php if (!have_comments() && !comments_open() && !is_page() && post_type_supports(get_post_type(), 'comments')) : ?>
<section id="comments">
<div class="alert alert-block fade in">
<a class="close" data-dismiss="alert">&times;</a>
<p><?php _e('Comments are closed.', 'roots'); ?></p>
<div class="alert">
<?php _e('Comments are closed.', 'roots'); ?>
</div>
</section><!-- /#comments -->
<?php endif; ?>

View File

@@ -1,7 +1,6 @@
<?php if (!have_posts()) : ?>
<div class="alert alert-block fade in">
<a class="close" data-dismiss="alert">&times;</a>
<p><?php _e('Sorry, no results were found.', 'roots'); ?></p>
<div class="alert">
<?php _e('Sorry, no results were found.', 'roots'); ?>
</div>
<?php get_search_form(); ?>
<?php endif; ?>