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 '' . get_the_date() . ''; 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 ''; 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; if ( ! function_exists( 'ariel_entry_comments_link' ) ) : /** * Comments link * @return string Prints comments number inside comments link for curent post */ function ariel_entry_comments_link() { $separator = ''; $ariel_blog_feed_comments_show = ariel_get_option( 'ariel_blog_feed_comments_show' ); $ariel_posts_comments_show = ariel_get_option( 'ariel_posts_comments_show' ); if ( ! post_password_required() && comments_open() ) : /** * Check for comments visibility * @var bool */ $show = ariel_toggle_entry_meta( $ariel_blog_feed_comments_show, $ariel_posts_comments_show ); if ( $show ) : $label = sprintf( _nx( '%1$s Comment', '%1$s Comments', get_comments_number(), 'comments title', 'ariel' ), number_format_i18n( get_comments_number() ) ); //$separator = esc_html__( ' – ', 'ariel' ); echo $separator . '' . $label . ''; endif; endif; } endif; if ( ! function_exists( 'ariel_entry_thumbnail' ) ) : /** * Entry Thumbnail * @param string $size Image size * @return string Print featured image for current post */ function ariel_entry_thumbnail( $size = 'thumbnail' ) { $ariel_example_content = ariel_get_option( 'ariel_example_content' ); ?>
get_the_title(), 'class' => 'img-responsive' ) ); ?> <?php the_title_attribute(); ?>
'; } else { return ''; } } } endif; if ( ! function_exists( 'ariel_posts_pagination' ) ) : /** * Posts pagination * * Used for blog feed on frontpage and archive pages. * * @param obj $query WP_Query object * @return string Returns pagination markup */ function ariel_posts_pagination( $query = '' ) { global $wp_query; if ( $query ) { $query = $query; } else { $query = $wp_query; } $navigation = ''; // Don't print empty markup if there's only one page. if ( $query->max_num_pages > 1 ) { $args = array( 'prev_text' => __( 'Older Posts', 'ariel' ), 'next_text' => __( 'Newer Posts', 'ariel' ), 'screen_reader_text' => __( 'Posts navigation', 'ariel' ), ); $next_link = get_previous_posts_link( $args['next_text'], $query->max_num_pages ); $prev_link = get_next_posts_link( $args['prev_text'], $query->max_num_pages ); $navigation .= '
'; if ( $prev_link ) { $navigation .= ''; } if ( $prev_link && $next_link ) { $navigation .= '
'; } if ( $next_link ) { $navigation .= ''; } $navigation .= '
'; } return $navigation; } endif;