post_type == 'page' ) return; $ariel_blog_feed_date_show = ariel_get_option( 'ariel_blog_feed_date_show' ); $ariel_posts_date_show = ariel_get_option( 'ariel_posts_date_show' ); /** * Check for date visibility * @var bool */ $show = ariel_toggle_entry_meta( $ariel_blog_feed_date_show, $ariel_posts_date_show ); if ( $show ) : echo ''; printf( esc_html__( 'By %s', 'ariel' ), get_the_author() ); echo ''; endif; } endif; if ( ! function_exists( 'ariel_entry_separator' ) ) : /** * Entry Meta Separator * @return string Prints separator dash between meta elements */ function ariel_entry_separator($check) { $ariel_blog_feed_author_show = ariel_get_option( 'ariel_blog_feed_author_show' ); $ariel_posts_author_show = ariel_get_option( 'ariel_posts_author_show' ); $ariel_blog_feed_date_show = ariel_get_option( 'ariel_blog_feed_date_show' ); $ariel_posts_date_show = ariel_get_option( 'ariel_posts_date_show' ); $ariel_blog_feed_comments_show = ariel_get_option( 'ariel_blog_feed_comments_show' ); $ariel_posts_comments_show = ariel_get_option( 'ariel_posts_comments_show' ); $separator = ' '; /** * Check for item visibility * @var bool */ $show_author = ariel_toggle_entry_meta( $ariel_blog_feed_author_show, $ariel_posts_author_show ); $show_date = ariel_toggle_entry_meta( $ariel_blog_feed_date_show, $ariel_posts_date_show ); $show_comments = ariel_toggle_entry_meta( $ariel_blog_feed_comments_show, $ariel_posts_comments_show ); if ( $check == 'author_date' && $show_author && $show_date ) : echo $separator; elseif ($check == 'date_comments' && $show_date && $show_comments ) : echo $separator; elseif ($check == 'author_comments' && $show_author && $show_comments && !$show_date) : echo $separator; endif; } endif; if ( ! function_exists( 'ariel_entry_categories' ) ) : /** * Entry Categories * @return string Prints categories for current post */ function ariel_entry_categories() { $ariel_blog_feed_category_show = ariel_get_option( 'ariel_blog_feed_category_show' ); $ariel_posts_category_show = ariel_get_option( 'ariel_posts_category_show' ); /** * Check for category visibility * @var bool */ $show = ariel_toggle_entry_meta( $ariel_blog_feed_category_show, $ariel_posts_category_show ); if ( $show ) : ?>
', '' ); } else { the_title( ' '; endif; } endif; if ( ! function_exists( 'ariel_entry_author' ) ) : /** * Entry Author * @return string Prints author for current post */ function ariel_entry_author() { $ariel_blog_feed_author_show = ariel_get_option( 'ariel_blog_feed_author_show' ); $ariel_posts_author_show = ariel_get_option( 'ariel_posts_author_show' ); /** * Check for author visibility * @var bool */ $show = ariel_toggle_entry_meta( $ariel_blog_feed_author_show, $ariel_posts_author_show ); if ( $show ) : echo '