beans_comment_cancel_reply_link

Echo comment cancel reply link.

This function replaces the default WordPress comment cancel reply link.

beans_comment_cancel_reply_link( $html, $link, $text )

Return: (void)

Source

function beans_comment_cancel_reply_link( $html, $link, $text ) {

	$output = beans_open_markup( 'beans_comment_cancel_reply_link', 'a', array(
		'rel'   => 'nofollow',
		'id'    => 'cancel-comment-reply-link',
		'class' => 'uk-button uk-button-small uk-button-danger uk-margin-small-right',
		'style' => isset( $_GET['replytocom'] ) ? '' : 'display:none;',
		'href'  => $link, // Automatically escaped.
	) );

		$output .= beans_output( 'beans_comment_cancel_reply_link_text', $text );

	$output .= beans_close_markup( 'beans_comment_cancel_reply_link', 'a' );

	return $output;

}