Genesis Framework: Add Comment Policy Box

If you want to add a comment policy box when using the Genesis framework, use the snippet below:

<?php

add_action( 'genesis_after_comments', function () {
	if ( is_single() && ! is_user_logged_in() && comments_open() ) {
		?>
        <div class="comment-policy-box">
            <p class="comment-policy"><small><strong>Rules:</strong>Please follow the rules.</small></p>
        </div>
		<?php
	}
} );