'); } } } // Page/Post Title if( ! function_exists( 'ilovewp_helper_display_title' ) ) { function ilovewp_helper_display_title($post) { if( ! is_object( $post ) ) return; the_title( '

', '

' ); } } // Page/Post Excerpt if( ! function_exists( 'ilovewp_helper_display_excerpt' ) ) { function ilovewp_helper_display_excerpt($post) { if( ! is_object( $post ) ) return; return '

' . get_the_excerpt() . '

'; } } // Page/Post Title if( ! function_exists( 'ilovewp_helper_display_featured_image' ) ) { function ilovewp_helper_display_featured_image($post) { if( ! is_object( $post ) ) return; $themeoptions_display_post_featured_image = esc_attr(get_theme_mod( 'theme-display-post-featured-image', 0 )); if ( $themeoptions_display_post_featured_image == 0 ) { return; } if ( has_post_thumbnail() ) { echo '
'; the_post_thumbnail('newstoday-thumb-featured'); echo '
'; } } } // Page/Post Comments if( ! function_exists( 'ilovewp_helper_display_comments' ) ) { function ilovewp_helper_display_comments($post) { if( ! is_object( $post ) ) return; if ( comments_open() || get_comments_number() ) : echo '
'; comments_template(); echo '
'; endif; } } // Page/Post Content if( ! function_exists( 'ilovewp_helper_display_content' ) ) { function ilovewp_helper_display_content($post) { if( ! is_object( $post ) ) return; echo '
'; the_content(); wp_link_pages(array('before' => '

', 'after' => '

', 'next_or_number' => 'number')); echo '
'; } } // Post Tags if( ! function_exists( 'ilovewp_helper_display_tags' ) ) { function ilovewp_helper_display_tags($post) { if( ! is_object( $post ) ) return; if ( get_post_type($post->ID) == 'post' ) { the_tags( '

' . __('Tags', 'newstoday') . ': ', '', '

'); } } } // Post Meta if( ! function_exists( 'ilovewp_helper_display_postmeta' ) ) { function ilovewp_helper_display_postmeta($post) { if( ! is_object( $post ) ) return; $output = ''; if ( get_post_type($post->ID) == 'post' ) { $themeoptions_display_post_author = esc_attr(get_theme_mod( 'theme-display-post-meta-author', 0 )); $themeoptions_display_post_date = esc_attr(get_theme_mod( 'theme-display-post-meta-date', 0 )); $themeoptions_display_post_category = esc_attr(get_theme_mod( 'theme-display-post-meta-category', 0 )); $output .= '

'; if ( $themeoptions_display_post_author == 1 ) { $output .= ''; } if ( $themeoptions_display_post_date == 1 ) { $output .= ''; } if ( $themeoptions_display_post_category == 1 ) { $output .= ''; } $output .= '

'; } return $output; } } // Post Author Box if( ! function_exists( 'ilovewp_helper_display_authorbio' ) ) { function ilovewp_helper_display_authorbio($post) { if( ! is_object( $post ) ) return; if ( get_post_type($post->ID) == 'post' ) { $themeoptions_display_post_authorbio = esc_attr(get_theme_mod( 'theme-display-post-meta-authorbio', 0 )); if ( $themeoptions_display_post_authorbio == 0 ) { return; } // Fetch custom field for this post/page $meta_hide_authorbio = get_post_meta( $post->ID, 'ilovewp_meta_hide_author', true ); if ( isset($meta_hide_authorbio) && $meta_hide_authorbio == 1 ) { // is hidden by custom field in current post/page return; } ?>

ID) == 'post' ) { $themeoptions_hide_post_authorbio = esc_attr(get_theme_mod( 'theme-hide-post-authorbio', 0 )); if ( $themeoptions_hide_post_authorbio == 1 ) { return; } $output = ''; // $args['prev_text'] = '' . __('Previous Article', 'newstoday') . '' . '%title'; // $args['next_text'] = '' . __('Next Article', 'newstoday') . '' . '%title'; // return get_the_post_navigation($args); $output .= '
'; $output .= '
' . get_previous_post_link( '' . __('Previous Article', 'newstoday') . '' . '%link', '%title', true ) . '
'; $output .= '
' . get_next_post_link( '' . __('Next Article', 'newstoday') . '' . '%link', '%title', true ) . '
'; $output .= '
'; return $output; } } } // Category RSS Feed Link if( ! function_exists( 'ilovewp_helper_display_category_rss_feed' ) ) { function ilovewp_helper_display_category_rss_feed() { if ( is_category() ) { $themeoptions_display_category_rss = esc_attr(get_theme_mod( 'theme-display-category-rss', 0 )); if ( $themeoptions_display_category_rss == 0 ) { return; } $category = get_category( get_query_var('cat') ); if ( ! empty( $category ) ) { return '
' . esc_html($category->name) . ' ' . __( 'RSS Feed', 'newstoday' ) . '
'; } } } } // Sidebar if( ! function_exists( 'ilovewp_helper_display_page_sidebar_column' ) ) { function ilovewp_helper_display_page_sidebar_column() { ?>