beans_no_post

Echo no post content.

beans_no_post( )

Return: (void)

Source

function beans_no_post() {

	beans_open_markup_e( 'beans_post', 'article', array( 'class' => 'tm-no-article uk-article' . ( current_theme_supports( 'beans-default-styling' ) ? ' uk-panel-box' : null ) ) );

		beans_open_markup_e( 'beans_post_header', 'header' );

			beans_open_markup_e( 'beans_post_title', 'h1', array( 'class' => 'uk-article-title' ) );

				beans_output_e( 'beans_no_post_article_title_text', __( 'Whoops, no result found!', 'tm-beans' ) );

			beans_close_markup_e( 'beans_post_title', 'h1' );

		beans_close_markup_e( 'beans_post_header', 'header' );

		beans_open_markup_e( 'beans_post_body', 'div' );

			beans_open_markup_e( 'beans_post_content', 'div', array( 'class' => 'tm-article-content' ) );

				beans_open_markup_e( 'beans_no_post_article_content', 'p', array( 'class' => 'uk-alert uk-alert-warning' ) );

					beans_output_e( 'beans_no_post_article_content_text', __( 'It looks like nothing was found at this location. Maybe try a search?', 'tm-beans' ) );

				beans_close_markup_e( 'beans_no_post_article_content', 'p' );

					beans_output_e( 'beans_no_post_search_form', get_search_form( false ) );

			beans_close_markup_e( 'beans_post_content', 'div' );

		beans_close_markup_e( 'beans_post_body', 'div' );

	beans_close_markup_e( 'beans_post', 'article' );

}