Simplify alerts
This commit is contained in:
@@ -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; ?>
|
||||
|
||||
Reference in New Issue
Block a user