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'); ?> <?php get_template_part('templates/page', 'header'); ?>
<div class="alert alert-block fade in"> <div class="alert">
<a class="close" data-dismiss="alert">&times;</a> <?php _e('Sorry, but the page you were trying to view does not exist.', 'roots'); ?>
<p><?php _e('Sorry, but the page you were trying to view does not exist.', 'roots'); ?></p>
</div> </div>
<p><?php _e('It looks like this was the result of either:', 'roots'); ?></p> <p><?php _e('It looks like this was the result of either:', 'roots'); ?></p>

View File

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

View File

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

View File

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