Simplify alerts
This commit is contained in:
7
404.php
7
404.php
@@ -1,8 +1,7 @@
|
||||
<?php get_template_part('templates/page', 'header'); ?>
|
||||
|
||||
<div class="alert alert-block fade in">
|
||||
<a class="close" data-dismiss="alert">×</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(); ?>
|
||||
|
||||
@@ -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">×</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; ?>
|
||||
|
||||
|
||||
@@ -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">×</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">×</a>
|
||||
<p><?php _e('Comments are closed.', 'roots'); ?></p>
|
||||
<div class="alert">
|
||||
<?php _e('Comments are closed.', 'roots'); ?>
|
||||
</div>
|
||||
</section><!-- /#comments -->
|
||||
<?php endif; ?>
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
<?php if (!have_posts()) : ?>
|
||||
<div class="alert alert-block fade in">
|
||||
<a class="close" data-dismiss="alert">×</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; ?>
|
||||
|
||||
Reference in New Issue
Block a user