' . __( 'Sticky', 'oren' ) . '';
if ( 'post' == get_post_type() ) {
echo '
';
//echo __('Posted on', 'oren') . ' ';
echo get_the_time('jS') . ' ' . get_the_time('F');
echo '. ' . __('By', 'oren') . ' ' ;
$username = get_userdata( $post->post_author );
echo '
' . $username->user_nicename . ' ';
if ( ! $shorten ) {
echo '. ' . __('Posted in', 'oren') . ' ';
the_category(', ');
echo '.';
}
?>
';
}
}
endif;
if ( ! function_exists( 'themeora_entry_date' ) ) :
/**
* Prints HTML with date information for current post.
* @since themeora 1.0
* @param boolean $echo Whether to echo the date. Default true.
* @return string The HTML-formatted post date.
*/
function themeora_entry_date( $echo = true ) {
if ( has_post_format( array( 'chat', 'status' ) ) )
$format_prefix = _x( '%1$s on %2$s', '1: post format name. 2: date', 'oren' );
else
$format_prefix = '%2$s';
$date = sprintf( '
%4$s ',
esc_url( get_permalink() ),
esc_attr( sprintf( __( 'Permalink to %s', 'oren' ), the_title_attribute( 'echo=0' ) ) ),
esc_attr( get_the_date( 'c' ) ),
esc_html( sprintf( $format_prefix, get_post_format_string( get_post_format() ), get_the_date() ) )
);
if ( $echo )
echo $date;
return $date;
}
endif;
if ( ! function_exists( 'themeora_post_tags' ) ) :
/**
* Displays post tags
* @since themeora 1.0
* @return tag cloud
*/
function themeora_post_tags() {
global $post;
if( get_theme_mod( 'show_tags' ) == true && has_tag() && is_singular() ) {
echo '
';
echo the_tags( '
' . __('Tagged As', 'oren') . ' ', '', '' );
echo '';
}
}
endif;
if ( ! function_exists( 'themeora_post_author_meta' ) ) :
/**
* Displays author information under posts
* @since themeora 1.0
* @return block of html to display author info
*/
function themeora_post_author_meta() {
if ( 'post' == get_post_type() && get_the_author_meta('first_name') != '' && get_the_author_meta('last_name') != '') { ?>
post_parent ) : get_adjacent_post( false, '', true );
$next = get_adjacent_post( false, '', false );
if ( ! $next && ! $previous )
return;
?>
Previous', 'oren' ) ); ?>
', 'oren' ) ); ?>
max_num_pages < 2 )
return;
?>
Previous ', 'oren' ) ); ?>
Next ', 'oren' ) ); ?>
'. __('...read more', 'oren') . '';
}
endif;
add_filter( 'excerpt_more', 'themeora_excerpt_more' );
if ( ! function_exists( 'themeora_default_page_loop' ) ) :
/**
* Default loop
*
* Run a loop based off the provided page id. If no id is passed in, just do a standard loop.
* Used to return various pages for the single page template.
* @param int $page. The id of the page
* @param boolean $sidebar. Should the sidebar be shown
* @return the page structure for full width or default page
*/
function themeora_default_page_loop( $page = null, $sidebar = null ) {
$col_span = $sidebar === true ? 'col-md-8' : 'col-md-12';
$template = get_page_template_slug( $page );
?>
id="li-comment-">