get_the_ID(), 'class' => implode( ' ', get_post_class( array( 'uk-article', ( current_theme_supports( 'beans-default-styling' ) ? 'uk-panel-box' : null ) ) ) ), 'itemscope' => 'itemscope', 'itemtype' => 'http://schema.org/CreativeWork' ); // Blog specifc attributes. if ( 'post' === get_post_type() ) { $article_attributes['itemtype'] = 'http://schema.org/BlogPosting'; // Only add to blogPost attribute to the main query, if ( is_main_query() && !is_search() ) $article_attributes['itemprop'] = 'blogPost'; } echo beans_open_markup( 'beans_post', 'article', $article_attributes ); echo beans_open_markup( 'beans_post_header', 'header' ); /** * Fires in the post header. * * @since 1.0.0 */ do_action( 'beans_post_header' ); echo beans_close_markup( 'beans_post_header', 'header' ); echo beans_open_markup( 'beans_post_body', 'div' ); /** * Fires in the post body. * * @since 1.0.0 */ do_action( 'beans_post_body' ); echo beans_close_markup( 'beans_post_body', 'div' ); echo beans_close_markup( 'beans_post', 'article' ); endwhile; /** * Fires after the posts loop. * * This hook fires if posts exist. * * @since 1.0.0 */ do_action( 'beans_after_posts_loop' ); else : /** * Fires if no posts exist. * * @since 1.0.0 */ do_action( 'beans_no_post' ); endif; /** * Fires after the loop. * * This hook fires even if no post exists. * * @since 1.0.0 */ do_action( 'beans_after_loop' );